View previous topic :: View next topic |
Author |
Message |
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Tue May 11, 2004 7:13 pm Post subject: what is nvidia-kernel ? |
|
|
What exactly is nvidia-kernel?
Apparently it unpacks and installs a binary nvidia driver , but then I see you need to compile it after your kernel.
So does it patch the kernel binaries or what?
Do I need to re-emerge it every time after I rebuild my kernel or just if I change kernel version.
Then what about openglx-update ? Some say its a must , some say they never did it and all works.
This all seems very fuzzy.
Anyone with direct knowlege know what the score is here?
Thanks in advance. Gentree. |
|
Back to top |
|
|
cram Guru
Joined: 17 Nov 2002 Posts: 312 Location: Saskatoon, Canada
|
Posted: Tue May 11, 2004 7:21 pm Post subject: |
|
|
Quote: | So does it patch the kernel binaries or what? |
It does not patch the kernel binaries. The reason you need to re-compile it after you recompile your kernel is because it is linked against the kernel.
Quote: | Do I need to re-emerge it every time after I rebuild my kernel or just if I change kernel version. |
Every time you change your kernel, you'll need to recompile nvidia-kernel.
Quote: | Then what about openglx-update ? Some say its a must , some say they never did it and all works. |
This just tells gentoo which opengl implementation to use, if it was already set to nvidia, then you don't need to run it, but it won't hurt anything if you do. _________________ aaarggghhhh.
Good point Chewie. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Tue May 11, 2004 7:52 pm Post subject: |
|
|
Thanks for the reply , at least I feel a bit more like I know what I'm doing .
Quote: | because it is linked against the kernel. |
What does that phrase mean? Linked _against_.
I see it quite often and when I think about it , it means absolutely nothing to me.
Then "the kernel" is what in this case? the bzImage, the source , the /usr/src/linux sim link...?
Getting back to nvidia. This gets compiled as a kernel modul but not , it would seem, during the kernel build process.
It seems like there is some sort of wrapper module build around the driver and this is what we get with the ebuild. So why does it need recompiling each time? For ex. if I change out a NIC support module and rebuild the kernel , does this really affect nvidia?
Thanks for sharing your greater knowlege here. |
|
Back to top |
|
|
Sugarat Guru
Joined: 24 Jul 2002 Posts: 348
|
Posted: Tue May 11, 2004 10:08 pm Post subject: |
|
|
When people refer to the kernel, they usually mean the compiled binary, - bzImage or thereabouts.
As the nvidia-kernel is itself a 'kernel module' that is inserted into a running kernel, it needs to be linked against the kernel that you are running. That is to say that it contains code that depends on the code in your kernel.
So, if you recompile your kernel it changes, rendering the nvidia module unable to insert itself properly, hence needing recompilation.
Not perfectly clear I grant you, but I hope this will suffice as an attempt at explanation. _________________ --[ UltraSPARC ]--
Accept no imitations |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Tue May 11, 2004 10:27 pm Post subject: |
|
|
Ok , thanks , it's becoming a lot clearer.
As I started to realise last week , nvidia-kernel is a complete misnoma.
From what you say this _module_ is statically linked to the kernel binary code, which explains why it needs rebuilding itself each time the kernel binary changes.
This probably also explains why it needs to be loaded with modprobe once the kernel is running.
Thanks a lot for your help.
Now I know what it is and isnt maybe I can find a way to get it to work!
Cheers. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|