Skip to contentSkip to conversation

u-boot: switch to upstream SRCREV for rk-u-boot-env

PATCH Applied Trevor Woerner 2 participants 13 messages Dec 12, 2024 – Dec 16, 2024 1 message not in the archive

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 u-boot: switch to upstream SRCREV for rk-u-boot-env

When the rk-u-boot-env feature was implemented, in order for it to work the build needed a version of U-Boot that was slightly newer than 2024.04 (the current release supported by Yocto at that time). Now that 2024.10 is out, remove the SRCREV pin since the necessary code is now part of this release.

---
 recipes-bsp/u-boot/u-boot_%.bbappend | 1 -
 1 file changed, 1 deletion(-)
recipes-bsp/u-boot/u-boot_%.bbappend +0 -1
index de7024545841..06ba6d54de8e 100644
@@ -7,7 +7,6 @@ SRCREV:radxa-zero-3 = "8cdf606e616baa36751f3b4adcfaefc781126c8c"
 SRCREV:radxa-zero-3:rk-u-boot-env = "8cdf606e616baa36751f3b4adcfaefc781126c8c"
 
 SRC_URI:append:rk-u-boot-env = " file://rockchip-enable-environment-mmc.cfg"
-SRCREV:rk-u-boot-env = "cdfcc37428e06f4730ab9a17cc084eeb7676ea1a"
 
 DEPENDS:append:rk3308 = " u-boot-tools-native"
 DEPENDS:append:rock-pi-4 = " gnutls-native"
Signature · 1 line
2.44.0.478.g7774cfed6261
#1 lore raw

PATCH 2/3 u-boot: use upstream for radxa-zero-3{e|w}

Upstream U-Boot 2024.10 (the latest release supported by Yocto) has support for radxa-zero-3{e|w}. Therefore switch away from the fork where the initial U-Boot development for this board had been added.

---
 recipes-bsp/u-boot/u-boot_%.bbappend | 4 ----
 1 file changed, 4 deletions(-)
recipes-bsp/u-boot/u-boot_%.bbappend +0 -4
index 06ba6d54de8e..08e1730b5d3d 100644
@@ -2,10 +2,6 @@ require u-boot-rockchip.inc
 
 FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
 
-SRC_URI:radxa-zero-3 = "git://github.com/Kwiboo/u-boot-rockchip.git;protocol=https;branch=rk3xxx-2024.07;name=Kwiboo"
-SRCREV:radxa-zero-3 = "8cdf606e616baa36751f3b4adcfaefc781126c8c"
-SRCREV:radxa-zero-3:rk-u-boot-env = "8cdf606e616baa36751f3b4adcfaefc781126c8c"
-
 SRC_URI:append:rk-u-boot-env = " file://rockchip-enable-environment-mmc.cfg"
 
 DEPENDS:append:rk3308 = " u-boot-tools-native"
Signature · 1 line
2.44.0.478.g7774cfed6261
#8 lore raw

PATCH 3/3 radxa-zero-3: switch to yocto-dev kernel

In reply to Trevor Woerner

The radxa-zero-3{e|w} devices are not supported in the current yocto kernel, but they are supported in the yocto-dev kernel. Switch to yocto-dev until support is available in the yocto kernel.

---
 conf/machine/include/radxa-zero-3.inc         |  2 +-
 ...xt_%.bbappend => linux-yocto-dev.bbappend} |  0
 .../linux/linux-torvalds-next_git.bb          | 25 -------------------
 recipes-kernel/linux/linux-yocto-dev.bbappend |  2 ++
 4 files changed, 3 insertions(+), 26 deletions(-)
 rename dynamic-layers/rk-rauc-demo/recipes-kernel/linux/{linux-torvalds-next_%.bbappend => linux-yocto-dev.bbappend} (100%)
 delete mode 100644 recipes-kernel/linux/linux-torvalds-next_git.bb
conf/machine/include/radxa-zero-3.inc +1 -1
index 1c6f972c1e31..b351afae8c0f 100644
@@ -2,7 +2,7 @@ MACHINEOVERRIDES =. "radxa-zero-3:"
 
 require conf/machine/include/rk3566.inc
 
-PREFERRED_PROVIDER_virtual/kernel = "linux-torvalds-next"
+PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev"
 MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
 
 UBOOT_MACHINE = "radxa-zero-3-rk3566_defconfig"
dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-yocto-dev.bbappend renamed from dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend +0 -0
similarity index 100%
rename from dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend
rename to dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-yocto-dev.bbappend
recipes-kernel/linux/linux-torvalds-next_git.bb deleted +0 -25
deleted file mode 100644
index b961b1408f09..000000000000
@@ -1,25 +0,0 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/linux-yocto-dev:"
-
-DESCRIPTION = "Linux Kernel"
-SECTION = "kernel"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
-
-ERROR_QA:remove = "buildpaths"
-DEFAULT_PREFERENCE = "-1"
-COMPATIBLE_MACHINE = "^$"
-COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3"
-
-LINUX_VERSION = "6.11-rc6"
-KERNEL_VERSION_SANITY_SKIP = "1"
-PV = "${LINUX_VERSION}+git${SRCPV}"
-SRC_URI = " \
-	git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git;protocol=https;nobranch=1 \
-	file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta \
-	"
-# this is tag 'next-20240904'
-SRCREV = "fdadd93817f124fd0ea6ef251d4a1068b7feceba"
-
-inherit kernel
-inherit kernel-yocto
-require recipes-kernel/linux/linux-yocto.inc
recipes-kernel/linux/linux-yocto-dev.bbappend +2 -0
index b6a63d7b7b29..f738d1357d6c 100644
@@ -1,5 +1,7 @@
 FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
 
 COMPATIBLE_MACHINE:orangepi-5-plus = "orangepi-5-plus"
+COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3"
 
 SRC_URI:append:orangepi-5-plus = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
+SRC_URI:append:radxa-zero-3 = " file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
Signature · 1 line
2.44.0.478.g7774cfed6261
#2 lore raw

Re: [PATCH 2/3] u-boot: use upstream for radxa-zero-3{e|w}

In reply to Trevor Woerner

Hi Trevor,

Quoted 15 lines · Trevor Woerner

Upstream U-Boot 2024.10 (the latest release supported by Yocto) has support for radxa-zero-3{e|w}. Therefore switch away from the fork where the initial U-Boot development for this board had been added.

---
  recipes-bsp/u-boot/u-boot_%.bbappend | 4 ----
  1 file changed, 4 deletions(-)
recipes-bsp/u-boot/u-boot_%.bbappend +0 -0
index 06ba6d54de8e..08e1730b5d3d 100644

recipes-bsp/u-boot/u-boot_%.bbappend require u-boot-rockchip.inc · line 7

Quoted 10 lines
recipes-bsp/u-boot/u-boot_%.bbappend +0 -4
@@ -2,10 +2,6 @@ require u-boot-rockchip.inc
 
  FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
 
-SRC_URI:radxa-zero-3 = "git://github.com/Kwiboo/u-boot-rockchip.git;protocol=https;branch=rk3xxx-2024.07;name=Kwiboo"
-SRCREV:radxa-zero-3 = "8cdf606e616baa36751f3b4adcfaefc781126c8c"
-SRCREV:radxa-zero-3:rk-u-boot-env = "8cdf606e616baa36751f3b4adcfaefc781126c8c"
-
  SRC_URI:append:rk-u-boot-env = " file://rockchip-enable-environment-mmc.cfg"
 
  DEPENDS:append:rk3308 = " u-boot-tools-native"

I have a compilation issue after applying of this patch series:

    | scripts/kconfig/conf --defconfig=arch/../configs/radxa-zero-3-rk3566_defconfig Kconfig
    | ***
    | *** Can't find default configuration "arch/../configs/radxa-zero-3-rk3566_defconfig"!
    | ***
    | make[2]: *** [/home/ok/Projects/yocto/build/tmp/work/radxa_zero_3e-poky-linux/u-boot/2024.01/git/scripts/kconfig/Makefile:96: radxa-zero-3-rk3566_defconfig] Error 1

And it seems like there is not defconfig for radxa-zero-3 at all:

ok@fedora:~/Projects/yocto/build/tmp/work/radxa_zero_3e-poky-linux/u-boot/2024.01/git/configs$ ls -la radxa-
    radxa-cm3-io-rk3566_defconfig  radxa-e25-rk3568_defconfig radxa-zero2_defconfig          radxa-zero_defconfig

Should I apply something else except the current patch series?

Best regards,

 Oleksii

#3 lore raw

Re: [PATCH 2/3] u-boot: use upstream for radxa-zero-3{e|w}

Quoted 35 lines · Oleksii Kurochko

Hi Trevor,

Quoted 19 lines · Trevor Woerner

Upstream U-Boot 2024.10 (the latest release supported by Yocto) has support for radxa-zero-3{e|w}. Therefore switch away from the fork where the initial U-Boot development for this board had been added.

---
  recipes-bsp/u-boot/u-boot_%.bbappend | 4 ----

  1 file changed, 4 deletions(-)
recipes-bsp/u-boot/u-boot_%.bbappend +0 -0
index 06ba6d54de8e..08e1730b5d3d 100644
@@ -2,10 +2,6 @@ require u-boot-rockchip.inc

    FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  -SRC_URI:radxa-zero-3 = "git://github.com/Kwiboo/u-boot-rockchip.git;protocol=https;branch=rk3xxx-2024.07;name=Kwiboo"

recipes-bsp/u-boot/u-boot_%.bbappend +0 -2
-SRCREV:radxa-zero-3 = "8cdf606e616baa36751f3b4adcfaefc781126c8c"
-SRCREV:radxa-zero-3:rk-u-boot-env = 
Quoted 4 lines

"8cdf606e616baa36751f3b4adcfaefc781126c8c"
-
  SRC_URI:append:rk-u-boot-env = " file://rockchip-enable-environment-mmc.cfg" DEPENDS:append:rk3308 = " u-boot-tools-native"

I have a compilation issue after applying of this patch series:
    | scripts/kconfig/conf --defconfig=arch/../configs/radxa-zero-3-rk3566_defconfig Kconfig

    | ***
    | *** Can't find default configuration "arch/../configs/radxa-zero-3-rk3566_defconfig"!
    | ***
    | make[2]: *** [/home/ok/Projects/yocto/build/tmp/work/radxa_zero_3e-poky-linux/u-boot/2024.01/git/scripts/kconfig/Makefile:96: radxa-zero-3-rk3566_defconfig] Error 1
Quoted 4 lines

And it seems like there is not defconfig for radxa-zero-3 at all:

ok@fedora:~/Projects/yocto/build/tmp/work/radxa_zero_3e-poky-linux/u-boot/2024.01/git/configs$ ls -la radxa-
    radxa-cm3-io-rk3566_defconfig  radxa-e25-rk3568_defconfig radxa-zero2_defconfig          radxa-zero_defconfig

But it is present in the master:

https://source.denx.de/u-boot/u-boot/-/blob/master/configs/radxa-zero-3-rk3566_defconfig?ref_type=heads

And It seems we need or cherry-pick the patch ( 5d199ad9a6b("board: rockchip: Add Radxa ZERO 3W/3E") ) or switch to newer tag:
   git tag --contains 5d199ad9a6b
   v2024.10
   v2024.10-rc3
   v2024.10-rc4
   v2024.10-rc5
   v2024.10-rc6
   v2025.01-rc1
   v2025.01-rc2
   v2025.01-rc3
   v2025.01-rc4

~ Oleksii

Quoted 9 lines

Should I apply something else except the current patch series?

Best regards,

 Oleksii

#9 lore raw

Re: [PATCH 3/3] radxa-zero-3: switch to yocto-dev kernel

In reply to Trevor Woerner

Hello Trevor,

Quoted 74 lines · Trevor Woerner

The radxa-zero-3{e|w} devices are not supported in the current yocto kernel, but they are supported in the yocto-dev kernel. Switch to yocto-dev until support is available in the yocto kernel.

---
  conf/machine/include/radxa-zero-3.inc         |  2 +-
  ...xt_%.bbappend => linux-yocto-dev.bbappend} |  0
  .../linux/linux-torvalds-next_git.bb          | 25 -------------------
  recipes-kernel/linux/linux-yocto-dev.bbappend |  2 ++
  4 files changed, 3 insertions(+), 26 deletions(-)

rename dynamic-layers/rk-rauc-demo/recipes-kernel/linux/{linux-torvalds-next_%.bbappend => linux-yocto-dev.bbappend} (100%) delete mode 100644 recipes-kernel/linux/linux-torvalds-next_git.bb

conf/machine/include/radxa-zero-3.inc +1 -1
index 1c6f972c1e31..b351afae8c0f 100644
@@ -2,7 +2,7 @@ MACHINEOVERRIDES =. "radxa-zero-3:"
 
  require conf/machine/include/rk3566.inc
 
-PREFERRED_PROVIDER_virtual/kernel = "linux-torvalds-next"
+PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev"
  MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
 
  UBOOT_MACHINE = "radxa-zero-3-rk3566_defconfig"
dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-yocto-dev.bbappend renamed from dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend +0 -0
similarity index 100%
rename from dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend
rename to dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-yocto-dev.bbappend
recipes-kernel/linux/linux-torvalds-next_git.bb deleted +0 -25
deleted file mode 100644
index b961b1408f09..000000000000
@@ -1,25 +0,0 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/linux-yocto-dev:"
-
-DESCRIPTION = "Linux Kernel"
-SECTION = "kernel"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM ="file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
-
-ERROR_QA:remove = "buildpaths"
-DEFAULT_PREFERENCE = "-1"
-COMPATIBLE_MACHINE = "^$"
-COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3"
-
-LINUX_VERSION = "6.11-rc6"
-KERNEL_VERSION_SANITY_SKIP = "1"
-PV = "${LINUX_VERSION}+git${SRCPV}"
-SRC_URI = " \
-	git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git;protocol=https;nobranch=1 \
-	file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta \
-	"
-# this is tag 'next-20240904'
-SRCREV = "fdadd93817f124fd0ea6ef251d4a1068b7feceba"
-
-inherit kernel
-inherit kernel-yocto
-require recipes-kernel/linux/linux-yocto.inc
recipes-kernel/linux/linux-yocto-dev.bbappend +1 -0
index b6a63d7b7b29..f738d1357d6c 100644
@@ -1,5 +1,7 @@
  FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
 
  COMPATIBLE_MACHINE:orangepi-5-plus = "orangepi-5-plus"
+COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3"
 
  SRC_URI:append:orangepi-5-plus =" 
Quoted 2 lines

file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta" +SRC_URI:append:radxa-zero-3 = "file://rockchip-kmeta;ty

After applying of this patch series I see the following compilation issue for kernel:
    | ERROR: modpost: vmlinux: local symbol 'security_path_rmdir' was exported
    | make[2]: *** [/home/ok/Projects/yocto/build/tmp/work-shared/radxa-zero-3e/kernel-source/scripts/Makefile.modpost:145: vmlinux.symvers] Error 1 | make[1]: *** [/home/ok/Projects/yocto/build/tmp/work-shared/radxa-zero-3e/kernel-source/Makefile:1871: modpost] Error 2

    | make: *** [/home/ok/Projects/yocto/build/tmp/work-shared/radxa-zero-3e/kernel-source/Makefile:240: __sub-make] Error 2

Should I apply something except the patches from these patch series? Otherwise I think we should disable some security things ( as a workaround ):

CONFIG_SECURITYFS=n CONFIG_SECURITY_NETWORK=y CONFIG_SECURITY_NETWORK_XFRM=n CONFIG_SECURITY_PATH=y CONFIG_SECURITY_LANDLOCK=y

Best regards,

 Oleksii

Quoted 1 line

pe=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"

#5 lore raw

Re: [yocto-patches] [PATCH 2/3] u-boot: use upstream for radxa-zero-3{e|w}

In reply to a message not in the archive
Quoted 47 lines · Oleksii Kurochko via lists.yoctoproject.org
Quoted 35 lines · Oleksii Kurochko

Hi Trevor,

Quoted 19 lines · Trevor Woerner

Upstream U-Boot 2024.10 (the latest release supported by Yocto) has support for radxa-zero-3{e|w}. Therefore switch away from the fork where the initial U-Boot development for this board had been added.

---
  recipes-bsp/u-boot/u-boot_%.bbappend | 4 ----

  1 file changed, 4 deletions(-)
recipes-bsp/u-boot/u-boot_%.bbappend +0 -0
index 06ba6d54de8e..08e1730b5d3d 100644
@@ -2,10 +2,6 @@ require u-boot-rockchip.inc

    FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  -SRC_URI:radxa-zero-3 = "git://github.com/Kwiboo/u-boot-rockchip.git;protocol=https;branch=rk3xxx-2024.07;name=Kwiboo"

recipes-bsp/u-boot/u-boot_%.bbappend +0 -2
-SRCREV:radxa-zero-3 = "8cdf606e616baa36751f3b4adcfaefc781126c8c"
-SRCREV:radxa-zero-3:rk-u-boot-env = 
Quoted 4 lines

"8cdf606e616baa36751f3b4adcfaefc781126c8c"
-
  SRC_URI:append:rk-u-boot-env = " file://rockchip-enable-environment-mmc.cfg" DEPENDS:append:rk3308 = " u-boot-tools-native"

I have a compilation issue after applying of this patch series:
    | scripts/kconfig/conf --defconfig=arch/../configs/radxa-zero-3-rk3566_defconfig Kconfig

    | ***
    | *** Can't find default configuration "arch/../configs/radxa-zero-3-rk3566_defconfig"!
    | ***
    | make[2]: *** [/home/ok/Projects/yocto/build/tmp/work/radxa_zero_3e-poky-linux/u-boot/2024.01/git/scripts/kconfig/Makefile:96: radxa-zero-3-rk3566_defconfig] Error 1
Quoted 4 lines

And it seems like there is not defconfig for radxa-zero-3 at all:

ok@fedora:~/Projects/yocto/build/tmp/work/radxa_zero_3e-poky-linux/u-boot/2024.01/git/configs$ ls -la radxa-
    radxa-cm3-io-rk3566_defconfig  radxa-e25-rk3568_defconfig radxa-zero2_defconfig          radxa-zero_defconfig

But it is present in the master:

https://source.denx.de/u-boot/u-boot/-/blob/master/configs/radxa-zero-3-rk3566_defconfig?ref_type=heads

Quoted 11 lines

And It seems we need or cherry-pick the patch ( 5d199ad9a6b("board: rockchip: Add Radxa ZERO 3W/3E") ) or switch to newer tag:
   git tag --contains 5d199ad9a6b
   v2024.10
   v2024.10-rc3
   v2024.10-rc4
   v2024.10-rc5
   v2024.10-rc6
   v2025.01-rc1
   v2025.01-rc2
   v2025.01-rc3
   v2025.01-rc4

Sorry for flooding but I think it is needed to note that it is needed for scarthgap branch.

~ Oleksii

Quoted 24 lines

~ Oleksii

Quoted 9 lines

Should I apply something else except the current patch series?

Best regards,

 Oleksii

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#909): https://lists.yoctoproject.org/g/yocto-patches/message/909
Mute This Topic: https://lists.yoctoproject.org/mt/110086429/7609514
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13794076/7609514/1776480132/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

Re: [yocto-patches] [PATCH 2/3] u-boot: use upstream for radxa-zero-3{e|w}

Quoted 70 lines · Oleksii Kurochko
Quoted 55 lines · Oleksii Kurochko via lists.yoctoproject.org
Quoted 41 lines · Oleksii Kurochko

Hi Trevor,

Quoted 22 lines · Trevor Woerner

Upstream U-Boot 2024.10 (the latest release supported by Yocto) has support
for radxa-zero-3{e|w}. Therefore switch away from the fork where the initial
U-Boot development for this board had been added.

---
  recipes-bsp/u-boot/u-boot_%.bbappend | 4 ----

  1 file changed, 4 deletions(-)
recipes-bsp/u-boot/u-boot_%.bbappend +0 -0
index 06ba6d54de8e..08e1730b5d3d 100644
@@ -2,10 +2,6 @@ require u-boot-rockchip.inc

    FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
  -SRC_URI:radxa-zero-3 = "git://github.com/Kwiboo/u-boot-rockchip.git;protocol=https;branch=rk3xxx-2024.07;name=Kwiboo"

recipes-bsp/u-boot/u-boot_%.bbappend +0 -2
-SRCREV:radxa-zero-3 = "8cdf606e616baa36751f3b4adcfaefc781126c8c"
-SRCREV:radxa-zero-3:rk-u-boot-env =
Quoted 5 lines

"8cdf606e616baa36751f3b4adcfaefc781126c8c" -
  SRC_URI:append:rk-u-boot-env = " file://rockchip-enable-environment-mmc.cfg" DEPENDS:append:rk3308 = " u-boot-tools-native"

I have a compilation issue after applying of this patch series:
    | scripts/kconfig/conf
--defconfig=arch/../configs/radxa-zero-3-rk3566_defconfig Kconfig
    | ***
    | *** Can't find default configuration
"arch/../configs/radxa-zero-3-rk3566_defconfig"!
    | ***
    | make[2]: *** [/home/ok/Projects/yocto/build/tmp/work/radxa_zero_3e-poky-linux/u-boot/2024.01/git/scripts/kconfig/Makefile:96:
radxa-zero-3-rk3566_defconfig] Error 1

Quoted 6 lines

And it seems like there is not defconfig for radxa-zero-3 at all:

ok@fedora:~/Projects/yocto/build/tmp/work/radxa_zero_3e-poky-linux/u-boot/2024.01/git/configs$ ls -la radxa-
    radxa-cm3-io-rk3566_defconfig  radxa-e25-rk3568_defconfig radxa-zero2_defconfig          radxa-zero_defconfig

But it is present in the master:

https://source.denx.de/u-boot/u-boot/-/blob/master/configs/radxa-zero-3-rk3566_defconfig?ref_type=heads

Quoted 12 lines

And It seems we need or cherry-pick the patch ( 5d199ad9a6b("board:
rockchip: Add Radxa ZERO 3W/3E") ) or switch to newer tag:
   git tag --contains 5d199ad9a6b
   v2024.10
   v2024.10-rc3
   v2024.10-rc4
   v2024.10-rc5
   v2024.10-rc6
   v2025.01-rc1
   v2025.01-rc2
   v2025.01-rc3
   v2025.01-rc4

Quoted 2 lines

Sorry for flooding but I think it is needed to note that it is needed for scarthgap branch.

These patches are targeting master, not styhead.

Quoted 29 lines

~ Oleksii

Quoted 26 lines

~ Oleksii

Quoted 9 lines

Should I apply something else except the current patch series?

Best regards,

 Oleksii

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#909):
https://lists.yoctoproject.org/g/yocto-patches/message/909
Mute This Topic: https://lists.yoctoproject.org/mt/110086429/7609514
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13794076/7609514/1776480132/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#10 lore raw

Re: [PATCH 3/3] radxa-zero-3: switch to yocto-dev kernel

In reply to Oleksii Kurochko

Is this also a styhead-specific issue?

Quoted 99 lines · Oleksii Kurochko

Hello Trevor,

Quoted 65 lines · Trevor Woerner

The radxa-zero-3{e|w} devices are not supported in the current yocto kernel, but they are supported in the yocto-dev kernel. Switch to yocto-dev until support is available in the yocto kernel.

---
  conf/machine/include/radxa-zero-3.inc         |  2 +-
  ...xt_%.bbappend => linux-yocto-dev.bbappend} |  0
  .../linux/linux-torvalds-next_git.bb          | 25 -------------------
  recipes-kernel/linux/linux-yocto-dev.bbappend |  2 ++
  4 files changed, 3 insertions(+), 26 deletions(-)

rename dynamic-layers/rk-rauc-demo/recipes-kernel/linux/{linux-torvalds-next_%.bbappend => linux-yocto-dev.bbappend} (100%) delete mode 100644 recipes-kernel/linux/linux-torvalds-next_git.bb

conf/machine/include/radxa-zero-3.inc +1 -1
index 1c6f972c1e31..b351afae8c0f 100644
@@ -2,7 +2,7 @@ MACHINEOVERRIDES =. "radxa-zero-3:"
  require conf/machine/include/rk3566.inc
-PREFERRED_PROVIDER_virtual/kernel = "linux-torvalds-next"
+PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev"
  MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
  UBOOT_MACHINE = "radxa-zero-3-rk3566_defconfig"
dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-yocto-dev.bbappend renamed from dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend +0 -0
similarity index 100%
rename from dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend
rename to dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-yocto-dev.bbappend
recipes-kernel/linux/linux-torvalds-next_git.bb deleted +0 -25
deleted file mode 100644
index b961b1408f09..000000000000
@@ -1,25 +0,0 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/linux-yocto-dev:"
-
-DESCRIPTION = "Linux Kernel"
-SECTION = "kernel"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM ="file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
-
-ERROR_QA:remove = "buildpaths"
-DEFAULT_PREFERENCE = "-1"
-COMPATIBLE_MACHINE = "^$"
-COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3"
-
-LINUX_VERSION = "6.11-rc6"
-KERNEL_VERSION_SANITY_SKIP = "1"
-PV = "${LINUX_VERSION}+git${SRCPV}"
-SRC_URI = " \
-	git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git;protocol=https;nobranch=1 \
-	file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta \
-	"
-# this is tag 'next-20240904'
-SRCREV = "fdadd93817f124fd0ea6ef251d4a1068b7feceba"
-
-inherit kernel
-inherit kernel-yocto
-require recipes-kernel/linux/linux-yocto.inc
recipes-kernel/linux/linux-yocto-dev.bbappend +0 -0
index b6a63d7b7b29..f738d1357d6c 100644

recipes-kernel/linux/linux-yocto-dev.bbappend line 5

Quoted 5 lines
recipes-kernel/linux/linux-yocto-dev.bbappend +2 -0
@@ -1,5 +1,7 @@
  FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
  COMPATIBLE_MACHINE:orangepi-5-plus = "orangepi-5-plus"
+COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3"
     SRC_URI:append:orangepi-5-plus =" file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
+SRC_URI:append:radxa-zero-3 = "file://rockchip-kmeta;ty

After applying of this patch series I see the following compilation issue
for kernel:
    | ERROR: modpost: vmlinux: local symbol 'security_path_rmdir' was
exported
    | make[2]: *** [/home/ok/Projects/yocto/build/tmp/work-shared/radxa-zero-3e/kernel-source/scripts/Makefile.modpost:145:
vmlinux.symvers] Error 1
    | make[1]: *** [/home/ok/Projects/yocto/build/tmp/work-shared/radxa-zero-3e/kernel-source/Makefile:1871:
modpost] Error 2

    | make: *** [/home/ok/Projects/yocto/build/tmp/work-shared/radxa-zero-3e/kernel-source/Makefile:240:
__sub-make] Error 2

Should I apply something except the patches from these patch series? Otherwise I think we should disable some security things ( as a workaround ):

CONFIG_SECURITYFS=n CONFIG_SECURITY_NETWORK=y CONFIG_SECURITY_NETWORK_XFRM=n CONFIG_SECURITY_PATH=y CONFIG_SECURITY_LANDLOCK=y

Best regards,

 Oleksii

Quoted 1 line

pe=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"

#11 lore raw

Re: [yocto-patches] [PATCH 3/3] radxa-zero-3: switch to yocto-dev kernel

Quoted 1 line · Trevor Woerner via lists.yoctoproject.org

Is this also a styhead-specific issue?

Yes, it is a styhead-specific issue with master there is no such issue.

~ Oleksii

Quoted 111 lines · Oleksii Kurochko
Quoted 90 lines

Hello Trevor,

Quoted 65 lines · Trevor Woerner

The radxa-zero-3{e|w} devices are not supported in the current yocto kernel, but they are supported in the yocto-dev kernel. Switch to yocto-dev until support is available in the yocto kernel.

---
   conf/machine/include/radxa-zero-3.inc         |  2 +-
   ...xt_%.bbappend => linux-yocto-dev.bbappend} |  0
   .../linux/linux-torvalds-next_git.bb          | 25 -------------------
   recipes-kernel/linux/linux-yocto-dev.bbappend |  2 ++
   4 files changed, 3 insertions(+), 26 deletions(-)

rename dynamic-layers/rk-rauc-demo/recipes-kernel/linux/{linux-torvalds-next_%.bbappend => linux-yocto-dev.bbappend} (100%) delete mode 100644 recipes-kernel/linux/linux-torvalds-next_git.bb

conf/machine/include/radxa-zero-3.inc +1 -1
index 1c6f972c1e31..b351afae8c0f 100644
@@ -2,7 +2,7 @@ MACHINEOVERRIDES =. "radxa-zero-3:"
   require conf/machine/include/rk3566.inc
-PREFERRED_PROVIDER_virtual/kernel = "linux-torvalds-next"
+PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev"
   MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
   UBOOT_MACHINE = "radxa-zero-3-rk3566_defconfig"
dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-yocto-dev.bbappend renamed from dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend +0 -0
similarity index 100%
rename from dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-torvalds-next_%.bbappend
rename to dynamic-layers/rk-rauc-demo/recipes-kernel/linux/linux-yocto-dev.bbappend
recipes-kernel/linux/linux-torvalds-next_git.bb deleted +0 -25
deleted file mode 100644
index b961b1408f09..000000000000
@@ -1,25 +0,0 @@
-FILESEXTRAPATHS:prepend := "${THISDIR}/linux-yocto-dev:"
-
-DESCRIPTION = "Linux Kernel"
-SECTION = "kernel"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM ="file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
-
-ERROR_QA:remove = "buildpaths"
-DEFAULT_PREFERENCE = "-1"
-COMPATIBLE_MACHINE = "^$"
-COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3"
-
-LINUX_VERSION = "6.11-rc6"
-KERNEL_VERSION_SANITY_SKIP = "1"
-PV = "${LINUX_VERSION}+git${SRCPV}"
-SRC_URI = " \
-	git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git;protocol=https;nobranch=1 \
-	file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta \
-	"
-# this is tag 'next-20240904'
-SRCREV = "fdadd93817f124fd0ea6ef251d4a1068b7feceba"
-
-inherit kernel
-inherit kernel-yocto
-require recipes-kernel/linux/linux-yocto.inc
recipes-kernel/linux/linux-yocto-dev.bbappend +0 -0
index b6a63d7b7b29..f738d1357d6c 100644

recipes-kernel/linux/linux-yocto-dev.bbappend line 5

Quoted 5 lines
recipes-kernel/linux/linux-yocto-dev.bbappend +2 -0
@@ -1,5 +1,7 @@
   FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
   COMPATIBLE_MACHINE:orangepi-5-plus = "orangepi-5-plus"
+COMPATIBLE_MACHINE:radxa-zero-3 = "radxa-zero-3"
      SRC_URI:append:orangepi-5-plus =" file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
+SRC_URI:append:radxa-zero-3 = "file://rockchip-kmeta;ty

After applying of this patch series I see the following compilation issue
for kernel:
    | ERROR: modpost: vmlinux: local symbol 'security_path_rmdir' was
exported
    | make[2]: *** [/home/ok/Projects/yocto/build/tmp/work-shared/radxa-zero-3e/kernel-source/scripts/Makefile.modpost:145:
vmlinux.symvers] Error 1
    | make[1]: *** [/home/ok/Projects/yocto/build/tmp/work-shared/radxa-zero-3e/kernel-source/Makefile:1871:
modpost] Error 2

    | make: *** [/home/ok/Projects/yocto/build/tmp/work-shared/radxa-zero-3e/kernel-source/Makefile:240:
__sub-make] Error 2

Should I apply something except the patches from these patch series? Otherwise I think we should disable some security things ( as a workaround ):

Quoted 9 lines

CONFIG_SECURITYFS=n CONFIG_SECURITY_NETWORK=y CONFIG_SECURITY_NETWORK_XFRM=n CONFIG_SECURITY_PATH=y CONFIG_SECURITY_LANDLOCK=y

Best regards,

 Oleksii

Quoted 1 line

pe=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#913): https://lists.yoctoproject.org/g/yocto-patches/message/913
Mute This Topic: https://lists.yoctoproject.org/mt/110086430/7609514
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13794076/7609514/1776480132/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author Applied
#13 lore raw
In reply to Trevor Woerner
Quoted 9 lines · Trevor Woerner

When the rk-u-boot-env feature was implemented, in order for it to work the build needed a version of U-Boot that was slightly newer than 2024.04 (the current release supported by Yocto at that time). Now that 2024.10 is out, remove the SRCREV pin since the necessary code is now part of this release.

---
 recipes-bsp/u-boot/u-boot_%.bbappend | 1 -
 1 file changed, 1 deletion(-)

Applied to meta-rockchip, master and styhead branches.

#12 lore raw

Re: [PATCH 3/3] radxa-zero-3: switch to yocto-dev kernel

In reply to Trevor Woerner
Quoted 6 lines · Trevor Woerner

The radxa-zero-3{e|w} devices are not supported in the current yocto kernel, but they are supported in the yocto-dev kernel. Switch to yocto-dev until support is available in the yocto kernel.

Quoted 8 lines
---
 conf/machine/include/radxa-zero-3.inc         |  2 +-
 ...xt_%.bbappend => linux-yocto-dev.bbappend} |  0
 .../linux/linux-torvalds-next_git.bb          | 25 -------------------
 recipes-kernel/linux/linux-yocto-dev.bbappend |  2 ++
 4 files changed, 3 insertions(+), 26 deletions(-)
 rename dynamic-layers/rk-rauc-demo/recipes-kernel/linux/{linux-torvalds-next_%.bbappend => linux-yocto-dev.bbappend} (100%)
 delete mode 100644 recipes-kernel/linux/linux-torvalds-next_git.bb

Added to meta-rockchip, master and styhead branches.

author Applied
#7 lore raw

Re: [PATCH 2/3] u-boot: use upstream for radxa-zero-3{e|w}

In reply to Trevor Woerner
Quoted 9 lines · Trevor Woerner

Upstream U-Boot 2024.10 (the latest release supported by Yocto) has support for radxa-zero-3{e|w}. Therefore switch away from the fork where the initial U-Boot development for this board had been added.

---
 recipes-bsp/u-boot/u-boot_%.bbappend | 4 ----
 1 file changed, 4 deletions(-)

Applied to meta-rockchip, master branch.