mirror of
https://github.com/FUjr/gl-infra-builder.git
synced 2025-12-19 10:35:31 +00:00
ath79: support ath10k caldata
This commit is contained in:
parent
67e9d73f0a
commit
26917bda60
@ -1,14 +1,14 @@
|
|||||||
From 8ce7efc84fd00567cd6e16314b89aab5d1c57c24 Mon Sep 17 00:00:00 2001
|
From 8f348fffc8390e3a93b591ff9bd9783fe2f154df Mon Sep 17 00:00:00 2001
|
||||||
From: niyin <yin.ni@gl-inet.com>
|
From: niyin <yin.ni@gl-inet.com>
|
||||||
Date: Sat, 28 Jan 2023 22:24:55 -0800
|
Date: Sat, 28 Jan 2023 22:24:55 -0800
|
||||||
Subject: [PATCH] ath79 adjust 02_network
|
Subject: [PATCH] ath79 adjust 02_network
|
||||||
|
|
||||||
---
|
---
|
||||||
.../ath79/nand/base-files/etc/board.d/02_network | 15 +++++++++++++++
|
.../ath79/nand/base-files/etc/board.d/02_network | 16 ++++++++++++++++
|
||||||
1 file changed, 15 insertions(+)
|
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
|
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
|
--- a/target/linux/ath79/nand/base-files/etc/board.d/02_network
|
||||||
+++ b/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()
|
@@ -65,6 +65,11 @@ ath79_setup_interfaces()
|
||||||
@ -23,7 +23,7 @@ index b533e5be6c..fe763bd342 100644
|
|||||||
*)
|
*)
|
||||||
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
||||||
;;
|
;;
|
||||||
@@ -88,6 +93,16 @@ ath79_setup_macs()
|
@@ -88,6 +93,17 @@ ath79_setup_macs()
|
||||||
netgear,wndr4500-v3)
|
netgear,wndr4500-v3)
|
||||||
wan_mac=$(mtd_get_mac_binary caldata 0x6)
|
wan_mac=$(mtd_get_mac_binary caldata 0x6)
|
||||||
;;
|
;;
|
||||||
@ -32,6 +32,7 @@ index b533e5be6c..fe763bd342 100644
|
|||||||
+ wan_mac=$(mtd_get_mac_binary art 0x0)
|
+ wan_mac=$(mtd_get_mac_binary art 0x0)
|
||||||
+ lan_mac=$(macaddr_add "$wan_mac" 1)
|
+ lan_mac=$(macaddr_add "$wan_mac" 1)
|
||||||
+ ;;
|
+ ;;
|
||||||
|
+ glinet,gl-x750-nor|\
|
||||||
+ glinet,gl-ar750s-nor|\
|
+ glinet,gl-ar750s-nor|\
|
||||||
+ glinet,gl-ar750s-nor-nand)
|
+ glinet,gl-ar750s-nor-nand)
|
||||||
+ wan_mac=$(mtd_get_mac_binary art 0x0)
|
+ 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
|
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
|
||||||
--
|
--
|
||||||
2.25.1
|
2.17.1
|
||||||
|
|
||||||
|
|||||||
28
patches-22.03.2/3005-ath79-adjust-ath10k-caldata.patch
Normal file
28
patches-22.03.2/3005-ath79-adjust-ath10k-caldata.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From 4d83e8a3ccdd1ea9ffe6cef5428eada4145a6f34 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Weiping Yang <weiping.yang@gl-inet.com>
|
||||||
|
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
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user