Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel compilation
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
myha
Apprentice
Apprentice


Joined: 16 Sep 2005
Posts: 152
Location: Ljubljana, Slovenia

PostPosted: Mon Sep 19, 2005 10:24 am    Post subject: kernel compilation Reply with quote

Hi all!

I installed gentoo yesterday with few minor problems but I managed to fix them and so far Im very pleased with gentoo. The only thing left is enabling my eth card and as far as I saw using search I forgot to include support when I compiled kernel... So I have to do it again.

My question is: If I follow instructions from install guide and recompile my kernel, will I have to reconfigure everything else also (like grub conf, fstab etc) or that stays untouched and I just compile kernel and add it to grub? I would also like to know where is the diffrence in M and * when compiling kernel, how to know what to select? Is there any guide that would explain that maybe, possibly explain what is every module for?

I read that I have to run
Code:
dmesg
and
Code:
lspci
from liveCD to see which hardware it detects and I have to enable that in kernel compilaton... But the output (especially from dmesg) is pretty long, is there any way to display only modules and not everything else?

Im pretty new to linux, I used ubuntu before because its easier to install, but now I decided to switch to smth more serious and learn it... So if there is anything else I need to know before I compile kernel please tell me... :)

Thank you,
Miha

edit: OK I know im a bit lazy, i found this in wiki:
Code:
When you see an '[M]' next to an option it means it will compile as a module. When you see an '[*]' next to an option it means it's compiled into the kernel. The difference is "modules" are not a part of the kernel; they are similar to what Windows users may think of as `drivers`. Modules must be loaded manually. The built-in parts of the kernel are just that; they do not need to be manually loaded.

If I understand it right I can select * for modules to load with kernel and M for manual loading of modules...
Back to top
View user's profile Send private message
widu
Guru
Guru


Joined: 05 Jun 2004
Posts: 333
Location: Freiburg

PostPosted: Mon Sep 19, 2005 10:46 am    Post subject: Reply with quote

First of all, you should know wich ehternet-controller you've got:
Code:
lspci | grep -i ether

should show you brand and model. then search for the right driver in menuconfig. I would choose to compile it as a module, because 1. you don't have to recompile the hole kernel, 2. you don't have to reboot
so choose M for your ethernet controler, save and leave menuconfig. then
Quote:
make modules && make modules_install

then load the module with modprobe and start eth0
Code:
/etc/init.d/net.eth0 start

if you have choosen the right module your network card should work.
last step:
put the module in /etc/modules.autoload.d/kernel-2.6
have fun!
_________________
nature is a heterosexual fiction
Back to top
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Mon Sep 19, 2005 10:49 am    Post subject: Reply with quote

If unsure use the genkernel "walkthrough"

lspci lists the detected hardware. look for lines containing "Ethernet controller" to know your network interfaces. If the needed kernel driver is not clear, type in the name of the card into the forum search and you will find the proper driver in most cases. Same for the onboard chips like IDE/SATA controllers, Sound, modem, ...

Edit:
Too slow again :roll:
Back to top
View user's profile Send private message
myha
Apprentice
Apprentice


Joined: 16 Sep 2005
Posts: 152
Location: Ljubljana, Slovenia

PostPosted: Mon Sep 19, 2005 11:00 am    Post subject: Reply with quote

Thanks for your quick answer...

I realise that module would be better solution, but I want to add support for bootsplash so I have to recompile whole kernel...
If I recompile kernel how are things diffrent? If I do
Code:
make menuconfig
does it use the same configuration I have now and I just add the things I want?
Back to top
View user's profile Send private message
widu
Guru
Guru


Joined: 05 Jun 2004
Posts: 333
Location: Freiburg

PostPosted: Mon Sep 19, 2005 12:22 pm    Post subject: Reply with quote

myha wrote:
Thanks for your quick answer...

I realise that module would be better solution, but I want to add support for bootsplash so I have to recompile whole kernel...
If I recompile kernel how are things diffrent?

after compiling the new kernel you have to copy bzImage and Systemmap to /boot (and of course have /boot mounted if it is on a seperate partition). If you gave the new kernel a different name, you have to edit /boot/grub/grub.conf as well.
Quote:
If I do
Code:
make menuconfig
does it use the same configuration I have now and I just add the things I want?

yes indeed.
_________________
nature is a heterosexual fiction
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