NetStar: fix default environment

Correct switching partitions after upgrade and make it more readable.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
This commit is contained in:
Ladislav Michl 2010-02-08 14:17:45 -05:00 committed by Tom Rix
parent 3a67566c1d
commit de9a1e0d08
1 changed files with 21 additions and 21 deletions

View File

@ -156,7 +156,6 @@
#define CONFIG_CMD_PING #define CONFIG_CMD_PING
#define CONFIG_CMD_RUN #define CONFIG_CMD_RUN
/* /*
* BOOTP options * BOOTP options
*/ */
@ -173,26 +172,27 @@
#define CONFIG_SYS_AUTOLOAD "n" /* No autoload */ #define CONFIG_SYS_AUTOLOAD "n" /* No autoload */
#define CONFIG_BOOTCOMMAND "run fboot" #define CONFIG_BOOTCOMMAND "run fboot"
#define CONFIG_PREBOOT "run setup" #define CONFIG_PREBOOT "run setup"
#define CONFIG_EXTRA_ENV_SETTINGS \ #define CONFIG_EXTRA_ENV_SETTINGS \
"autostart=yes\0" \ "autostart=yes\0" \
"ospart=0\0" \ "ospart=0\0" \
"setup=setenv bootargs console=ttyS0,$baudrate " \ "setup=setenv bootargs console=ttyS0,$baudrate $mtdparts\0" \
"$mtdparts\0" \ "setpart=" \
"setpart=" \ "if test -n $swapos; then " \
"if test -n $swapos; then " \ "setenv swapos; saveenv; " \
"setenv swapos; saveenv; " \ "if test $ospart -eq 0; then " \
"else " \ "setenv ospart 1; " \
"if test $ospart -eq 0; then setenv ospart 1;" \ "else " \
"else setenv ospart 0; fi; " \ "setenv ospart 0; " \
"fi\0" \ "fi; " \
"nfsargs=setenv bootargs $bootargs " \ "fi\0" \
"ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off " \ "nfsargs=setenv bootargs $bootargs " \
"nfsroot=$rootpath root=/dev/nfs\0" \ "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off " \
"flashargs=run setpart;setenv bootargs $bootargs " \ "nfsroot=$rootpath root=/dev/nfs\0" \
"root=mtd:rootfs$ospart ro " \ "flashargs=run setpart;setenv bootargs $bootargs " \
"rootfstype=jffs2\0" \ "root=mtd:rootfs$ospart ro " \
"ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off\0" \ "rootfstype=jffs2\0" \
"fboot=run flashargs;nboot kernel$ospart\0" \ "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname::off\0" \
"fboot=run flashargs;nboot kernel$ospart\0" \
"nboot=bootp;run nfsargs;tftp\0" "nboot=bootp;run nfsargs;tftp\0"
#if 0 /* feel free to disable for development */ #if 0 /* feel free to disable for development */