From: David Yang Date: Sun, 11 Jul 2021 14:16:54 +0000 (+0800) Subject: ramips: lock u-boot partition and unlock u-boot-env for miwifi-mini X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5ed11012e7d990a11256917a5112f528cb983c89;p=openwrt%2Fstaging%2Fjow.git ramips: lock u-boot partition and unlock u-boot-env for miwifi-mini Generally u-boot should keep read-only to avoid mis-overwriting and bricking the device, but u-boot-env could be safely modified with u-boot setenv tool. Signed-off-by: David Yang --- diff --git a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts index d89ded78a5..b2e46a7a56 100644 --- a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts +++ b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts @@ -71,12 +71,12 @@ partition@0 { label = "u-boot"; reg = <0x0 0x30000>; + read-only; }; partition@30000 { label = "u-boot-env"; reg = <0x30000 0x10000>; - read-only; }; factory: partition@40000 {