[source] brcm63xx: Livebox 1: add userspace board support

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 21 09:42:02 PST 2016


jogo pushed a commit to source.git, branch master:
https://git.lede-project.org/d2b79e4d808add264d22e284fa21dfa155e52f05

commit d2b79e4d808add264d22e284fa21dfa155e52f05
Author: Daniel Gonzalez Cabanelas <dgcbueu at gmail.com>
AuthorDate: Mon Aug 29 16:03:49 2016 +0200

    brcm63xx: Livebox 1: add userspace board support
    
    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 at gmail.com>
    Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
---
 target/linux/brcm63xx/base-files/etc/board.d/01_leds    | 5 +++++
 target/linux/brcm63xx/base-files/etc/board.d/02_network | 4 ++++
 target/linux/brcm63xx/base-files/etc/diag.sh            | 3 +++
 3 files changed, 12 insertions(+)

diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_leds b/target/linux/brcm63xx/base-files/etc/board.d/01_leds
index 4163214..8d8a942 100755
--- a/target/linux/brcm63xx/base-files/etc/board.d/01_leds
+++ b/target/linux/brcm63xx/base-files/etc/board.d/01_leds
@@ -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"
 	;;
diff --git a/target/linux/brcm63xx/base-files/etc/board.d/02_network b/target/linux/brcm63xx/base-files/etc/board.d/02_network
index 83367c1..c20caf9 100755
--- a/target/linux/brcm63xx/base-files/etc/board.d/02_network
+++ b/target/linux/brcm63xx/base-files/etc/board.d/02_network
@@ -129,6 +129,10 @@ bcm963268bu_p300)
 		"0:lan" "3:lan" "4:lan" "5:lan" "6:lan" "7:lan" "8t at eth0"
 	;;
 
+livebox1)
+	ucidef_set_interfaces_lan_wan "eth0" "eth1"
+	;;
+
 *)
 	ucidef_set_interfaces_lan_wan "eth1" "eth0"
 	;;
diff --git a/target/linux/brcm63xx/base-files/etc/diag.sh b/target/linux/brcm63xx/base-files/etc/diag.sh
index 51756ae..852a701 100644
--- a/target/linux/brcm63xx/base-files/etc/diag.sh
+++ b/target/linux/brcm63xx/base-files/etc/diag.sh
@@ -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"
 		;;



More information about the lede-commits mailing list