* [U-Boot] [PATCH] amcc-common.h: Use filenames from environment variables for update procedure.
@ 2009-09-02 15:24 Detlev Zundel
2009-09-02 15:36 ` Wolfgang Denk
2009-09-08 9:01 ` Stefan Roese
0 siblings, 2 replies; 3+ messages in thread
From: Detlev Zundel @ 2009-09-02 15:24 UTC (permalink / raw)
To: u-boot
Using a separate "u-boot" environment variable allows to easily
specify different filenames for the update procedure. This is also in
line with many other board configurations defining an "update" script.
Signed-off-by: Detlev Zundel <dzu@denx.de>
CC: Stefan Roese <sr@denx.de>
---
include/configs/amcc-common.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/configs/amcc-common.h b/include/configs/amcc-common.h
index a2b7ee8..51128a3 100644
--- a/include/configs/amcc-common.h
+++ b/include/configs/amcc-common.h
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2008
+ * (C) Copyright 2008, 2009
* Stefan Roese, DENX Software Engineering, sr at denx.de.
*
* Common configuration options for all AMCC boards
@@ -271,7 +271,8 @@
"bootm ${kernel_addr_r}\0"
#define CONFIG_AMCC_DEF_ENV_NOR_UPD \
- "load=tftp 200000 " xstr(CONFIG_HOSTNAME) "/u-boot.bin\0" \
+ "u-boot=" xstr(CONFIG_HOSTNAME) "/u-boot.bin\0" \
+ "load=tftp 200000 ${u-boot}\0" \
"update=protect off " xstr(CONFIG_SYS_MONITOR_BASE) " FFFFFFFF;" \
"era " xstr(CONFIG_SYS_MONITOR_BASE) " FFFFFFFF;" \
"cp.b ${fileaddr} " xstr(CONFIG_SYS_MONITOR_BASE) " ${filesize};" \
@@ -279,7 +280,8 @@
"upd=run load update\0" \
#define CONFIG_AMCC_DEF_ENV_NAND_UPD \
- "nload=tftp 200000 " xstr(CONFIG_HOSTNAME) "/u-boot-nand.bin\0" \
+ "u-boot-nand=" xstr(CONFIG_HOSTNAME) "/u-boot-nand.bin\0" \
+ "nload=tftp 200000 ${u-boot-nand}\0" \
"nupdate=nand erase 0 100000;nand write 200000 0 100000;" \
"setenv filesize;saveenv\0" \
"nupd=run nload nupdate\0"
--
1.6.0.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] amcc-common.h: Use filenames from environment variables for update procedure.
2009-09-02 15:24 [U-Boot] [PATCH] amcc-common.h: Use filenames from environment variables for update procedure Detlev Zundel
@ 2009-09-02 15:36 ` Wolfgang Denk
2009-09-08 9:01 ` Stefan Roese
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2009-09-02 15:36 UTC (permalink / raw)
To: u-boot
Dear Detlev Zundel,
In message <1251905097-27452-1-git-send-email-dzu@denx.de> you wrote:
> Using a separate "u-boot" environment variable allows to easily
> specify different filenames for the update procedure. This is also in
> line with many other board configurations defining an "update" script.
>
> Signed-off-by: Detlev Zundel <dzu@denx.de>
> CC: Stefan Roese <sr@denx.de>
> ---
> include/configs/amcc-common.h | 8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)
Acked-by: Wolfgang Denk <wd@denx.de>
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"One planet is all you get."
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] amcc-common.h: Use filenames from environment variables for update procedure.
2009-09-02 15:24 [U-Boot] [PATCH] amcc-common.h: Use filenames from environment variables for update procedure Detlev Zundel
2009-09-02 15:36 ` Wolfgang Denk
@ 2009-09-08 9:01 ` Stefan Roese
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2009-09-08 9:01 UTC (permalink / raw)
To: u-boot
On Wednesday 02 September 2009 17:24:57 Detlev Zundel wrote:
> Using a separate "u-boot" environment variable allows to easily
> specify different filenames for the update procedure. This is also in
> line with many other board configurations defining an "update" script.
Applied to ppc4xx. Thanks.
Cheers,
Stefan
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-08 9:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-02 15:24 [U-Boot] [PATCH] amcc-common.h: Use filenames from environment variables for update procedure Detlev Zundel
2009-09-02 15:36 ` Wolfgang Denk
2009-09-08 9:01 ` Stefan Roese
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.