lantiq: fix VGV7519 and VGV7510KW22 mac addresses
authorMathias Kresin <dev@kresin.me>
Thu, 14 Jul 2016 16:15:48 +0000 (18:15 +0200)
committerMathias Kresin <dev@kresin.me>
Wed, 9 Nov 2016 19:02:18 +0000 (20:02 +0100)
The VGV7510KW22 stock firmware uses the following mac-addresses:

lan      (ifno 1): AA:BB:CC:DD:EE:60
wlan     (ifno 2): AA:BB:CC:DD:EE:61
atm0     (ifno 3): AA:BB:CC:DD:EE:62
atm1/wan (ifno 4): AA:BB:CC:DD:EE:63

The VGV7519 stock firmware uses the following mac-addresses:

lan:  AA:BB:CC:DD:EE:EF
wlan: AA:BB:CC:DD:EE:EF
wan:  AA:BB:CC:DD:EE:EE

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/lantiq/base-files/etc/board.d/02_network
target/linux/lantiq/dts/VGV7510KW22.dtsi
target/linux/lantiq/dts/VGV7519.dtsi

index d824c66d1a54c44a3a66eddf1bfc15b6785e3b63..d9221dab8676b92d6242e43d65297a8efe3f9a1a 100755 (executable)
@@ -134,13 +134,13 @@ VR200v)
        ;;
 
 VGV7510KW22)
-       wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 22)" 1)
+       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" "6t@eth0"
        ;;
 
 VGV7519)
-       wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 22)" 1)
+       wan_mac=$(mtd_get_mac_binary board_config 22)
        ucidef_add_switch "switch0" \
                "0:lan:4" "1:lan:3" "2:lan:2" "4:lan:1" "6t@eth0"
        ;;
@@ -183,3 +183,4 @@ ucidef_set_interface_wan "$interface_wan" "pppoe"
 board_config_flush
 
 exit 0
+
index 181e852dee14565d9c0a994c76d0ac65596fbaa6..8af1db70c3e09c39bf3bfcb023e2032233d52dca 100644 (file)
                #size-cells = <0>;
                reg = <1>;
                mtd-mac-address = <&boardconfig 0x16>;
-               mtd-mac-address-increment = <2>;
+               mtd-mac-address-increment = <3>;
                lantiq,wan;
 
                ethernet@0 {
index 31b429ba0228bf2bc932fb5be9852367797781b9..a2242bb54df8574cd26768cb132b105bb730b139 100644 (file)
                #size-cells = <0>;
                reg = <0>;
                mtd-mac-address = <&boardconfig 0x16>;
+               mtd-mac-address-increment = <1>;
                lantiq,switch;
 
                ethernet@0 {
                #size-cells = <0>;
                reg = <1>;
                mtd-mac-address = <&boardconfig 0x16>;
-               mtd-mac-address-increment = <2>;
                lantiq,wan;
 
                ethernet@5 {