Skip to content

Commit

Permalink
ath79: Define firmware partition format to all boards where applicable
Browse files Browse the repository at this point in the history
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 <ynezz@true.cz>
  • Loading branch information
ynezz authored and mkresin committed Dec 6, 2018
1 parent ffa5538 commit bc41fb7
Show file tree
Hide file tree
Showing 37 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts
Expand Up @@ -209,6 +209,7 @@
};

partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x610000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
Expand Up @@ -86,6 +86,7 @@
};

partition@50000 {
compatible = "netgear,uimage";
reg = <0x50000 0x3a0000>;
label = "firmware";
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar7240_tplink_tl-wr74xn-v1.dtsi
Expand Up @@ -106,6 +106,7 @@
};

firmware: partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x3d0000>;
label = "firmware";
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar7241_tplink.dtsi
Expand Up @@ -68,6 +68,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x3d0000>;
label = "firmware";
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar7241_ubnt_unifi.dts
Expand Up @@ -81,6 +81,7 @@
};

partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x750000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar7241_ubnt_xm.dtsi
Expand Up @@ -60,6 +60,7 @@
};

partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x750000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts
Expand Up @@ -125,6 +125,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7d0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts
Expand Up @@ -93,6 +93,7 @@
};

partition@1 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3D0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts
Expand Up @@ -124,6 +124,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7D0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts
Expand Up @@ -131,6 +131,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3d0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9330_glinet_ar150.dts
Expand Up @@ -108,6 +108,7 @@
};

partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0xfa0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9330_pqi_air-pen.dts
Expand Up @@ -109,6 +109,7 @@
};

partition@70000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x070000 0x780000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
Expand Up @@ -89,6 +89,7 @@
};

partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0xfa0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9331_etactica_eg200.dts
Expand Up @@ -112,6 +112,7 @@
};

firmware@50000 {
compatible = "denx,uimage";
reg = <0x50000 0xfa0000>;
};

Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9331_pisen_wmm003n.dts
Expand Up @@ -70,6 +70,7 @@
};

firmware: partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x7d0000>;
label = "firmware";
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts
Expand Up @@ -137,6 +137,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3c0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts
Expand Up @@ -128,6 +128,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3d0000>;
};
Expand Down
Expand Up @@ -67,6 +67,7 @@
};

firmware: partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x3d0000>;
label = "firmware";
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi
Expand Up @@ -107,6 +107,7 @@
};

firmware: partition@20000 {
compatible = "tplink,firmware";
reg = <0x20000 0x3d0000>;
label = "firmware";
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9341_pcs_cr3000.dts
Expand Up @@ -128,6 +128,7 @@
};

partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x07a0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9341_tplink_tl-wr842n-v2.dts
Expand Up @@ -146,6 +146,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7d0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9342_ubnt_wa.dtsi
Expand Up @@ -64,6 +64,7 @@
};

partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0xf60000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9342_ubnt_xw.dtsi
Expand Up @@ -84,6 +84,7 @@
};

partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x760000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9344_pcs_cap324.dts
Expand Up @@ -116,6 +116,7 @@
};

partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x0fa0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9344_pcs_cr5000.dts
Expand Up @@ -105,6 +105,7 @@
};

partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0x07a0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi
Expand Up @@ -147,6 +147,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7d0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9531_glinet_ar300m_nor.dts
Expand Up @@ -31,6 +31,7 @@
};

partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0xfa0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9531_glinet_gl-x750.dts
Expand Up @@ -113,6 +113,7 @@
};

partition@60000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x060000 0xfa0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi
Expand Up @@ -102,6 +102,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3d0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts
Expand Up @@ -121,6 +121,7 @@
};

partition@2 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x850000 0x7a0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts
Expand Up @@ -36,6 +36,7 @@
};

firmware@20000 {
compatible = "tplink,firmware";
reg = <0x020000 0x7d0000>;
};

Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts
Expand Up @@ -168,6 +168,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7d0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi
Expand Up @@ -123,6 +123,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x7d0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9563_phicomm_k2t.dts
Expand Up @@ -101,6 +101,7 @@
};

partition@90000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x090000 0xf60000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9563_rosinson_wr818.dts
Expand Up @@ -84,6 +84,7 @@
};

partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x050000 0xf80000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9563_tplink_re450-v2.dts
Expand Up @@ -150,6 +150,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x5e0000>;
};
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi
Expand Up @@ -136,6 +136,7 @@
};

partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0xf30000>;
};
Expand Down

0 comments on commit bc41fb7

Please sign in to comment.