[ECOS] executing applications

Gary Thomas gthomas@redhat.com
Thu Aug 16 07:40:00 GMT 2001


On 16-Aug-2001 Stijn Symons wrote:
> Gary Thomas wrote:
> 
>> On 16-Aug-2001 Stijn Symons wrote:
>> > Hi,
>> >
>> > is there any other way to execute an application other than gdb? We've
>> > got the hello-world program running with gdb, but it get's lost when we
>> > reset the ipaq. So we've been trying to load and execute the program in
>> > redboot (in elf, binary and srec formats) but it won't run...
>> >
>>
>> Exactly what happens?  This should work, with no source changes, by just
>> loading the file and then running it.
>>
>> If you can provide some details, we may be able to help.
> 
> Basically we get rubbish. The dowload is flawless, but when we type "go
> 0x100000" (0x100000 is the base adress) we get a bunch of symbols on the
> screen witch no sense at all or just plain nothing.
> To get the binary and srec formats we did :
> 
> arm-elf-objcopy -O binary a.out hello.bin
> 
> the same for the srec format.

Can you send me the ELF file?  Send it directly - off-list.

Also, exactly what steps did you take to build this image?  Note: you
should be able to work from exactly the same ELF image using either GDB
or raw RedBoot for loading & executing the file.

> 
>>
>>
>> > Is there a way to put the program in ROM with gdb or is there any other
>> > way to get a program running on redboot/ecos?
>>
>> Actually if you just set your startup type to ROM and rebuild then you'll
>> end up with something you can program into the FLASH.  However, this is
>> very dangerous, especially on the iPAQ, as once done, you'll not be able
>> to talk to the unit again until the FLASH has been restored.
>>
>> Work on getting it to run using RedBoot - you'll be much happier and I'll
>> be able to sleep nights :-)



More information about the Ecos-discuss mailing list