From: FUKAUMI Naoki Date: Wed, 3 Sep 2025 02:02:46 +0000 (+0000) Subject: rockchip: add support for Radxa ROCK 5C/5C Lite X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=071aa994cdd1f716f2f9e0f2e2728823c5c9b753;p=openwrt%2Fopenwrt.git rockchip: add support for Radxa ROCK 5C/5C Lite The Radxa ROCK 5C (Lite) is a single board computer using the Rockchip RK3588S2 (RK3582) SoC. - https://radxa.com/products/rock5/5c Hardware -------- - Quad (Dual) Cortex-A76 and Quad Cortex-A55 CPU - Mali-G610 MP4 GPU (5C only) - 6 (5) TOPS NPU - 1/2/4/8/16/32GB LPDDR4X RAM - eMMC/SPI NOR flash connector - microSD card slot - Wi-Fi 6 (AIC8800D80, not yet supported) - Gigabit Ethernet port with PoE (additional PoE HAT required) - USB 3.1 Gen1 Type-A HOST/OTG port - USB 3.1 Gen1 Type-A HOST port - 2x USB 2.0 Type-A HOST ports - FPC connector with PCIe 2.1 x1 - PWM fan connector - 20x2 pin header - USB Type-C power port Installation ------------ Uncompress the OpenWrt sysupgrade and write it to a micro SD card or eMMC using dd. Signed-off-by: FUKAUMI Naoki Link: https://github.com/openwrt/openwrt/pull/19867 Signed-off-by: Hauke Mehrtens --- diff --git a/package/boot/uboot-rockchip/Makefile b/package/boot/uboot-rockchip/Makefile index 174847f324..34809be785 100644 --- a/package/boot/uboot-rockchip/Makefile +++ b/package/boot/uboot-rockchip/Makefile @@ -330,6 +330,13 @@ define U-Boot/rock5a-rk3588s radxa_rock-5a endef +define U-Boot/rock-5c-rk3588s + $(U-Boot/rk358x/Default) + NAME:=ROCK 5C/5C Lite + BUILD_DEVICES:= \ + radxa_rock-5c +endef + UBOOT_TARGETS := \ nanopc-t4-rk3399 \ nanopi-r4s-rk3399 \ @@ -364,7 +371,8 @@ UBOOT_TARGETS := \ sige7-rk3588 \ nanopi-r6c-rk3588s \ nanopi-r6s-rk3588s \ - rock5a-rk3588s + rock5a-rk3588s \ + rock-5c-rk3588s UBOOT_CONFIGURE_VARS += USE_PRIVATE_LIBGCC=yes 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 e8650f8d99..a70d2f2323 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 @@ -65,7 +65,8 @@ friendlyarm,nanopi-r6s) set_interface_core 20 "eth1" set_interface_core 40 "eth2" ;; -radxa,rock-5a) +radxa,rock-5a|\ +radxa,rock-5c) set_interface_core 10 "eth1" set_interface_core 20 "eth2" ;; diff --git a/target/linux/rockchip/image/armv8.mk b/target/linux/rockchip/image/armv8.mk index 0d1c646da7..94b8cbfac0 100644 --- a/target/linux/rockchip/image/armv8.mk +++ b/target/linux/rockchip/image/armv8.mk @@ -234,6 +234,14 @@ define Device/radxa_rock-5b-plus endef TARGET_DEVICES += radxa_rock-5b-plus +define Device/radxa_rock-5c + DEVICE_VENDOR := Radxa + DEVICE_MODEL := ROCK 5C/5C Lite + SOC := rk3588s + DEVICE_PACKAGES := blkdiscard block-mount kmod-ata-ahci kmod-hwmon-pwmfan kmod-nvme kmod-r8169 +endef +TARGET_DEVICES += radxa_rock-5c + define Device/radxa_rock-5t DEVICE_VENDOR := Radxa DEVICE_MODEL := ROCK 5T