[U-Boot] [PATCH 4/5] NetStar: fix default environment
Ladislav Michl
Ladislav.Michl at seznam.cz
Thu Jan 28 00:21:52 CET 2010
From: Ladislav Michl <ladis at linux-mips.org>
Correct switching partitions after upgrade and make it more readable.
Signed-off-by: Ladislav Michl <ladis at linux-mips.org>
---
include/configs/netstar.h | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/configs/netstar.h b/include/configs/netstar.h
index 884dc09..d4465d6 100644
--- a/include/configs/netstar.h
+++ b/include/configs/netstar.h
@@ -156,7 +156,6 @@
#define CONFIG_CMD_PING
#define CONFIG_CMD_RUN
-
/*
* BOOTP options
*/
@@ -176,14 +175,15 @@
#define CONFIG_EXTRA_ENV_SETTINGS \
"autostart=yes\0" \
"ospart=0\0" \
- "setup=setenv bootargs console=ttyS0,$baudrate " \
- "$mtdparts\0" \
+ "setup=setenv bootargs console=ttyS0,$baudrate $mtdparts\0" \
"setpart=" \
"if test -n $swapos; then " \
"setenv swapos; saveenv; " \
- "else " \
- "if test $ospart -eq 0; then setenv ospart 1;" \
- "else setenv ospart 0; fi; " \
+ "if test $ospart -eq 0; then " \
+ "setenv ospart 1; " \
+ "else " \
+ "setenv ospart 0; " \
+ "fi; " \
"fi\0" \
"nfsargs=setenv bootargs $bootargs " \
"ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off " \
--
1.5.3.8
More information about the U-Boot
mailing list