[openwrt/openwrt] mediatek: Fix writing U-Boot env on Buffalo WSR-2533DHP2

LEDE Commits lede-commits at lists.infradead.org
Wed Mar 17 22:40:21 GMT 2021


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0e3f6fbe1095387737bba6c71851f5c339f916da

commit 0e3f6fbe1095387737bba6c71851f5c339f916da
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Mon Mar 15 18:40:14 2021 +0100

    mediatek: Fix writing U-Boot env on Buffalo WSR-2533DHP2
    
    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 at hauke-m.de>
---
 package/boot/uboot-envtools/files/mediatek                | 2 +-
 target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/boot/uboot-envtools/files/mediatek b/package/boot/uboot-envtools/files/mediatek
index ce28fb31cb..4db1c6ef4d 100644
--- a/package/boot/uboot-envtools/files/mediatek
+++ b/package/boot/uboot-envtools/files/mediatek
@@ -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
 
diff --git a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
index 397be1445b..ce5cd1c9be 100644
--- a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
+++ b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
@@ -269,7 +269,6 @@
 			partition at 140000 {
 				label = "Config";
 				reg = <0x140000 0x80000>;
-				read-only;
 			};
 
 			factory: partition at 1c0000 {



More information about the lede-commits mailing list