aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/tiny/base-files/etc/board.d/01_leds
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2021-01-01 16:48:52 -0500
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-01-07 19:51:50 +0100
commit0070650df45da29a55a89922544dba6859c18f2b (patch)
tree8d39fecdb7add794f134e586b85427a059f3265f /target/linux/ath79/tiny/base-files/etc/board.d/01_leds
parentecded5bf0908953c47933967c0046cceb3ce0ec1 (diff)
downloadupstream-0070650df45da29a55a89922544dba6859c18f2b.tar.gz
upstream-0070650df45da29a55a89922544dba6859c18f2b.tar.bz2
upstream-0070650df45da29a55a89922544dba6859c18f2b.zip
ath79: move small-flash Engenius boards to tiny
This moves some of the Engenius boards from generic to tiny: - EAP350 v1 - ECB350 v1 - ENH202 v1 For these, factory.bin builds are already failing on master branch because of the unique situation for these boards: - 8 MB flash - an extra "failsafe" image for recovery - TFTP does not work (barely possible with 600 MTU) - bootloader loads image from a longer flash offset - 1 eraseblock each needed for OKLI kernel loader and fake rootfs - using mtd-concat to make use of remaining space... The manual alternative would be removing the failsafe partition. However this comes with the risk of extremely difficult recovery if a flash ever fails because TFTP on the bootloader is bugged. Signed-off-by: Michael Pratt <mcpratt@pm.me> [improve commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/tiny/base-files/etc/board.d/01_leds')
-rwxr-xr-xtarget/linux/ath79/tiny/base-files/etc/board.d/01_leds8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ath79/tiny/base-files/etc/board.d/01_leds b/target/linux/ath79/tiny/base-files/etc/board.d/01_leds
index 26926b6f64..f0b4acf066 100755
--- a/target/linux/ath79/tiny/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/tiny/base-files/etc/board.d/01_leds
@@ -21,6 +21,14 @@ tplink,tl-wr941-v4)
ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x08"
ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x10"
;;
+engenius,enh202-v1)
+ ucidef_set_led_switch "lan" "LAN" "amber:lan" "switch0" "0x10"
+ ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
+ ucidef_set_rssimon "wlan0" "200000" "1"
+ ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
+ ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "amber:rssimedium" "wlan0" "33" "100"
+ ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "67" "100"
+ ;;
netgear,wnr1000-v2|\
netgear,wnr2000-v3)
ucidef_set_led_netdev "wan-amber" "WAN (amber)" "amber:wan" "eth0"