]> git.sur5r.net Git - u-boot/commitdiff
Motion-PRO: Add support for redundant environment.
authorBartlomiej Sieka <tur@semihalf.com>
Sun, 27 May 2007 15:06:36 +0000 (17:06 +0200)
committerBartlomiej Sieka <tur@semihalf.com>
Sun, 27 May 2007 15:06:36 +0000 (17:06 +0200)
Enable redundant environment, add a MTD partition for it; also add env.
variable command for passing MTD partitions to the kernel command line.

Signed-off-by: Piotr Kruszynski <ppk@semihalf.com>
Acked-by: Bartlomiej Sieka <tur@semihalf.com>
include/configs/motionpro.h

index bbd823a47814424e1a58d99c7906972e43062e57..8170ccbbc7668d8da714b7afac9f7cca1606ac5b 100644 (file)
        "nfsargs=setenv bootargs root=/dev/nfs rw "                     \
                "nfsroot=$(serverip):$(rootpath)\0"                     \
        "fat_args=setenv bootargs rw\0"                                 \
+       "addmtd=setenv bootargs $(bootargs) $(mtdparts)\0"              \
        "addip=setenv bootargs $(bootargs) "                            \
                "ip=$(ipaddr):$(serverip):$(gatewayip):"                \
                "$(netmask):$(hostname):$(netdev):off panic=1 "         \
 #define MTDIDS_DEFAULT         "nor0=motionpro-0"
 #define MTDPARTS_DEFAULT       "mtdparts=motionpro-0:"                   \
                                        "13m(fs),2m(kernel),256k(uboot)," \
-                                       "64k(env),64k(dtb),-(user_data)"
+                                       "64k(env),64k(redund_env),64k(dtb)," \
+                                       "-(user_data)"
 
 /*
  * IDE/ATA configuration
@@ -349,6 +351,9 @@ extern void __led_set(led_id_t id, int state);
 #define CFG_ENV_SIZE           0x1000
 #define CFG_ENV_SECT_SIZE      0x10000
 
+/* Configuration of redundant environment */
+#define CFG_ENV_ADDR_REDUND    (CFG_ENV_ADDR + CFG_ENV_SECT_SIZE)
+#define CFG_ENV_SIZE_REDUND    (CFG_ENV_SIZE)
 
 /*
  * Pin multiplexing configuration