Executing samle RTEMS application on QEMU
Gedare Bloom
gedare at gwmail.gwu.edu
Mon Jun 20 17:02:57 UTC 2011
Different grub versions might start numbering the drives at 1 instead of 0.
I don't recall off-hand, but I think there is some way in the grub
command line to get some listing of what the drives are. I would try
(hd1,1).
Other than that, we don't know what QEMU version you run, don't know
which toolchain you downloaded (it must be one of the mingw?), and
Windows XP is pretty old so it is hard to say for sure if your
software stack even builds properly. Unfortunately, not many people
will be testing with what you are using. You might consider using a
virtual machine with Linux, or even installing a Linux Distro on a
partition of your computer if that is possible.
If the problem is not with grub but is with RTEMS booting, then you
should try to hook gdb up to qemu so that you can see what is
happening.
On Mon, Jun 20, 2011 at 2:37 AM, S Akhtar <crystaldoll85 at gmail.com> wrote:
> It seems like no one knows solution to my problem...
>
> On Fri, Jun 17, 2011 at 8:55 AM, S Akhtar <crystaldoll85 at gmail.com> wrote:
>>
>> Dear RTEMS users
>>
>> I am using RTEMS-4.10 for i386ex board
>> I have installed toolchain and RTEMS with i386ex bsp and set up
>> appropriate PATH and RTEMS_MAKEFILE_PATH variables
>> I am using windows xp
>> But when i execute sample application hello.exe on qemu, i get the
>> following error
>>
>>
>> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>> qemu: fatal: Trying to execute code outside RAM or ROM at 0xff0720ff
>>
>> EAX=00000001 EBX=f000e2c3 ECX=03f98dfe EDX=000020ff
>> ESI=0007fdc8 EDI=00000001 EBP=0007fd9c ESP=0007fd40
>> EIP=ff0720ff EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
>> ES =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
>> CS =0008 00000000 ffffffff 00cf9a00 DPL=0 CS32 [-R-]
>> SS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
>> DS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
>> FS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
>> GS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
>> LDT=0000 00000000 0000ffff 00008200 DPL=0 LDT
>> TR =0000 00000000 0000ffff 00008b00 DPL=0 TSS32-busy
>> GDT= 0000833c 00000027
>> IDT= 00000000 000003ff
>> CR0=00000011 CR2=00000000 CR3=00000000 CR4=00000000
>> DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000
>> DR6=ffff0ff0 DR7=00000400
>> CCS=00000400 CCD=fffffc01 CCO=SUBL
>> EFER=0000000000000000
>> FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
>> FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
>> FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
>> FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
>> FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
>> XMM00=00000000000000000000000000000000
>> XMM01=00000000000000000000000000000000
>> XMM02=00000000000000000000000000000000
>> XMM03=00000000000000000000000000000000
>> XMM04=00000000000000000000000000000000
>> XMM05=00000000000000000000000000000000
>> XMM06=00000000000000000000000000000000
>> XMM07=00000000000000000000000000000000
>>
>> This application has requested the Runtime to terminate it in an unusual
>> way.
>> Please contact the application's support team for more information.
>>
>> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>
>> the qemu command i use is
>>
>> qemu -L . -m256 -boot a -fda rtems-boot.img -hda fat:. -no-reboot -kernel
>> hello.exe
>>
>> the grub window appears and i type:
>>
>> set root=(hd0,1)
>> multiboot (hd0,1)/hello.exe
>> boot
>>
>> then i get the error mentioned above
>> i am using qemu 0.13.0-windows
>>
>> Regards
>>
>> S. Akhtar
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
>
More information about the users
mailing list