[U-Boot] Standalone program help needed

Hello,
I read the past posts (eg. from 2014) in this topic, but wasn't helpful. I would like to run from u-boot a test binary or test image, both good. I thought, I could solve this with standalone applications. I use gcc-linaro-6.2-2016.11.tar.xz > arm-linux-gnuabi-
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
I added to boot partition these files.. I did:
load mmc 0:1 0xc100000 hello_world.bin # I tried with fatload and hello_world,img too here.. go 0xc100000 Hello World!
But nothing happens.. I can't exit from the command line.. I will add files with Yocto.. so therefore I would like to try out how to run in this way..
Any suggestions what I should do?
Thanks in advance, Szabolcs

Dear Szabolcs,
In message CAH_3R3JnwUDyrp8E=LE==sVEimNoJf7G3e9zeTrEAdSJ0pxLrg@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
participants (2)
-
Szabolcs Báder
-
Wolfgang Denk