[U-Boot] [patch] make hello world example work for at91sam9261ek and make readme clearer about this
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Thu Dec 4 22:41:10 CET 2008
On 22:25 Thu 04 Dec , Remy Bohmer wrote:
> This patch fixes the hello_world example to be able to run it
> on a AT91SAM9261-EK board.
>
> Signed-off-by: Remy Bohmer <linux at bohmer.net>
> ---
> 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
Honestly I'll prefer to remove all arch and board ifdef
and let the board ovewrite it or the arch if the board do not not already define it
and do here
LOAD_ADDR ?= <default addr>
Best Regards,
J.
More information about the U-Boot
mailing list