Executing ELF file with U-Boot

SAeeD salpha.2004 at gmail.com
Tue Jul 17 12:30:48 UTC 2012


I've tried on both.


Wonderful! Can I ask which patch did you use for Mini2440 port? Cause RTEMS
do not have Mini2440 support by default.
And which version of RTEMS are you using?

0x32000000 is the default load addr on mini2440, if you type "tftp" under
> U-Boot. If you use 30000000 (start of SDRAM), you could overwrite U-Boot...


Thanks for your notice.

On Tue, Jul 17, 2012 at 4:36 PM, Pierre Ficheux
<pierre.ficheux at openwide.fr>wrote:

> Le 17/07/2012 13:53, SAeeD a écrit :
>
>  Thanks, I got the usage of -d option.
>> I have three more questions:
>> 1. In one of your replies, you mentioned about the baud rate of Mini2440
>> console that is 38400 bps. I wonder have you built and used RTEMS on
>> Mini2440? (On the board or on QEMU)
>>
>>
> I've tried on both.
>
>
>  2. Why did you TFTP hello.img to address 0x32000000? Because I used my
>> load address (0x30000000) as the address of TFTP and after execution of
>> *bootm*, I got lots of
>>
> > s3c_mc_write: Bad register 0x17983c
> > s3c_mc_write: Bad register 0x179840
> > errors with no "Hello World".
> > Is 0x32000000 a special address?
>
> 0x32000000 is the default load addr on mini2440, if you type "tftp" under
> U-Boot. If you use 30000000 (start of SDRAM), you could overwrite U-Boot...
>
> ERROR: image overwritten - must RESET the board to recover
>
> Check-out http://andahammer.com/assets/**Uploads/All2440/Firmware/**
> Mini2440Essentials.pdf<http://andahammer.com/assets/Uploads/All2440/Firmware/Mini2440Essentials.pdf>
>
>
>> 3. I applied mkimage to make an image of hello.exe (ELF version) with
>> following command:
>> *mkimage -A arm -O rtems -T kernel -C none -a 0x30000100 -e 0x30000100
>> -n hello-img -d hello.exe hello.img*
>>
>                ^^^^^^^^^^^^
>
> *not* hello.exe but hello.bin (see my previous email).
>
>
> regards
>
> --
> Pierre FICHEUX  -/- CTO OWI, France -\- pierre.ficheux at openwide.fr
>                                          http://ingenierie.openwide.fr
>                                          http://www.ficheux.org
> I would love to change the world, but they won't give me the source code
>
>
> ______________________________**_________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/**listinfo/rtems-users<http://www.rtems.org/mailman/listinfo/rtems-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120717/4f0b3d48/attachment.html>


More information about the users mailing list