Executing ELF file with U-Boot

SAeeD salpha.2004 at gmail.com
Tue Jul 17 11:53:17 UTC 2012


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)

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?

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*
But when I use
*tftp 0x32000000 hello.img
bootm*
again i get lots of
3c_mc_write: Bad register 0x1df548
s3c_mc_write: Bad register 0x1df54c
errors. I have no idea what is the reason of that.

Thanks in advance
SAeeD


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

> Le 17/07/2012 11:04, SAeeD a écrit :
>
>> Merci Pierre.
>> That's exactly what I was looking for.
>> But I have one little question:
>> I read the man page for *mkimage* but didn't get the usage of -d option
>>
>> and what I should give to it.
>> I used to make image with following command:
>> *sudo mkimage -A arm -O rtems -T kernel -C gzip -a 0x30000000 -e
>> 0x30000000 -n hello-img -d hello.exe hello.exe*
>>
>
>  -d ==> use image data from 'datafile'
>
> You should create a binary file from you ELF file with objcopy:
>
> $ arm-rtems4.9-objcopy   -R -S -O binary hello.exe hello.bin
>
> then:
>
> $ mkimage -A arm -O rtems -T kernel -C none -a 0x30000100 -e 0x30000100 -n
> "RTEMS Application" -d hello.bin hello.img
>
> Gzip is not necessary => -C none (no compression)
>
>
> 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/30cb8232/attachment-0001.html>


More information about the users mailing list