qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Kernel panic - not syncing: No init found. Try passing init


From: Kjel Delaey
Subject: [Qemu-devel] Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Date: Fri, 19 Oct 2007 09:13:33 +0200

Hy,

I'm a student from Belgium and I have the following problem:

I'm trying to install qemu under ubuntu, but after the compilation of kernel and after the installation of busybox I got the message:

Kernel panic - not syncing: No init found. Try passing init= option to kernel.

I didn't find a working solution yet...

These are the steps that I followed:

Downloaded Kernel v2.6.18.1 and busybox 1.7.2. I use this directory /home/denayer/lfs.

setting up the filesystem:

[code]cd ..
sudo mkdir /mnt/rootfs
sudo mount -o loop rootfs.img /mnt/rootfs
rsync -a busybox-1.7.2/_install/* /mnt/rootfs/
sudo mkdir /mnt/rootfs/dev
sudo mkdir /mnt/rootfs/etc
sudo mkdir /mnt/rootfs/proc
sudo mkdir /mnt/rootfs/sys
sudo mkdir /mnt/rootfs/etc/init.d
sudo mknod /mnt/rootfs/dev/console c 5 1
sudo mknod /mnt/rootfs/dev/null c 1 3[/code]

Create file (/mnt/rootfs/etc/inittab)

[code]::sysinit:/etc/init.d/rcS
::askfirst:~/bin/sh
::restart:/sbin/init
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r[/code]

Create file (/mnt/rootfs/etc/init.d/rcS)

[code]#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
/bin/sh[/code]

sudo chown -R root.root /mnt/rootfs
sync

Then I try this command:
qemu -m 32 hda rootfs.img kernel linux-2.6.18.1/arch/i386/boot/bzImage -append “root=/dev/hda \clock=pit”

and I get the error...

I tried to pass init=/sbin/init or init=/bin/init but it doesn't help...

Does anyone knows a working solution please?




Deel al je foto's met je vrienden! Maak je eigen online plek! Windows Live Spaces

reply via email to

[Prev in Thread] Current Thread [Next in Thread]