From 5ed11012e7d990a11256917a5112f528cb983c89 Mon Sep 17 00:00:00 2001 From: David Yang Date: Sun, 11 Jul 2021 22:16:54 +0800 Subject: [PATCH] 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 --- target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {