* [U-Boot-Users] U boot scripting / stand alone program capabilities
@ 2004-02-09 10:32 Gerrit Van de Velde
2004-02-09 10:47 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Gerrit Van de Velde @ 2004-02-09 10:32 UTC (permalink / raw)
To: u-boot
Dear U boot users,
I've read the DULG manual about the U boot scripting capabilities and
successfully run the hello_world.srec example, but now i want to replace
the hello world program with one of my own programs. How can I compile
my own program ? No info is available in the manuals I've read. I've
already tried with the Makefile that's included with the examples and
set ARCH to ppc and TOPDIR to ../u-boot/ (for config.mk) but that fails.
(I am using the MPC5200 Lite - Icecube)
Any pointers are welcome..
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] U boot scripting / stand alone program capabilities
2004-02-09 10:32 [U-Boot-Users] U boot scripting / stand alone program capabilities Gerrit Van de Velde
@ 2004-02-09 10:47 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2004-02-09 10:47 UTC (permalink / raw)
To: u-boot
Dear Gerrit,
in message <1076322741.4804.4.camel@nios> you wrote:
>
> I've read the DULG manual about the U boot scripting capabilities and
> successfully run the hello_world.srec example, but now i want to replace
Note that these are two different issues.
Scripting (i. e. the capability to run canned command sequences) has
nothing to do with standalone programs like those in the examples/
direcotry.
> the hello world program with one of my own programs. How can I compile
> my own program ? No info is available in the manuals I've read. I've
> already tried with the Makefile that's included with the examples and
> set ARCH to ppc and TOPDIR to ../u-boot/ (for config.mk) but that fails.
The simple way: just place your code in the examples/ directory and
add a new target to examples/Makefile; alternatively, you can add you
code to your board specific directory and adjust the makefile there.
See for example boards/trab which includes some extra targets
(trab_fkt.srec, trab_fkt.bin) for standalone hardware test routines.
Best regards,
Wolfgang Denk
--
See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
"When the only tool you have is a hammer, you tend to treat
everything as if it were a nail." - Abraham Maslow
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-09 10:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-09 10:32 [U-Boot-Users] U boot scripting / stand alone program capabilities Gerrit Van de Velde
2004-02-09 10:47 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.