Hello Community,
After successfully bitbaking the full firmware image with bitbake imx-image-full, I tried populating the yocto SDK with bitbake imx-image-full -c populate_sdk but got following error :
ERROR: imx-image-full-1.0-r0 do_populate_sdk: Unable to install packages. Command '/data/Khang/realtime7-viper-yocto-bsp-6_1_22-2_0_0/build-xwayland/tmp/work/imx8mpevk-poky-linux/imx-image-full/1.0-r0/recipe-sysroot-native/usr/bin/apt-get install --allow-downgrades --allow-remove-essential --allow-change-held-packages --allow-unauthenticated --no-remove apt curl docker dpkg firmwared imx-g2d-samples jailhouse modemmanager networkmanager networkmanager-nmcli opencv-apps opencv-samples optee-client optee-os os-release packagegroup-base-extended packagegroup-core-boot packagegroup-core-full-cmdline packagegroup-core-nfs-server packagegroup-core-sdk packagegroup-core-ssh-openssh packagegroup-core-standalone-sdk-target packagegroup-core-tools-debug packagegroup-core-tools-profile packagegroup-core-weston 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-imx-isp packagegroup-imx-ml packagegroup-imx-security packagegroup-qt6-imx packagegroup-qt6-modules packagegroup-security-parsec packagegroup-security-tpm2 packagegroup-tools-bluetooth python3-opencv run-postinsts softhsm swtpm target-sdk-provides-dummy tzdata u-boot-fw-utils u-boot-imx weston-xwayland xterm' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
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:
libqt6networksettings6 : Depends: connman but it is not installable
Recommends: qtdeviceutilities-plugins
Recommends: qtdeviceutilities-qmlplugins
E: Unable to correct problems, you have held broken packages.
ERROR: Logfile of failure stored in: /data/Khang/realtime7-viper-yocto-bsp-6_1_22-2_0_0/build-xwayland/tmp/work/imx8mpevk-poky-linux/imx-image-full/1.0-r0/temp/log.do_populate_sdk.61503
ERROR: Task (/data/Khang/realtime7-viper-yocto-bsp-6_1_22-2_0_0/sources/meta-imx/meta-sdk/dynamic-layers/qt6-layer/recipes-fsl/images/imx-image-full.bb:do_populate_sdk) failed with exit code '1'
NOTE: Tasks Summary: Attempted 12902 tasks of which 10004 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/data/Khang/realtime7-viper-yocto-bsp-6_1_22-2_0_0/sources/meta-imx/meta-sdk/dynamic-layers/qt6-layer/recipes-fsl/images/imx-image-full.bb:do_populate_sdk
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
Could you advice how to solve the issue, please ?
Host : Ubuntu-20.04
Target : iMX8MPEVK
Best Regards,
Khang
Hi @khang_letruong!
Thank you for contacting NXP Support!
Try to limit the cores and try to recompile the SDK.
You can limit the cores using the next lines in the local.conf file:
Note: We recommend 4 GB of RAM per core
BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"
If the problem persists I recommend compiling the SDK using a new Yocto project.
You can share your downloads by modifying the local.conf to compile the SDK.
Best Regards!
Chavira
Hi,
To summarize :
LF-6.1.36 :
- On native Ubuntu-20.04 host :
+ imx-image-full : PASSED
+ imx-image-full -c populate_sdk : PASSED
- On dockerized Ubuntu-20.04 host : not necessarily tested
LF-6.1.22:
- On native Ubuntu-20.04 host :
+ imx-image-full : PASSED
+ imx-image-full -c populate_sdk : FAILED (even with the reduction of number of parallel threads / CPU cores)
- On dockerized Ubuntu-20.04 host : I used this https://github.com/varigit/var-host-docker-containers/blob/master/Dockerfile_20.04
+ imx-image-full : PASSED
+ imx-image-full -c populate_sdk : PASSED (no need to reduce the number of parallel threads / CPU cores which might already be imposed by the virtual machine's configuration).
I think that there ought to be some mismatching configuration of LF-6.1.22 to the existing native host machine (which works well with LF-6.1.36).
Best Regards,
Khang
Hi @Chavira ,
Limiting the number of CPU core with a fresh Yocto project does not work for BSP LF-6.1.22_2.0.0 either. However it works with newer BSP LF-6.1.36-2.1.0.
Regards,
Khang