Skip to contentSkip to conversation

Standalone application after powerup

U-Boot Nagesh.ML 2 participants 2 messages Oct 10, 2008

lore
Share & tools
lore

Nagesh.ML

author
#0 lore raw

Hi,

I am trying to run the hello_world standalone application on my powerpc board(ppc 82xx). I get it worked right, when the u-boot prompt comes up by copying the hello_world.bin from flash to the RAM space(0x40000) and then using the "go 0x40004" command. Everyting works fine in this case.

The next case I tried was using the run_command() function and passing the "cp" and "go" command with appropriate flash and RAM addresses with that as the arguments, After powerup and executing some of the cpu and memory controller initializations..I call the run_command() functions. My board resets giving program check exception.

What could be the possible solution to include the standalone application in my board powerup sequence?

--Nagesh

Signature · 2 lines
View this message in context: http://www.nabble.com/Standalone-application-after-powerup-tp19914708p19914708.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw

Dear "Nagesh.ML",

Quoted 3 lines · In message <[email protected]> you wrote:

What could be the possible solution to include the standalone application in my board powerup sequence?

This depends on where you want to include it. I think it is obvious
that SA applications require a substantial amount of U-Boot
infrastructure to be running. By design, they are intended to be called only when any other interactive command can be exectuted. If you know exactly what you are doing, you may run them a little earlier, but probbaly not much.

Me recommendation is: if you want to run SA applications early, you can do this from the "preboot" hook. Any earlier point may or may not work, and especially there is no guarantee that this will not break in any future versions of U-Boot.

Keep in mind what SA applications are used for - especailly, they are NOT intended to sneak in propriatary initialization code in early boot stages, and this is about the only reason I can imagine to use them in that early.

Best regards,

Wolfgang Denk

Signature · 6 lines
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
HR Manager to job candidate "I see you've had no  computer  training.
Although  that  qualifies  you  for upper management, it means you're
under-qualified for our entry level positions."