From 26917bda6025202b6ef34f3a45f5444b72184a84 Mon Sep 17 00:00:00 2001 From: Weiping Yang Date: Wed, 12 Apr 2023 05:46:18 -0400 Subject: [PATCH] ath79: support ath10k caldata --- .../3002-ath79-adjust-02_network.patch | 13 +++++---- .../3005-ath79-adjust-ath10k-caldata.patch | 28 +++++++++++++++++++ ....patch => 3006-mvebu-adjust-01-leds.patch} | 0 ...tch => 3007-mvebu-adjust-02_network.patch} | 0 ...tch => 3008-mvebu-adjust-usb-devise.patch} | 0 ...ch => 3009-mvebu-adjust-platform-sh.patch} | 0 ...t-emmc-img-and-add-usb-devise-drive.patch} | 0 ...=> 3011-update-mvebu-fwtools-script.patch} | 0 ...atch => 3012-mvebu-adjust-cortexa53.patch} | 0 ...ove-wan-port-network-cable-clear-ip.patch} | 0 10 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 patches-22.03.2/3005-ath79-adjust-ath10k-caldata.patch rename patches-22.03.2/{3005-mvebu-adjust-01-leds.patch => 3006-mvebu-adjust-01-leds.patch} (100%) rename patches-22.03.2/{3006-mvebu-adjust-02_network.patch => 3007-mvebu-adjust-02_network.patch} (100%) rename patches-22.03.2/{3007-mvebu-adjust-usb-devise.patch => 3008-mvebu-adjust-usb-devise.patch} (100%) rename patches-22.03.2/{3008-mvebu-adjust-platform-sh.patch => 3009-mvebu-adjust-platform-sh.patch} (100%) rename patches-22.03.2/{3009-mvebu-adjust-emmc-img-and-add-usb-devise-drive.patch => 3010-mvebu-adjust-emmc-img-and-add-usb-devise-drive.patch} (100%) rename patches-22.03.2/{3010-update-mvebu-fwtools-script.patch => 3011-update-mvebu-fwtools-script.patch} (100%) rename patches-22.03.2/{3011-mvebu-adjust-cortexa53.patch => 3012-mvebu-adjust-cortexa53.patch} (100%) rename patches-22.03.2/{3012-fix-ath79-ar8337-remove-wan-port-network-cable-clear-ip.patch => 3013-fix-ath79-ar8337-remove-wan-port-network-cable-clear-ip.patch} (100%) diff --git a/patches-22.03.2/3002-ath79-adjust-02_network.patch b/patches-22.03.2/3002-ath79-adjust-02_network.patch index 01d4759..18a0bd6 100644 --- a/patches-22.03.2/3002-ath79-adjust-02_network.patch +++ b/patches-22.03.2/3002-ath79-adjust-02_network.patch @@ -1,14 +1,14 @@ -From 8ce7efc84fd00567cd6e16314b89aab5d1c57c24 Mon Sep 17 00:00:00 2001 +From 8f348fffc8390e3a93b591ff9bd9783fe2f154df Mon Sep 17 00:00:00 2001 From: niyin Date: Sat, 28 Jan 2023 22:24:55 -0800 Subject: [PATCH] ath79 adjust 02_network --- - .../ath79/nand/base-files/etc/board.d/02_network | 15 +++++++++++++++ - 1 file changed, 15 insertions(+) + .../ath79/nand/base-files/etc/board.d/02_network | 16 ++++++++++++++++ + 1 file changed, 16 insertions(+) diff --git a/target/linux/ath79/nand/base-files/etc/board.d/02_network b/target/linux/ath79/nand/base-files/etc/board.d/02_network -index b533e5be6c..fe763bd342 100644 +index b533e5be6c..99e6ce7f6c 100644 --- a/target/linux/ath79/nand/base-files/etc/board.d/02_network +++ b/target/linux/ath79/nand/base-files/etc/board.d/02_network @@ -65,6 +65,11 @@ ath79_setup_interfaces() @@ -23,7 +23,7 @@ index b533e5be6c..fe763bd342 100644 *) ucidef_set_interfaces_lan_wan "eth0" "eth1" ;; -@@ -88,6 +93,16 @@ ath79_setup_macs() +@@ -88,6 +93,17 @@ ath79_setup_macs() netgear,wndr4500-v3) wan_mac=$(mtd_get_mac_binary caldata 0x6) ;; @@ -32,6 +32,7 @@ index b533e5be6c..fe763bd342 100644 + wan_mac=$(mtd_get_mac_binary art 0x0) + lan_mac=$(macaddr_add "$wan_mac" 1) + ;; ++ glinet,gl-x750-nor|\ + glinet,gl-ar750s-nor|\ + glinet,gl-ar750s-nor-nand) + wan_mac=$(mtd_get_mac_binary art 0x0) @@ -41,5 +42,5 @@ index b533e5be6c..fe763bd342 100644 [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac -- -2.25.1 +2.17.1 diff --git a/patches-22.03.2/3005-ath79-adjust-ath10k-caldata.patch b/patches-22.03.2/3005-ath79-adjust-ath10k-caldata.patch new file mode 100644 index 0000000..03b8f68 --- /dev/null +++ b/patches-22.03.2/3005-ath79-adjust-ath10k-caldata.patch @@ -0,0 +1,28 @@ +From 4d83e8a3ccdd1ea9ffe6cef5428eada4145a6f34 Mon Sep 17 00:00:00 2001 +From: Weiping Yang +Date: Wed, 12 Apr 2023 05:33:00 -0400 +Subject: [PATCH] ath79 adjust ath10k caldata + +--- + .../nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +index e5c26d6bb5..26851e8604 100644 +--- a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata ++++ b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +@@ -18,6 +18,11 @@ case "$FIRMWARE" in + caldata_extract "art" 0x5000 0x844 + ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) 1) + ;; ++ glinet,gl-x750-nor|\ ++ glinet,gl-x750-nor-nand) ++ caldata_extract "art" 0x5000 0x844 ++ ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) 3) ++ ;; + netgear,r6100) + caldata_extract "caldata" 0x5000 0x844 + ;; +-- +2.17.1 + diff --git a/patches-22.03.2/3005-mvebu-adjust-01-leds.patch b/patches-22.03.2/3006-mvebu-adjust-01-leds.patch similarity index 100% rename from patches-22.03.2/3005-mvebu-adjust-01-leds.patch rename to patches-22.03.2/3006-mvebu-adjust-01-leds.patch diff --git a/patches-22.03.2/3006-mvebu-adjust-02_network.patch b/patches-22.03.2/3007-mvebu-adjust-02_network.patch similarity index 100% rename from patches-22.03.2/3006-mvebu-adjust-02_network.patch rename to patches-22.03.2/3007-mvebu-adjust-02_network.patch diff --git a/patches-22.03.2/3007-mvebu-adjust-usb-devise.patch b/patches-22.03.2/3008-mvebu-adjust-usb-devise.patch similarity index 100% rename from patches-22.03.2/3007-mvebu-adjust-usb-devise.patch rename to patches-22.03.2/3008-mvebu-adjust-usb-devise.patch diff --git a/patches-22.03.2/3008-mvebu-adjust-platform-sh.patch b/patches-22.03.2/3009-mvebu-adjust-platform-sh.patch similarity index 100% rename from patches-22.03.2/3008-mvebu-adjust-platform-sh.patch rename to patches-22.03.2/3009-mvebu-adjust-platform-sh.patch diff --git a/patches-22.03.2/3009-mvebu-adjust-emmc-img-and-add-usb-devise-drive.patch b/patches-22.03.2/3010-mvebu-adjust-emmc-img-and-add-usb-devise-drive.patch similarity index 100% rename from patches-22.03.2/3009-mvebu-adjust-emmc-img-and-add-usb-devise-drive.patch rename to patches-22.03.2/3010-mvebu-adjust-emmc-img-and-add-usb-devise-drive.patch diff --git a/patches-22.03.2/3010-update-mvebu-fwtools-script.patch b/patches-22.03.2/3011-update-mvebu-fwtools-script.patch similarity index 100% rename from patches-22.03.2/3010-update-mvebu-fwtools-script.patch rename to patches-22.03.2/3011-update-mvebu-fwtools-script.patch diff --git a/patches-22.03.2/3011-mvebu-adjust-cortexa53.patch b/patches-22.03.2/3012-mvebu-adjust-cortexa53.patch similarity index 100% rename from patches-22.03.2/3011-mvebu-adjust-cortexa53.patch rename to patches-22.03.2/3012-mvebu-adjust-cortexa53.patch diff --git a/patches-22.03.2/3012-fix-ath79-ar8337-remove-wan-port-network-cable-clear-ip.patch b/patches-22.03.2/3013-fix-ath79-ar8337-remove-wan-port-network-cable-clear-ip.patch similarity index 100% rename from patches-22.03.2/3012-fix-ath79-ar8337-remove-wan-port-network-cable-clear-ip.patch rename to patches-22.03.2/3013-fix-ath79-ar8337-remove-wan-port-network-cable-clear-ip.patch