Skip to contentSkip to conversation

about qemu

Qemu-devel wfreshair 2 participants 2 messages Sep 5, 2005

lore
Share & tools
lore

wfreshair

author
#0 lore raw

hi
i have read the pdf file:Embedded Linux kernel and driver developm Training lab book.pdf.
at the page 7,when i boot kernel.
" qemu -m 32 -kernel /lab/linux-2.6.11.11/arch/i386/boot/bzImage -append "clock=pit root=/dev/hda" -hda /lab/linux/lab1/data/linux_i386.img -boot c" i meet the information:
kernel panic -not syncing:no init found.
try passing init=option to kernel."
then i add a console device to root filesystem:
mkdir /lab/rootfs
cd ....../lab1
mount -o loop data/linux_i386.img /lab/rootfs
then
i just copy /dev/console file to /lab/rootfs/dev.-----------though i can't find it in /lab/rootfs after i do that.
and then i umount /lab/rootfs
i meet the error:umount: /lab/rootfs: device is busy.
Also ,i can't qeum kernel.
who know the reason? explain it clearly!

#1 lore raw

Well, as far as I can see, you're passing the RAW DEVICE NODE as the root partition instead of the numbered partition convention.

Instead of passing root=/dev/hda, try something like root=/dev/hda1

I hope that helps.

p.s.: Next time, please, take your time to read what you're doing before complaining to a discussion list that had nothing to do with the problem you faced in the first place.. And, as you may or may not have noticed, your last sentence sounded somewhat harsh...

Cheers,
A.

--
"The weakest way to solve a problem is just to solve it"-Alan Kay

2005/9/5, wfreshair <[email protected]>:

Quoted 26 lines

hi
i have read the pdf file:Embedded Linux kernel and driver developm Training lab book.pdf.
at the page 7,when i boot kernel.
" qemu -m 32 -kernel /lab/linux-2.6.11.11/arch/i386/boot/bzImage -append
"clock=pit root=/dev/hda" -hda /lab/linux/lab1/data/linux_i386.img -boot c"
i meet the information:
kernel panic -not syncing:no init found.
try passing init=option to kernel."
then i add a console device to root filesystem:
mkdir /lab/rootfs
cd ....../lab1
mount -o loop data/linux_i386.img /lab/rootfs
then
i just copy /dev/console file to /lab/rootfs/dev.-----------though i can't find it in /lab/rootfs after i do that.
and then i umount /lab/rootfs
i meet the error:umount: /lab/rootfs: device is busy.
Also ,i can't qeum kernel.
who know the reason? explain it clearly!