From: Petr Štetiar Date: Thu, 29 Nov 2018 13:07:59 +0000 (+0100) Subject: ath79: Define firmware partition format to all boards where applicable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bc41fb7efee755a1fe1112493365817650c3e2f9;p=openwrt%2Fstaging%2Fblogic.git ath79: Define firmware partition format to all boards where applicable 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 --- 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 a28ff44445ce..d25fd9101410 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 f48115700844..df7bf2ea0265 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 788d265cd349..3b8f81ed5a72 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 4078ced7d0a9..d646c312f5ba 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 2cb02503b72b..27aec88cca24 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 6a5e07caf7ab..546657522949 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 e4bd7c209403..ed483e03e832 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 150b76e7a4b7..bbbc1fc97768 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 5c6cb634d63b..84d593a965f7 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 f3927cc3299e..938edae32619 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 34240f49a865..7308e87065be 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 6c662d2202de..97c97abd0c16 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 13333d7ca908..e1a20e8299b5 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 569ab11e6de6..cfd37d605957 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 5e763df510f4..3573665b341f 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 5f7519ef1308..8bd302391d41 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 ff7ed9f21a08..5e1dac40b538 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 213a96556b6a..d7b23f988031 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 f28e56b53b86..e1b8ea863a30 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 5dcfd89ae682..5258cbd6350d 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 f2dbac3c7ca8..100e7dbf4635 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 b684ad87ee3c..55fddd338370 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 fb1cc2cfaae4..b104bc6d3d36 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 bd7c2a60dc74..1a21d7ce838d 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 826230314152..8eec1781e2a5 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 268df4700e96..7204dd0f4f89 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 c78f03ac2292..1128e2da38a0 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 de12163f0dab..b15b7508b564 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 5b8e8dbc684f..51b95825d82a 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 87947181310e..b3920dda02b8 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 7228a2f465ea..6765ea683b2e 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 d1cb6d8d12f8..6f43dd433cf8 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 c91d3cce46c6..a90373e194da 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 e99a1afbce6a..e0f019c73c95 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 ff853cc2cfc6..a2595d8cd514 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 c2e2910a15a8..dbb909f24384 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 3f6d48a78684..cd2104fb485b 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>; };