brcm63xx: Livebox 1: add userspace board support
authorDaniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Mon, 29 Aug 2016 14:03:49 +0000 (16:03 +0200)
committerJonas Gorski <jonas.gorski@gmail.com>
Mon, 21 Nov 2016 17:40:15 +0000 (18:40 +0100)
Fix configuration files for the Livebox 1 routers.
- Add status led
- Set eth0 as the LAN port, for coherence with RedBoot and comfortability.
- Add led triggers

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
target/linux/brcm63xx/base-files/etc/board.d/01_leds
target/linux/brcm63xx/base-files/etc/board.d/02_network
target/linux/brcm63xx/base-files/etc/diag.sh

index 4163214732595fe0382a567cb94460a5266f62fc..8d8a942b267ccf4730de4694674a7d40bf0938d4 100755 (executable)
@@ -58,6 +58,11 @@ homehub2a)
        ucidef_set_led_usbdev "usb1" "USB1" "HOMEHUB2A:blue:phone" "1-1"
        ucidef_set_led_usbdev "usb2" "USB2" "HOMEHUB2A:green:phone" "2-1"
        ;;
+livebox1)
+       ucidef_set_led_netdev "lan" "LAN" "Livebox1:red:traffic" "eth0"
+       ucidef_set_led_netdev "wan" "WAN" "Livebox1:red:adsl" "eth1"
+       ucidef_set_led_netdev "wlan0" "WIFI" "Livebox1:red:wifi" "wlan0"
+       ;;
 r5010un_v2)
        ucidef_set_led_usbdev "usb" "USB" "R5010UNv2:green:usb" "1-1"
        ;;
index 83367c1997610227ec007eab9d870c630c17e49c..c20caf9b9a6a2c498e8103d6128b2ee93c4a6a7f 100755 (executable)
@@ -129,6 +129,10 @@ bcm963268bu_p300)
                "0:lan" "3:lan" "4:lan" "5:lan" "6:lan" "7:lan" "8t@eth0"
        ;;
 
+livebox1)
+       ucidef_set_interfaces_lan_wan "eth0" "eth1"
+       ;;
+
 *)
        ucidef_set_interfaces_lan_wan "eth1" "eth0"
        ;;
index 51756ae83514cb7f34602a26c64d8fd3f18a6c95..852a70146e1187e716c3ca0bd23e4193a1aad2bc 100644 (file)
@@ -102,6 +102,9 @@ set_state() {
        hg655b)
                status_led="HW65x:green:power"
                ;;
+       livebox1)
+               status_led="Livebox1:red:adsl-fail-power"
+               ;;
        p870hw-51a_v2)
                status_led="P870HW-51a:green:power"
                ;;