[Peeweelinux] initrd problem

Stephen Lee [email protected]
23 Mar 2003 22:01:23 -0800


On Sun, 2003-03-23 at 19:14, Dennis W. Tokarski wrote:
> Stephen Lee wrote:
> 
> [snip]
> 
> > Freeing initrd memory: 1152k freed
> > VFS: Mounted root (ext2 filesystem).
> > VFS: Mounted root (ext2 filesystem) readonly.
> > Trying to move old root to /initrd ... failed
> > Unmounting old root
> > Trying to free ramdisk memory ... okay
> > Freeing unused kernel memory: 264k freed
> > 
> > Is there some setting within pwlconfig I can adjust to fix the initrd
> > problem?
> > 
> 
> Does your root ext2 file system have an empty
> directory called '/initrd' on it that the
> kernel can use a mount point?
> 
I think I did. I created a /initrd under
./Embedded_Build/projects/DOC-Test/mnt and added initrd/ to
filesystem.list and reloaded onto the DOC. It didn't seem to make a
difference. I then disconnected the harddrive and rebooted with just the
DOC. This was more revealing. Here is the last of the kernel messages:

VFS: Mounted root (ext2 filesystem)
Kmod: failed to exec /sbin/modprobe -s -k block-major-3, errno = 2
VFS: Cannot open root device or 03:06
Please append a correct "root=" boot option.
Kernel panic: VFS: Unable to mount root fs on 03:06

The kernel (2.4.20) was compiled with ide support having the following
kernel config bits:

CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y

It looks like the kernel cannot read the root fs even though IDE support
is part of the kernel. Is this a lilo, kernel or DOC (2000) problem?

Thanks,
Stephen