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