[openwrt/openwrt] rockchip: add Lunzn FastRhino R66S support
LEDE Commits
lede-commits at lists.infradead.org
Thu Sep 11 13:18:30 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/d76a77427017ee6356d3d0f9be61927c03748a09
commit d76a77427017ee6356d3d0f9be61927c03748a09
Author: Tianling Shen <cnsztl at immortalwrt.org>
AuthorDate: Mon Sep 8 21:54:55 2025 +0800
rockchip: add Lunzn FastRhino R66S support
Hardware
--------
RockChip RK3568 ARM64 (4 cores)
1/2GB LPDDR4 RAM
2x 2500 Base-T (PCIe, r8125b)
1 LED (Power)
1 Button (Reset)
Micro-SD Slot
2x USB 3.0 Port
12V DC Jack
Installation
------------
Uncompress the OpenWrt sysupgrade and write it to a micro SD card using
dd.
Tested-by: Francisco G Luna <frangonlun at gmail.com>
Signed-off-by: Tianling Shen <cnsztl at immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/19990
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../armv8/base-files/etc/board.d/02_network | 4 +++-
.../etc/hotplug.d/net/40-net-smp-affinity | 1 +
target/linux/rockchip/image/armv8.mk | 8 ++++++++
...ip-Update-LED-properties-for-Lunzn-Fastrh.patch | 24 ++++++++++++++++++++++
4 files changed, 36 insertions(+), 1 deletion(-)
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 971dea679c..e9ec50e4d1 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
@@ -23,6 +23,7 @@ rockchip_setup_interfaces()
;;
friendlyarm,nanopc-t6|\
friendlyarm,nanopi-r5c|\
+ lunzn,fastrhino-r66s|\
radxa,e25|\
radxa,rock-3b|\
radxa,rock-5-itx|\
@@ -55,7 +56,8 @@ rockchip_setup_macs()
armsom,sige7|\
friendlyarm,nanopc-t6|\
friendlyarm,nanopi-r2c|\
- friendlyarm,nanopi-r2s)
+ friendlyarm,nanopi-r2s|\
+ lunzn,fastrhino-r66s)
wan_mac=$(macaddr_generate_from_mmc_cid mmcblk0)
lan_mac=$(macaddr_add "$wan_mac" 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 2c9be8c2bf..3d6367a5b0 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
@@ -32,6 +32,7 @@ case "$(board_name)" in
armsom,sige7|\
friendlyarm,nanopi-r3s|\
friendlyarm,nanopi-r5c|\
+lunzn,fastrhino-r66s|\
radxa,e25|\
sinovoip,rk3568-bpi-r2pro)
set_interface_core 2 "eth0"
diff --git a/target/linux/rockchip/image/armv8.mk b/target/linux/rockchip/image/armv8.mk
index eb21c3a08b..53881b97ac 100644
--- a/target/linux/rockchip/image/armv8.mk
+++ b/target/linux/rockchip/image/armv8.mk
@@ -124,6 +124,14 @@ define Device/friendlyarm_nanopi-r6s
endef
TARGET_DEVICES += friendlyarm_nanopi-r6s
+define Device/lunzn_fastrhino-r66s
+ DEVICE_VENDOR := Lunzn
+ DEVICE_MODEL := FastRhino R66S
+ SOC := rk3568
+ DEVICE_PACKAGES := kmod-r8169
+endef
+TARGET_DEVICES += lunzn_fastrhino-r66s
+
define Device/pine64_rock64
DEVICE_VENDOR := Pine64
DEVICE_MODEL := Rock64
diff --git a/target/linux/rockchip/patches-6.12/133-arm64-dts-rockchip-Update-LED-properties-for-Lunzn-Fastrh.patch b/target/linux/rockchip/patches-6.12/133-arm64-dts-rockchip-Update-LED-properties-for-Lunzn-Fastrh.patch
new file mode 100644
index 0000000000..dfc850d629
--- /dev/null
+++ b/target/linux/rockchip/patches-6.12/133-arm64-dts-rockchip-Update-LED-properties-for-Lunzn-Fastrh.patch
@@ -0,0 +1,24 @@
+--- a/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi
++++ b/arch/arm64/boot/dts/rockchip/rk3568-fastrhino-r66s.dtsi
+@@ -9,6 +9,13 @@
+ #include "rk3568.dtsi"
+
+ / {
++ aliases {
++ led-boot = &status_led;
++ led-failsafe = &status_led;
++ led-running = &status_led;
++ led-upgrade = &status_led;
++ };
++
+ chosen: chosen {
+ stdout-path = "serial2:1500000n8";
+ };
+@@ -35,7 +42,6 @@
+ color = <LED_COLOR_ID_BLUE>;
+ function = LED_FUNCTION_STATUS;
+ gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
+- linux,default-trigger = "heartbeat";
+ };
+ };
+
More information about the lede-commits
mailing list