View previous topic :: View next topic |
Author |
Message |
meranto Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/954819188434a51075d0b1.jpg)
Joined: 23 Sep 2005 Posts: 129 Location: Ridderkerk, The Netherlands
|
Posted: Sun Nov 12, 2006 5:34 pm Post subject: Genkernel related mdev problem [possibly fixed] |
|
|
Since I switched from genkernel-3.3.11d to genkernel 3.4.x I can't build usable kernels anymore. When I build a kernel using 3.3.11d (which is now removed from portage ) I get a perfectly fine working kernel with gensplash using this command:
Code: | genkernel --kernel-cc=/usr/lib/ccache/bin/gcc --gensplash=livecd-2006.1 --kernel-config=/usr/src/kernelconfig all
|
When I build the exact same sourcecode with the exact same .config with 3.4.x with the exact same command and the same line in grub.conf I get this during booting:
Code: | >> Activating mdev
>> Determining root device
!! Block device /dev/hdc2 is not a valid root device...
!! The root block device is unspecified or not deteceted.
Please specify a device to boot or :shell" for a shell:
boot() :: |
To crosscheck, I also did the test with older and newer (testing) sources using the same commands and .config. On all occasions I get a working kernel using 3.3.11d and a broken one when using 3.4.x
Why is mdev activated with genkernel-3.4.x and udev using the older genkernel?
What can I do to fix this, since I'm not alone in this:
https://forums.gentoo.org/viewtopic-t-509753-highlight-mdev.html
https://forums.gentoo.org/viewtopic-t-503657-highlight-mdev.html
https://forums.gentoo.org/viewtopic-t-503009-highlight-mdev.html
https://forums.gentoo.org/viewtopic-t-493687-highlight-mdev.html
https://forums.gentoo.org/viewtopic-t-492022-highlight-mdev.html _________________ Linus Torvalds: "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect."
Last edited by meranto on Tue Nov 14, 2006 9:10 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
theEnglishman n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 May 2004 Posts: 5
|
Posted: Sun Nov 12, 2006 7:40 pm Post subject: |
|
|
Is there any answer on how to fix this , or a viable work-around for a noob like me?
Compile the kernel manually? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
meranto Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/954819188434a51075d0b1.jpg)
Joined: 23 Sep 2005 Posts: 129 Location: Ridderkerk, The Netherlands
|
Posted: Tue Nov 14, 2006 9:11 pm Post subject: |
|
|
I got it to work by removing the /etc/genkernel.conf and remerging udev and the latest stable genkernel, if this works for others please notify here. _________________ Linus Torvalds: "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
RasT n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Nov 2006 Posts: 2
|
Posted: Tue Nov 21, 2006 11:22 pm Post subject: |
|
|
meranto wrote: | I got it to work by removing the /etc/genkernel.conf and remerging udev and the latest stable genkernel, if this works for others please notify here. |
I ran into the same problem and found the solution in the configuration of genkernel. In /etc/genkernel.conf there is a section thst looked like
Code: |
DEVFSD_VER="1.3.25-dietlibc-kernel25"
DEVFSD_SRCTAR="${GK_SHARE}/pkg/devfsd-${DEVFSD_VER}.tar.bz2"
DEVFSD_DIR="devfsd"
DEVFSD_BINCACHE="%%CACHE%%/devfsd-${DEVFSD_VER}-%%ARCH%%.bz2"
DEVFSD_CONF_BINCACHE="%%CACHE%%/devfsd-conf-${DIETLIBC_VER}-%%ARCH%%.bz2"
#UDEV_VER="VERSION_UDEV"
#UDEV_DIR="udev-${UDEV_VER}"
#UDEV_SRCTAR="${GK_SHARE}/pkg/udev-${UDEV_VER}.tar.bz2"
#UDEV_BINCACHE="%%CACHE%%/udev-${UDEV_VER}-%%ARCH%%.tar.bz2"
|
This caused genkernel to create initrd instead of initramfs, which caused the error, you mentioned. Removing the # in front of the UDEV-lines and putting them in front of the DEVFSD-lines fixed the problem. Now all I needet to do was adjust /boot/grub.conf and the system booted fine. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
theEnglishman n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 02 May 2004 Posts: 5
|
Posted: Sun Nov 26, 2006 6:10 pm Post subject: |
|
|
RasT wrote: |
Now all I needet to do was adjust /boot/grub.conf and the system booted fine. |
Errm - what were the exact steps/adjustments you made to grub.conf to make this work?
Thanks in advance |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
RasT n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 Nov 2006 Posts: 2
|
Posted: Sun Nov 26, 2006 7:13 pm Post subject: |
|
|
theEnglishman wrote: | RasT wrote: |
Now all I needet to do was adjust /boot/grub.conf and the system booted fine. |
Errm - what were the exact steps/adjustments you made to grub.conf to make this work?
Thanks in advance |
Bofore I modified /etc/genkernel.conf it created /boot/initrd-genkernel-x86-2.6.18-gentoo-r2 instead if /boot/iniramfs-genkernel-x86-2.6.18-gentoo-r2, so I put that in /boot/grub/grub.conf. Now my grub.conf is looking like this:
Code: |
# zuerst booten von
#
default 0
# warten
#
timeout 10
# nettes Bild
#
splashimage=(hd1,0)/grub/splash.xpm.gz
# Haupt-Kernel
title=Gentoo Linux 2.6.18-gentoo-r2
root (hd1,0)
kernel /boot/kernel-genkernel-x86-2.6.18-gentoo-r2 root=/dev/ram0 init=/linuxrc ramdisk=6924 real_root=/dev/hdb3 udev
initrd /boot/initramfs-genkernel-x86-2.6.18-gentoo-r2
# Backup
title=Gentoo Linux 2.6.17-gentoo-r8
root (hd1,0)
kernel (hd1,0)/kernel-genkernel-x86-2.6.17-gentoo-r8 root=/dev/ram0 und init=/linuxrc ramdisk=8192 real_root=/dev/hdb3 splash=verbose
initrd /boot/initramfs-genkernel-x86-2.6.17-gentoo-r8
# Backup 2
title=Gentoo Linux 2.6.17-gentoo-r7
root (hd1,0)
kernel (hd1,0)/kernel-genkernel-x86-2.6.17-gentoo-r7 root=/dev/ram0 und init=/linuxrc ramdisk=8192 real_root=/dev/hdb3
initrd /boot/initramfs-genkernel-x86-2.6.17-gentoo-r7
# Windoze
#
title=WinXP
rootnoverify (hd0,2)
makeactive
chainloader +1
|
Hope this helps. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|