Adding multilib in Yocto 5.4.24 for iMX8MMini-EVK

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

Adding multilib in Yocto 5.4.24 for iMX8MMini-EVK

3,795 Views
prashant_chopad
Contributor II

Hi All,

I have iMX8M Mini EVK.

I tried to build Yocto version L5.4.24_2.1.0 with Multilib support.

Added following lines in conf/local.conf

# Define multilib target
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon"
# Add the multilib packages to the image
IMAGE_INSTALL_append = " lib32-glibc lib32-libgcc lib32-libstdc++"

Did # bitbake imx-image-multimedia

but got following errors:

ERROR: imx-image-multimedia-1.0-r0 do_rootfs: Unable to install packages. Command '/code/imx8m/yocto_5424/imx-yocto-bsp/imx8mmevk/tmp/work/imx8mmevk-poky-linux/imx-image-multimedia/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --force-yes --allow-unauthenticated --no-remove alsa-utils apt connman connman-client dnsmasq docker dpkg hostapd i2c-tools iptables jailhouse lib32-bash lib32-libc6 lib32-libgcc1 lib32-libstdc++6 mosquitto nodejs nodejs-npm ntp openjdk-8 packagegroup-base-extended packagegroup-core-boot packagegroup-core-buildessential packagegroup-core-full-cmdline packagegroup-core-nfs-server packagegroup-core-ssh-dropbear packagegroup-core-tools-debug packagegroup-core-tools-profile packagegroup-core-tools-testapps packagegroup-fsl-gstreamer1.0 packagegroup-fsl-gstreamer1.0-full packagegroup-fsl-optee-imx packagegroup-fsl-tools-audio packagegroup-fsl-tools-benchmark packagegroup-fsl-tools-gpu packagegroup-fsl-tools-gpu-external packagegroup-fsl-tools-testapps packagegroup-tools-bluetooth portaudio-v19 psplash pulseaudio pulseaudio-misc pulseaudio-server python3 python3-pip run-postinsts weston-init weston-xwayland xterm' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
acl adwaita-icon-theme-symbolic alsa-conf alsa-plugins-pulseaudio-conf
...............
................
................
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (arm64) does not match system (amd64)
Selecting previously unselected package xf86-input-libinput:arm64.
Preparing to unpack .../xf86-input-libinput_0.29.0-r0_arm64.deb ...
Unpacking xf86-input-libinput:arm64 (2:0.29.0-r0) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (arm64) does not match system (amd64)
Selecting previously unselected package xkbcomp:arm64.
Preparing to unpack ..././xkbcomp_1.4.2-r0_arm64.deb ...
Unpacking xkbcomp:arm64 (1.4.2-r0) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (arm64) does not match system (amd64)
Selecting previously unselected package xserver-xf86-config:arm64.
Preparing to unpack .../xserver-xf86-config_0.1-r33_arm64.deb ...
Unpacking xserver-xf86-config:arm64 (0.1-r33) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: package architecture (arm64) does not match system (amd64)
Selecting previously unselected package xterm:arm64.
Preparing to unpack ..././xterm_349-r0_arm64.deb ...
Unpacking xterm:arm64 (349-r0) ...
Errors were encountered while processing:
/code/imx8m/yocto_5424/imx-yocto-bsp/imx8mmevk/tmp/work/imx8mmevk-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/imx8mmevk/./lib32-base-files_3.0.14-r89_armhf.deb
/code/imx8m/yocto_5424/imx-yocto-bsp/imx8mmevk/tmp/work/imx8mmevk-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/armv7at2hf-neon/./lib32-libc6_2.30-r0_armhf.deb
/code/imx8m/yocto_5424/imx-yocto-bsp/imx8mmevk/tmp/work/imx8mmevk-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/armv7at2hf-neon/./lib32-update-alternatives-opkg_0.4.2-r0_armhf.deb
/code/imx8m/yocto_5424/imx-yocto-bsp/imx8mmevk/tmp/work/imx8mmevk-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/armv7at2hf-neon/./lib32-bash_5.0-r0_armhf.deb
/code/imx8m/yocto_5424/imx-yocto-bsp/imx8mmevk/tmp/work/imx8mmevk-poky-linux/imx-image-multimedia/1.0-r0/oe-rootfs-repo/aarch64/./ncurses-terminfo-base_6.1+20190803-r0_arm64.deb
W: --force-yes is deprecated, use one of the options starting with --allow instead.
W: No sandbox user '_apt' on the system, can not drop privileges
E: Sub-process dpkg returned an error code (1)

ERROR: Logfile of failure stored in: /code/imx8m/yocto_5424/imx-yocto-bsp/imx8mmevk/tmp/work/imx8mmevk-poky-linux/imx-image-multimedia/1.0-r0/temp/log.do_rootfs.2883653
ERROR: Task (/code/imx8m/yocto_5424/imx-yocto-bsp/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-multimedia.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 10230 tasks of which 1 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/code/imx8m/yocto_5424/imx-yocto-bsp/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-multimedia.bb:do_rootfs
Summary: There were 8 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Would you please guide me to resolve this error?

Regards,

Prashant

0 Kudos
5 Replies

664 Views
umarFarooq-emb
Contributor I

Hello,

Did you get anything on this? I am also having the same issue.

 

ERROR: imx-image-core-1.0-r0 do_rootfs: Unable to install packages. Command '/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/opkg.conf -t /opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/temp/ipktemp/ -o /opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version install curl docker firmwared imx-test jailhouse opkg packagegroup-base-extended packagegroup-core-boot packagegroup-core-nfs-server packagegroup-core-sdk packagegroup-core-ssh-dropbear packagegroup-core-standalone-sdk-target packagegroup-core-tools-debug packagegroup-core-tools-profile packagegroup-fsl-optee-imx packagegroup-imx-core-tools packagegroup-imx-security psplash run-postinsts' returned 255:
Installing run-postinsts (1.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/all/run-postinsts_1.0-r10_all.ipk.
Installing tini (0.19.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/armv8a/tini_0.19.0-r0_armv8a.ipk.
Installing base-files (3.0.14) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/imx8mmevk/base-files_3.0.14-r89_imx8mmevk.ipk.
Installing base-passwd (3.5.29) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/armv8a/base-passwd_3.5.29-r0_armv8a.ipk.
Installing runc-opencontainers (1.1.4+git0+974efd2dfc) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/armv8a/runc-opencontainers_1.1.4+git0+974efd2dfc-r0_armv8a.ipk.
Installing update-alternatives-opkg (0.5.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/armv8a/update-alternatives-opkg_0.5.0-r0_armv8a.ipk.
Installing opkg-arch-config (1.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/imx8mmevk/opkg-arch-config_1.0-r1_imx8mmevk.ipk.
Installing netbase (6.3) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/all/netbase_6.3-r0_all.ipk.
Installing ldd (2.35) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/armv8a/ldd_2.35-r0_armv8a.ipk.
Installing libc6-dbg (2.35) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/armv8a/libc6-dbg_2.35-r0_armv8a.ipk.
Installing optee-os (3.17.0.imx) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/imx8mmevk/optee-os_3.17.0.imx-r0_imx8mmevk.ipk.
Installing fsl-rc-local (1.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/armv8a/fsl-rc-local_1.0-r0_armv8a.ipk.
Installing ldconfig (2.35) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/armv8a/ldconfig_2.35-r0_armv8a.ipk.
Installing shadow-securetty (4.6) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/imx8mmevk/shadow-securetty_4.6-r3_imx8mmevk.ipk.
Installing alsa-conf (1.2.6.1) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/armv8a-mx8mm/alsa-conf_1.2.6.1-r0_armv8a-mx8mm.ipk.
Installing alsa-ucm-conf (1.2.6.3) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/all/alsa-ucm-conf_1.2.6.3-r0_all.ipk.
Installing packagegroup-base-ipv6 (1.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/imx8mmevk/packagegroup-base-ipv6_1.0-r83_imx8mmevk.ipk.
Installing busybox-udhcpc (1.35.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/armv8a/busybox-udhcpc_1.35.0-r0_armv8a.ipk.
Installing os-release (1.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/all/os-release_1.0-r0_all.ipk.
Installing volatile-binds (1.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/all/volatile-binds_1.0-r0_all.ipk.
Installing systemd-conf (1.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/imx8mmevk/systemd-conf_1.0-r0_imx8mmevk.ipk.
Installing systemd-serialgetty (1.0) on root
Downloading file:/opt/yocto/build/tmp/work/imx8mmevk-poky-linux/imx-image-core/1.0-r0/oe-rootfs-repo/imx8mmevk/systemd-serialgetty_1.0-r5_imx8mmevk.ipk.
Installing update-rc.d (0.8) on root

 

BR

Umar.

0 Kudos

3,736 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

After investigating with team, the problem was caused by the package management. Multilib is not supported by the debian package management so it went wrong while packing the lib32 into rootfs file.

I have succeded in building the yocto L5.4.24 with multilib by commenting the following item in the local.conf file.

#PACKAGE_CLASSES = "package_deb"

#EXTRA_IMAGE_FEATURES += "package-management"

This operation will make the package-management back to default red hat package-management (rpm).

Best regards,
Aldo.

0 Kudos

3,731 Views
prashant_chopad
Contributor II

Hi All,

When would the support for Debian package be available?

Regards,

Prashant

0 Kudos

3,691 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

For now, RPM or IPK package management can be used for Mutilib . This can be checked in the chapter 3.12.2.3 of Yocto Project Development Tasks Manual.

https://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#platdev-working-with-libraries

BR,
Aldo.

0 Kudos

3,778 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

I have replicated this on my side, I see the same result as you I tried different settings with the same result, I'll investigate more on this and get back to you as soon as I get something.

Best regards,
Aldo.

0 Kudos