I posted the question at imx forum:
https://community.nxp.com/message/1312372?commentID=1312372&et=watches.email.thread#comment-1312372
hi,
I want to build apt-get in my yocto image in maaxboard which is porting from imx8 imx8mqevk board , so I can install executable code from board.
I add some lines in my locol.conf from the guide here: How to install apt-get to the Yocto Project image - i.MXDev Blog
82 PACKAGE_CLASSES = " package_deb"
83 PACKAGE_FEED_URIS = "http://192.168.254.1:5678"
84 EXTRA_IMAGE_FEATURES += " package-management "
85 EXTRA_IMAGE_FEATURES ="debug-tweaks package-management"
86 CORE_IMAGE_EXTRA_INSTALL += " apt"
but some error happened when I build with : bitbake fsl-image-validation-imx
any help? thank you very much.
build output:
...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
cogl-1.0-dev : Depends: cogl-1.0 (= 1.22.2-r0)
Recommends: libcogl-dev but it is not installable
Recommends: libcogl-gles2-dev but it is not installable
Recommends: libcogl-pango-dev but it is not installable
Recommends: libcogl-path-dev but it is not installable
libgl-imx-dev : Depends: libgl-mesa-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
WARNING: fsl-image-validation-imx-1.0-r0 do_rootfs: The license listed Arphic-Public-License was not in the licenses collected for recipe ttf-arphic-uming
WARNING: fsl-image-validation-imx-1.0-r0 do_rootfs: [log_check] fsl-image-validation-imx: found 1 warning message in the logfile:
[log_check] WARNING: Unable to install packages. Command '/opt/oe/maaxboard/test/maaxboard/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/fsl-image-validation-imx/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --force-yes --allow-unauthenticated imx-codec-dev libglib-2.0-dev alsa-utils-dev xprop-dev libxv-dev libassimp-dev gobject-introspection-dev source-han-sans-cn-fonts-dev nettle-dev ltp-dev atftp-dev packagegroup-core-full-cmdline-libs-dev libcairo-dev base-passwd-dev numactl-dev libice-dev libglib-2.0-locale-en-gb i2c-tools-dev packagegroup-fsl-tools-gpu-dev libpam-locale-en-gb libuser-locale-en-gb systemd-dev pango-dev gtk+3-locale-en libgpuperfcnt-dev libdbus-glib-1-dev tcl-dev fbset-dev tk-dev libtheora-dev hicolor-icon-theme-dev cpio-dev avahi-locale-en-gb libclutter-1.0-dev can-utils-dev connman-dev cryptodev-tests-dev imx-parser-dev libaprutil-1-dev mktemp-dev python-dev libksba-dev packagegroup-core-tools-debug-dev packagegroup-fsl-gstreamer1.0-audio-dev libtag-dev libclc-imx-dev packagegroup-base-wifi-dev packagegroup-base-ipv6-dev file-dev libgmp-dev libvulkan-dev packagegroup-base-zeroconf-dev libevdev-dev dbench-dev blktool-dev nodejs-dev pinentry-dev libapr-1-dev gstreamer1.0-dev libspeex-dev libharfbuzz-dev weston-init-dev libunwind-dev iptables-dev imx-gst1.0-plugin-dev gdb-dev vim-dev pciutils-dev iputils-dev systemd-serialgetty-dev xkeyboard-config-dev libgbm-imx-dev minicom-dev slang-dev libjson-glib-1.0-locale-en-gb libuser-dev libepoxy-dev xvideo-tests-dev vlan-dev python3-dbus-dev bluez5-dev lttng-tools-dev libgudev-1.0-dev liburcu-dev packagegroup-core-boot-dev glib-networking-locale-en-gb libgdk-pixbuf-2.0-dev imx-gpu-sdk-dev tcf-agent-dev avahi-dev libwaffle-1-dev libgcrypt-dev patch-dev xserver-xf86-config-dev libxrender-dev imx-gpu-viv-dev usbutils-dev initscripts-dev libpam-dev python-setuptools-dev xserver-xorg-dev xwininfo-dev libtiff-dev packagegroup-base-alsa-dev bonnie++-dev valgrind-dev gst-examples-dev packagegroup-base-usbhost-dev libnfsidmap-dev liblzo2-dev libglew-dev packagegroup-fsl-gstreamer1.0-base-dev packagegroup-core-buildessential-dev libsoup-2.4-dev python3-pygobject-dev nspr-dev curl-dev e2fsprogs-dev linux-firmware-dev weston-dev libxkbfile-dev optee-os-imx-dev libpixman-1-dev gstreamer1.0-locale-en-gb libvdk-imx-dev libnss-mdns-dev cracklib-dev packagegroup-fsl-tools-audio-dev libglu-dev libpopt-dev gtk+3-locale-en-gb xf86-input-libinput-dev libxcomposite-dev gtk+-dev tinycompress-dev vulkan-demos-dev libxrandr-dev nbench-byte-dev packagegroup-fsl-gstreamer1.0-full-dev packagegroup-base-pci-dev libxt-dev libxcursor-dev libatk-1.0-locale-en-gb rsync-dev powertop-dev libmpc-dev kmscube-dev libxtst-dev iw-dev packagegroup-base-extended-dev xterm-dev packagegroup-base-nfc-dev systemtap-locale-en systemtap-dev qca-tools-dev nfs-utils-dev lttng-modules-dev shadow-dev ofono-dev kmod-dev libatk-bridge-2.0-dev udev-extraconf-dev psplash-dev pkgconfig-dev strace-dev libasound-dev gstreamer1.0-rtsp-server-dev libwebp-dev libxaw-dev mc-locale-en-gb net-tools-dev blktrace-dev fsl-rc-local-dev powertop-locale-en-gb libgles-imx-dev ed-dev glib-networking-dev gcc-dev vulkan-tools-dev gtk+3-dev libogg-dev libpcap-dev libmpfr-dev packagegroup-core-full-cmdline-utils-dev libjson-c-dev libnl-3-dev libassuan-dev libunistring-dev util-linux-dev packagegroup-core-full-cmdline-extended-dev packagegroup-core-tools-profile-dev packagegroup-core-full-cmdline-sys-services-dev mmc-utils-dev cryptodev-module-dev packagegroup-fsl-tools-testapps-fslcodec-testapps-dev libjpeg-dev fping-dev libegl-imx-dev ptpd-dev packagegroup-fsl-tools-benchmark-dev packagegroup-core-full-cmdline-dev-utils-dev autoconf-dev acl-dev elfutils-dev memtester-dev libaio-dev libgnutls-dev time-dev which-dev libv4l-dev xkeyboard-config-locale-en-gb less-dev rgb-dev libxss-dev packagegroup-distro-base-dev tiobench-dev packagegroup-core-full-cmdline-initscripts-dev packagegroup-base-3g-dev libyaml-0-dev udev-rules-imx-dev consolekit-dev logrotate-dev libfontenc-dev libvorbis-dev x11perf-dev libgdk-pixbuf-2.0-locale-en-gb libatspi-locale-en-gb libsamplerate0-dev imx-vpu-hantro-dev cpufrequtils-dev mesa-demos-dev iperf3-dev libsbc-dev systemd-gpuconfig-dev procps-dev packagegroup-fsl-gstreamer1.0-dev fbset-modes-dev cogl-1.0-locale-en-gb busybox-dev run-postinsts-dev libmnl-dev imx-kobs-dev iozone3-dev mc-dev v4l-utils-dev packagegroup-tools-bluetooth-dev packagegroup-fsl-tools-gpu-external-dev cogl-1.0-dev libopenvg-imx-dev libfreetype-dev libspeexdsp-dev os-release-dev pulseaudio-dev gstreamer1.0-plugins-good-dev ruby-dev libtool-dev evtest-dev python-pip-dev libgpg-error-dev libxmu-dev libjson-glib-1.0-dev iproute2-dev lmbench-dev attr-dev tcpdump-dev sysklogd-dev apt-dev dpkg-dev libglapi-dev libxi-dev icu-dev packagegroup-base-nfs-dev libcap-dev libwrap-dev alsa-state-dev git-dev kbd-dev vulkan-headers-dev kexec-tools-dev libatspi-dev alsa-tools-dev vulkan-validationlayers-dev mtd-utils-dev libgal-imx-dev packagegroup-base-usbgadget-dev packagegroup-fsl-gstreamer1.0-network-base-dev packagegroup-core-ssh-openssh-dev libfontconfig-dev gstreamer1.0-plugins-base-locale-en-gb packagegroup-base-dev dbus-dev python3-pycairo-dev orc-dev fio-dev gzip-dev gtk+-locale-en-gb dosfstools-dev libsm-dev netbase-dev debianutils-dev imx-alsa-plugins-dev shared-mime-info-dev libxslt-dev sigma-dut-dev cronie-dev flac-dev imx-test-dev libusb-1.0-dev xauth-dev gstreamer1.0-plugins-base-dev libxres-dev babeltrace-dev packagegroup-core-full-cmdline-dev nano-dev librsvg-2-dev wpa-supplicant-dev libclutter-1.0-locale-en-gb xrestop-dev shadow-securetty-dev packagegroup-base-bluetooth-dev gstreamer1.0-plugins-bad-dev libnpth-dev xkbcomp-dev nss-dev libdaemon-dev python3-setuptools-dev rng-tools-dev apache2-dev packagegroup-fsl-gstreamer1.0-debug-dev mobile-broadband-provider-info-dev packagegroup-core-full-cmdline-multiuser-dev gettext-dev sudo-dev psmisc-dev imx-gpu-apitrace-dev glibc-locale-en-gb libinput-dev volatile-binds-dev gnupg-dev automake-dev packagegroup-machine-base-dev packagegroup-fsl-optee-imx-dev alsa-plugins-dev firmware-qca6174-dev ethtool-dev rpcbind-dev libpcre-dev libical-dev libgles2-imx-dev fstests-dev gnome-themes-standard-locale-en-gb packagegroup-fsl-gstreamer1.0-video-dev devil-dev source-han-sans-kr-fonts-dev gnome-themes-standard-dev ca-certificates-dev binutils-dev libatk-1.0-dev findutils-dev packagegroup-fsl-tools-testapps-dev libxft-dev coreutils-dev at-dev systemd-compat-units-dev firmware-imx-dev libsoup-2.4-locale-en-gb perf-dev lrzsz-dev libxinerama-dev expect-dev gstreamer1.0-plugins-good-locale-en-gb glibc-mtrace-dev libcroco-dev unzip-dev libxpm-dev neard-dev libfslvpuwrap-dev mtdev-dev libgl-imx-dev hostapd-dev libxfont2-dev libevent-dev trace-cmd-dev libsndfile-dev packagegroup-core-tools-testapps-dev openssh-dev libpng16-dev linuxptp-dev libglut-dev vkmark-dev libxkbcommon-dev arm-compute-library-dev packagegroup-core-nfs-server-dev glmark2-dev gtkperf-dev grep-dev update-rc.d-dev tree-dev makedevs-dev xhost-dev ntp-dev ttf-arphic-uming-dev fti-locator-dev gstreamer1.0-plugins-bad-locale-en-gb lttng-ust-dev optee-test-imx-dev libtirpc-dev powertop-locale-en-us tar-dev optee-client-imx-dev' returned 100:
ERROR: fsl-image-validation-imx-1.0-r0 do_rootfs: [log_check] fsl-image-validation-imx: found 1 error message in the logfile:
[log_check] E: Unable to correct problems, you have held broken packages.
ERROR: fsl-image-validation-imx-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /opt/oe/maaxboard/test/maaxboard/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/fsl-image-validation-imx/1.0-r0/temp/log.do_rootfs.8898
ERROR: Task (/opt/oe/maaxboard/test/maaxboard/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-validation-imx.bb:do_rootfs) failed with exit code '1'
.....
my full local file is here:
1 MACHINE ??= 'imx8mqevk'
2 DISTRO ?= 'fsl-imx-xwayland'
3 PARALLEL_MAKE ?= "-j 20"
4 BB_NUMBER_THREADS ?= "20"
5 #PACKAGE_CLASSES ?= "package_rpm"
6 EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
7 USER_CLASSES ?= "buildstats image-mklibs image-prelink"
8 PATCHRESOLVE = "noop"
9 IMAGE_INSTALL_append = " rng-tools libgl-mesa-dev"
10 IMAGE_INSTALL_remove = " cogl-1.0-dev bgl-imx-dev"
11 #IMAGE_INSTALL_append +=" chromium-ozone-wayland"
12 DISTRO_FEATURES_append = " xorg-server-xwayland"
13 #CORE_IMAGE_EXTRA_INSTALL += " chromium-ozone-wayland"
14 CORE_IMAGE_EXTRA_INSTALL += "chromium-x11"
15 #IMAGE_ROOTFS_EXTRA_SPACE = "10485760"
16 IMAGE_ROOTFS_EXTRA_SPACE = "8388608"
17 #IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
18 IMAGE_FEATURES += "ssh-server-openssh package-management hwcodecs splash dev -pkgs"
19 DISTRO_FEATURES_append = " pam"
20
21 IMAGE_INSTALL_append += " gnupg atftp atftpd ntp ntpdate fping xauth xhost a pt"
22 EXTRA_IMAGE_FEATURES ?= "tools-debug tools-profile debug-tweaks eclipse-debu g tools-sdk dev-pkgs"
23 IMAGE_INSTALL_append += " \
24 tcf-agent \
25 openssh-sftp-server \
26 gdbserver \
27 apache2 net-tools \
28 "
29 IMAGE_INSTALL_append += " \
30 i2c-tools e2fsprogs-resize2fs \
31 bash bc cpio gawk tree rsync ldd vim nano \
32 diffutils coreutils findutils iputils \
33 git git-perltools libwebsockets libwebsockets-dev vlan tcpdump \
34 "
35
36 TOOLCHAIN_TARGET_TASK_append += " kernel-devsrc kernel-modules kernel-dev li bwebsockets-dev libwebsockets"
IMAGE_INSTALL_append +=" packagegroup-core-buildessential udev jpeg-tools jp eg \
39 kernel-devsrc kernel-modules kernel-dev libgl-mesa-dev"
40
41
42 # display language support
43 CORE_IMAGE_EXTRA_INSTALL += " \
44 source-han-sans-cn-fonts \
45 source-han-sans-kr-fonts \
46 ttf-arphic-uming \
47 "
48 USER_CLASSES ?= "buildstats image-mklibs image-prelink"
49 # fti
50 CORE_IMAGE_EXTRA_INSTALL += " \
51 fti-locator \
52 "
53 # fti-touchscreen
54 # "
55 INHERIT += "extrausers"
56 ROOT_PASSWORD = "66666666"
57 EXTRA_USERS_PARAMS = "usermod -P ${ROOT_PASSWORD} root;"
58 EXTRA_USERS_PARAMS += "useradd -P ${ROOT_PASSWORD} myuser;"
59 EXTRA_USERS_PARAMS += "usermod -aG sudo myuser;"
60 hostname_pn-base-files = "fortress"
61
62 IMAGE_INSTALL_append += " \
63 perl ruby \
64 nodejs nodejs-npm python \
65 "
66 BB_DISKMON_DIRS ??= "\
67 STOPTASKS,${TMPDIR},1G,100K \
68 STOPTASKS,${DL_DIR},1G,100K \
69 STOPTASKS,${SSTATE_DIR},1G,100K \
70 STOPTASKS,/tmp,100M,100K \
71 ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
73 ABORT,${SSTATE_DIR},100M,1K \
74 ABORT,/tmp,10M,1K"
75 PACKAGECONFIG_append_pn-qemu-native = " sdl"
76 PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
77 CONF_VERSION = "1"
78
79 DL_DIR ?= "/opt/Downloads"
80
81
82 PACKAGE_CLASSES = " package_deb"
83 PACKAGE_FEED_URIS = "http://192.168.254.1:5678"
84 EXTRA_IMAGE_FEATURES += " package-management "
85 EXTRA_IMAGE_FEATURES ="debug-tweaks package-management"
86 CORE_IMAGE_EXTRA_INSTALL += " apt"
87 ACCEPT_FSL_EULA = "1"