We made a TorizonCore Builder project to customize the TorizonCore image for our custom carrier board and application. As input image we were using using the following 5.7.0 nightly build image: torizon-core-docker-colibri-imx6-Tezi_5.7.0-devel-20220704+build.657. It builds correctly with this image but we needed to update it to a newer image built with some kernel options we requested to be enabled.
For the new input image, we thought it would a good idea to get back a production release and so we chose the most recent quarterly released image: torizon-core-docker-colibri-imx6-Tezi_6.1.0+build.1.
Our TorizonCore Builder project applies custom device tree and overlays, sets a custom splash screen, applies captured touch screen calibration changes and builds and copies an external kernel module to the custom image. When we try building it with the new input image, as it’s about to build the external kernel module it fails with the following error message and stack trace:
An unexpected Exception occured. Please provide the following stack trace to
the Toradex TorizonCore support team:
Traceback (most recent call last):
File "/builder/torizoncore-builder", line 217, in <module>
mainargs.func(mainargs)
File "/builder/tcbuilder/cli/build.py", line 471, in do_build
build(args.config_fname, args.storage_directory,
File "/builder/tcbuilder/cli/build.py", line 441, in build
fs_changes = handle_customization_section(
File "/builder/tcbuilder/cli/build.py", line 175, in handle_customization_section
handle_kernel_customization(props["kernel"], storage_dir=storage_dir)
File "/builder/tcbuilder/cli/build.py", line 231, in handle_kernel_customization
kernel_cli.kernel_build_module(
File "/builder/tcbuilder/cli/kernel.py", line 94, in kernel_build_module
kernel.build_module(
File "/builder/tcbuilder/backend/kernel.py", line 59, in build_module
subprocess.check_output(f"""PATH=$PATH:{toolchain} make -C {linux_src} ARCH={arch} \
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'PATH=$PATH:/storage/toolchain/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin make -C /storage/linux ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- modules_prepare' returned non-zero exit status 2.
If we comment out the external kernel module section from the tcbuild.yaml, the custom image builds and works correctly as far as we have been able to test it.
We are using torizoncore-builder 3.6.0.
Best regards.