[U-Boot] Standalone program help needed

Wolfgang Denk wd at denx.de
Thu Jul 11 07:52:55 UTC 2019


Dear Szabolcs,

In message <CAH_3R3JnwUDyrp8E=LE==sVEimNoJf7G3e9zeTrEAdSJ0pxLrg at mail.gmail.com> you wrote:
> 
> I read the past posts (eg. from 2014) in this topic, but wasn't helpful.

Did you also read the FAQ? I think not yet...

> I downloaded the u-boot repo, hello_world.c
> I got all files: like hello_world, hello_world.bin, hello_world.srec.. etc
> 
> Run
> tools/mkimage -A arm -O u-boot -T standalone -C none -a 0x200000 -e
> 0x200000 -n hello_world -d example/standalone/hello_world hello_world.img #
> I tried without u-boot too

Where is this 0x200000 coming from?  Did you check where the actual
entry point of your standalone programm really is?

> load mmc 0:1 0xc100000 hello_world.bin # I tried with fatload and
> hello_world,img too here..
> go 0xc100000 Hello World!

So now where is this 0xc100000 coming from? It is not related to the
0x200000 adress you used above, and probably not related to the
address of your entry point in the linked binary.

But these must match!

> But nothing happens.. I can't exit from the command line..

You crashed the system by trying to execute undefined memory
content.

> Any suggestions what I should do?

RTFM...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
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
Commitment, n.:      Commitment can be illustrated by a breakfast
of ham and eggs. The chicken was involved, the pig was committed.


More information about the U-Boot mailing list