[source] lantiq: match default adsl annex and firmware

LEDE Commits lede-commits at lists.infradead.org
Wed Oct 25 00:22:44 PDT 2017


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/664369f6b281b961718b247e3b6b2d55fc6a5f7a

commit 664369f6b281b961718b247e3b6b2d55fc6a5f7a
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Mon Oct 16 23:25:04 2017 +0200

    lantiq: match default adsl annex and firmware
    
    Set a default Annex matching the the annex of the selected adsl
    firmware.
    
    Set Annex B for xrx200 board which are known to have an ADSL hybrid for
    Annex B.
    
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 .../linux/lantiq/base-files/etc/board.d/02_network | 33 ++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)

diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network
index f78ef2f..8c2a118 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -23,7 +23,7 @@ interface_wan=""
 board=$(board_name)
 
 case "$board" in
-ACMP252|GIGASX76X)
+ACMP252)
 	ucidef_add_switch "switch0" \
 		"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5t at eth0"
 	;;
@@ -42,17 +42,24 @@ ARV4510PW)
 		"0:lan:4" "2:lan:2" "1:lan:3" "3:lan:1" "5t at eth0"
 	;;
 
-ARV4519PW|ARV7510PW22|ARV7518PW|ARV752DPW22|ARV8539PW22)
+ARV4519PW|ARV7510PW22|ARV7518PW)
 	ucidef_add_switch "switch0" \
 		"0t at eth0" "2:lan" "3:lan" "4:lan" "5:lan"
 	;;
 
 ARV4520PW)
+	annex="b"
 	ucidef_add_switch "switch0" \
 		"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5t at eth0"
 	;;
 
+ARV4525PW|ARV452CQW|ARV7525PW|ARV752DPW)
+	annex="b"
+	ucidef_set_interface_lan 'eth0'
+	;;
+
 ARV7506PW11)
+	annex="b"
 	wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 22)" 2)
 	ucidef_add_switch "switch0" \
 		"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5t at eth0"
@@ -70,6 +77,12 @@ ARV7519RW22)
 		"0:lan:5" "2:lan:3" "3:lan:4" "4:lan:1" "5:lan:2" "6t at eth0"
 	;;
 
+ARV752DPW22|ARV8539PW22)
+	annex="b"
+	ucidef_add_switch "switch0" \
+		"0t at eth0" "2:lan" "3:lan" "4:lan" "5:lan"
+	;;
+
 ASL56026)
 	lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
 	wan_mac=$(mtd_get_mac_ascii uboot_env wanmac)
@@ -97,6 +110,11 @@ BTHOMEHUBV5A)
 		"0:lan:3" "1:lan:4" "2:lan:2" "4:lan:1" "5:wan:5" "6t at eth0"
 	;;
 
+DGN1000B)
+	annex="b"
+	ucidef_set_interface_lan 'eth0'
+	;;
+
 DGN3500*)
 	ucidef_add_switch "switch0" \
 		"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5t at eth0"
@@ -116,22 +134,32 @@ EASY80920NAND|EASY80920NOR)
 	;;
 
 FRITZ3370)
+	annex="b"
 	wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2439)" 1)
 	ucidef_set_interface_lan 'eth0'
 	;;
 
 FRITZ7320)
+	annex="b"
 	wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2705)" 1)
 	ucidef_set_interface_lan 'eth0'
 	;;
 
 FRITZ7360SL)
+	annex="b"
 	wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2705)" 1)
 	ucidef_add_switch "switch0" \
 		"0:lan:3" "1:lan:4" "2:lan:2" "4:lan:1" "6t at eth0"
 	;;
 
+GIGASX76X)
+	annex="b"
+	ucidef_add_switch "switch0" \
+		"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5t at eth0"
+	;;
+
 H201L)
+	annex="b"
 	ucidef_add_switch "switch0" \
 		"0:lan" "1:lan" "2:lan" "3:lan" "4t at eth0"
 	;;
@@ -168,6 +196,7 @@ VR200v)
 	;;
 
 VGV7510KW22*)
+	annex="b"
 	wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 22)" 2)
 	ucidef_add_switch "switch0" \
 		"2:lan:2" "3:lan:1" "4:lan:4" "5:lan:3" "0:wan:5" "6t at eth0"



More information about the lede-commits mailing list