Hello, since we have updated the yocto project with the new BSP (with kernel 4.14.x) we cannot generate the IPK packages. when we do the bitbake commands always return this trouble:
peter@ubuntu-xenial:~/imx-yocto-bsp-1.0b/build$ bitbake linux-toradex
Loading cache: 100% |###########################################################################################################################################################################################################################################| Time: 0:00:00
Loaded 3467 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################################################################################################################################| Time: 0:00:02
Parsing of 2552 .bb files complete (2551 cached, 1 parsed). 3468 targets, 223 skipped, 7 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "apalis-imx8"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "4.14-sumo"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky = "HEAD:95ebfb33e4c0aa9669f318e061a4d7540b84f4ac"
meta-oe
meta-multimedia = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-freescale = "HEAD:407c6cf408969445031a492e2d25e0e2749582ea"
meta-freescale-3rdparty = "HEAD:88a29631809d1af0df618245430db29f2a7012b5"
meta-freescale-distro = "HEAD:f7e2216e93aff14ac32728a13637a48df436b7f4"
meta-bsp
meta-sdk = "HEAD:55754a3cc79759f18fa1df88ae2ffa91fbd87d84"
meta-browser = "HEAD:75640e14e325479c076b6272b646be7a239c18aa"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-qt5 = "HEAD:d4e7f73d04e8448d326b6f89908701e304e37d65"
WARNING: /home/peter/imx-yocto-bsp-1.0b/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-toradex_4.14.78.bb.do_compile is tainted from a forced run | ETA: 0:00:00
Initialising tasks: 100% |######################################################################################################################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-toradex-4.14.78-r0 do_package_write_ipk: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_package_ipk(d)
0003:
File: '/home/peter/imx-yocto-bsp-1.0b/sources/poky/meta/classes/package_ipk.bbclass', lineno: 87, function: do_package_ipk
0083:
0084: os.chdir(oldcwd)
0085:
0086: if error:
*** 0087: raise error
0088:}
0089:do_package_ipk[vardeps] += "ipk_write_pkg"
0090:do_package_ipk[vardepsexclude] = "BB_NUMBER_THREADS"
0091:
Exception: subprocess.CalledProcessError: Command 'PATH="/home/peter/imx-yocto-bsp-1.0b/sources/poky/scripts:/home/peter/imx-yocto-bsp-1.0b/build/tmp/work/apalis_imx8-poky-linux/linux-toradex/4.14.78-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/peter/imx-yocto-bsp-1.0b/build/tmp/work/apalis_imx8-poky-linux/linux-toradex/4.14.78-r0/recipe-sysroot/usr/bin/crossscripts:/home/peter/imx-yocto-bsp-1.0b/build/tmp/work/apalis_imx8-poky-linux/linux-toradex/4.14.78-r0/recipe-sysroot-native/usr/sbin:/home/peter/imx-yocto-bsp-1.0b/build/tmp/work/apalis_imx8-poky-linux/linux-toradex/4.14.78-r0/recipe-sysroot-native/usr/bin:/home/peter/imx-yocto-bsp-1.0b/build/tmp/work/apalis_imx8-poky-linux/linux-toradex/4.14.78-r0/recipe-sysroot-native/sbin:/home/peter/imx-yocto-bsp-1.0b/build/tmp/work/apalis_imx8-poky-linux/linux-toradex/4.14.78-r0/recipe-sysroot-native/bin:/home/peter/imx-yocto-bsp-1.0b/sources/poky/bitbake/bin:/home/peter/imx-yocto-bsp-1.0b/build/tmp/hosttools" opkg-build -Z xz kernel-module-xt-conntrack-4.14.78-toradex_imx_4.14.78_1.0.0_ga-bring_up+gb04d94e /home/peter/imx-yocto-bsp-1.0b/build/tmp/work/apalis_imx8-poky-linux/linux-toradex/4.14.78-r0/deploy-ipks/apalis_imx8' returned non-zero exit status 1
Subprocess output:
kernel-module-xt-conntrack-4.14.78-toradex_imx_4.14.78_1.0.0_ga-bring_up+gb04d94e
*** Error: Package name kernel-module-xt-conntrack-4.14.78-toradex_imx_4.14.78_1.0.0_ga-bring_up+gb04d94e contains illegal characters, (other than [a-z0-9.+-])
opkg-build: Please fix the above errors and try again.
ERROR: linux-toradex-4.14.78-r0 do_package_write_ipk: Function failed: do_package_ipk
ERROR: Logfile of failure stored in: /home/peter/imx-yocto-bsp-1.0b/build/tmp/work/apalis_imx8-poky-linux/linux-toradex/4.14.78-r0/temp/log.do_package_write_ipk.19309
ERROR: Task (/home/peter/imx-yocto-bsp-1.0b/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-toradex_4.14.78.bb:do_package_write_ipk) failed with exit code '1'
If we change the package type in conf/local.conf to RPM it works but in our system we don’t have RPM installed, only OPKG.
Plese help us. Thanks a lot