Skip to contentSkip to conversation

rauc-conf: adjust PACKAGE_ARCH only when using the demo

PATCH Applied Trevor Woerner 2 participants 5 messages May 30, 2025 – Jun 3, 2025 Arm Rockchip

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rauc-conf: adjust PACKAGE_ARCH only when using the demo

Make setting the PACKAGE_ARCH occur only when the user has enabled the rk-rauc-demo feature.

---
 .../rk-rauc-demo/recipes-core/rauc/rauc-conf.bbappend           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
dynamic-layers/rk-rauc-demo/recipes-core/rauc/rauc-conf.bbappend +1 -1
index 9b338e7b76dd..c2a68e6236a9 100644
@@ -1,6 +1,6 @@
 inherit rk-rauc-demo-features-check
 
-PACKAGE_ARCH = "${MACHINE_ARCH}"
+PACKAGE_ARCH:rk-rauc-demo = "${MACHINE_ARCH}"
 
 FILESEXTRAPATHS:prepend:rk-rauc-demo := "${THISDIR}/files:"
 
Signature · 1 line
2.44.0.478.g7774cfed6261
#1 lore raw

PATCH 2/2 remove radxa-zero-3{e|w}

Remove these devices from the scarthgap branch. In the scarthgap era they were only supported using non-upstream forks and branches of the kernel and u-boot, branches that continuously move, change names, and disappear.

Branches after scrathgap have upstream support for these devices and are a better choice.

---
 conf/machine/include/radxa-zero-3.inc   |  8 --------
 conf/machine/include/rk3566.inc         | 23 -----------------------
 conf/machine/radxa-zero-3e.conf         |  7 -------
 conf/machine/radxa-zero-3w.conf         |  7 -------
 recipes-bsp/rkbin/rockchip-rkbin_git.bb | 15 ---------------
 recipes-graphics/mesa/mesa_%.bbappend   |  1 -
 6 files changed, 61 deletions(-)
 delete mode 100644 conf/machine/include/radxa-zero-3.inc
 delete mode 100644 conf/machine/include/rk3566.inc
 delete mode 100644 conf/machine/radxa-zero-3e.conf
 delete mode 100644 conf/machine/radxa-zero-3w.conf
conf/machine/include/radxa-zero-3.inc deleted +0 -8
deleted file mode 100644
index 1c6f972c1e31..000000000000
@@ -1,8 +0,0 @@
-MACHINEOVERRIDES =. "radxa-zero-3:"
-
-require conf/machine/include/rk3566.inc
-
-PREFERRED_PROVIDER_virtual/kernel = "linux-torvalds-next"
-MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
-
-UBOOT_MACHINE = "radxa-zero-3-rk3566_defconfig"
conf/machine/include/rk3566.inc deleted +0 -23
deleted file mode 100644
index 2522851fa392..000000000000
@@ -1,23 +0,0 @@
-SOC_FAMILY = "rk3566"
-
-DEFAULTTUNE ?= "cortexa55"
-
-ROCKCHIP_CLOSED_TPL ?= "1"
-
-require conf/machine/include/soc-family.inc
-require conf/machine/include/rockchip-defaults.inc
-require conf/machine/include/arm/armv8-2a/tune-cortexa55.inc
-require conf/machine/include/rockchip-wic.inc
-
-KBUILD_DEFCONFIG ?= "defconfig"
-KERNEL_FEATURES:append:rk3566 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc"
-KERNEL_CLASSES = "kernel-fitimage"
-KERNEL_IMAGETYPE ?= "fitImage"
-
-PREFERRED_PROVIDER_trusted-firmware-a = "rockchip-rkbin"
-PREFERRED_PROVIDER_optee-os = "rockchip-rkbin"
-
-UBOOT_SUFFIX ?= "itb"
-UBOOT_ENTRYPOINT ?= "0x06000000"
-
-ENABLE_STATELESS_VPU_GST ?= "1"
conf/machine/radxa-zero-3e.conf deleted +0 -7
deleted file mode 100644
index 37792cbf36a5..000000000000
@@ -1,7 +0,0 @@
-#@TYPE: Machine
-#@NAME: Radxa Zero 3E
-#@DESCRIPTION: The Radxa ZERO 3e is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor, and rich interfaces.
-#http://radxa.com/products/zeros/zero3e/
-
-require conf/machine/include/radxa-zero-3.inc
-KERNEL_DEVICETREE = "rockchip/rk3566-radxa-zero-3e.dtb"
conf/machine/radxa-zero-3w.conf deleted +0 -7
deleted file mode 100644
index 5193d45e1f69..000000000000
@@ -1,7 +0,0 @@
-#@TYPE: Machine
-#@NAME: Radxa Zero 3W
-#@DESCRIPTION: The Radxa ZERO 3w is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor, and rich interfaces.
-#http://radxa.com/products/zeros/zero3w/
-
-require conf/machine/include/radxa-zero-3.inc
-KERNEL_DEVICETREE = "rockchip/rk3566-radxa-zero-3w.dtb"
recipes-bsp/rkbin/rockchip-rkbin_git.bb +0 -15
index e555dcdac355..7e0bf813d27a 100644
@@ -16,7 +16,6 @@ S = "${WORKDIR}/git"
 
 COMPATIBLE_MACHINE = "^$"
 COMPATIBLE_MACHINE:rk3308 = "rk3308"
-COMPATIBLE_MACHINE:rk3566 = "rk3566"
 COMPATIBLE_MACHINE:rk3568 = "rk3568"
 COMPATIBLE_MACHINE:rk3588s = "rk3588s"
 
@@ -42,20 +41,6 @@ do_deploy:rk3308() {
 	install -m 644 ${S}/bin/rk33/${DDRBIN_FILE} ${DEPLOYDIR}/ddr-rk3308.bin
 }
 
-DDRBIN_VERS:rk3566 ?= "v1.23"
-DDRBIN_FILE:rk3566 ?= "rk3566_ddr_1056MHz_${DDRBIN_VERS}.bin"
-
-# NOTE: the following are not typos
-#       the rk3566 uses the same bl31/2 as the rk3568
-do_deploy:rk3566() {
-	# Prebuilt TF-A
-	install -m 644 ${S}/bin/rk35/rk3568_bl31_v*.elf ${DEPLOYDIR}/bl31-rk3566.elf
-	# Prebuilt OPTEE-OS
-	install -m 644 ${S}/bin/rk35/rk3568_bl32_v*.bin ${DEPLOYDIR}/tee-rk3566.bin
-	# Prebuilt U-Boot TPL (DDR init)
-	install -m 644 ${S}/bin/rk35/${DDRBIN_FILE} ${DEPLOYDIR}/ddr-rk3566.bin
-}
-
 DDRBIN_VERS:rk3568 ?= "v1.23"
 DDRBIN_FILE:rk3568 ?= "rk3568_ddr_1560MHz_${DDRBIN_VERS}.bin"
 
recipes-graphics/mesa/mesa_%.bbappend +0 -1
index 00cc15c6221c..2d9ec2e676f7 100644
@@ -1,6 +1,5 @@
 PACKAGECONFIG:append:rk3288 = " kmsro panfrost"
 PACKAGECONFIG:append:rk3328 = " kmsro lima"
 PACKAGECONFIG:append:rk3399 = " kmsro panfrost"
-PACKAGECONFIG:append:rk3566 = " kmsro panfrost"
 PACKAGECONFIG:append:rk3568 = " kmsro panfrost"
 PACKAGECONFIG:append:px30 = " kmsro panfrost"
Signature · 1 line
2.44.0.478.g7774cfed6261
#2 lore raw

Re: [yocto-patches] [meta-rockchip][scarthgap][PATCH 2/2] remove radxa-zero-3{e|w}

Hi Trevor,

Quoted 54 lines · Trevor Woerner via lists.yoctoproject.org

Remove these devices from the scarthgap branch. In the scarthgap era they were only supported using non-upstream forks and branches of the kernel and u-boot, branches that continuously move, change names, and disappear.

Branches after scrathgap have upstream support for these devices and are a better choice.

---
  conf/machine/include/radxa-zero-3.inc   |  8 --------
  conf/machine/include/rk3566.inc         | 23 -----------------------
  conf/machine/radxa-zero-3e.conf         |  7 -------
  conf/machine/radxa-zero-3w.conf         |  7 -------
  recipes-bsp/rkbin/rockchip-rkbin_git.bb | 15 ---------------
  recipes-graphics/mesa/mesa_%.bbappend   |  1 -
  6 files changed, 61 deletions(-)

delete mode 100644 conf/machine/include/radxa-zero-3.inc delete mode 100644 conf/machine/include/rk3566.inc delete mode 100644 conf/machine/radxa-zero-3e.conf delete mode 100644 conf/machine/radxa-zero-3w.conf

conf/machine/include/radxa-zero-3.inc deleted +0 -8
deleted file mode 100644
index 1c6f972c1e31..000000000000
@@ -1,8 +0,0 @@
-MACHINEOVERRIDES =. "radxa-zero-3:"
-
-require conf/machine/include/rk3566.inc
-
-PREFERRED_PROVIDER_virtual/kernel = "linux-torvalds-next"
-MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
-
-UBOOT_MACHINE = "radxa-zero-3-rk3566_defconfig"
conf/machine/include/rk3566.inc deleted +0 -13
deleted file mode 100644
index 2522851fa392..000000000000
@@ -1,23 +0,0 @@
-SOC_FAMILY = "rk3566"
-
-DEFAULTTUNE ?= "cortexa55"
-
-ROCKCHIP_CLOSED_TPL ?= "1"
-
-require conf/machine/include/soc-family.inc
-require conf/machine/include/rockchip-defaults.inc
-require conf/machine/include/arm/armv8-2a/tune-cortexa55.inc
-require conf/machine/include/rockchip-wic.inc
-
-KBUILD_DEFCONFIG ?= "defconfig"
-KERNEL_FEATURES:append:rk3566 = " bsp/rockchip/remove-non-rockchip-arch-arm64.scc"

conf/machine/include/rk3566.inc line 23

Quoted 10 lines
conf/machine/include/rk3566.inc deleted +0 -10
-KERNEL_CLASSES = "kernel-fitimage"
-KERNEL_IMAGETYPE ?= "fitImage"
-
-PREFERRED_PROVIDER_trusted-firmware-a = "rockchip-rkbin"
-PREFERRED_PROVIDER_optee-os = "rockchip-rkbin"
-
-UBOOT_SUFFIX ?= "itb"
-UBOOT_ENTRYPOINT ?= "0x06000000"
-
-ENABLE_STATELESS_VPU_GST ?= "1"

Not sure this is wise, people could have their own RK3566-based device with their own U-Boot, kernel, etc... recipes. I think we could just remove the machines, but keep the include file for the SoC?

You could remove the KERNEL_FEATURES if you really wanted to I guess?

Quoted 64 lines
conf/machine/radxa-zero-3e.conf deleted +0 -7
deleted file mode 100644
index 37792cbf36a5..000000000000
@@ -1,7 +0,0 @@
-#@TYPE: Machine
-#@NAME: Radxa Zero 3E
-#@DESCRIPTION: The Radxa ZERO 3e is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor, and rich interfaces.
-#http://radxa.com/products/zeros/zero3e/
-
-require conf/machine/include/radxa-zero-3.inc
-KERNEL_DEVICETREE = "rockchip/rk3566-radxa-zero-3e.dtb"
conf/machine/radxa-zero-3w.conf deleted +0 -7
deleted file mode 100644
index 5193d45e1f69..000000000000
@@ -1,7 +0,0 @@
-#@TYPE: Machine
-#@NAME: Radxa Zero 3W
-#@DESCRIPTION: The Radxa ZERO 3w is an ultra-small, high-performance single board computer based on the Rockchip RK3566, with a compact form factor, and rich interfaces.
-#http://radxa.com/products/zeros/zero3w/
-
-require conf/machine/include/radxa-zero-3.inc
-KERNEL_DEVICETREE = "rockchip/rk3566-radxa-zero-3w.dtb"
recipes-bsp/rkbin/rockchip-rkbin_git.bb +0 -15
index e555dcdac355..7e0bf813d27a 100644
@@ -16,7 +16,6 @@ S = "${WORKDIR}/git"
 
  COMPATIBLE_MACHINE = "^$"
  COMPATIBLE_MACHINE:rk3308 = "rk3308"
-COMPATIBLE_MACHINE:rk3566 = "rk3566"
  COMPATIBLE_MACHINE:rk3568 = "rk3568"
  COMPATIBLE_MACHINE:rk3588s = "rk3588s"
 
@@ -42,20 +41,6 @@ do_deploy:rk3308() {
  	install -m 644 ${S}/bin/rk33/${DDRBIN_FILE} ${DEPLOYDIR}/ddr-rk3308.bin
  }
 
-DDRBIN_VERS:rk3566 ?= "v1.23"
-DDRBIN_FILE:rk3566 ?= "rk3566_ddr_1056MHz_${DDRBIN_VERS}.bin"
-
-# NOTE: the following are not typos
-#       the rk3566 uses the same bl31/2 as the rk3568
-do_deploy:rk3566() {
-	# Prebuilt TF-A
-	install -m 644 ${S}/bin/rk35/rk3568_bl31_v*.elf ${DEPLOYDIR}/bl31-rk3566.elf
-	# Prebuilt OPTEE-OS
-	install -m 644 ${S}/bin/rk35/rk3568_bl32_v*.bin ${DEPLOYDIR}/tee-rk3566.bin
-	# Prebuilt U-Boot TPL (DDR init)
-	install -m 644 ${S}/bin/rk35/${DDRBIN_FILE} ${DEPLOYDIR}/ddr-rk3566.bin
-}
-
  DDRBIN_VERS:rk3568 ?= "v1.23"
  DDRBIN_FILE:rk3568 ?= "rk3568_ddr_1560MHz_${DDRBIN_VERS}.bin"
 
recipes-graphics/mesa/mesa_%.bbappend +0 -0
index 00cc15c6221c..2d9ec2e676f7 100644

recipes-graphics/mesa/mesa_%.bbappend line 5

Quoted 6 lines
recipes-graphics/mesa/mesa_%.bbappend +0 -1
@@ -1,6 +1,5 @@
  PACKAGECONFIG:append:rk3288 = " kmsro panfrost"
  PACKAGECONFIG:append:rk3328 = " kmsro lima"
  PACKAGECONFIG:append:rk3399 = " kmsro panfrost"
-PACKAGECONFIG:append:rk3566 = " kmsro panfrost"
  PACKAGECONFIG:append:rk3568 = " kmsro panfrost"
  PACKAGECONFIG:append:px30 = " kmsro panfrost"

I wouldn't do the changes to the recipes, especially since we support rk3568 still, which really is kind of the same trick with rk3566 as between rk3588s and rk3588, mostly the same except some additional IPs (e.g. PCIe, additional Ethernet controller, SATA controller, CAN controller and ECC memory support).

But the removal of the zero-3* machines, I'm all for it :)

Cheers,
Quentin

author Applied
#4 lore raw
In reply to Trevor Woerner
Quoted 7 lines · Trevor Woerner

Make setting the PACKAGE_ARCH occur only when the user has enabled the rk-rauc-demo feature.

---
 .../rk-rauc-demo/recipes-core/rauc/rauc-conf.bbappend           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to meta-rockchip; branches: master, walnascar, and scarthgap

NOTE: for walnascar the previous commit for this tweak didn't exist, so for
that branch this patch is slightly different