Hi all,
I am new to the Torizoncore build environment, so I am facing a few technical challenges.
I am trying to integrate a camera driver into a TorizonCore image. The first issue is that TorizonCore and the driver have a slightly different kernel version, but I wanted try to see if this will work.
So I set up the .yaml file as following:
input:
easy-installer:
local: images/torizon-core-docker-verdin-imx8mp-Tezi_5.6.0+build.13.tar
customization:
# >> Splash screen:
splash-screen: custom/toradexlinux.png
# >> Directories overlayed to the base OSTree
filesystem:
- changes/
device-tree:
# >> Directories where to look for include files.
include-dirs:
- /home/sam/tcbworkdir/device-trees/dts-arm64/
# >> Custom device tree source:
custom: /home/sam/tcbworkdir/device-trees/dts-arm64/imx8mp-verdin-wifi-dahlia.dts
overlays:
add:
- device_trees/overlays/display-dpi-lt170410_overlay.dts
kernel:
# >> Custom kernel arguments.
arguments:
- key1=val1
- key2=val2
# >> Modules to build and possibly load automatically.
modules:
- source-dir: linux-toradex/
autoload: no
# >> The output section defines properties of the output image.
output:
easy-installer:
local: output_directory_CUSTOM
When I run torizoncore-builder build
I get the following error:
Building image as per configuration file ‘tcbuild.yaml’…
=>> Handling input section
Unpacking Toradex Easy Installer image.
Copying Toradex Easy Installer image.
Unpacking TorizonCore Toradex Easy Installer image.
Importing OSTree revision 83e43d79b825341ca12556a76e56d526816ec60873f2877795b6ed9c7ae2cc68 from local repository…
1129 metadata, 12761 content objects imported; 520.6 MB content written
Unpacked OSTree from Toradex Easy Installer image:
Commit checksum: 83e43d79b825341ca12556a76e56d526816ec60873f2877795b6ed9c7ae2cc68
TorizonCore Version: 5.6.0+build.13
=>> Handling customization section
=> Building module located at 'linux-toradex/'
Error: KERNEL_SRC not found in "linux-toradex/Makefile"
Note that I am cloning the Kernel source as following:
git clone -b toradex_5.4-2.3.x-imx git://git.toradex.com/linux-toradex.git
Is there is way to fix this problem? if so, what will it be?
Thanks for your patience