[ale] QEMU Grub boot problem

David Tomaschik david at systemoverlord.com
Mon Aug 29 15:32:57 EDT 2011


On Mon, Aug 29, 2011 at 3:00 PM, David Hillman <hillmands at gmail.com> wrote:
> I am trying to test out a custom firmware that is supposed to be loaded to a
> router board.  The test is done using QEMU.  I...
>
> build the kernel and initrd using the tools from the board manufacturer.
> used qemu-img to create a raw disk image
> mkfs.ext2 to format the image
> mounted the image to my Ubuntu filesystem as a loop device
> used debootstrap to build a minimal filesystem, plus added tools required
> for the board to run
> copied over the kernel and initrd to /boot on the mounted filesystem
> chrooted into the system to setup grub menu.1st, etc
> exited out of and booted the router system using QEMU
>
> No matter what I do, Grub gives up and throws an error about not being able
> to read the filesystem.  I know the ext2 driver is in the initrd.
> Manually setting up the partition info and telling Grub to boot from the
> prompt gives the same error.
> Is there something else I should be looking for?  My understanding of the
> Linux boot process might be fuzzy here, plus I am not that familiar with
> Grub.
> It's what was recommended to test inside QEMU.

Can you post your grub configuration?  If you mkfs.ext2 on a raw disk
image, keep in mind that it's not partitioned, so references like
(hd0,1) will fail.


-- 
David Tomaschik, RHCE, LPIC-1
System Administrator/Open Source Advocate
OpenPGP: 0x5DEA789B
http://systemoverlord.com
david at systemoverlord.com



More information about the Ale mailing list