|
@@ -0,0 +1,73 @@
|
|
|
+--- a/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
|
|
|
++++ b/target/linux/rockchip/armv8/base-files/etc/board.d/01_leds
|
|
|
+@@ -14,6 +14,7 @@ friendlyarm,nanopi-r2s)
|
|
|
+ ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
|
|
|
+ ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth1"
|
|
|
+ ;;
|
|
|
++friendlyarm,nanopi-r3s|\
|
|
|
+ friendlyarm,nanopi-r4s|\
|
|
|
+ friendlyarm,nanopi-r4se|\
|
|
|
+ sharevdi,guangmiao-g4c|\
|
|
|
+
|
|
|
+--- a/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
|
|
|
++++ b/target/linux/rockchip/armv8/base-files/etc/board.d/02_network
|
|
|
+@@ -15,6 +15,7 @@ rockchip_setup_interfaces()
|
|
|
+ ezpro,mrkaio-m68s-plus|\
|
|
|
+ friendlyarm,nanopi-r2c|\
|
|
|
+ friendlyarm,nanopi-r2s|\
|
|
|
++ friendlyarm,nanopi-r3s|\
|
|
|
+ friendlyarm,nanopi-r4s|\
|
|
|
+ friendlyarm,nanopi-r4se|\
|
|
|
+ hinlink,opc-h66k|\
|
|
|
+
|
|
|
+--- 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
|
|
|
+@@ -49,6 +49,12 @@ xunlong,orangepi-r1-plus-lts)
|
|
|
+ set_interface_core 2 "eth0"
|
|
|
+ set_interface_core 4 "eth1" "xhci-hcd:usb3"
|
|
|
+ ;;
|
|
|
++friendlyelec,nanopi-r3s)
|
|
|
++ set_interface_core 4 "eth0"
|
|
|
++ echo b > /sys/class/net/eth0/queues/rx-0/rps_cpus
|
|
|
++ set_interface_core 2 "eth1"
|
|
|
++ echo d > /sys/class/net/eth1/queues/rx-0/rps_cpus
|
|
|
++ ;;
|
|
|
+ friendlyarm,nanopi-r4s|\
|
|
|
+ friendlyarm,nanopi-r4se|\
|
|
|
+ sharevdi,guangmiao-g4c)
|
|
|
+
|
|
|
+--- a/target/linux/rockchip/image/armv8.mk
|
|
|
++++ b/target/linux/rockchip/image/armv8.mk
|
|
|
+@@ -143,6 +143,13 @@ define Device/friendlyarm_nanopi-r2s
|
|
|
+ endef
|
|
|
+ TARGET_DEVICES += friendlyarm_nanopi-r2s
|
|
|
+
|
|
|
++define Device/friendlyarm_nanopi-r3s
|
|
|
++ DEVICE_VENDOR := FriendlyARM
|
|
|
++ DEVICE_MODEL := NanoPi R3S
|
|
|
++ DEVICE_PACKAGES := -luci-app-gpsysupgrade
|
|
|
++endef
|
|
|
++TARGET_DEVICES += friendlyarm_nanopi-r3s
|
|
|
++
|
|
|
+ define Device/friendlyarm_nanopi-r4s
|
|
|
+ DEVICE_VENDOR := FriendlyARM
|
|
|
+ DEVICE_MODEL := NanoPi R4S
|
|
|
+
|
|
|
+--- a/target/linux/rockchip/image/Makefile
|
|
|
++++ b/target/linux/rockchip/image/Makefile
|
|
|
+@@ -79,4 +79,15 @@ endif
|
|
|
+
|
|
|
+ include $(SUBTARGET).mk
|
|
|
+
|
|
|
++define Image/Build
|
|
|
++ if [[ "$(PROFILE_SANITIZED)" == "friendlyarm_nanopc-r3s" ]]; then \
|
|
|
++ export IMG_PREFIX="$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))"; \
|
|
|
++ export BIN_DIR=$(BIN_DIR); \
|
|
|
++ export TOPDIR=$(TOPDIR); \
|
|
|
++ export MORE=$(MORE); \
|
|
|
++ cd /data/packit/friendlywrt23-rk3566; \
|
|
|
++ . ~/packit/packit_nanopi.sh; \
|
|
|
++ fi
|
|
|
++endef
|
|
|
++
|
|
|
+ $(eval $(call BuildImage))
|