From bc41fb7efee755a1fe1112493365817650c3e2f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Thu, 29 Nov 2018 14:07:59 +0100 Subject: [PATCH] ath79: Define firmware partition format to all boards where applicable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Parsing "firmware" partition (to create kernel + rootfs) was implemented using OpenWrt downstream code enabled by CONFIG_MTD_SPLIT_FIRMWARE. With recent upstream mtd changes we can do it in a more clean way for DTS targets. It just requires adding a proper "compatible" string to the "firmware" partition node. Signed-off-by: Petr Å tetiar --- target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts | 1 + target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi | 1 + target/linux/ath79/dts/ar7240_tplink_tl-wr74xn-v1.dtsi | 1 + target/linux/ath79/dts/ar7241_tplink.dtsi | 1 + target/linux/ath79/dts/ar7241_ubnt_unifi.dts | 1 + target/linux/ath79/dts/ar7241_ubnt_xm.dtsi | 1 + target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts | 1 + target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts | 1 + target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts | 1 + target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts | 1 + target/linux/ath79/dts/ar9330_glinet_ar150.dts | 1 + target/linux/ath79/dts/ar9330_pqi_air-pen.dts | 1 + target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts | 1 + target/linux/ath79/dts/ar9331_etactica_eg200.dts | 1 + target/linux/ath79/dts/ar9331_pisen_wmm003n.dts | 1 + target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts | 1 + target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts | 1 + target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi | 1 + target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi | 1 + target/linux/ath79/dts/ar9341_pcs_cr3000.dts | 1 + target/linux/ath79/dts/ar9341_tplink_tl-wr842n-v2.dts | 1 + target/linux/ath79/dts/ar9342_ubnt_wa.dtsi | 1 + target/linux/ath79/dts/ar9342_ubnt_xw.dtsi | 1 + target/linux/ath79/dts/ar9344_pcs_cap324.dts | 1 + target/linux/ath79/dts/ar9344_pcs_cr5000.dts | 1 + target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi | 1 + target/linux/ath79/dts/qca9531_glinet_ar300m_nor.dts | 1 + target/linux/ath79/dts/qca9531_glinet_gl-x750.dts | 1 + target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi | 1 + target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts | 1 + target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts | 1 + target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts | 1 + target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi | 1 + target/linux/ath79/dts/qca9563_phicomm_k2t.dts | 1 + target/linux/ath79/dts/qca9563_rosinson_wr818.dts | 1 + target/linux/ath79/dts/qca9563_tplink_re450-v2.dts | 1 + target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi | 1 + 37 files changed, 37 insertions(+) diff --git a/target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts b/target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts index a28ff44445c..d25fd910141 100644 --- a/target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts +++ b/target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts @@ -209,6 +209,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0x610000>; }; diff --git a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi index f4811570084..df7bf2ea026 100644 --- a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi +++ b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi @@ -86,6 +86,7 @@ }; partition@50000 { + compatible = "netgear,uimage"; reg = <0x50000 0x3a0000>; label = "firmware"; }; diff --git a/target/linux/ath79/dts/ar7240_tplink_tl-wr74xn-v1.dtsi b/target/linux/ath79/dts/ar7240_tplink_tl-wr74xn-v1.dtsi index 788d265cd34..3b8f81ed5a7 100644 --- a/target/linux/ath79/dts/ar7240_tplink_tl-wr74xn-v1.dtsi +++ b/target/linux/ath79/dts/ar7240_tplink_tl-wr74xn-v1.dtsi @@ -106,6 +106,7 @@ }; firmware: partition@20000 { + compatible = "tplink,firmware"; reg = <0x20000 0x3d0000>; label = "firmware"; }; diff --git a/target/linux/ath79/dts/ar7241_tplink.dtsi b/target/linux/ath79/dts/ar7241_tplink.dtsi index 4078ced7d0a..d646c312f5b 100644 --- a/target/linux/ath79/dts/ar7241_tplink.dtsi +++ b/target/linux/ath79/dts/ar7241_tplink.dtsi @@ -68,6 +68,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; reg = <0x20000 0x3d0000>; label = "firmware"; }; diff --git a/target/linux/ath79/dts/ar7241_ubnt_unifi.dts b/target/linux/ath79/dts/ar7241_ubnt_unifi.dts index 2cb02503b72..27aec88cca2 100644 --- a/target/linux/ath79/dts/ar7241_ubnt_unifi.dts +++ b/target/linux/ath79/dts/ar7241_ubnt_unifi.dts @@ -81,6 +81,7 @@ }; partition@2 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0x750000>; }; diff --git a/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi b/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi index 6a5e07caf7a..54665752294 100644 --- a/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi +++ b/target/linux/ath79/dts/ar7241_ubnt_xm.dtsi @@ -60,6 +60,7 @@ }; partition@2 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0x750000>; }; diff --git a/target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts b/target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts index e4bd7c20940..ed483e03e83 100644 --- a/target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts +++ b/target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts @@ -125,6 +125,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x7d0000>; }; diff --git a/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts b/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts index 150b76e7a4b..bbbc1fc9776 100644 --- a/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts +++ b/target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts @@ -93,6 +93,7 @@ }; partition@1 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x3D0000>; }; diff --git a/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts b/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts index 5c6cb634d63..84d593a965f 100644 --- a/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts +++ b/target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts @@ -124,6 +124,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x7D0000>; }; diff --git a/target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts b/target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts index f3927cc3299..938edae3261 100644 --- a/target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts +++ b/target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts @@ -131,6 +131,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x3d0000>; }; diff --git a/target/linux/ath79/dts/ar9330_glinet_ar150.dts b/target/linux/ath79/dts/ar9330_glinet_ar150.dts index 34240f49a86..7308e87065b 100644 --- a/target/linux/ath79/dts/ar9330_glinet_ar150.dts +++ b/target/linux/ath79/dts/ar9330_glinet_ar150.dts @@ -108,6 +108,7 @@ }; partition@2 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0xfa0000>; }; diff --git a/target/linux/ath79/dts/ar9330_pqi_air-pen.dts b/target/linux/ath79/dts/ar9330_pqi_air-pen.dts index 6c662d2202d..97c97abd0c1 100644 --- a/target/linux/ath79/dts/ar9330_pqi_air-pen.dts +++ b/target/linux/ath79/dts/ar9330_pqi_air-pen.dts @@ -109,6 +109,7 @@ }; partition@70000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x070000 0x780000>; }; diff --git a/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts b/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts index 13333d7ca90..e1a20e8299b 100644 --- a/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts +++ b/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts @@ -89,6 +89,7 @@ }; partition@2 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0xfa0000>; }; diff --git a/target/linux/ath79/dts/ar9331_etactica_eg200.dts b/target/linux/ath79/dts/ar9331_etactica_eg200.dts index 569ab11e6de..cfd37d60595 100644 --- a/target/linux/ath79/dts/ar9331_etactica_eg200.dts +++ b/target/linux/ath79/dts/ar9331_etactica_eg200.dts @@ -112,6 +112,7 @@ }; firmware@50000 { + compatible = "denx,uimage"; reg = <0x50000 0xfa0000>; }; diff --git a/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts b/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts index 5e763df510f..3573665b341 100644 --- a/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts +++ b/target/linux/ath79/dts/ar9331_pisen_wmm003n.dts @@ -70,6 +70,7 @@ }; firmware: partition@20000 { + compatible = "tplink,firmware"; reg = <0x20000 0x7d0000>; label = "firmware"; }; diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts b/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts index 5f7519ef130..8bd302391d4 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts +++ b/target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts @@ -137,6 +137,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x3c0000>; }; diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts b/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts index ff7ed9f21a0..5e1dac40b53 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts +++ b/target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts @@ -128,6 +128,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x3d0000>; }; diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi index 213a96556b6..d7b23f98803 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi +++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi @@ -67,6 +67,7 @@ }; firmware: partition@20000 { + compatible = "tplink,firmware"; reg = <0x20000 0x3d0000>; label = "firmware"; }; diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi index f28e56b53b8..e1b8ea863a3 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi +++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi @@ -107,6 +107,7 @@ }; firmware: partition@20000 { + compatible = "tplink,firmware"; reg = <0x20000 0x3d0000>; label = "firmware"; }; diff --git a/target/linux/ath79/dts/ar9341_pcs_cr3000.dts b/target/linux/ath79/dts/ar9341_pcs_cr3000.dts index 5dcfd89ae68..5258cbd6350 100644 --- a/target/linux/ath79/dts/ar9341_pcs_cr3000.dts +++ b/target/linux/ath79/dts/ar9341_pcs_cr3000.dts @@ -128,6 +128,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0x07a0000>; }; diff --git a/target/linux/ath79/dts/ar9341_tplink_tl-wr842n-v2.dts b/target/linux/ath79/dts/ar9341_tplink_tl-wr842n-v2.dts index f2dbac3c7ca..100e7dbf463 100644 --- a/target/linux/ath79/dts/ar9341_tplink_tl-wr842n-v2.dts +++ b/target/linux/ath79/dts/ar9341_tplink_tl-wr842n-v2.dts @@ -146,6 +146,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x7d0000>; }; diff --git a/target/linux/ath79/dts/ar9342_ubnt_wa.dtsi b/target/linux/ath79/dts/ar9342_ubnt_wa.dtsi index b684ad87ee3..55fddd33837 100644 --- a/target/linux/ath79/dts/ar9342_ubnt_wa.dtsi +++ b/target/linux/ath79/dts/ar9342_ubnt_wa.dtsi @@ -64,6 +64,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0xf60000>; }; diff --git a/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi b/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi index fb1cc2cfaae..b104bc6d3d3 100644 --- a/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi +++ b/target/linux/ath79/dts/ar9342_ubnt_xw.dtsi @@ -84,6 +84,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0x760000>; }; diff --git a/target/linux/ath79/dts/ar9344_pcs_cap324.dts b/target/linux/ath79/dts/ar9344_pcs_cap324.dts index bd7c2a60dc7..1a21d7ce838 100644 --- a/target/linux/ath79/dts/ar9344_pcs_cap324.dts +++ b/target/linux/ath79/dts/ar9344_pcs_cap324.dts @@ -116,6 +116,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0x0fa0000>; }; diff --git a/target/linux/ath79/dts/ar9344_pcs_cr5000.dts b/target/linux/ath79/dts/ar9344_pcs_cr5000.dts index 82623031415..8eec1781e2a 100644 --- a/target/linux/ath79/dts/ar9344_pcs_cr5000.dts +++ b/target/linux/ath79/dts/ar9344_pcs_cr5000.dts @@ -105,6 +105,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0x07a0000>; }; diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi index 268df4700e9..7204dd0f4f8 100644 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi @@ -147,6 +147,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x7d0000>; }; diff --git a/target/linux/ath79/dts/qca9531_glinet_ar300m_nor.dts b/target/linux/ath79/dts/qca9531_glinet_ar300m_nor.dts index c78f03ac229..1128e2da38a 100644 --- a/target/linux/ath79/dts/qca9531_glinet_ar300m_nor.dts +++ b/target/linux/ath79/dts/qca9531_glinet_ar300m_nor.dts @@ -31,6 +31,7 @@ }; partition@2 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0xfa0000>; }; diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts b/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts index de12163f0da..b15b7508b56 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts +++ b/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts @@ -113,6 +113,7 @@ }; partition@60000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x060000 0xfa0000>; }; diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi index 5b8e8dbc684..51b95825d82 100644 --- a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi +++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi @@ -102,6 +102,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x3d0000>; }; diff --git a/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts b/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts index 87947181310..b3920dda02b 100644 --- a/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts +++ b/target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts @@ -121,6 +121,7 @@ }; partition@2 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x850000 0x7a0000>; }; diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts b/target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts index 7228a2f465e..6765ea683b2 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts +++ b/target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts @@ -36,6 +36,7 @@ }; firmware@20000 { + compatible = "tplink,firmware"; reg = <0x020000 0x7d0000>; }; diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts b/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts index d1cb6d8d12f..6f43dd433cf 100644 --- a/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts +++ b/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts @@ -168,6 +168,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x7d0000>; }; diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi index c91d3cce46c..a90373e194d 100644 --- a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi @@ -123,6 +123,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x7d0000>; }; diff --git a/target/linux/ath79/dts/qca9563_phicomm_k2t.dts b/target/linux/ath79/dts/qca9563_phicomm_k2t.dts index e99a1afbce6..e0f019c73c9 100644 --- a/target/linux/ath79/dts/qca9563_phicomm_k2t.dts +++ b/target/linux/ath79/dts/qca9563_phicomm_k2t.dts @@ -101,6 +101,7 @@ }; partition@90000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x090000 0xf60000>; }; diff --git a/target/linux/ath79/dts/qca9563_rosinson_wr818.dts b/target/linux/ath79/dts/qca9563_rosinson_wr818.dts index ff853cc2cfc..a2595d8cd51 100644 --- a/target/linux/ath79/dts/qca9563_rosinson_wr818.dts +++ b/target/linux/ath79/dts/qca9563_rosinson_wr818.dts @@ -84,6 +84,7 @@ }; partition@50000 { + compatible = "denx,uimage"; label = "firmware"; reg = <0x050000 0xf80000>; }; diff --git a/target/linux/ath79/dts/qca9563_tplink_re450-v2.dts b/target/linux/ath79/dts/qca9563_tplink_re450-v2.dts index c2e2910a15a..dbb909f2438 100644 --- a/target/linux/ath79/dts/qca9563_tplink_re450-v2.dts +++ b/target/linux/ath79/dts/qca9563_tplink_re450-v2.dts @@ -150,6 +150,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0x5e0000>; }; diff --git a/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi b/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi index 3f6d48a7868..cd2104fb485 100644 --- a/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi +++ b/target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi @@ -136,6 +136,7 @@ }; partition@20000 { + compatible = "tplink,firmware"; label = "firmware"; reg = <0x020000 0xf30000>; }; -- 2.30.2