[source] lantiq: generate switch configuration for BTHOMEHUBV2B.

LEDE Commits lede-commits at lists.infradead.org
Fri Aug 19 20:47:34 PDT 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=63857a2d6a01e7393d199b60799f44613ddb8b8b

commit 63857a2d6a01e7393d199b60799f44613ddb8b8b
Author: Sigurd Hogsbro <sigurd at hogsbro.org>
AuthorDate: Thu Aug 18 07:43:16 2016 +0800

    lantiq: generate switch configuration for BTHOMEHUBV2B.
    
    Split from HH3A as it appears to have a different switch.
    https://en.wikipedia.org/wiki/BT_Home_Hub#Models_and_technical_specifications
    
    Signed-off-by: Sigurd Hogsbro <sigurd at hogsbro.org>
---
 target/linux/lantiq/base-files/etc/board.d/02_network | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

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 cda2d2d..1bdd57a 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -118,7 +118,14 @@ ARV7519RW22)
 		"0:lan:1" "2:lan:2" "3:lan:3" "4:lan:4" "5:lan:5" "6t at eth0"
 	;;
 
-BTHOMEHUBV2B|BTHOMEHUBV3A)
+BTHOMEHUBV2B)
+	lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
+	wan_mac=$(macaddr_add "$lan_mac" 1)
+	ucidef_add_switch "switch0" \
+		"1:lan" "2:lan" "3:lan" "4:lan" "5t at eth0"
+	;;
+
+BTHOMEHUBV3A)
 	lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
 	wan_mac=$(macaddr_add "$lan_mac" 1)
 	ucidef_set_interface_lan 'eth0'



More information about the lede-commits mailing list