View previous topic :: View next topic |
Author |
Message |
l0cks n00b
Joined: 17 Nov 2003 Posts: 15
|
Posted: Mon Nov 24, 2003 9:16 pm Post subject: How do I compile my kernel ? |
|
|
For my e100 network card, I'm using the drivers I emerged.
But if I go into my kernel to change another setting (not related to the network card), I re-compile the kernel and I reboot, I lose my eth0 adapter because the e100.o file is now missing. So I have to re-emerge my e100 drivers.
When I compile I use the command found in the installation process:
make dep && make clean bzImage modules modules_install
Is it me doing something wrong ? I removed all (M) and (*) in the Ethernet (10 or 100Mbit) section of the kernel.
How can I tell my kernel not to touch the drivers I already emerged ?
Thanks for your help
l0cks |
|
Back to top |
|
|
blueworm l33t
Joined: 09 May 2003 Posts: 962
|
Posted: Mon Nov 24, 2003 10:10 pm Post subject: |
|
|
When you install a driver it installs to somewhere in /lib/modules/2.X
when you re-compile the kernel and make modules_install you are re-writing everything in /lib/modules/2.X.
For example if I recompile a new kernel. I will have to re-install the nvidia kernel driver each time...
This is normal.
If what you want to do is remove kernel features. just do
Code: | make dep && clean bzImage |
This way you are not overwriting anything in /lib/modules/../ |
|
Back to top |
|
|
l0cks n00b
Joined: 17 Nov 2003 Posts: 15
|
Posted: Mon Nov 24, 2003 11:14 pm Post subject: |
|
|
blueworm wrote: | When you install a driver it installs to somewhere in /lib/modules/2.X
when you re-compile the kernel and make modules_install you are re-writing everything in /lib/modules/2.X.
For example if I recompile a new kernel. I will have to re-install the nvidia kernel driver each time...
This is normal.
If what you want to do is remove kernel features. just do
Code: | make dep && clean bzImage |
This way you are not overwriting anything in /lib/modules/../ |
Ok great I understand better now, I'll give it a try tomorrow.
And if I get it right, if I add something into the kernel, but not as a module, I would only have to do:
make dep && make clean bzImage
Right ? |
|
Back to top |
|
|
blueworm l33t
Joined: 09 May 2003 Posts: 962
|
Posted: Tue Nov 25, 2003 6:26 am Post subject: |
|
|
Correct... You have understood my mad explaination. |
|
Back to top |
|
|
l0cks n00b
Joined: 17 Nov 2003 Posts: 15
|
Posted: Tue Nov 25, 2003 2:40 pm Post subject: |
|
|
Thank you very much for your help blueworm! It works great now! |
|
Back to top |
|
|
birukun n00b
Joined: 25 Nov 2003 Posts: 41 Location: Sunny San Diego
|
Posted: Tue Nov 25, 2003 9:14 pm Post subject: |
|
|
It works for now, but not updating modules can be dangerous.
Why not leave it as a loadable module?
Having the module there (which no doubt it is using) and having the driver built in to the kernel seems redundant.
Better to keep the kernel and modules in sync....... _________________ emerge -u mystatusinlife |
|
Back to top |
|
|
l0cks n00b
Joined: 17 Nov 2003 Posts: 15
|
Posted: Tue Nov 25, 2003 9:51 pm Post subject: |
|
|
birukun wrote: | It works for now, but not updating modules can be dangerous.
Why not leave it as a loadable module?
Having the module there (which no doubt it is using) and having the driver built in to the kernel seems redundant.
Better to keep the kernel and modules in sync....... |
I tried using the e100 drivers from the kernel but my eth0 wouldn't work. I had to download and install the drivers from Intel, so I am using them as module. |
|
Back to top |
|
|
MyZelF Bodhisattva
Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
Posted: Tue Nov 25, 2003 9:52 pm Post subject: Re: How do I compile my kernel ? |
|
|
l0cks wrote: | For my e100 network card, I'm using the drivers I emerged.
|
You can avoid the problem using the e100 driver included in your kernel. Maybe it's not up-to-date as the one in portage, but doing so you don't need to re-emerge it every time you recompile your kernel. |
|
Back to top |
|
|
l0cks n00b
Joined: 17 Nov 2003 Posts: 15
|
Posted: Tue Nov 25, 2003 10:06 pm Post subject: Re: How do I compile my kernel ? |
|
|
MyZelF wrote: | l0cks wrote: | For my e100 network card, I'm using the drivers I emerged.
|
You can avoid the problem using the e100 driver included in your kernel. Maybe it's not up-to-date as the one in portage, but doing so you don't need to re-emerge it every time you recompile your kernel. |
Just read my last post It won't work if I use the drivers from the kernel. |
|
Back to top |
|
|
echo6 Guru
Joined: 04 Jan 2003 Posts: 587
|
Posted: Tue Nov 25, 2003 10:12 pm Post subject: |
|
|
Have you tried the eepro100 driver? |
|
Back to top |
|
|
MyZelF Bodhisattva
Joined: 25 Feb 2003 Posts: 2010 Location: Venice, Italy
|
Posted: Tue Nov 25, 2003 11:06 pm Post subject: Re: How do I compile my kernel ? |
|
|
l0cks wrote: | Just read my last post It won't work if I use the drivers from the kernel. |
oops... I missed it... |
|
Back to top |
|
|
|