aboutsummaryrefslogtreecommitdiff
path: root/target/linux/rockchip/armv8/base-files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/rockchip/armv8/base-files/etc')
-rw-r--r--target/linux/rockchip/armv8/base-files/etc/board.d/01_leds5
-rw-r--r--target/linux/rockchip/armv8/base-files/etc/board.d/02_network7
-rw-r--r--target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity5
3 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds b/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
index d82e47cf53..cfab545849 100644
--- a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
+++ b/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
@@ -16,6 +16,11 @@ 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-r5s)
+ ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
+ ucidef_set_led_netdev "lan1" "LAN1" "green:lan1" "eth1"
+ ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth2"
+ ;;
esac
board_config_flush
diff --git a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
index 7ac5148275..838a107193 100644
--- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
+++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
@@ -14,6 +14,9 @@ rockchip_setup_interfaces()
xunlong,orangepi-r1-plus-lts)
ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
;;
+ friendlyarm,nanopi-r5s)
+ ucidef_set_interfaces_lan_wan 'eth1 eth2' 'eth0'
+ ;;
*)
ucidef_set_interface_lan 'eth0'
;;
@@ -58,6 +61,10 @@ rockchip_setup_macs()
wan_mac=$(nanopi_r4s_get_mac wan)
lan_mac=$(nanopi_r4s_get_mac lan)
;;
+ friendlyarm,nanopi-r5s)
+ wan_mac=$(macaddr_generate_from_mmc_cid mmcblk1)
+ lan_mac=$(macaddr_add "$wan_mac" 1)
+ ;;
xunlong,orangepi-r1-plus|\
xunlong,orangepi-r1-plus-lts)
wan_mac=$(macaddr_add "$(cat /sys/class/net/eth1/address)" -1)
diff --git a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity b/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
index bb119b9185..161059a87b 100644
--- a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
+++ b/target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
@@ -40,5 +40,10 @@ friendlyarm,nanopi-r4s)
set_interface_core 10 "eth0"
set_interface_core 20 "eth1"
;;
+friendlyarm,nanopi-r5s)
+ set_interface_core 2 "eth0"
+ set_interface_core 4 "eth1"
+ set_interface_core 8 "eth2"
+ ;;
esac