Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade recipes-core/runx to support kernel version 6+ #31

Open
dvdsosa opened this issue May 22, 2024 · 5 comments
Open

Upgrade recipes-core/runx to support kernel version 6+ #31

dvdsosa opened this issue May 22, 2024 · 5 comments

Comments

@dvdsosa
Copy link

dvdsosa commented May 22, 2024

Hello,

I ran Petalinux 2023.2 and found that recipes-core/runx is outdated, targeting old kernel version 5.

This is affecting and disrupting the installation of packagegroup-petalinux-ocicontainers.

Do you have any schedule to upgrade runx to support kernel version 6.1.30 for Petalinux 2023.2 and onwards?

Thanks in advance!
David.

@mhatle
Copy link
Collaborator

mhatle commented May 22, 2024

What is outdated on it? Our integration is based on the integration in meta-virtualizations.

https://git.yoctoproject.org/meta-virtualization/tree/recipes-core/runx?h=langdale

This in turn is based on: https://github.com/lf-edge/runx

I don't see anything there that is newer then what is already integrated.

Is there something that is not working that requires a change? If so, we may need to work through the upstream runx and/or meta-virtualization first.

@dvdsosa
Copy link
Author

dvdsosa commented May 23, 2024

When I added the packagegroup-petalinux-ocicontainers via petalinux-build -c rootfs, and then petalinux-build, it failed to build the project:

ERROR: Task (/home/dsosatr/Descargas/DPU_petalinux20232/dpuOS_ver01/components/yocto/layers/meta-petalinux/recipes-core/runx/runx-xlnx_git.bb:do_compile) failed with exit code '1'

I checked out the referred log file and saw a mismatch between runx-xlnx target kernel version and the Petalinux kernel version. So I imagine this is the problem. I attach the main build log and the runx-xlnx log, maybe I'm wrong?

What I needed was to install docker in Petalinux 2023.2. I have overcome this error by adding IMAGE_INSTALL:append = " docker-ce " to my petalinuxbsp.conf file, so I have all the OCI_PACKAGES installed by this way.

Anyhow, I think sooner or later the runx-xlnx will be updated to support the newer kernel versions, right?

Thank you, @mhatle !

build.log
runx-xlnx.log

@mhatle
Copy link
Collaborator

mhatle commented May 23, 2024

The error from the log is:

  • tar --extract --xz --touch --file=/home/dsosatr/Descargas/DPU_petalinux20232/dpuOS_ver01/build/tmp/work/cortexa72-cortexa53-xilinx-linux/runx-xlnx/0.1-git0c7edb3453398d7a0c594ce026c9c1e93c2541cc-r0/git/kernel/build/linux-5.10.74.tar.xz --directory=/home/dsosatr/Descargas/DPU_petalinux20232/dpuOS_ver01/build/tmp/work/cortexa72-cortexa53-xilinx-linux/runx-xlnx/0.1-git0c7edb3453398d7a0c594ce026c9c1e93c2541cc-r0/git/kernel/src
    xz: (stdin): File format not recognized

You have something wrong with your build environment. This is not failing for me or on our autobuilder systems.

I'm using Ubuntu 18.04, 20.04 and 22.04. I believe our autobuilders are also ubuntu version (various).

@dvdsosa
Copy link
Author

dvdsosa commented May 28, 2024

After some checking, it is not my environment.

I succeed in building Petalinux 2022.2 including the packagegroup-petalinux-ocicontainers. When doing so in Petalinux 2023.1 and 2023.2, it fails with the attached output log. Same outcome when performing this on another computer in a different location.

I checked that the error you mentioned is because the downloaded file linux-5.10.74.tar.xz has 0 KB, thus the failure. I don't know why it is MIS-downloading it, but the main differences among Petalinux versions (see below) are the kernel versions:
2023.2, kernel v6.1.30
2023.1, kernel v6.1.5
2022.2, kernel v5.15.36

Why including packagegroup-petalinux-ocicontainers in Petalinux 2022.2 version builds OK and NOT for the newer ones which are based on kernel 6? I don't know. The main difference among these versions is the major kernel version. I used Ubuntu 20.04 on the above tests.

If you can have a check on this, that would be great for future releases of Petalinux 2024.+.

David.

@scsullivan12
Copy link

I ran into the same problem with 2024.1 when trying to compile packagegroup-petalinux-ocicontainers. I had to manually download linux-5.10.74.tar.xz and put it into the following folder:

<project_directory>/build/tmp/work/cortexa72-cortexa53-xilinx-linux/runx-xlnx/0.1-git0c7edb3453398d7a0c594ce026c9c1e93c2541cc-r0/git/kernel/build

The linux-5.10.74.tar.xz file that was in there from the failed petalinux-build run was 0 bytes for some reason.

scott

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants