problems with self-created boot disk
Hi,
I read the bootdisk howto from tldp and tried to make my own boot disk. The problem is that when I boot I always get a "kernel panic / init not found".
Although I tried many things I couldn't solve this problem, so perhaps somebody here know what I'm doing wrong.
So here is what I did to create the boot disk:
1. I formatted a disk with FAT
2. Installed SysLinux to the disk
3. took a normal gentoo kernel and stripped it from some things I don't need (audio, usb, etc).
4. Kept support für ext2fs, ramdisk, fat, serial io and so on in the kernel
5. changed all I need from "module" to "kernel"
6. build the kernel and copied it to disk
7. created a loopback root with 4mb
8. created all the necessary directories the how to told me (bin, sbin, etc and so on)
9. statically compiled a program and copied it to /sbin/init.
10. gzip-ed the rootfs.gz
11. copied kernel and rootfs.gz to the disk
12. changed syslinux.cfg to "DEFAULT smallest root=/dev/ram initrd=rootfs.gz init=/sbin/init"
But it doesn't work ! The root is mounted read-only but when the kernel tries to start init I get the kernel panic.
Btw: the reasing why I'm trying this: I have an old, self-written ms-dos based tui program which has to boot from a floppy. Although I still like DOS for some applications I would like to switch to linux. So I try to create a minimalistic boot disk which allows me to run the program from linux.
The statically linked program works fine under gentoo, but not as an init replacement.
Can anyone tell me what I'm doing wrong ?
Thanks in advance.
|