Skip to contentSkip to conversation

inside qemu, kernel 2.6.17-mm6 fails to boot disk image

Qemu-devel Mulyadi Santosa 1 participant 2 messages Nov 10, 2006 – Nov 15, 2006

lore
Share & tools
lore
#0 lore raw

Hello everybody

Today I boot my FC2 disk image along with 2.6.17-mm6 kernel using this command line:
qemu -hda ./fc2.img -m 64 -net none -kernel /mnt/linux/linux-2.6.17-mm6-HZ1000/arch/i386/boot/bzImage -no-kqemu -append root=/dev/hda1

Strange thing is, it stucks on recognizing the root partition, which is formatted as ext3. This same disk image boots fine with 2.6.11.1 and 2.6.15 (also with the same command line, different path of kernel image of course) .

To clarify the issue, I attach the screenshot of the kernel's initialization phase. The kernel's configuration is also attached.

To get you more confused, this 2.6.17-mm6 kernel boots fine in real PC with the same disk image (FC2).

Anyone knows the real issue here? Thanks in advance.

regards,

Mulyadi

#1 lore raw

SOLVED Re: [Qemu-devel] inside qemu, kernel 2.6.17-mm6 fails to boot disk image

Hi..

Quoted 7 lines

Hello everybody

Today I boot my FC2 disk image along with 2.6.17-mm6 kernel using this command line:
qemu -hda ./fc2.img -m 64 -net none -kernel /mnt/linux/linux-2.6.17-mm6-HZ1000/arch/i386/boot/bzImage -no-kqemu -append root=/dev/hda1

Following up my own post, I revealed that this problem was related with the fact that both of these kernel configs were disabled:
CONFIG_IDE_GENERIC
CONFIG_BLK_DEV_GENERIC

The solution , in case you meet the same trouble like me, is to enable those two configs and it should boot fine.

NB: Of course, it wouldn't hurt if you check the partition with fsck so you're sure nothing is wrong inside the partition itself. In my case, fsck found nothing wrong in my disk image.

regards,

Mulyadi