Hi all,
I am trying to generate rootfs image using bitbake fsl-image-mfgtool. I am able to add the required packages, but when I am adding merge-files then it is showing the following error.
ERROR: fsl-image-mfgtool-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/icomm/distro/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/fsl-image-mfgtool/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/icomm/distro/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/fsl-image-mfgtool/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/icomm/distro/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/fsl-image-mfgtool/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/icomm/distro/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/fsl-image-mfgtool/1.0-r0/rootfs --setopt=logdir=/home/icomm/distro/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/fsl-image-mfgtool/1.0-r0/temp --repofrompath=oe-repo,/home/icomm/distro/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/fsl-image-mfgtool/1.0-r0/oe-rootfs-repo -x kernel-image-* --nogpgcheck install coreutils curl dhcpcd e2fsprogs e2fsprogs-e2fsck ethtool file fmc inetutils-ping iproute2 iproute2-tc keyutils lmsensors-sensors merge-files net-snmp-libs net-snmp-server net-tools openssl packagegroup-core-boot packagegroup-core-ssh-dropbear packagegroup-fsl-mfgtools parted ppp procps quagga restool rng-tools run-postinsts sudo tar udev-extraconf util-linux-fdisk util-linux-lsblk xinetd' returned 1:
DNF version: 4.11.1
cachedir: /home/icomm/distro/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/fsl-image-mfgtool/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/icomm/distro/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/fsl-image-mfgtool/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 Thu 14 Sep 2023 10:34:11 AM UTC.
Last metadata expiration check: 0:00:01 ago on Thu 14 Sep 2023 10:43:44 AM UTC.
Excludes in dnf.conf: kernel-image-*
--> Starting dependency resolution
--> Finished dependency resolution
Error:
Problem: conflicting requests
- nothing provides libc.so.6(GLIBC_2.2.5)(64bit) needed by merge-files-1.0-r0.noarch
(try to add '--skip-broken' to skip uninstallable packages)
ERROR: Logfile of failure stored in: /home/icomm/distro/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/fsl-image-mfgtool/1.0-r0/temp/log.do_rootfs.562065
ERROR: Task (/home/icomm/distro/sources/meta-qoriq/recipes-fsl/images/fsl-image-mfgtool.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3503 tasks of which 3502 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/icomm/distro/sources/meta-qoriq/recipes-fsl/images/fsl-image-mfgtool.bb:do_rootfs
Summary: There was 1 ERROR message, returning a non-zero exit code.
merge-files_1.0.bb file as follows
DESCRIPTION = "Merge prebuilt/extra files into rootfs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
inherit allarch
SRC_URI = "file://merge"
S = "${WORKDIR}"
MERGED_DST ?= "${ROOT_HOME}"
do_install () {
install -d ${D}/${MERGED_DST}
find ${WORKDIR}/merge/ -maxdepth 1 -mindepth 1 -not -name README \
-exec cp -fr '{}' ${D}/${MERGED_DST}/ \;
find ${WORKDIR}/merge/ -maxdepth 1 -mindepth 1 -exec rm -fr '{}' \;
}
do_package_qa(){
}
do_configure[noexec] = "1"
do_compile[noexec] = "1"
FILES:${PN} = "/*"
ALLOW_EMPTY:${PN} = "1"
INSANE_SKIP:${PN} = "debug-files dev-so"
fsl-image-mfgtool.bb file as follows
# Copyright (C) 2015 Freescale Semiconductor
require recipes-core/images/core-image-minimal.bb
SUMMARY = "Small image commonly used for manufacturing or other small image needs."
DESCRIPTION = "Small image which only includes essential manufacturing \
packages to deploy other big images to large physical media, such as \
a USB stick or a hard drive."
LICENSE = "MIT"
IMAGE_INSTALL:append = " \
packagegroup-core-ssh-dropbear \
packagegroup-fsl-mfgtools \
udev-extraconf \
file \
parted \
lmsensors-sensors \
restool \
fmc \
sudo \
curl ppp merge-files\
net-snmp-server net-snmp-libs procps quagga ethtool xinetd iproute2 iproute2-tc\
"
IMAGE_INSTALL:remove:ls1021atwr = "restool"
PACKAGE_EXCLUDE = "kernel-image-*"
export IMAGE_BASENAME = "fsl-image-mfgtool"
IMAGE_ROOTFS_EXTRA_SPACE = "262144"
IMAGE_FSTYPES += "ext4.gz"
local.conf file as follows
MACHINE ??= 'ls1043ardbdistro'
DISTRO ?= 'fsl-qoriq-distro'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
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"
# Parallelism Options
BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"
DL_DIR = "/home/icomm/distro/downloads"
SSTATE_DIR = "/home/icomm/distro/sstate-cache"
INITRAMFS_IMAGE = "core-image-minimal"
ACCEPT_FSL_EULA = "1"
# Switch to rpm packaging to avoid rootfs build break
PACKAGE_CLASSES = "package_rpm"
# Set your proxy if necessary
#ENV_HOST_PROXIES = "http_proxy="
# Set user account and password
#APTGET_ADD_USERS = "user:password:shell"
# format 'name:password:shell'.
# 'name' is the user name.
# 'password' is an encrypted password (e.g. generated with
# `echo "P4sSw0rD" \| openssl passwd -stdin`).
# If empty or missing, they'll get an empty password.
# 'shell' is the default shell (if empty, default is /bin/sh).
Please help me solving the problem
Where did you download your recipes?
I will do verification in my build environment.