Executing ELF file with U-Boot

Pierre Ficheux pierre.ficheux at openwide.fr
Tue Jul 17 12:06:05 UTC 2012


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

>
> 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





More information about the users mailing list