ath79: make Engenius fakeroot partitions read-only
authorMichael Pratt <mcpratt@pm.me>
Fri, 1 Jan 2021 22:08:34 +0000 (17:08 -0500)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 7 Jan 2021 18:51:50 +0000 (19:51 +0100)
For:

 - ENH202 v1
 - ENS202EXT v1

These boards were committed before it was discovered
that for all Engenius boards with a "failsafe" image,
forcing the failsafe image to load next boot
can be achieved by editing the u-boot environment like:

  `fw_setenv rootfs_checksum 0`

So it's not necessary to delete a partition to boot to failsafe image.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts
target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts

index 77b2f3fa1a239a4ffbdf7c527afa351939ca25e7..1d26a9765b53264e1d40790328f2f1bc64250a18 100644 (file)
                        partition@1a0000 {
                                label = "fakeroot";
                                reg = <0x1a0000 0x10000>;
+                               read-only;
                        };
 
                        fwconcat0: partition@1b0000 {
index 8b28d581b1cbd9c1e1c2b46d77ffa7a3263a96d1..6e296ab49681e7bae9ab1ad4b74da36909fe028a 100644 (file)
                        partition@220000 {
                                label = "fakeroot";
                                reg = <0x220000 0x010000>;
+                               read-only;
                        };
 
                        fwconcat0: partition@230000 {