[U-Boot] execution of standalone hello_world not happening

Haneef Mohamed haneef_kernel at yahoo.in
Mon Mar 19 06:38:49 CET 2012

Dear Wolfgang Denk,

Thank you very much, your wiki helped me a lot.

what went wrong:
when i did as described in the link i got the below output. please not i did not change anything in the code of hello_world. 
but the mistake i did was i loaded to some location which was not the loadaddr of my board's standalone application.
${CROSS_COMPILE}nm -n hello_world

00080000 N _stack
0c100000 t $a
0c100000 T hello_world ----> this is my load address present in arch/arm/config.mk CONFIG_STANDALONE_LOAD_ADDR = 0xc100000
0c10009c t $d
0c1000bc t $a

and when i gave the bellow command it worked like slicing peace of cake.
(MSM 7x30) # loadb 0xc100000
## Ready for binary (kermit) download to 0x0C100000 at 115200 bps...
## Total Size      = 0x00000252 = 594 Bytes
## Start Addr      = 0x0C100000
(MSM 7x30) # go 0c100000
## Starting application at 0x0C100000 ...
Example expects ABI version 6
Actual U-Boot ABI version 6
Hello World
argc = 1
argv[0] = "0c100000"
argv[1] = "<NULL>"
Hit any key to exit ...

Mohamed Haneef M.A

From: Wolfgang Denk <wd at denx.de>
To: Haneef Mohamed <haneef_kernel at yahoo.in> 
Cc: "u-boot at lists.denx.de" <u-boot at lists.denx.de>; "albert.u.boot at aribaud.net" <albert.u.boot at aribaud.net> 
Sent: Friday, 16 March 2012 4:42 PM
Subject: Re: execution of standalone hello_world not happening

Dear Haneef Mohamed,

In message <1331890796.4546.YahooMailNeo at web193301.mail.sg3.yahoo.com> you wrote:
> After using u-boot command "loadb" to load hello_world.bin file
> (provided by u-boot) at address 0x00208000, I used go 208000
> but it is not executing. please would you let me know what went
> wrong?....

Did you try reading the FAQ?  For example this one:

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
I can't understand it. I can't even understand  the  people  who  can
understand it.                    - Queen Juliana of the Netherlands.

More information about the U-Boot mailing list