[openwrt/openwrt] ath79: ubnt-unifi: make u-boot-env partition read-only
LEDE Commits
lede-commits at lists.infradead.org
Mon Nov 2 10:33:55 EST 2020
adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/52d3b027ec7e69488b37b2947657a55ce6ad7712
commit 52d3b027ec7e69488b37b2947657a55ce6ad7712
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Wed Aug 26 23:38:25 2020 +0200
ath79: ubnt-unifi: make u-boot-env partition read-only
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 at gmail.com>
---
target/linux/ath79/dts/ar7241_ubnt_unifi.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/linux/ath79/dts/ar7241_ubnt_unifi.dts b/target/linux/ath79/dts/ar7241_ubnt_unifi.dts
index c4c0235f7b..ce59463d9e 100644
--- a/target/linux/ath79/dts/ar7241_ubnt_unifi.dts
+++ b/target/linux/ath79/dts/ar7241_ubnt_unifi.dts
@@ -80,6 +80,7 @@
partition at 40000 {
label = "u-boot-env";
reg = <0x040000 0x010000>;
+ read-only;
};
partition at 50000 {
More information about the lede-commits
mailing list