lantiq: generate switch configuration for BTHOMEHUBV2B.
authorSigurd Hogsbro <sigurd@hogsbro.org>
Wed, 17 Aug 2016 23:43:16 +0000 (07:43 +0800)
committerJohn Crispin <john@phrozen.org>
Sat, 20 Aug 2016 03:35:42 +0000 (05:35 +0200)
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@hogsbro.org>
target/linux/lantiq/base-files/etc/board.d/02_network

index cda2d2d9ac0c69aa82cba3c28ff44d73e98bd958..1bdd57a8a14d4d6af0019883a0930fd8c7c6cbe8 100755 (executable)
@@ -118,7 +118,14 @@ ARV7519RW22)
                "0:lan:1" "2:lan:2" "3:lan:3" "4:lan:4" "5:lan:5" "6t@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@eth0"
+       ;;
+
+BTHOMEHUBV3A)
        lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
        wan_mac=$(macaddr_add "$lan_mac" 1)
        ucidef_set_interface_lan 'eth0'