]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
rockchip: add Lunzn FastRhino R66S support 19990/head
authorTianling Shen <cnsztl@immortalwrt.org>
Mon, 8 Sep 2025 13:54:55 +0000 (21:54 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 11 Sep 2025 20:17:43 +0000 (22:17 +0200)
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@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/19990
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/rockchip/armv8/base-files/etc/board.d/02_network
target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity
target/linux/rockchip/image/armv8.mk
target/linux/rockchip/patches-6.12/133-arm64-dts-rockchip-Update-LED-properties-for-Lunzn-Fastrh.patch [new file with mode: 0644]

index 971dea679c34eecde3937cbe42416509ae36f4ff..e9ec50e4d1e7b4121ed2a2017969428c9053c43b 100644 (file)
@@ -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)
                ;;
index 2c9be8c2bfdb70aeb414e365780caadeb6c2ff7f..3d6367a5b038dcbf4a617e9627fe0b0f713c9198 100644 (file)
@@ -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"
index eb21c3a08b404037e296144871d9cdbc4ddaa130..53881b97ac3b6e9a8f0d8fa4f1153883e5aa8e87 100644 (file)
@@ -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 (file)
index 0000000..dfc850d
--- /dev/null
@@ -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";
+               };
+       };