Xilinx / meta-petalinux

meta-petalinux distro layer supporting Xilinx Tools
MIT License
84 stars 47 forks source link

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

Open dvdsosa opened 4 months ago

dvdsosa commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

The error from the log is:

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 commented 4 months ago

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 commented 2 months ago

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