Skip to contentSkip to conversation

U boot scripting / stand alone program capabilities

U-Boot-Users Gerrit Van de Velde 2 participants 2 messages Feb 9, 2004

lore
Share & tools
lore
#0 lore raw

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..

#1 lore raw

Dear Gerrit,

Quoted 3 lines · 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.

Quoted 4 lines

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

Signature · 4 lines
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