Our team is developing an edge AI computer vision application on the Genio 720 EVK (MT8391) using the Yocto BSP. We have encountered two critical hardware initialization and driver issues that prevent us from utilizing both the hardware AI accelerator (APU) and the Hardware ISP.
We would appreciate your guidance or patches to resolve these blockers.
1. Missing APU Power Domain in Device Tree
When deploying a model via ONNX Runtime with NeuronExecutionProvider, the application triggers a fatal C++ Core Dump (map::at: key not found). System-level debugging reveals this is caused by a missing APU power domain configuration, forcing the kernel to power off the APU during boot.
-
Kernel Log (
dmesg): The APU IOMMU fails to probe.[ 0.797209] mtk-iommu 19010000.iommu: Can't find apu power node![ 0.797969] mtk-iommu: probe of 19010000.iommu failed with error -22[ 7561.664718] apu_power_top_off ++ -
Device Tree Evidence: Decompiling
/sys/firmware/devicetree/baseshows that theiommu@19010000node lacks thepower-domainsproperty, whereas other nodes (likesmi-larb4) are configured correctly. Furthermore,pm_genpd_summaryshows no power domains registered for the APU/MDLA.
2. Hardware ISP Inaccessibility & libcamera Segfault
To optimize our pipeline, we attempted to use the Hardware ISP to transcode the 10-bit RAW Bayer stream (MBBA / SBGGR10_1X10) from the IMX258 sensor into standard YUV/RGB via GStreamer.
-
Missing V4L2 Nodes: We observed that only
camsvnodes (e.g.,/dev/video3) and MDP3/JPEG nodes are exposed. There are no standard V4L2 nodes exposed for the Hardware ISP. -
libcameraCrash: Attempting to use thelibcameraframework to bypass this results in a fatal crash. The driver fails to return standardioctlparameters, crashing the core.ERROR V4L2 v4l2_subdevice.cpp:1093 'imx258 8-001a': Unable to get rectangle 2 on pad 0/0: Inappropriate ioctl for deviceWARN CameraSensor camera_sensor.cpp:331 'imx258 8-001a': The sensor kernel driver needs to be fixedSegmentation fault (core dumped)
Support Request
-
APU: Can you provide a patched
.dtb,.dtbo, or the necessary kernel configuration to properly enable the APU power domain? -
ISP: What is the official method to utilize the hardware ISP on this BSP? Is there a proprietary HAL or a fix for the
libcameracrash?
Thank you for your time and support.