Skip to contentSkip to conversation

running custom apps under uboot

U-Boot-Users Sonia Martinez 2 participants 2 messages Feb 24, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

We had a similar problem some time ago (see https://sourceforge.net/mailarchive/forum.php?thread_id=3802343&forum_id=12898 ).. and thanks to those answers we succeeded in making hello_world work.

We changed the U-boot/examples/makefile file like this:

ifeq ($(ARCH),arm)

LOAD_ADDR = 0x40000

endif

Because, by default, the load address was 0xc100000, and in our platform there was no memory at this location. We got the hello_world.bin and burnt it in Flash (in 0x00040000) using JFlash. Then only type:

go 40000 Hello World!!

We have a PXA250 based platform, you'll have to do something similar with your arquitecture..

Hope this helps!!

Best regards

Sonia

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040224/0f8d0002/attachment.htm

#1 lore raw
Quoted 6 lines · In message <[email protected]> you wrote:

Because, by default, the load address was 0xc100000, and in our platform there was no memory at this location. We got the hello_world.bin and burnt it in Flash (in 0x00040000) using JFlash. Then only type:

go 40000 Hello World!!

Note that this may result in "strange" behaviour, as the data and bss segments are not writable when the image is stored in flash (or other read-only) memory. Anything beyond the trivial hello world program will most likely fail.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
CAUTION:  The Mass of This Product Contains the Energy Equivalent  of
85 Million Tons of TNT per Net Ounce of Weight.