Bootdisk -> Kernel panic ..
hi,
bin derzeit dabei mir eine Bootdisk zu basteln die im ramfs läuft, ok..
als Kernel verwende ich 2.4.18 mit ramfs support.
Kernel + rootfs sollen auf die selbe diskette, der Kernel bootet bis zu
dieser stelle:
RAMDISK: Compressed image found at block 480 -> (Kernel bis 479+1)
VFS: Mountet root (ext2 filesystem)
Warning: unable to open initial Console
Kernel panic: No init found. Try <snip>
gut, das rootfs sieht so aus:
/mnt/:
.
..
bin
dev
etc
lib
proc
sbin
/mnt/bin:
.
..
ash
dir
init
sh
mount
/mnt/dev:
.
..
<snip, fd* zeugs)
tty0
tty1
tty2
tty3
tty4
tty5
tty6
/mnt/etc:
.
..
fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/ram0 / ext2 defaults,errors=remount-ro 0 1
/dev/fd0 / ext2 defaults 0 0
proc /proc proc defaults 0 0
inittab
id:2:initdefault:
si::sysinit:/etc/rc
1:2345:respawn:/sbin/getty 9600 tty1
2:23:respawn:/sbin/getty 9600 tty2
ld.so.cache
rc
#!/bin/sh
/bin/mount -av
/mnt/proc:
.
..
cpuinfo
meminfo
/mnt/sbin:
.
..
getty
init
gut, die nötigen libs guck ich mir mit ldd <tool> an und kopier sie dann
in /mnt/lib, (anschließend ein ldconfig -r /mnt) danach bastel ich das rootfs.gz mit
dd if=DEVICE bs=1k | gzip -v9 > rootfs.gz
darauffolgend bastel ich das rootfs auf die Disk wo der Kernel au schon
drauf is (dd if=rootfs.gz of=/def/fd0 bs=1k seek=480)..
dann bootet er und stirbt mit der Kernel Panic fehlermeldung..
init ist ausführbar, usw ..
hatt irgendwer ne idee ?
--
--
Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-request@lists.debian.org
mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Reply to: