[U-Boot] Standalone application issue.
Wolfgang Denk
wd at denx.de
Sun May 25 23:01:26 CEST 2014
Dear "mazen.e",
In message <1401009344794-180667.post at n7.nabble.com> you wrote:
>
> On the other hand, the command arm-linux-gnueabi-nm hello_world | grep
> hello_world
>
> 0c100000 T hello_world
>
> so, the entry point of the image 0c100000
OK, so it's at 0c10.0000
> mkimage -A arm -O u-boot -T standalone -C none -a c1000000 -e 0c100000 -n
----------------------------------------------------^^^^^^^^
> "Hello World" -d hello_world.bin Hello.img
> the command bootm 0x43e00000 returns the following :
>
>
> AUB ARNDALE 5250 # bootm 0x43E00000
> ## Booting kernel from Legacy Image at 43e00000 ...
> Image Name: Hello World
> Image Type: ARM U-Boot Standalone Program (uncompressed)
> Data Size: 594 Bytes = 594 Bytes
> Load Address: c1000000
-------------------^^^^^^^^^
You fixed the entry point address, but you still use the incorrect
load address. The program cannot run if you load it into some
unrelated memory region and then jump to some totally different
address. You must use the SAME address (0c10.0000) for both the -a
and -e options.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Command, n.:
Statement presented by a human and accepted by a computer
in such a manner as to make the human feel as if he is in control.
More information about the U-Boot
mailing list