[OpenWrt-Devel] [PATCH] ramips: specify "firmware" partition format for remaining devices

Rafał Miłecki zajec5 at gmail.com
Thu Dec 13 11:16:37 EST 2018


From: Rafał Miłecki <rafal at milecki.pl>

It results in calling the right MTD parser directly instead of trying
them one by one.

Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
I'm not sure about the AR670W.dts. It seems to be using WRG according to
the image generating code:
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) | wrg-header wrgn16a_airlink_ar670w

On the other hand INAGAKI state it uses LZMA in the commit d70ec3008d4c
("ramips: specify "firmware" partition format").

INAGAKI: can you take a look at this, please?
---
 target/linux/ramips/dts/AR670W.dts      | 1 +
 target/linux/ramips/dts/DAP-1522-A1.dts | 1 +
 target/linux/ramips/dts/WCR-1166DS.dts  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/target/linux/ramips/dts/AR670W.dts b/target/linux/ramips/dts/AR670W.dts
index 3ee39c1eb7..5f8a9a9593 100644
--- a/target/linux/ramips/dts/AR670W.dts
+++ b/target/linux/ramips/dts/AR670W.dts
@@ -39,6 +39,7 @@
 			};
 
 			partition at 40000 {
+				compatible = "wrg";
 				reg = <0x40000 0x3c0000>;
 				label = "firmware";
 			};
diff --git a/target/linux/ramips/dts/DAP-1522-A1.dts b/target/linux/ramips/dts/DAP-1522-A1.dts
index bdd63ea96b..aad706df2e 100644
--- a/target/linux/ramips/dts/DAP-1522-A1.dts
+++ b/target/linux/ramips/dts/DAP-1522-A1.dts
@@ -40,6 +40,7 @@
 			};
 
 			partition at 40000 {
+				compatible = "wrg";
 				label = "firmware";
 				reg = <0x40000 0x3a0000>;
 			};
diff --git a/target/linux/ramips/dts/WCR-1166DS.dts b/target/linux/ramips/dts/WCR-1166DS.dts
index ca715c8ba5..b8e86e496c 100644
--- a/target/linux/ramips/dts/WCR-1166DS.dts
+++ b/target/linux/ramips/dts/WCR-1166DS.dts
@@ -152,6 +152,7 @@
 			};
 
 			partition at 50000 {
+				compatible = "openwrt,trx";
 				label = "firmware";
 				reg = <0x50000 0x7c0000>;
 			};
-- 
2.13.7


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list