AnsweredAssumed Answered

U-Boot example "hello_world.srec" doesn't work?

Question asked by Rex Smith on Aug 28, 2012
Latest reply on Sep 2, 2013 by vijaykishore

Hello All 

Hoping somebody can help me out here. This was suppose to have been something simple and easy.  U-Boot has an example folder and a hello_world.c as a standalone application that gets compile as part of the U-Boot build and converted into a bin and srec file. 

 

The U-Boot doc's said it should be as simple as issuing a "loads" and "go" command because the srec should have encoded the start and end address and entry point.  

http://www.denx.de/wiki/DULG/UBootStandalone

 

So all I should have to do download it over serial read off the start address and type go with that address(-4)?..

 

Anyway it didn't work, quick look at the build and there is a text offset on the compiler line 

-DTEXT_BASE=0xXXXXXXXX

and another offset on the linker line

arm-none-linux-gnueabi-ld -g  -Ttext 0xYYYYYYYY.

 

Using these offsets actually allow the "loads"  command to complete but it still fails to run with a go command. 

 

Has anybody ran this demo and got it to work. Could you post a cut and past of the commands from the U-Boot prompt. 

 

Thanks. 

 

 

Outcomes