Hello,

> I am working on AT91SAM9263 Customised board having U-boot. I want to rn
> some application on the top of U-boot . I found some command like go to run
> a application in U-boot. I m trying to run the demo program Hello_world.c
> provided in the U-Boot source . But after loading that to 0x40000 addresss
> and executing from 0x40004 address (according to the U-Boot manual) it is
> not Giving proper Output . Plz any one help me How can I run a stand alone
> program in U-Boot ?

The examples are broken for AT91SAM9261 also, and I have a patch for
it attached.
Notice that this patch is only for at91sam9261ek, not for
at91sam9263ek, but if you look at it you should know what to do for
your board.

Notice that there is no memory on address 0x40000 so you can try to
load a program there and start to run it, but obviously it will not
work :-))
U-boot itself is stored at 0x20000000 (beginning of memory) and I
start the examples from address 0x21400000.

NOTE: This patch is not meant for mainlining yet, just to help you on
the short term. (I think I have to solve it more cleanly/generic for
the AT91 series)


Kind Regards,

Remy
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-git-22052008/examples/Makefile
===================================================================
--- u-boot-git-22052008.orig/examples/Makefile	2008-05-22 22:30:26.000000000 +0200
+++ u-boot-git-22052008/examples/Makefile	2008-05-23 16:31:13.000000000 +0200
@@ -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-git-22052008/README
===================================================================
--- u-boot-git-22052008.orig/README	2008-05-22 22:30:17.000000000 +0200
+++ u-boot-git-22052008/README	2008-05-23 16:31:13.000000000 +0200
@@ -3456,7 +3456,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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to