Unable to populate_sdk for FRWYLS1012A machine

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

Unable to populate_sdk for FRWYLS1012A machine

819 Views
Dhanyalakshmi
Contributor III

Hello,

I'm Dhanya, and currently, I'm working on building an image for my ls1012afrwy NXP board using the Yocto Project. I've successfully built the image, but I'm encountering an error when attempting to build a cross-compiler toolchain for SDKMACHINE = aarch64, as mentioned earlier.

I'll outline the steps I followed to build the image:

$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev python3-subunit mesa-common-dev zstd liblz4-tool file locales 

$ sudo locale-gen en_US.UTF-8

$ mkdir distro
$ cd distro
$ repo init -u https://github.com/nxp-qoriq/yocto-sdk.git -b mickledore -m ls-6.1.55-2.2.0_distro.xml
$ repo sync

$ source  distro-setup-env -m ls1012afrwy

$ bitbake ls-image-main
$ bitbake -c populate_sdk ls-image-main

And the error message is as follows:

ERROR: ls-image-main-22.04.2-r0 do_populate_sdk: Could not invoke dnf. Command '/home/dhanyalakshmi/distro/build_ls1012afrwy/tmp/work/ls1012afrwy-fsl-linux/ls-image-main/22.04.2-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/dhanyalakshmi/distro/build_ls1012afrwy/tmp/work/ls1012afrwy-fsl-linux/ls-image-main/22.04.2-r0/sdk/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-fsl-linux/etc/dnf/dnf.conf --setopt=reposdir=/home/dhanyalakshmi/distro/build_ls1012afrwy/tmp/work/ls1012afrwy-fsl-linux/ls-image-main/22.04.2-r0/sdk/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-fsl-linux/etc/yum.repos.d --installroot=/home/dhanyalakshmi/distro/build_ls1012afrwy/tmp/work/ls1012afrwy-fsl-linux/ls-image-main/22.04.2-r0/sdk/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-fsl-linux --setopt=logdir=/home/dhanyalakshmi/distro/build_ls1012afrwy/tmp/work/ls1012afrwy-fsl-linux/ls-image-main/22.04.2-r0/temp --repofrompath=oe-repo,/home/dhanyalakshmi/distro/build_ls1012afrwy/tmp/work/ls1012afrwy-fsl-linux/ls-image-main/22.04.2-r0/oe-sdk-repo --nogpgcheck install blktrace can-utils cpufrequtils dpdk-examples fio i2c-tools iozone3 iperf2 iperf3 ipsec-demo ipsec-tools kernel-devicetree kernel-image kernel-modules linuxptp lmbench lmsensors-sensors makedevs mmc-utils netperf openssl-engines packagegroup-core-standalone-sdk-target packagegroup-fsl-tools-core packagegroup-fsl-tools-extended perf rt-tests sysfsutils target-sdk-provides-dummy ubuntu-main ubuntu-main-dbg ubuntu-main-dev ubuntu-main-doc udev-extraconf udev-rules-qoriq usbutils watchdog' returned 1:
DNF version: 4.14.0
cachedir: /home/dhanyalakshmi/distro/build_ls1012afrwy/tmp/work/ls1012afrwy-fsl-linux/ls-image-main/22.04.2-r0/sdk/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/aarch64-fsl-linux/var/cache/dnf
Added oe-repo repo from /home/dhanyalakshmi/distro/build_ls1012afrwy/tmp/work/ls1012afrwy-fsl-linux/ls-image-main/22.04.2-r0/oe-sdk-repo
User-Agent: falling back to 'libdnf': could not detect OS or basearch
repo: using cache for: oe-repo
oe-repo: using metadata from Thu 16 May 2024 09:31:47 AM UTC.
Last metadata expiration check: 0:00:01 ago on Thu 16 May 2024 09:32:01 AM UTC.
--> Starting dependency resolution
--> Finished dependency resolution
Error:
 Problem 1: package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo conflicts with /bin/sh provided by ubuntu-main-22.04.2-r0.aarch64 from oe-repo
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo conflicts with perl provided by ubuntu-main-22.04.2-r0.aarch64 from oe-repo
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo conflicts with bash provided by ubuntu-main-22.04.2-r0.aarch64 from oe-repo
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo conflicts with coreutils provided by ubuntu-main-22.04.2-r0.aarch64 from oe-repo
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo conflicts with /usr/bin/env provided by ubuntu-main-22.04.2-r0.aarch64 from oe-repo
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo conflicts with /bin/bash provided by ubuntu-main-22.04.2-r0.aarch64 from oe-repo
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo conflicts with bash-dev provided by ubuntu-main-22.04.2-r0.aarch64 from oe-repo
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo conflicts with pkgconfig provided by ubuntu-main-22.04.2-r0.aarch64 from oe-repo
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo conflicts with perl-dev provided by ubuntu-main-22.04.2-r0.aarch64 from oe-repo
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo conflicts with /usr/bin/perl provided by ubuntu-main-22.04.2-r0.aarch64 from oe-repo
  - package ubuntu-main-22.04.2-r0.aarch64 from oe-repo conflicts with perl provided by target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo
  - package ubuntu-main-22.04.2-r0.aarch64 from oe-repo conflicts with bash provided by target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo
  - package ubuntu-main-22.04.2-r0.aarch64 from oe-repo conflicts with coreutils provided by target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo
  - package ubuntu-main-22.04.2-r0.aarch64 from oe-repo conflicts with bash-dev provided by target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo
  - package ubuntu-main-22.04.2-r0.aarch64 from oe-repo conflicts with pkgconfig provided by target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo
  - package ubuntu-main-22.04.2-r0.aarch64 from oe-repo conflicts with perl-dev provided by target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target from oe-repo
  - conflicting requests
 Problem 2: package ubuntu-main-22.04.2-r0.aarch64 from oe-repo conflicts with libc6-dbg provided by libc6-dbg-2.35-r0.aarch64 from oe-repo
  - package ubuntu-main-22.04.2-r0.aarch64 from oe-repo obsoletes libc6-dbg provided by libc6-dbg-2.35-r0.aarch64 from oe-repo
  - package ubuntu-main-doc-22.04.2-r0.aarch64 from oe-repo requires ubuntu-main, but none of the providers can be installed
  - package packagegroup-core-standalone-sdk-target-1.0-r8.aarch64 from oe-repo requires glibc-dbg, but none of the providers can be installed
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

ERROR: Logfile of failure stored in: /home/dhanyalakshmi/distro/build_ls1012afrwy/tmp/work/ls1012afrwy-fsl-linux/ls-image-main/22.04.2-r0/temp/log.do_populate_sdk.2348536
ERROR: Task (/home/dhanyalakshmi/distro/sources/meta-nxp-desktop/recipes-fsl/images/ls-image-main.bb:do_populate_sdk) failed with exit code '1'

And about the question Alex asked, ubuntu-main is present in ls-image-main.bb file.

I have attached the "ls-image-main.bb" file as well here:

# Layerscape main image without an Desktop rootfs
#
# Note that we have a tight dependency to ubuntu-main
# and that we cannot just install arbitrary Yocto packages to avoid
# rootfs pollution or destruction.
PV = "${@d.getVar('PREFERRED_VERSION_ubuntu-base', True) or '1.0'}"
 
REQUIRED_DISTRO_FEATURES = ""
 
require ls-image-common.inc
 
APTGET_EXTRA_PACKAGES_MAIN = "1"
 
APTGET_EXTRA_PACKAGES += "\
libvirt-daemon-system \
"
 
# This must be added first as it provides the foundation for
# subsequent modifications to the rootfs
IMAGE_INSTALL += "\
ubuntu-main \
ubuntu-main-dev \
ubuntu-main-dbg \
ubuntu-main-doc \
"
 
IMAGE_INSTALL:append = " \
${LAYERSCAPE_NETWORK_TOOLS} \
iperf2 \
makedevs lmsensors-sensors \
${LAYERSCAPE_DEMO_SAMPLES} \
"
 
SOC_DEFAULT_IMAGE_FSTYPES:append = " wic.bmap wic.bz2 tar.gz"
SOC_DEFAULT_IMAGE_FSTYPES:remove:ls2088ardb = "wic.bmap wic.bz2"
SOC_DEFAULT_IMAGE_FSTYPES:remove:ls1012ardb = "wic.bmap wic.bz2"
SOC_DEFAULT_IMAGE_FSTYPES:remove:ls1012afrwy = "wic.bmap wic.bz2"
SOC_DEFAULT_IMAGE_FSTYPES:remove = " tar.bz2"
 
IMAGE_ROOTFS_SIZE ?= "6291456"



If there's anything required from my side to resolve this issue, please do ask because I'm not understanding why I'm facing this issue and how to resolve it as well. Hoping for your reply.

Thank You.

0 Kudos
Reply
1 Reply

768 Views
Oswalag
NXP TechSupport
NXP TechSupport

 

Hello,

Please try to follow steps in LLDPUG - 6.4.1 Environment setting for cross-compiling and build again.

0 Kudos
Reply