stewartm82
New Member
I don’t know what I’m doing. This is a retro Linux project just for fun. I’m trying to boot a self-compiled Linux 2.2 kernel on an existing Red Hat 5.2 system (which originally shipped with a 2.0 kernel). The system boots perfectly with the original 2.0 kernel.
When I try and boot the 2.2 kernel I get:
With initrd:
IDE disks are detected (hda shows correct size), but root fails to mount when initrd is used.
What I’ve tried/verified:
When I try and boot the 2.2 kernel I get:
The oracle suggested that kernel cannot open /dev/console and I need to recreate the char and block devices under dev. I have assumed:Warning: unable to open an initial console.
- initrm is deisgned to solve this
- I can build an image of the dev tree with the correct major minor numbers for things like console and tty
- I can use lilo to point to this img file which I have built and placed in boot
With initrd:
Kernel panic: VFS: Unable to mount root fs on 01:00
IDE disks are detected (hda shows correct size), but root fails to mount when initrd is used.
What I’ve tried/verified:
- IDE + ext2 built into kernel
- VGA console built in (CONFIG_VT, CONFIG_VT_CONSOLE)
- /dev/console, /dev/null, /dev/tty0–4 exist within init ramfs
- root=/dev/hda1, rootdelay=, init=/bin/sh as lilo params.
- Minimal initrd with only essential device nodes
- Removing /dev/hda* from initrd
- Clean rebuilds of the kernel. I have a script that will
- make oldconfig
- make dep
- make
- make modules
- make modules_install
- make bzImage
- cp to image to /boot

