Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] genkernel doesn't work
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
ptero
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 164

PostPosted: Sat Aug 11, 2007 7:55 pm    Post subject: [SOLVED] genkernel doesn't work Reply with quote

i had a problem with my kernel, pppoe didn't want to work. so i tried the genkernel. first, i configured grub after the handbook:
Code:
kernel /boot/kernel-genkernel-x86_64-2.6.21-gentoo-r4 root=/dev/ram0 init=linuxrc ramdisk=8192 real_root=/dev/sdb2 udev
initrd /boot/initramfs-genkernel-x86_64-2.6.21-gentoo-r4

it refused to boot with following error message:
Code:
!! Block device /dev/sdb2 is not a valid root device...
!! The root block device is unspecified or not detected.

then i found a forum message from a guy who solved it following way:
Code:
kernel /boot/kernel-genkernel-x86_64-2.6.21-gentoo-r4 root=/dev/sdb2 init=linuxrc udev
initrd /boot/initramfs-genkernel-x86_64-2.6.21-gentoo-r4

i tried it out, but i still get the same error message. what could be the problem? can it be because of the sata controller?


Last edited by ptero on Mon Aug 13, 2007 4:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Aug 11, 2007 9:04 pm    Post subject: Reply with quote

Make sure your kernel includes the driver for your sata (or scsi) controller.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
ptero
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 164

PostPosted: Sun Aug 12, 2007 5:38 am    Post subject: Reply with quote

well, the "genkerneled" kernel should be the same kernel like from the installations cd... and with the installation cd i don't have any problems.
however, i don't know if the sata driver is included into the kernel or if it's a module. and i don't know how to find it out.
could it be, that (if it's a module) it has to be included into a "solid" kernel to work? and if yes, how do i change the "genkerneled" kernel?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10727
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Aug 12, 2007 6:18 am    Post subject: Reply with quote

The issue is that the install CD isn't booting from the SATA drive, so it can work okay with the driver as a module that is discovered with UDEV. For practical purposes, the boot device's drivers must be built into the kernel. CD drivers are built-in on the install CD's kernel.

You find out what your hard drive controller is by using "lspci". You change the genkernel configuration by adding the "--menuconfig" option to the genkernel command line. Go to the device drivers section and hunt around.

- John
Back to top
View user's profile Send private message
ptero
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 164

PostPosted: Mon Aug 13, 2007 1:47 pm    Post subject: Reply with quote

i made genkernel --menuconfig all and set the sata drivers as included it the kernel up, but it didn't work. i believe, there is some strange problem with my kernel at all. i just wrote about it in another topic: https://forums.gentoo.org/viewtopic-p-4185359.html#4185359
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10727
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Aug 13, 2007 2:33 pm    Post subject: Reply with quote

Describe "didn't work" in a little greater detail, please. Also, one technique you can use to be sure that you have the correct driver built into the kernel is to boot the install CD and use "lsmod" to locate the driver that it is using. Then, go back into genkernel and ensure that that driver is built in.

By the way, the option you want to preserve your configuration changes is --save-config.

- John
Back to top
View user's profile Send private message
ptero
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 164

PostPosted: Mon Aug 13, 2007 4:45 pm    Post subject: Reply with quote

hmmh... either i forgot an important option or there where some problem with the sources. however, after reemerging gentoo-sources and setting everything up with genkernel --menuconfig all everything worked out and works just perfektly right now.
thank you for your help!
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