ath79: ubnt-xm: make u-boot-env partition read-only
authorLech Perczak <lech.perczak@gmail.com>
Wed, 26 Aug 2020 21:35:37 +0000 (23:35 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 2 Nov 2020 15:33:25 +0000 (16:33 +0100)
This partition isn't normally modified during boot process. Make it
read-only to prevent accidental overwrite.
If needed this can be overriden with installing kmod-mtd-rw; the same
way as for installing modified U-boot.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
target/linux/ath79/dts/ar724x_ubnt_xm.dtsi

index b36b0d4fe2e5b21b6775b148d90b5a75cb542890..ad216116a9e731c71afc97aa62c516f65a54beea 100644 (file)
@@ -43,6 +43,7 @@
                        partition@40000 {
                                label = "u-boot-env";
                                reg = <0x040000 0x010000>;
+                               read-only;
                        };
 
                        partition@50000 {