mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

Hardware -------- SOC: MediaTek MT7988A (4x Cortex-A73) RAM: 4 GiB DDR4 Flash: 128 MiB Winbond SPI-NAND MMC: 8 GiB eMMC *or* microSD (cannot be used both) ETH: 4x 1GE (1x WAN, 3x LAN) 2x SFP+ (10G, 5G, 2.5G, 1G) USB: on-board USB 3.2 4-port hub 1x USB 3.2 port (type A connector) 1x M.2 for 4G/5G modem 2x mPCIe for additional modems WiFi: optional MediaTek MT7996 Wi-Fi 7 module (using 2x PCIe gen3 x2 on the mPCIe slots and 12V power) Installation ------------ 1. Decompress and write the sdcard image to a micro SD card and use that to boot the R4 (both dip switches in upper position). 2. Use the bootloader menu accessible via the serial console to install to SPI-NAND. 3. Switch to boot from SPI-NAND and install to eMMC. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
. /lib/functions/leds.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board=$(board_name)
|
|
|
|
board_config_update
|
|
|
|
case $board in
|
|
abt,asr3000)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
|
|
;;
|
|
bananapi,bpi-r4|\
|
|
bananapi,bpi-r4-poe)
|
|
ucidef_set_led_netdev "wan" "wan" "mt7530-0:00:green:lan" "wan" "link tx rx"
|
|
ucidef_set_led_netdev "lan1" "lan1" "mt7530-0:01:green:lan" "lan1" "link tx rx"
|
|
ucidef_set_led_netdev "lan2" "lan2" "mt7530-0:02:green:lan" "lan2" "link tx rx"
|
|
ucidef_set_led_netdev "lan3" "lan3" "mt7530-0:03:green:lan" "lan3" "link tx rx"
|
|
;;
|
|
hf,m7986r1*)
|
|
ucidef_set_led_netdev "led-1" "LAN1" "led-1" "lan1"
|
|
ucidef_set_led_netdev "led-2" "LAN2" "led-2" "lan2"
|
|
ucidef_set_led_netdev "led-3" "LAN3" "led-3" "lan3"
|
|
ucidef_set_led_netdev "led-4" "LAN4" "led-4" "lan4"
|
|
ucidef_set_led_netdev "led-5" "WWAN" "led-5" "usb0"
|
|
;;
|
|
imou,lc-hx3001|\
|
|
nokia,ea0326gmp)
|
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "br-lan"
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
|
|
;;
|
|
xiaomi,mi-router-wr30u)
|
|
ucidef_set_led_netdev "wan" "wan" "blue:internet" "wan"
|
|
;;
|
|
xiaomi,redmi-router-ax6000)
|
|
ucidef_set_led_netdev "wan" "wan" "rgb:network" "wan"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|