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.tomis...@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@0 {
  label = "u-boot";
  reg = <0x0 0x30000>;
+ read-only;
  };

  partition@30000 {
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to