mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 15:27:00 +00:00
Motion-PRO: Add support for redundant environment.
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>
This commit is contained in:
parent
a26eabeec3
commit
4520fd4d2c
1 changed files with 6 additions and 1 deletions
|
@ -125,6 +125,7 @@
|
|||
"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 " \
|
||||
|
@ -269,7 +270,8 @@
|
|||
#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
|
||||
|
|
Loading…
Add table
Reference in a new issue