Hi,
I am trying to build debian package for i.MX8MQ, but it does't work. I use thud version.
I change local.conf file with: PACKAGE_CLASSES ?= "package_deb" and EXTRA_IMAGE_FEATURES ?= "debug-tweaks package-management".
I try to bitbake core_image_minimal, but it fails with this error:
ERROR: linux-imx-4.19.35-r0 do_package_write_deb: Fatal errors occurred in subprocesses:
Command 'PATH="/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/sources/poky/scripts:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot/usr/bin/crossscripts:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/usr/sbin:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/usr/bin:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/sbin:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/bin:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/sources/poky/bitbake/bin:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/hosttools" dpkg-deb -b /home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/packages-split/kernel-module-snd-soc-bcm2835-i2s-4.19.35-imx_4.19.35_1.0.0+ge4452f4458e4 /home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/deploy-debs/imx8mqevk' returned non-zero exit status 2.: Traceback (most recent call last):
File "/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/sources/poky/meta/lib/oe/utils.py", line 272, in run
ret = self._target(*self._args, **self._kwargs)
File "/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/sources/poky/meta/classes/package_deb.bbclass", line 274, in deb_write_pkg
shell=True)
File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'PATH="/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/sources/poky/scripts:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot/usr/bin/crossscripts:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/usr/sbin:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/usr/bin:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/sbin:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/recipe-sysroot-native/bin:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/sources/poky/bitbake/bin:/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/hosttools" dpkg-deb -b /home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/packages-split/kernel-module-snd-soc-bcm2835-i2s-4.19.35-imx_4.19.35_1.0.0+ge4452f4458e4 /home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/deploy-debs/imx8mqevk' returned non-zero exit status 2.
...
...
...
ERROR: linux-imx-4.19.35-r0 do_package_write_deb: Function failed: do_package_deb
ERROR: Logfile of failure stored in: /home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/build/tmp/work/imx8mqevk-poky-linux/linux-imx/4.19.35-r0/temp/log.do_package_write_deb.17810
ERROR: Task (/home/ubuntu/yocto/imx-yocto-bsp-qt5-thud/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.19.35.bb:do_package_write_deb) failed with exit code '1'
(points refer to similar error that I don't write here...)
someone has any idea how to solve this problem ?
BR,
Francesco
The error you are getting is error 2 that means "no such file or directory". So please check the distribution. Possibly it is incomplete because of lack of disk space.
There is lot of disk space.
I think that problem is related to how SRCBRANCH variable is build, because introduce "_" in pkg name of kernel (e.g. kernel-module-snd-usbmidi-lib-4.19.35-imx_4.19.35_1.0.0+ge4452f4458e4 ) and dpkg_deb doesn't accept this chararcter.
If I use package_rpm everything works fine.
Francesco
Hi,
i don't know if you solved you problem, but we ran into exactly the same problem.
we fixed it by adding this in a linux-imx.4.19.35.bbappend file:
LOCALVERSION = "-${@'${SRCBRANCH}'.replace('_', '-')}"
Laurent
Hi Laurent,
yes I had already resolve the problem almost in the same way.
Your solution is better, I just assign a string without "_" to LOCALVERSION.
Best regards,
Francesco