From 655ba387b10ede0f9412febcdaa8a3d99cb2099a Mon Sep 17 00:00:00 2001 From: Stephen Chen Date: Wed, 13 Dec 2023 15:38:04 +0800 Subject: [PATCH] rock-5a: add The Radxa ROCK 5 Model A is an SBC in roughly a RaspberryPi-ish form factor packed with a wide range of class-leading functionality, features and expansion options. The ROCK 5A board comes in several LPDDR4x RAM memory options: 4GB, 8GB, 16GB, and 32GB. It uses the Rockchip RK3588S SoC (quad A76 @ 2.2GHz + quad A55 @ 1.8GHz, Mali G610mp4 GPU), has both 8k and 4k HDMI, Gb ethernet with PoE support, USB2/3, M.2 E Key (NVMe or SATA), a 40-pin RaspberryPi-ish 3V3 GPIO header, USB Type-C power, MIPI DSI/CSI, SDcard slot, optional eMMC, and more. https://wiki.radxa.com/Rock5/5b https://radxa.com/products/rock5/5a/ [ with the following tweaks by Trevor: - switch to information URL to one that points to information in english - improved the commit message - add rock-5a to README ] Signed-off-by: Stephen Chen Signed-off-by: Trevor Woerner --- README | 1 + conf/machine/rock-5a.conf | 12 ++++++++++++ recipes-kernel/linux/linux-yocto-dev.bbappend | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 conf/machine/rock-5a.conf diff --git a/README b/README index e5beaa0..12060cf 100644 --- a/README +++ b/README @@ -34,6 +34,7 @@ Status of supported boards: nanopi-r2s nanopi-m4b rock-pi-s + rock-5a builds: marsboard-rk3066 radxarock diff --git a/conf/machine/rock-5a.conf b/conf/machine/rock-5a.conf new file mode 100644 index 0000000..5ace4da --- /dev/null +++ b/conf/machine/rock-5a.conf @@ -0,0 +1,12 @@ +#@TYPE: Machine +#@NAME: Radxa Rock 5A +#@DESCRIPTION: ROCK5 is the 5th generation of SBC designed by Radxa. +#https://docs.radxa.com/en/rock5/rock5a + +require conf/machine/include/rk3588s.inc + +PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev" +KERNEL_DEVICETREE = "rockchip/rk3588s-rock-5a.dtb" +MACHINE_EXTRA_RRECOMMENDS += "kernel-modules" + +UBOOT_MACHINE = "rock5a-rk3588s_defconfig" diff --git a/recipes-kernel/linux/linux-yocto-dev.bbappend b/recipes-kernel/linux/linux-yocto-dev.bbappend index 419ebc1..e4b3106 100644 --- a/recipes-kernel/linux/linux-yocto-dev.bbappend +++ b/recipes-kernel/linux/linux-yocto-dev.bbappend @@ -1,3 +1,5 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +COMPATIBLE_MACHINE:rock-5a = "rock-5a" COMPATIBLE_MACHINE:rock-5b = "rock-5b" +SRC_URI:append:rock-5a = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta" SRC_URI:append:rock-5b = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"