[openwrt/openwrt] ath79: make Engenius fakeroot partitions read-only
LEDE Commits
lede-commits at lists.infradead.org
Thu Jan 7 13:52:20 EST 2021
adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/51360a913b492d042a697a9658a21f820a027fa1
commit 51360a913b492d042a697a9658a21f820a027fa1
Author: Michael Pratt <mcpratt at pm.me>
AuthorDate: Fri Jan 1 17:08:34 2021 -0500
ath79: make Engenius fakeroot partitions read-only
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 at pm.me>
---
target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts | 1 +
target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts | 1 +
2 files changed, 2 insertions(+)
diff --git a/target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts b/target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts
index 77b2f3fa1a..1d26a9765b 100644
--- a/target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts
+++ b/target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts
@@ -136,6 +136,7 @@
partition at 1a0000 {
label = "fakeroot";
reg = <0x1a0000 0x10000>;
+ read-only;
};
fwconcat0: partition at 1b0000 {
diff --git a/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts b/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts
index 8b28d581b1..6e296ab496 100644
--- a/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts
+++ b/target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts
@@ -130,6 +130,7 @@
partition at 220000 {
label = "fakeroot";
reg = <0x220000 0x010000>;
+ read-only;
};
fwconcat0: partition at 230000 {
More information about the lede-commits
mailing list