View previous topic :: View next topic |
Author |
Message |
phoric n00b
Joined: 07 Mar 2004 Posts: 54 Location: Seattle, WA
|
Posted: Sun Mar 07, 2004 1:22 am Post subject: Doesn't boot after kernel recompile |
|
|
Installing Gentoo for first time (first-time working with Linux for that matter). Having a hard time getting the ethernet card working. Worked during LiveCD install but not during regular boot. Anyway, I'm trying some suggestions I found on this issue from this forum. After making the changes, I re-compiled the kernel, mounted the boot partition (mount /dev/hda2), copied it to /boot, and rebooted. Now, Lilo comes up and I select Gentoo (dual-booting with Win2k Server), I get "loading gentoo......................." and it then nothing. It just stops there and doesn't boot at all, so I'm kinda stuck at this point.
Any suggestions? I'm running the Gentoo 2004 release with the 2.6.3 kernel.
Thanks! |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sun Mar 07, 2004 1:39 am Post subject: Re: Doesn't boot after kernel recompile |
|
|
phoric wrote: | Installing Gentoo for first time (first-time working with Linux for that matter). Having a hard time getting the ethernet card working. Worked during LiveCD install but not during regular boot. Anyway, I'm trying some suggestions I found on this issue from this forum. After making the changes, I re-compiled the kernel, mounted the boot partition (mount /dev/hda2), copied it to /boot, and rebooted. Now, Lilo comes up and I select Gentoo (dual-booting with Win2k Server), I get "loading gentoo......................." and it then nothing. It just stops there and doesn't boot at all, so I'm kinda stuck at this point.
Any suggestions? I'm running the Gentoo 2004 release with the 2.6.3 kernel.
Thanks! |
It's just that either:
1) the bzImage was not correctly build (rare error)
2) you didn't copy the image where you should (probable)
3) you didn't update correctly your bootloader (probable) |
|
Back to top |
|
|
phoric n00b
Joined: 07 Mar 2004 Posts: 54 Location: Seattle, WA
|
Posted: Sun Mar 07, 2004 1:54 am Post subject: |
|
|
I did not re-run Lilo after recompiling. So, I tried booting from the LiveCD again so I could run Lilo, but when I try to run Lilo it gives me an error about not being able to find the lilo.conf file. Now what? |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sun Mar 07, 2004 1:59 am Post subject: |
|
|
phoric wrote: | I did not re-run Lilo after recompiling. So, I tried booting from the LiveCD again so I could run Lilo, but when I try to run Lilo it gives me an error about not being able to find the lilo.conf file. Now what? |
Just make sure you did mount your gentoo partition after booting with the live cd and, after doing all that, you chrooted into your gentoo partition; then run /sbin/lilo
Your lilo.conf should be located in your gentoo partition in /etc/lilo.conf |
|
Back to top |
|
|
phoric n00b
Joined: 07 Mar 2004 Posts: 54 Location: Seattle, WA
|
Posted: Sun Mar 07, 2004 2:11 am Post subject: |
|
|
Ok, chroot did the job, I was able to re-run Lilo, but still no luck with the network. eth0 and eth1 still come up as failed. |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sun Mar 07, 2004 2:14 am Post subject: |
|
|
phoric wrote: | Ok, chroot did the job, I was able to re-run Lilo, but still no luck with the network. eth0 and eth1 still come up as failed. |
Tell us about your hardware... what are the chips of your network cards?
(I'm almost sure you didn't compile built-in your network card driver or that you did compile it, but as a module, and forgot to load it) |
|
Back to top |
|
|
phoric n00b
Joined: 07 Mar 2004 Posts: 54 Location: Seattle, WA
|
Posted: Sun Mar 07, 2004 2:18 am Post subject: |
|
|
The NIC card is the Broadcom 4400, which is selected in "make menuconfig". I've tried compiling it built-in the kernel and as a module with no luck. Either way, LSMOD shows nothing. How do I load a module? |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sun Mar 07, 2004 2:20 am Post subject: |
|
|
phoric wrote: | The NIC card is the Broadcom 4400, which is selected in "make menuconfig". I've tried compiling it built-in the kernel and as a module with no luck. Either way, LSMOD shows nothing. How do I load a module? |
modprobe <name_of_module>
(If you don't know the module's name, go back make menuconfig, and press HELP when you have the module highlighted. There it'll tell you the name of the module.) |
|
Back to top |
|
|
phoric n00b
Joined: 07 Mar 2004 Posts: 54 Location: Seattle, WA
|
Posted: Sun Mar 07, 2004 2:30 am Post subject: |
|
|
Ok, was able to load the module (B44) and ping the loopback address (127.0.0.1), but nothing else. Is there a way to load the module on startup? |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sun Mar 07, 2004 2:33 am Post subject: |
|
|
phoric wrote: | Ok, was able to load the module (B44) and ping the loopback address (127.0.0.1), but nothing else. Is there a way to load the module on startup? |
I'd ask you to follow the installation guide... it's all there:
http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=7#doc_chap5
(It's almost at the end)
You have to edit /etc/modules.autoload, adding the modules you want to be automatically loaded during boot. |
|
Back to top |
|
|
phoric n00b
Joined: 07 Mar 2004 Posts: 54 Location: Seattle, WA
|
Posted: Sun Mar 07, 2004 2:38 am Post subject: |
|
|
Woohoo, got it working now. Thanks for your help! I had followed the instructions, but must have missed a step or something. |
|
Back to top |
|
|
|