mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-25 22:46:15 +00:00
2902b0a6fb
This commit adds support for the FriendlyElec NanoPi R3S. CPU: Rockchip RK3566, Quad-core Cortex-A55 RAM: 2GB LPDDR4X Ethernet: GMAC RTL8211F GbE, PCIe R8111H GbE USB3.0 Host: Type-A x1 Storage: MicroSD Slot x 1, and optional on-board 32GB eMMC Debug Serial Port: 3.3V TTL, 3-pin 2.54mm pitch connector, 1500000 bauds LED: LED x 3 RTC: One low-power RTC, supports backup battery input Both GbE controllers are working (WAN eth0, LAN eth1). Appropriate LAN/WAN interface assignments and MAC address generation. All three LEDs are working. USB appears to be working and has been tested with mass storage. Installation - microSD: -Uncompress the OpenWRT sysupgrade.img.gz -Write image to microSD card using dd or similar tool Installation - eMMC: -Boot from microSD -Uncompress the OpenWRT sysupgrade.img.gz -Flash to eMMC : dd if=x.img of=/dev/mmcblk0 -sync -Remove microSD card -Reboot Signed-off-by: Kevin Zhang <kevin@kevinzhang.me> Link: https://github.com/openwrt/openwrt/pull/16738 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
|
|
. /lib/functions/leds.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board=$(board_name)
|
|
boardname="${board##*,}"
|
|
|
|
board_config_update
|
|
|
|
case $board in
|
|
friendlyarm,nanopi-r2c|\
|
|
friendlyarm,nanopi-r2c-plus|\
|
|
friendlyarm,nanopi-r2s|\
|
|
friendlyarm,nanopi-r3s|\
|
|
friendlyarm,nanopi-r4s|\
|
|
friendlyarm,nanopi-r4s-enterprise|\
|
|
friendlyarm,nanopi-r6c|\
|
|
xunlong,orangepi-r1-plus|\
|
|
xunlong,orangepi-r1-plus-lts)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
|
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
|
|
;;
|
|
friendlyarm,nanopi-r5c)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
|
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
|
|
ucidef_set_led_netdev "wlan" "WLAN" "green:wlan" "phy0-ap0"
|
|
;;
|
|
friendlyarm,nanopi-r5s)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
|
|
ucidef_set_led_netdev "lan1" "LAN1" "green:lan-1" "eth1"
|
|
ucidef_set_led_netdev "lan2" "LAN2" "green:lan-2" "eth2"
|
|
;;
|
|
friendlyarm,nanopi-r6s)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
|
|
ucidef_set_led_netdev "lan1" "LAN1" "green:lan-1" "eth2"
|
|
ucidef_set_led_netdev "lan2" "LAN2" "green:lan-2" "eth0"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|