View previous topic :: View next topic |
Author |
Message |
brahici n00b
Joined: 19 May 2016 Posts: 3
|
Posted: Thu May 19, 2016 8:23 pm Post subject: nvidia-drivers-340.96 and kernel 4.6.0 |
|
|
Hi
Here's a patch to compile nvidia-drivers-340.96 with kernel 4.6.x . Please notice that there are no kernel version checks (improvement to come).
The patch is available at https://zerobin.net/?ae22f4178dc9ce13#Jo9LWsDJchqEQonQzh9cRjC7douzReIulw1Nm8uHYDU= .
Save it in /etc/portage/patches/x11-drivers/nvidia-drivers under name 01-kernel-4.6.0.patch (or any other relevant name).
Run emerge nvidia-drivers (or emerge @module-rebuild). |
|
Back to top |
|
|
brahici n00b
Joined: 19 May 2016 Posts: 3
|
|
Back to top |
|
|
therealpete n00b
Joined: 02 Feb 2004 Posts: 6
|
Posted: Fri May 20, 2016 4:47 pm Post subject: |
|
|
Thanks very much!! Very much appreciated!! |
|
Back to top |
|
|
drbrezner n00b
Joined: 21 May 2016 Posts: 17 Location: Germany
|
Posted: Sat May 21, 2016 8:12 am Post subject: |
|
|
hi
thanks for your work. usually those patches worked for me, too, in the past. but now
Code: | emerge =nvidia-driver-340.96-r5 |
still breaks:
Code: | /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/uvm/nvidia_uvm_lite.c:788:20: error: â undeclared (first use in this function)
retValue = VM_FAULT_MINOR; |
i compiled gentoo-sources-4.6.0 and use gcc-5.3.0. According to emerge output the patch is being applied. What could be wrong? |
|
Back to top |
|
|
hurricane Tux's lil' helper
Joined: 15 Jul 2004 Posts: 107
|
Posted: Sat May 21, 2016 6:12 pm Post subject: |
|
|
Code: |
/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/uvm/nvidia_uvm_lite.c:788:20: Error: »VM_FAULT_MINOR« not declared (first usage in this function)
retValue = VM_FAULT_MINOR;
^ |
Same problem here too.
It seems to me, like VM_FAULT_MINOR is deprecated and was always 0 anyway:
RE: [PATCH 03/12] mm: Remove VM_FAULT_MINOR
But I don’t know enough to be secure enough to just set …
Anyone…? |
|
Back to top |
|
|
hurricane Tux's lil' helper
Joined: 15 Jul 2004 Posts: 107
|
Posted: Sat May 21, 2016 6:31 pm Post subject: |
|
|
Ok, in case it makes sense to replace VM_FAULT_MINOR by 0, I made this little additional patch:
VM_FAULT_MINOR=0.patch
It compiled here. But of course, I don’t make any guarantees that it won’t eat your children, found a church, or vote for the Trump-Cheney-Putin-Koch-Blankfein-Dragi-Kim-Yong-Un alliance |
|
Back to top |
|
|
brahici n00b
Joined: 19 May 2016 Posts: 3
|
|
Back to top |
|
|
drbrezner n00b
Joined: 21 May 2016 Posts: 17 Location: Germany
|
Posted: Sun May 22, 2016 8:39 am Post subject: |
|
|
Now the emerge works perfectly with both patches -- thanks a lot, guys! |
|
Back to top |
|
|
cfgauss l33t
Joined: 18 May 2005 Posts: 688 Location: USA
|
Posted: Thu May 26, 2016 7:49 pm Post subject: |
|
|
Thanks go to brahici and hurricane. I can confirm that nvidia-drivers-340.96-r5 emerges without error under kernel gentoo-sources-4.6.0 using both patches above. |
|
Back to top |
|
|
thunderrd n00b
Joined: 20 Aug 2010 Posts: 59
|
Posted: Mon Jun 13, 2016 4:13 am Post subject: |
|
|
Yeah, thanks for the patches; I am using ck-sources:4.6.2 and they patched the driver and built fine. |
|
Back to top |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
Posted: Mon Jun 13, 2016 1:18 pm Post subject: |
|
|
Thanks! I have a Zotac box that cannot use nouveau because of lack of HDMI audio support. |
|
Back to top |
|
|
Buffoon Veteran
Joined: 17 Jun 2015 Posts: 1369 Location: EU or US
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
|