Gentoo Archives: gentoo-user

From: Pandu Poluan <pandu@××××××.info>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Building the nvidia and ati proprietary drivers against the latest kernel.git
Date: Wed, 18 Apr 2012 02:17:52
Message-Id: CAA2qdGVHG56kwPC7ZU269y1_6BS6cbLubJcCLc3O7KniiBzwZg@mail.gmail.com
In Reply to: [gentoo-user] Re: Building the nvidia and ati proprietary drivers against the latest kernel.git by walt
1 On Apr 18, 2012 8:51 AM, "walt" <w41ter@×××××.com> wrote:
2 >
3 > On 04/17/2012 01:05 PM, Stefan G. Weichinger wrote:
4 > > Am 2012-04-09 02:30, schrieb walt:
5 >
6 > >> I have some seriously ugly hacks for building the
7 > >> nvidia (and very recently) the ati proprietary drivers against git
8 > >> kernels, but I won't spend time explaining them here if no one is
9 > >> interested.
10 > >
11 > > walt, would you mind sharing your nvidia-stuff as well?
12 >
13 > Now there are at least three of us who just can't wait to feel the
14 > sweet sorrow of booting tomorrow's broken kernel :p
15 >
16 > If you build kernels frequently you don't need to install the entire
17 > nvidia-drivers package each time. You need only recompile the code
18 > for the nvidia kernel module, so we extract (and save) just that one
19 > part of the code from the source tarball like this:
20 >
21 > #cd /usr/src
22 > #sh /usr/portage/distfiles/NVIDIA-Linux-x86_64-295.40.run -x
23 > #mv NVIDIA-Linux-x86_64-295.40/kernel/ . <--- notice the dot
24 > #rm -rf NVIDIA-Linux-x86_64-295.40/
25 >
26 > (the next step is optional, but it will help you next week ;)
27 > #mv kernel nvidia
28 >
29 > A normal person would now do the following:
30 >
31 > #cd nvidia
32 > #make module install //Done!
33 >
34 > But you are not a normal person, are we? :p *You* will get an error
35 > message that your kernel is from another planet and the build will die.
36 >
37 > No worries. The important thing is that the binary blob (nv-kernel.o)
38 > from nvidia.com still works perfectly with today's git kernel.
39 >
40 > Confession: I know this *only* because I convinced the nvidia installer
41 > code that I know more than than the nvidia.com devs know.
42 >
43 > Obviously a lie most foul, but it worked again! (This time.)
44 >
45 > [I'm falling asleep at the keyboard now and I don't want to give you
46 > bogus information, so I'll be back tomorrow with the rest of it.]
47 >
48 >
49
50 Bah! A cliffhanger!
51
52 *twiddles thumb waiting for Walt to wake up*
53
54 Rgds,

Replies