0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-25 22:46:15 +00:00
openwrt/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds
Daniel Huici 9c24a14ffa lantiq: add support for Arcadyan VRV9510KWAC23
The Arcadyan VRV9510KWAC23 (trade name Livebox Next) is a Lantiq router distributed by some spanish ISPs

Hardware:
-   SoC: Lantiq VRX200
-   CPU: 2x MIPS 34Kc 500 MHz
-   RAM: 256 MiB DDR2
-   Flash: 128 MiB NAND
-   Ethernet: Built-in Gigabit Ethernet switch, 5x 1GbE
-   Wifi 2.4GHz: Broadcom BCM43222KFBG 802.11b/g/b MIMO 2T2R
-   Wifi 5GHz: Broadcom BCM4360KMLG 802.11ac MIMO 3T3R
-   USB: 2x USB 2.0
-   DSL: Built-in VDSL/ADSL2+ XWAY VRX208
-   LEDs: 8x
-   Buttons: 4x
-   Phone: Lantiq PEF 42068 V XWAY SLIC120

Install instructions:
Detailed instructions can be found on the wiki https://openwrt.org/toh/arcadyan/vrv9510kwac23
1. Boot into UART mode and upload the the https://raw.githubusercontent.com/danielhuici/arcadyan-vrv9510kwac23-utils/main/u-boot.asc file via serial console to boot into U-Boot.
2. Perform a backup of the NAND
3. Setup a TFTP server and serve the https://github.com/danielhuici/arcadyan-vrv9510kwac23-utils/raw/main/u-boot.ltq.lzo.nandspl. Replace the OEM bootloader with this one. Erase your NAND and write the image into it
4. Reboot the router
5. Serve the OpenWrt ramdisk image on your TFTP server and boot it via U-Boot
6. When OpenWrt boots, flash the SquashFS OpenWrt image using LuCi interface, so OpenWrt gets installed into the NAND

Signed-off-by: Daniel Huici <danielhuici@hotmail.com>
2024-02-27 22:27:46 +01:00

75 lines
1.9 KiB
Plaintext

#
# Copyright (C) 2011-2015 OpenWrt.org
#
. /lib/functions/leds.sh
. /lib/functions/uci-defaults.sh
board_config_update
led_wifi="$(get_dt_led wifi)"
[ -n "$led_wifi" ] && ucidef_set_led_wlan "wifi" "wifi" "$led_wifi" "phy0tpt"
led_dsl="$(get_dt_led dsl)"
[ -n "$led_dsl" ] && {
led_internet="$(get_dt_led internet)"
if [ -n "$led_internet" ]; then
ucidef_set_led_default "dsl" "dsl" "$led_dsl" "0"
ucidef_set_led_netdev "internet" "internet" "$led_internet" "pppoe-wan"
else
ucidef_set_led_netdev "dsl" "dsl" "$led_dsl" "dsl0"
fi
}
board=$(board_name)
case "$board" in
arcadyan,arv7519rw22)
ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0.1"
;;
arcadyan,vgv7510kw22-nor|\
arcadyan,vgv7510kw22-brn)
ucidef_set_led_netdev "internet" "internet" "$led_internet" "wan"
;;
arcadyan,vrv9510kwac23)
ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0"
ucidef_set_led_wlan "wifi" "wifi" "green:wlan" "phy1radio"
;;
zyxel,p-2812hnu-f1|\
zyxel,p-2812hnu-f3)
ucidef_set_led_wlan "wifi" "wifi" "green:wlan" "phy0radio"
;;
arcadyan,vgv7519-nor|\
arcadyan,vgv7519-brn)
ucidef_set_led_wlan "wifi" "wifi" "green:wireless" "phy0radio"
;;
avm,fritz3370-rev2-hynix|\
avm,fritz3370-rev2-micron|\
avm,fritz3390|\
avm,fritz3490|\
avm,fritz3490-micron|\
avm,fritz5490|\
avm,fritz5490-micron|\
avm,fritz7490|\
avm,fritz7490-micron)
ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x17"
;;
bt,homehub-v5a)
ucidef_set_led_default "dimmed" "dimmed" "dimmed" "0"
;;
buffalo,wbmr-300hpd)
ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x08"
ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x04"
ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x10"
ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x20"
ucidef_set_led_default "router" "router" "green:router" "1"
;;
netgear,dm200)
ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0"
;;
esac
board_config_flush
exit 0