mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-03 10:00:42 +09: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
@ -125,6 +125,7 @@
|
|||||||
"nfsargs=setenv bootargs root=/dev/nfs rw " \
|
"nfsargs=setenv bootargs root=/dev/nfs rw " \
|
||||||
"nfsroot=$(serverip):$(rootpath)\0" \
|
"nfsroot=$(serverip):$(rootpath)\0" \
|
||||||
"fat_args=setenv bootargs rw\0" \
|
"fat_args=setenv bootargs rw\0" \
|
||||||
|
"addmtd=setenv bootargs $(bootargs) $(mtdparts)\0" \
|
||||||
"addip=setenv bootargs $(bootargs) " \
|
"addip=setenv bootargs $(bootargs) " \
|
||||||
"ip=$(ipaddr):$(serverip):$(gatewayip):" \
|
"ip=$(ipaddr):$(serverip):$(gatewayip):" \
|
||||||
"$(netmask):$(hostname):$(netdev):off panic=1 " \
|
"$(netmask):$(hostname):$(netdev):off panic=1 " \
|
||||||
@ -269,7 +270,8 @@
|
|||||||
#define MTDIDS_DEFAULT "nor0=motionpro-0"
|
#define MTDIDS_DEFAULT "nor0=motionpro-0"
|
||||||
#define MTDPARTS_DEFAULT "mtdparts=motionpro-0:" \
|
#define MTDPARTS_DEFAULT "mtdparts=motionpro-0:" \
|
||||||
"13m(fs),2m(kernel),256k(uboot)," \
|
"13m(fs),2m(kernel),256k(uboot)," \
|
||||||
"64k(env),64k(dtb),-(user_data)"
|
"64k(env),64k(redund_env),64k(dtb)," \
|
||||||
|
"-(user_data)"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IDE/ATA configuration
|
* 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_SIZE 0x1000
|
||||||
#define CFG_ENV_SECT_SIZE 0x10000
|
#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
|
* Pin multiplexing configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user