* [U-Boot] Standalone application after powerup
@ 2008-10-10 9:08 Nagesh.ML
2008-10-10 9:35 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Nagesh.ML @ 2008-10-10 9:08 UTC (permalink / raw)
To: u-boot
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
--
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] Standalone application after powerup
2008-10-10 9:08 [U-Boot] Standalone application after powerup Nagesh.ML
@ 2008-10-10 9:35 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2008-10-10 9:35 UTC (permalink / raw)
To: u-boot
Dear "Nagesh.ML",
In message <19914708.post@talk.nabble.com> 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
--
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."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-10 9:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-10 9:08 [U-Boot] Standalone application after powerup Nagesh.ML
2008-10-10 9:35 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox