Unable to load examples for RTEMS for GBA

Alan Cudmore Alan.P.Cudmore at nasa.gov
Thu Nov 8 23:42:29 UTC 2007

I can build and run GBA RTEMS programs on the VisualBoy Advance  
emulator and on a real GBA.
I'm using RTEMS 4.7.1.
The emulator and real GBA don't use the EXE image, they run a .GBA  
image. The following objcopy command is used to convert the EXE to a  
GBA image for one of my applications:
	arm-rtems4.7-objcopy -O binary --remove-section=.comment --remove- 
section=.note --strip-unneeded ../exe/cfe-core.bin ../exe/cfe-core.gba

I'm not sure if the RTEMS 4.8 BSP strips the EXE this way.


On Nov 8, 2007, at 5:12 PM, Joel Sherrill wrote:

> Micronian wrote:
>> Hi Joel,
>> I too am using Linux (Slackware 12 :) ). I downloaded  
>> VisualBoyAdvance
>> 1.7.1 for Linux (Linux + SDL + glibc22) from the main site.
> Hmm.. maybe I need to download that.
>>  I built my
>> RTEMS and GCC based on the instructions from:
>> http://www.rtems.com/wiki/index.php/RTEMSAda
> I haven't tried arm/gba for Ada.  I think ARM works for
> Ada but haven't tried it recently.  The GBA doesn't have
> a lot of memory and that is bad for Ada but hello should
> work if you configured RTEMS with POSIX.
>> In addition to the EXEs under testsuite, I tried compiling a simple
>> Ada hello program following the documentation on the RTEMSAda  
>> Wiki. It
>> too failed with the same error.
> I just sent you my ticker.exe as a sanity check.  Hopefully
> it will make it through the email filters.
> You need to try some simple C examples before moving on to Ada.
>> When I get home, I'll try BoyCott Advance.
>> On Nov 8, 2007 12:54 PM, Joel Sherrill <joel.sherrill at oarcorp.com>  
>> wrote:
>>> Micronian wrote:
>>>> Hi,
>>>> I just built RTEMS 4.8 and GCC 4.2.2 using target=arm-rtems and
>>>> selected the gba BSP. I read somewhere on the mailing list that  
>>>> it is
>>>> possible to load the EXE files (under testsuites) in a emulator. I
>>>> downloaded VisualBoyAdvance but when I try to load one of the EXEs
>>>> (e.g. hello.exe) it says "Unknown file type". I don't have a  
>>>> real GBA
>>>> to play with, so that is why I need an emulator.
>>> I'm on Linux and tried ticker.exe built from the CVS head.
>>> It ran using a GBA simulator named BoyCott Advance
>>> that I downloaded a while back.
>>> I have only found a MS-Windows VisualBoyAdvance version.
>>> If you have a GNU/Linux one, I would like to know.
>>>> Can anyone shed some light? This is my first time exploring RTEMS.
>>>> Thanks!
>>>> _______________________________________________
>>>> rtems-users mailing list
>>>> rtems-users at rtems.com
>>>> http://rtems.rtems.org/mailman/listinfo/rtems-users
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users

More information about the users mailing list