S32G399A-BSP42 yocto image build error: missing kernel modules

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32G399A-BSP42 yocto image build error: missing kernel modules

867 Views
MohamedAbdelslam
Contributor III

Hi experts, 
I have the below error while building the yocto bsp42 based image. It seems that there are needed kernel modules but not installed. Could you please help me how to troubleshoot this error? how to install those needed kernel modules? 

ERROR: fsl-image-auto-1.0-r0 do_rootfs: Could not invoke dnf. Command '/data/Workspace_nxp_sdv/fsl-auto-yocto-bsp/build_s32g399ardb3/tmp/work/s32g399ardb3-fsl-linux/fsl-image-auto/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /data/Workspace_nxp_sdv/fsl-auto-yocto-bsp/build_s32g399ardb3/tmp/work/s32g399ardb3-fsl-linux/fsl-image-auto/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/data/Workspace_nxp_sdv/fsl-auto-yocto-bsp/build_s32g399ardb3/tmp/work/s32g399ardb3-fsl-linux/fsl-image-auto/1.0-r0/rootfs/etc/yum.repos.d --installroot=/data/Workspace_nxp_sdv/fsl-auto-yocto-bsp/build_s32g399ardb3/tmp/work/s32g399ardb3-fsl-linux/fsl-image-auto/1.0-r0/rootfs --setopt=logdir=/data/Workspace_nxp_sdv/fsl-auto-yocto-bsp/build_s32g399ardb3/tmp/work/s32g399ardb3-fsl-linux/fsl-image-auto/1.0-r0/temp --repofrompath=oe-repo,/data/Workspace_nxp_sdv/fsl-auto-yocto-bsp/build_s32g399ardb3/tmp/work/s32g399ardb3-fsl-linux/fsl-image-auto/1.0-r0/oe-rootfs-repo --nogpgcheck install aquantia-firmware-utility can-utils can-utils-cantest cpufrequtils demo-samples dhrystone dtc fio i2c-tools iproute2 iputils irqbalance kernel-devicetree kernel-image kernel-modules libcrypto libgpiod libgpiod-dev libgpiod-tools libssl linux-qspi-tool linuxptp mdio-proxy mtd-utils openssh openssh-sftp openssh-sftp-server openssl openssl-bin openssl-conf openssl-dev openssl-engines openssl-misc packagegroup-base-wifi packagegroup-core-boot packagegroup-core-buildessential packagegroup-core-full-cmdline packagegroup-core-tools-debug packagegroup-sdv-core perf rsync run-postinsts sja1110 util-linux-rtcwake vim' returned 1:
DNF version: 4.11.1
cachedir: /data/Workspace_nxp_sdv/fsl-auto-yocto-bsp/build_s32g399ardb3/tmp/work/s32g399ardb3-fsl-linux/fsl-image-auto/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /data/Workspace_nxp_sdv/fsl-auto-yocto-bsp/build_s32g399ardb3/tmp/work/s32g399ardb3-fsl-linux/fsl-image-auto/1.0-r0/oe-rootfs-repo
User-Agent: falling back to 'libdnf': could not detect OS or basearch
repo: using cache for: oe-repo
oe-repo: using metadata from Tue 07 Jan 2025 07:21:19 AM UTC.
Last metadata expiration check: 0:00:01 ago on Tue 07 Jan 2025 07:21:19 AM UTC.
--> Starting dependency resolution
--> Finished dependency resolution
Error:
Problem: package packagegroup-sdv-core-1.0-r0.noarch requires container-management, but none of the providers can be installed
- conflicting requests
- nothing provides kernel-module-nf-nat needed by container-management-1.0.0+git0+351ca14a33-r0.cortexa53_crypto
- nothing provides kernel-module-dm-thin-pool needed by container-management-1.0.0+git0+351ca14a33-r0.cortexa53_crypto
- nothing provides kernel-module-nf-conntrack-netlink needed by container-management-1.0.0+git0+351ca14a33-r0.cortexa53_crypto
- nothing provides kernel-module-xt-addrtype needed by container-management-1.0.0+git0+351ca14a33-r0.cortexa53_crypto
- nothing provides kernel-module-xt-masquerade needed by container-management-1.0.0+git0+351ca14a33-r0.cortexa53_crypto
(try to add '--skip-broken' to skip uninstallable packages)

Tags (1)
0 Kudos
Reply
3 Replies

819 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @MohamedAbdelslam 

Thanks for the reply.

OK, I could basically understand the issue.

From my understanding, seems "packagegroup-sdv-core-1.0" is added? then need some of the kernel modules as you mentioned.

I checked the current BSP, seems this package is not included in the Yocto source, so sorry that I cannot reproduce the issue, I think you may check your directory to see if the modules needed could be found from kernel directory or from other packages' directory, if not, from my opinion, you may reference the bb files under sources/meta-alb/meta-alb-bsp/recipes-kernel/ for further investigation.

 

BR

Chenyin

0 Kudos
Reply

847 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @MohamedAbdelslam 

Thanks for your post.

Would you mind providing the following information:

1. The building host is with Ubuntu-20.04 or others?

2. I assume you were building with "bitbake fsl-image-auto", is it right?

3. Any modifications on the Yocto source and/or conf/local.conf?

 

BR

Chenyin

 

0 Kudos
Reply

839 Views
MohamedAbdelslam
Contributor III

Hello @chenyin_h 
1-The building host is with ubuntu 22.04 
2- It's right I am building with bitbake fsl-image-auto 
3- Yes I had to change some configurations as I needed to add another layers to based nxp image ( fsl-image-auto ) . As I understand that the issue is : there is a container-management component or recipe failed to build as it depends on the kernel modules mentioned in the error (When I am trying to disable this recipe or remove the kernel modules from RDEPENDS list the build completes successfully). So do you know what are the possible reasons for this issue? and how to troubleshoot it ? example to how to add kernel module?

Tags (1)
0 Kudos
Reply