AnsweredAssumed Answered

problem with package_deb

Question asked by Francesco Giusti on Aug 28, 2019
Latest reply on Oct 28, 2019 by Francesco Giusti

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

 

package_deb in yocto

Outcomes