Executing ELF file with U-Boot
Pierre Ficheux
pierre.ficheux at openwide.fr
Tue Jul 17 09:22:33 UTC 2012
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
More information about the users
mailing list