mediatek: Fix writing U-Boot env on Buffalo WSR-2533DHP2
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 15 Mar 2021 17:40:14 +0000 (18:40 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 17 Mar 2021 22:39:59 +0000 (22:39 +0000)
This fixes writing to the U-Boot environment by making the partition
writable and setting the correct flash sector size of 128K.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/boot/uboot-envtools/files/mediatek
target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts

index ce28fb31cbca86caf4223e80b1bf4fa3c259dc49..4db1c6ef4d96eaf0ae9760269726e7853308d9a8 100644 (file)
@@ -25,7 +25,7 @@ case "$board" in
        ubootenv_add_uci_config "$envdev" "0x80000" "0x80000" "0x80000" "1"
        ;;
 buffalo,wsr-2533dhp2)
-       ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x1000" "0x1000"
+       ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x1000" "0x20000"
        ;;
 esac
 
index 397be1445bbf2cee6c2a943645421dc719d274e7..ce5cd1c9be00cb9552847f00fddbc46cbfd05f96 100644 (file)
                        partition@140000 {
                                label = "Config";
                                reg = <0x140000 0x80000>;
-                               read-only;
                        };
 
                        factory: partition@1c0000 {