ramips: lock u-boot partition and unlock u-boot-env for miwifi-mini
authorDavid Yang <mmyangfl@gmail.com>
Sun, 11 Jul 2021 14:16:54 +0000 (22:16 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 24 Aug 2021 23:42:17 +0000 (01:42 +0200)
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@gmail.com>
target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts

index d89ded78a51ec1fababe0586e5ae3a07a30e3bac..b2e46a7a567e83b4feaf0b8b398b8bbad73c6491 100644 (file)
                        partition@0 {
                                label = "u-boot";
                                reg = <0x0 0x30000>;
+                               read-only;
                        };
 
                        partition@30000 {
                                label = "u-boot-env";
                                reg = <0x30000 0x10000>;
-                               read-only;
                        };
 
                        factory: partition@40000 {