* [gentoo-user] [SOLVED] Re: nvidia-drivers-340.76 failed with gentoo-sources-4.0.5
@ 2015-06-18 12:39 Jacques Montier
0 siblings, 0 replies; only message in thread
From: Jacques Montier @ 2015-06-18 12:39 UTC (permalink / raw
To: gentoo-user@lists.gentoo.org
[-- Attachment #1: Type: text/plain, Size: 2017 bytes --]
2015-06-18 13:03 GMT+02:00 Jacques Montier <jmontier@gmail.com>:
> Hi all,
>
> Because of an old graphic card, i have to compile nvidia-drivers-340.76.
> nvidia-drivers-340.76 does not compile with the new 4.0.5 kernel.
> Here is the output error :
> /var/tmp/portage/x11-drivers/nvidia-drivers-340.76/work/kernel/nv-pat.o]
> Error 1
>
> I saw a topic about that problem on Gentoo forum :
> https://forums.gentoo.org/viewtopic-p-7754020.html?sid=3b9fed3069c0b6644c1a41e839455b85
> I tried to apply the patch
> /etc/portage/patches/x11-drivers/nvidia-drivers/nvidia-drivers-340.76.patch
>
> *--- a/kernel/nv-pat.c.orig *
> *+++ b/kernel/nv-pat.c *
> *@@ -35,8 +35,13 @@ *
> * unsigned long cr0 = read_cr0(); *
> * write_cr0(((cr0 & (0xdfffffff)) | 0x40000000)); *
> * wbinvd(); *
> *+if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0) *
> * *cr4 = read_cr4(); *
> * if (*cr4 & 0x80) write_cr4(*cr4 & ~0x80); *
> *+else *
> *+ *cr4 = __read_cr4(); *
> *+ if (*cr4 & 0x80) __write_cr4(*cr4 & ~0x80); *
> *+endif *
> * __flush_tlb(); *
> * } *
>
> *@@ -46,7 +51,11 @@ *
> * wbinvd(); *
> * __flush_tlb(); *
> * write_cr0((cr0 & 0x9fffffff)); *
> *+if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0) *
> * if (cr4 & 0x80) write_cr4(cr4); *
> *+else *
> *+ if (cr4 & 0x80) __write_cr4(cr4); *
> *+endif *
> * } *
>
> * static int nv_determine_pat_mode(void)*
>
> This patch does not work ; i get the error
>
> * Failed Patch: nvidia-drivers-340.76.patch !
> * (
> /etc/portage/patches//x11-drivers/nvidia-drivers/nvidia-drivers-340.76.patch
> )
>
>
> Any idea ?
>
> Thanks a lot,
>
>
> Cheers,
>
>
>
>
>
>
> *--*
> *Jacques*
>
Hello again,
I think there were some typo in the patch line.
I downloaded a tar.gz patch archive from gentoo forum :
http://dev.gentoo.org/~gienah/unsupported/etc-portage-patches-x11-drivers-nvidia-drivers-340.76-for-kernel-gt-3.14.tar.gz
Now nvidia-drivers compiles fine and everything is ok.
Sorry for the noise,
Cheers,
*--*
*Jacques*
[-- Attachment #2: Type: text/html, Size: 4594 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-18 12:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-18 12:39 [gentoo-user] [SOLVED] Re: nvidia-drivers-340.76 failed with gentoo-sources-4.0.5 Jacques Montier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox