[OpenWrt-Devel] [PATCH] ramips: set read-only flag to u-boot partition on Xiaomi MiWiFi Mini

Tom Psyborg pozega.tomislav at gmail.com
Sun Feb 7 23:44:29 EST 2016


Current device profile allows overwriting u-boot partition, setting
read-only flag will prevent mtd device unlock and thus accidental partition
overwrite.

Signed-off-by: Tomislav Požega <pozega.tomislav at gmail.com>
---
Same fix is required in CC branch.

PATCH

diff -purN a/target/linux/ramips/dts/MIWIFI-MINI.dts
b/target/linux/ramips/dts/MIWIFI-MINI.dts
--- a/target/linux/ramips/dts/MIWIFI-MINI.dts 2016-02-08 04:57:37.567841929
+0100
+++ b/target/linux/ramips/dts/MIWIFI-MINI.dts 2016-02-08 04:58:04.271972487
+0100
@@ -37,6 +37,7 @@
  partition at 0 {
  label = "u-boot";
  reg = <0x0 0x30000>;
+ read-only;
  };

  partition at 30000 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160208/df7e808c/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list