Executing samle RTEMS application on QEMU
S Akhtar
crystaldoll85 at gmail.com
Tue Jun 21 07:48:11 UTC 2011
Thank you very much for the help.
I tried it for pc386 and it worked on qemu absolutely perfect!!
But my ultimate target is to run RTEMS on i386ex custom board.
To download it on board i have converted hello.exe in intel hex format
(hello.hex) via i386-rtems4.10-objcopy command, because hex format is i386ex
processor compatible.
But when i download it in flash ROM via programmer, It gives error like
"Checksum error!"
How to recitify this error
Thank you for your time
Regards,
On Mon, Jun 20, 2011 at 11:15 PM, Joel Sherrill
<joel.sherrill at oarcorp.com>wrote:
> 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 <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=**000000000000000000000000000000**00
>> XMM01=**000000000000000000000000000000**00
>> XMM02=**000000000000000000000000000000**00
>> XMM03=**000000000000000000000000000000**00
>> XMM04=**000000000000000000000000000000**00
>> XMM05=**000000000000000000000000000000**00
>> XMM06=**000000000000000000000000000000**00
>> XMM07=**000000000000000000000000000000**00
>> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20110621/dbb0f2c1/attachment-0001.html>
More information about the users
mailing list