Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I compile my kernel ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
l0cks
n00b
n00b


Joined: 17 Nov 2003
Posts: 15

PostPosted: Mon Nov 24, 2003 9:16 pm    Post subject: How do I compile my kernel ? Reply with quote

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
View user's profile Send private message
blueworm
l33t
l33t


Joined: 09 May 2003
Posts: 962

PostPosted: Mon Nov 24, 2003 10:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
l0cks
n00b
n00b


Joined: 17 Nov 2003
Posts: 15

PostPosted: Mon Nov 24, 2003 11:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
blueworm
l33t
l33t


Joined: 09 May 2003
Posts: 962

PostPosted: Tue Nov 25, 2003 6:26 am    Post subject: Reply with quote

Correct... You have understood my mad explaination.
Back to top
View user's profile Send private message
l0cks
n00b
n00b


Joined: 17 Nov 2003
Posts: 15

PostPosted: Tue Nov 25, 2003 2:40 pm    Post subject: Reply with quote

Thank you very much for your help blueworm! It works great now!
Back to top
View user's profile Send private message
birukun
n00b
n00b


Joined: 25 Nov 2003
Posts: 41
Location: Sunny San Diego

PostPosted: Tue Nov 25, 2003 9:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
l0cks
n00b
n00b


Joined: 17 Nov 2003
Posts: 15

PostPosted: Tue Nov 25, 2003 9:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Tue Nov 25, 2003 9:52 pm    Post subject: Re: How do I compile my kernel ? Reply with quote

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
View user's profile Send private message
l0cks
n00b
n00b


Joined: 17 Nov 2003
Posts: 15

PostPosted: Tue Nov 25, 2003 10:06 pm    Post subject: Re: How do I compile my kernel ? Reply with quote

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
View user's profile Send private message
echo6
Guru
Guru


Joined: 04 Jan 2003
Posts: 587

PostPosted: Tue Nov 25, 2003 10:12 pm    Post subject: Reply with quote

Have you tried the eepro100 driver?
Back to top
View user's profile Send private message
MyZelF
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 2010
Location: Venice, Italy

PostPosted: Tue Nov 25, 2003 11:06 pm    Post subject: Re: How do I compile my kernel ? Reply with quote

l0cks wrote:
Just read my last post :) It won't work if I use the drivers from the kernel.


oops... I missed it... :oops:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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