Hi,
as I also use the CSI camera, I first followed the guide in AR0521 Camera to create a custom Torizon 6.5.0 image with camera drivers.
Then I tried to follow the guide in to enable a custom device tree overlay for the Cortex M7.
I ran this command command to unpack my previously built image:
torizoncore-builder images unpack torizon-core-docker-verdin-imx8mp-Tezi_6.5.0-devel-20241225134819+build.0.tar
Afterwards any command I run in torizoncore-builder (e.g. dto deploy, image download) causes the following exception:
An unexpected Exception occurred. Please provide the following stack trace to
the Toradex TorizonCore support team:
Traceback (most recent call last):
File "/builder/torizoncore-builder", line 230, in <module>
mainargs.func(mainargs)
File "/builder/tcbuilder/cli/images.py", line 86, in do_images_download
images.download_tezi(r_ip, args.remote_username, args.remote_password,
File "/builder/tcbuilder/backend/images.py", line 223, in download_tezi
prod, yocto, build_type, build_number, module_name, kernel_type,
UnboundLocalError: local variable 'build_type' referenced before assignment
I tried both the normal and early access version.
Do I need to take a different path to import the device tree overlay, as I have custom built Torizon OS? If yes how?
The article (link) which I followed to create the image with the camera drivers only mentions creating custom yocto layers. But I hope there is a easier way to create a single device overlay?
I saw also that the device tree overlay which is shown in the article How to Run Hello World on the Cortex-M | Toradex Developer Center is quite different from the one in the git repository verdin-imx8mp_hmp_overlay.dts « overlays - device-tree-overlays.git - Sources for Device Tree Overlays.
Which of those should I use and why are they so different?
Regards
Johannes