cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP1 Mickledore SDK Generation Error

FarukSozuer
Associate III

Hello everyone,

I'm getting yocto build for STM32MP1 mickledore. There is no problem with compilation. The images were produced without any problems. The system is up but I get the following error while generating the SDK.

 

 

 

ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image/etc/dnf/dnf.conf --setopt=reposdir=/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image/etc/yum.repos.d --installroot=/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image --setopt=logdir=/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp --repofrompath=oe-repo,/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/oe-sdk-repo --nogpgcheck install nativesdk-binutils nativesdk-cpp-symlinks nativesdk-dtc nativesdk-fiptool-stm32mp nativesdk-flex nativesdk-gcc-arm-none-eabi nativesdk-gcc-symlinks nativesdk-glibc-gconv-utf-16 nativesdk-glibc-gconv-utf-32 nativesdk-ncurses-libncursesw nativesdk-openocd-stm32mp nativesdk-openssl-dev nativesdk-optee-sdk nativesdk-packagegroup-sdk-host nativesdk-perl-module-encode nativesdk-perl-module-encode-encoding nativesdk-perl-module-encode-mime-header nativesdk-perl-module-file-spec-functions nativesdk-perl-module-integer nativesdk-perl-module-pod-text nativesdk-perl-module-term-ansicolor nativesdk-python3-cffi nativesdk-python3-cryptography nativesdk-python3-dev nativesdk-python3-pillow nativesdk-python3-pycparser nativesdk-python3-pycryptodomex nativesdk-python3-pyelftools nativesdk-python3-setuptools nativesdk-sdcard-raw-tools nativesdk-stm32wrapper4dbg nativesdk-svd-tools nativesdk-swig nativesdk-u-boot-mkimage nativesdk-wayland packagegroup-cross-canadian-stm32mp1 packagegroup-rust-cross-canadian-stm32mp1' returned 1:
DNF version: 4.14.0
cachedir: /home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image/var/cache/dnf
Added oe-repo repo from /home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/oe-sdk-repo
User-Agent: constructed: 'libdnf (Ubuntu 22.04; generic; Linux.x86_64)'
repo: using cache for: oe-repo
oe-repo: using metadata from Sat 29 Jun 2024 07:42:02 PM UTC.
Last metadata expiration check: 0:00:01 ago on Sun 30 Jun 2024 12:46:53 PM UTC.
--> Starting dependency resolution
--> Finished dependency resolution
Error: 
 Problem: conflicting requests
  - nothing provides libcrypt.so.1()(64bit) needed by nativesdk-gcc-arm-none-eabi-11-r0.x86_64_nativesdk from oe-repo
(try to add '--skip-broken' to skip uninstallable packages)

ERROR: Logfile of failure stored in: /home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_populate_sdk.7850
ERROR: Task (/home/faruk/Desktop/yocto/poky/meta/recipes-core/images/core-image-minimal.bb:do_populate_sdk) failed with exit code '1'

 

 

 

I found a topic discussed on the forum to solve the problem. Even though I made the necessary changes to local.conf, I continue to receive the same error message. local.conf is below. The link to another topic opened in the forum is below.

https://community.st.com/t5/stm32-mpus-embedded-software/yocto-langdale-sdk-build-error/td-p/84512 

My local.conf

 

 

 

MACHINE = "stm32mp1"
DISTRO ?= "poky"
SDKMACHINE = "x86_64"

######## User Space Command Start ########

#debug
EXTRA_IMAGE_FEATURES ?= "debug-tweaks tools-debug eclipse-debug ssh-server-openssh"
CORE_IMAGE_EXTRA_INSTALL += "openssh-sftp openssh-sftp-server"

# feature of image
IMAGE_INSTALL:append = " libgpiod libgpiod-dev libgpiod-tools libdnf libcrypt-dev"

# sdk generate
TOOLCHAIN_TARGET_TASK:append = " libstd-rs"
SDK_TOOLCHAIN_LANGS:append = " rust"

# image
INHERIT += "image-buildinfo"
IMAGE_BUILDINFO_VARS:append = " DATETIME DISTRO_NAME IMAGE_BASENAME MACHINE TUNE_PKGARCH" 
IMAGE_BUILDINFO_VARS:append = " MACHINE_FEATURES DISTRO_FEATURES COMMON_FEATURES IMAGE_FEATURES"
IMAGE_BUILDINFO_VARS:append = " TUNE_FEATURES TARGET_FPU"
IMAGE_ROOTFS_SIZE = "200000"

BBMULTICONFIG ?= ""
######## User Space Command End ########

USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"

BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"

PACKAGECONFIG:append:pn-qemu-system-native = " sdl"

CONF_VERSION = "2"

 

 

 

bitbake -c populate_sdk core-image-minimal  = I am trying to produce sdk with the command.

Sincelery

1 ACCEPTED SOLUTION

Accepted Solutions
FarukSozuer
Associate III

Hello everyone,

Problem is solved. 

I managed to resolve the issue by setting the packager  in local.conf PACKAGE_CLASSES ?= "package_deb"

New local.conf

 

MACHINE = "stm32mp1"
DISTRO ?= "poky"
SDKMACHINE = "x86_64"
PACKAGE_CLASSES ?= "package_deb"
######## User Space Command Start ########

#debug
EXTRA_IMAGE_FEATURES ?= "debug-tweaks tools-debug eclipse-debug ssh-server-openssh"
CORE_IMAGE_EXTRA_INSTALL += "openssh-sftp openssh-sftp-server"

# feature of image
IMAGE_INSTALL:append = " libgpiod libgpiod-dev libgpiod-tools"

# sdk generate
TOOLCHAIN_TARGET_TASK:append = " libstd-rs"
SDK_TOOLCHAIN_LANGS:append = " rust"


# image
INHERIT += "image-buildinfo"
IMAGE_BUILDINFO_VARS:append = " DATETIME DISTRO_NAME IMAGE_BASENAME MACHINE TUNE_PKGARCH" 
IMAGE_BUILDINFO_VARS:append = " MACHINE_FEATURES DISTRO_FEATURES COMMON_FEATURES IMAGE_FEATURES"
IMAGE_BUILDINFO_VARS:append = " TUNE_FEATURES TARGET_FPU"
IMAGE_ROOTFS_SIZE = "200000"

BBMULTICONFIG ?= ""
######## User Space Command End ########

USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"

BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"

PACKAGECONFIG:append:pn-qemu-system-native = " sdl"

CONF_VERSION = "2"

 

 Sinceley
 

View solution in original post

1 REPLY 1
FarukSozuer
Associate III

Hello everyone,

Problem is solved. 

I managed to resolve the issue by setting the packager  in local.conf PACKAGE_CLASSES ?= "package_deb"

New local.conf

 

MACHINE = "stm32mp1"
DISTRO ?= "poky"
SDKMACHINE = "x86_64"
PACKAGE_CLASSES ?= "package_deb"
######## User Space Command Start ########

#debug
EXTRA_IMAGE_FEATURES ?= "debug-tweaks tools-debug eclipse-debug ssh-server-openssh"
CORE_IMAGE_EXTRA_INSTALL += "openssh-sftp openssh-sftp-server"

# feature of image
IMAGE_INSTALL:append = " libgpiod libgpiod-dev libgpiod-tools"

# sdk generate
TOOLCHAIN_TARGET_TASK:append = " libstd-rs"
SDK_TOOLCHAIN_LANGS:append = " rust"


# image
INHERIT += "image-buildinfo"
IMAGE_BUILDINFO_VARS:append = " DATETIME DISTRO_NAME IMAGE_BASENAME MACHINE TUNE_PKGARCH" 
IMAGE_BUILDINFO_VARS:append = " MACHINE_FEATURES DISTRO_FEATURES COMMON_FEATURES IMAGE_FEATURES"
IMAGE_BUILDINFO_VARS:append = " TUNE_FEATURES TARGET_FPU"
IMAGE_ROOTFS_SIZE = "200000"

BBMULTICONFIG ?= ""
######## User Space Command End ########

USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"

BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"

PACKAGECONFIG:append:pn-qemu-system-native = " sdl"

CONF_VERSION = "2"

 

 Sinceley