($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: Alexander Kanavin <alex.kanavin@gmail.com>
To: yocto@lists.yoctoproject.org, dhanyalakshmi.k@priyarajaelectronics.com
Subject: Re: [yocto] Unable to populate_sdk for ls1012afrwy macine
Date: Thu, 16 May 2024 12:16:38 +0200	[thread overview]
Message-ID: <CANNYZj91N1gTztKgYv0Y+wZHjy+imPDvbeM6LzANr7bdzoCwfg@mail.gmail.com> (raw)
In-Reply-To: <wWAG.1715853668793985936.L0Ei@lists.yoctoproject.org>

I understand this is not exactly helpful, but someone subverted yocto
completely with ls-image-main recipe. Putting Ubuntu into target
images is not supported, tested or recommended, and if any issues
occur you're on your own. Or ask the developers of that 'layerscape'
thing.

Also mickledore is ancient, and haven't been supported in years. You
need to upgrade to a recent yocto, and not put ubuntu into it, then
you might be able to get help here.

The good news is that https://github.com/nxp-qoriq/yocto-sdk.git does
have more recent branches, so you should start by picking the latest:
https://github.com/nxp-qoriq/yocto-sdk/tree/nanbield

But if issues still happen, the first people you should approach are
developers of that thing.

Alex

On Thu, 16 May 2024 at 12:01, dhanyalakshmi.k via
lists.yoctoproject.org
<dhanyalakshmi.k=priyarajaelectronics.com@lists.yoctoproject.org>
wrote:
>
> Hi,
>
> I apologize if it seemed rude for not introducing myself earlier. 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.
>
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#63110): https://lists.yoctoproject.org/g/yocto/message/63110
> Mute This Topic: https://lists.yoctoproject.org/mt/106131609/1686489
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


  reply	other threads:[~2024-05-16 10:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-16 10:01 Unable to populate_sdk for ls1012afrwy macine dhanyalakshmi.k
2024-05-16 10:16 ` Alexander Kanavin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-16 10:29 dhanyalakshmi.k
2024-05-16 10:41 ` [yocto] " Alexander Kanavin
2024-05-16  9:33 dhanyalakshmi.k
2024-05-16  9:37 ` [yocto] " Alexander Kanavin
     [not found] ` <17CFEE896A8769BE.16299@lists.yoctoproject.org>
2024-05-16  9:38   ` Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANNYZj91N1gTztKgYv0Y+wZHjy+imPDvbeM6LzANr7bdzoCwfg@mail.gmail.com \
    --to=alex.kanavin@gmail.com \
    --cc=dhanyalakshmi.k@priyarajaelectronics.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).