]> git.sur5r.net Git - u-boot/commitdiff
ARM: sheevaplug: unbreak default environment
authorPeter Korsgaard <peter@korsgaard.com>
Sun, 17 Jan 2016 17:23:42 +0000 (18:23 +0100)
committerLuka Perkov <luka.perkov@sartura.hr>
Mon, 14 Mar 2016 22:29:36 +0000 (23:29 +0100)
Commit 1e3d640316 (ARM: sheevaplug: redefine MTDPARTS) changed the mtdparts
part of the default environment, but dropped the trailing zero termination -
So the definition of x_bootcmd_kernel becomes part of the x_bootargs
variable.

Fix it by reintroducing the zero termination.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
include/configs/sheevaplug.h

index ebc3d642f133cbe6900415a22a99d87f9711cac6..7d773a818a92d1af7d37cdb2b821f19dd0d9d2c9 100644 (file)
@@ -65,7 +65,7 @@
 #define CONFIG_MTDPARTS                \
        "mtdparts=orion_nand:512K(uboot),"                              \
        "512K(env),1M(script),6M(kernel),"                              \
-       "12M(ramdisk),4M(spare),-(rootfs)"
+       "12M(ramdisk),4M(spare),-(rootfs)\0"
 
 #define CONFIG_EXTRA_ENV_SETTINGS      "x_bootargs=console"    \
        "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS        \