aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
authorTobias Wolf <git-NTEO@vplace.de>2016-12-01 15:08:22 +0100
committerMathias Kresin <dev@kresin.me>2016-12-04 07:03:17 +0100
commitc2ed721e89156d3b37d2bcbc9155f31bb1aa97b2 (patch)
treeea5b97d3d4456d4782eafd7975bedbc7ccddd570 /target/linux/ramips/base-files/etc
parent62e4c915ee867b5c3610fcc150d3a6bf90cbb130 (diff)
downloadupstream-c2ed721e89156d3b37d2bcbc9155f31bb1aa97b2.tar.gz
upstream-c2ed721e89156d3b37d2bcbc9155f31bb1aa97b2.tar.bz2
upstream-c2ed721e89156d3b37d2bcbc9155f31bb1aa97b2.zip
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 <github-NTEO@vplace.de>
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds6
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network2
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh3
3 files changed, 9 insertions, 2 deletions
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"
;;