apm821xx: MR24: add to uboot-envtools

This patch adds the complicated u-boot
environment access settings for to the
MR24 target.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
master
Christian Lamparter 2018-10-17 22:37:33 +02:00 committed by John Crispin
parent 6f4f77aa1d
commit f6968952df
2 changed files with 28 additions and 1 deletions

View File

@ -10,6 +10,10 @@ touch /etc/config/ubootenv
board=$(board_name) board=$(board_name)
case "$board" in case "$board" in
meraki,mr24)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x4000" "0x4000" "4"
;;
esac esac
config_load ubootenv config_load ubootenv

View File

@ -55,7 +55,30 @@
partition@0 { partition@0 {
label = "u-boot"; label = "u-boot";
reg = <0x00000000 0x00170000>; reg = <0x00000000 0x00150000>;
read-only;
};
partition@150000 {
/*
* The u-boot environment size is one NAND
* block (16KiB). u-boot allocates four NAND
* blocks (64KiB) in order to have spares
* around for bad block management
*/
label = "u-boot-env";
reg = <0x00150000 0x00010000>;
read-only;
};
partition@160000 {
/*
* redundant u-boot environment.
* has to be kept it in sync with the
* data in "u-boot-env".
*/
label = "u-boot-env-redundant";
reg = <0x00160000 0x00010000>;
read-only; read-only;
}; };