Executing samle RTEMS application on QEMU

Joel Sherrill joel.sherrill at OARcorp.com
Mon Jun 20 18:15:30 UTC 2011


On 06/20/2011 01:37 AM, S Akhtar wrote:
> It seems like no one knows solution to my problem...
>
When you ask a question on a Friday during the summer and
don't get a reply as quickly as you wanted, that means nothing.

qemu simulates a PC.  The i368ex is not a PC board and thus
the RTEMS app is accessing memory that isn't there.

To experiment with qemu/x86, you need to use the pc386 BSP
or a variant of it.

Also depending on the version of qemu you use, I have seen
cases where it does a similar fault on the boot floppy with
grub that has worked for years.

--joel
> On Fri, Jun 17, 2011 at 8:55 AM, S Akhtar <crystaldoll85 at gmail.com 
> <mailto: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
>
>


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985





More information about the users mailing list