[openwrt/openwrt] ramips: lock u-boot partition and unlock u-boot-env for miwifi-mini

LEDE Commits lede-commits at lists.infradead.org
Tue Aug 24 16:42:45 PDT 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5ed11012e7d990a11256917a5112f528cb983c89

commit 5ed11012e7d990a11256917a5112f528cb983c89
Author: David Yang <mmyangfl at gmail.com>
AuthorDate: Sun Jul 11 22:16:54 2021 +0800

    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 <mmyangfl at gmail.com>
---
 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 at 0 {
 				label = "u-boot";
 				reg = <0x0 0x30000>;
+				read-only;
 			};
 
 			partition at 30000 {
 				label = "u-boot-env";
 				reg = <0x30000 0x10000>;
-				read-only;
 			};
 
 			factory: partition at 40000 {



More information about the lede-commits mailing list