help: failed to use qemu
PowerMan
powerman1st at gmail.com
Tue Feb 10 13:02:31 UTC 2009
I do it as the follow steps:
1. download QEMU from http://bellard.org/qemu/qemu-0.9.1-i386.tar.gz
2. install it
tar xfz qemu-0.9.1-i386.tar.gz -C /
3. download rtems floppy image from ftp server :
ftp://ftp.rtems.com/pub/rtems/qemu/i386-pc/rtems-boot.img
4. download ftp://ftp.rtems.com/pub/rtems/qemu/i386-pc/rtems-grub.cfg
and copy it to my root directory /
5. mkdir /capture
cp hello.exe /capture/capture.exe
6. run qemu
qemu -fda rtems-boot.img -boot a -hda /dev/sda
but the capture.exe (which is actually helloworld I build with rtems-4.7.3)
does not run as I excepted.
This capture.exe could run on my host by modifying /boot/grub/menu.lst
I type the following commands in grub:
grub> set root=(hd0,0)
grub> set kernel=/capture/capture.exe
grub> boot
then grub told me:
error: no loaded kernel
I type the following commands in grub:
grub> set root=(hd0,0)
grub> multiboot /capture/capture.exe
then grub told me:
error: Couldn't open file
Could somebody help me?
My host is openSUSE 11.1, my disk information is:
/dev/sda1 3091312 516528 2417752 18% /
udev 252876 5428 247448 3% /dev
/dev/sda8 3605268 153972 3268160 5% /home
/dev/sda7 1130540 221192 851920 21% /tmp
/dev/sda9 6412052 3541120 2545216 59% /usr
/dev/sda6 1130540 193556 879556 19% /var
I type the following commands in grub:
grub> ls
then grub told me:
(fd0) (hd0) (hd0,0) (hd0,4) (hd0,5) (hd0,6) (hd0,7) (hd0,8)
they didn't match my host disk partition number
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20090210/89afb503/attachment.html>
More information about the users
mailing list