From c2ed721e89156d3b37d2bcbc9155f31bb1aa97b2 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Thu, 1 Dec 2016 15:08:22 +0100 Subject: ramips: improve F5D8235 V1 support This fixes the partition name for the firmware splitter, the cfi address and adds the mtd-eeprom address for wmac. It adds additional LEDs and make use of them in diag.sh and 01_leds. Please note that the ":blue:wired" LED is used because the ":blue:router" behaviour is unpredictable for failsafe indication. The issue with the router LED is that you have two states only. "off" is steady on and "on" blinks. Therefore the wired LED is more suitable. Furthermore it reuses the correct switch configuration definition to reflect the device ports and numbering. Additionally fixes the issue that the default configuration is not applied as no port 6 exists on this device. Signed-off-by: Tobias Wolf --- target/linux/ramips/base-files/etc/board.d/01_leds | 6 +++++- target/linux/ramips/base-files/etc/board.d/02_network | 2 +- target/linux/ramips/base-files/etc/diag.sh | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips/base-files') diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index f6dbf30a58..ab077bff13 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -158,7 +158,11 @@ ex2700) ucidef_set_led_default "power_r" "POWER (red)" "$board:red:power" "0" set_wifi_led "$board:green:router" ;; -f5d8235-v1|\ +f5d8235-v1) + ucidef_set_led_default "lan" "lan" "$board:blue:wired" "0" + set_usb_led "$board:blue:storage" + set_wifi_led "$board:blue:wireless" + ;; f5d8235-v2) set_usb_led "$board:blue:storage" ;; diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index e3e65506a9..0eaa440eb2 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -130,7 +130,6 @@ ramips_setup_interfaces() c50|\ dir-645|\ dir-860l-b1|\ - f5d8235-v1|\ f5d8235-v2|\ gl-mt300a|\ gl-mt300n|\ @@ -236,6 +235,7 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0" ;; + f5d8235-v1|\ tew-714tru|\ v11st-fe|\ wzr-agl300nh) diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 6bcdc0f5bc..abbe147d84 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -126,6 +126,9 @@ get_status_led() { pbr-d1) status_led="$board:orange:power" ;; + f5d8235-v1) + status_led="$board:blue:wired" + ;; f5d8235-v2) status_led="$board:blue:router" ;; -- cgit v1.2.3