This patch fixes the hello_world example to be able to run it
on a AT91SAM9261-EK board.
Signed-off-by: Remy Bohmer <[EMAIL PROTECTED]>
---
README | 4 +++-
examples/Makefile | 4 ++++
2 files changed, 7 insertions(+), 1 deletion(-)
Index: u-boot-usb.new/examples/Makefile
===================================================================
--- u-boot-usb.new.orig/examples/Makefile 2008-12-04 22:01:14.000000000
+0100
+++ u-boot-usb.new/examples/Makefile 2008-12-04 22:01:20.000000000 +0100
@@ -33,9 +33,13 @@ ifeq ($(ARCH),arm)
ifeq ($(BOARD),omap2420h4)
LOAD_ADDR = 0x80300000
else
+ifeq ($(BOARD),at91sam9261ek)
+LOAD_ADDR = 0x21400000
+else
LOAD_ADDR = 0xc100000
endif
endif
+endif
ifeq ($(ARCH),mips)
LOAD_ADDR = 0x80200000 -T mips.lds
Index: u-boot-usb.new/README
===================================================================
--- u-boot-usb.new.orig/README 2008-12-04 22:01:14.000000000 +0100
+++ u-boot-usb.new/README 2008-12-04 22:01:20.000000000 +0100
@@ -3568,7 +3568,9 @@ Two simple examples are included with th
'examples/hello_world.c' contains a small "Hello World" Demo
application; it is automatically compiled when you build U-Boot.
-It's configured to run at address 0x00040004, so you can play with it
+The address it will run on is determined by the LOAD_ADDR for
+your board in examples/Makefile.
+If it's configured to run at address 0x00040004, you can play with it
like that:
=> loads
--
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot