Hello,
I am working on writing drivers for a currently non-supported image sensor to work with the IMX8M Plus. I have developed my source code for both the isp-imx package and the isp-vvcam package, and I have created a custom .dtb file for my sensor as well. On the imx8mp-evk board, I can load my image via SD card, boot into Linux, and see the correct .drv, .xml, .txt, and .ko files in their correct places on the target hardware.
I then execute a slightly modified run.sh script directly. I can see that all of my kernel modules load without issue, and I get the message "Starting isp_media_server with configuration file CAMERA0". This seems good so far, but unfortunately my g-streamer commands are failing with outputs "Failed to allocate the required memory" and "Internal Data Stream Error" (Full output attached).

My next step was to troubleshoot using v4l2-ctl, in order to determine if the issue is coming from my higher-level isp-imx driver, or my lower-level v4l2 driver. I have included the output from the command v4l2-ctl -d /dev/video2 --all (my sensor is connected on video2)--I am not entirely sure how to interpret that output, but nothing jumps out as incorrect to me. I have attached it here for reference. I then attempt to capture a raw Bayer frame using the command
v4l2-ctl -d /dev/video2 --set-fmt-video=width=1920,height=1080,pixelformat='YUYV' --stream-mmap --stream-count=1 --stream-to=image_1920x1080.bayer
Which results in a brief pause, followed by the following message:
VIDIOC_REQBUFS returned -1 (Resource temporarily unavailable)
This seems to indicate to me that the issue is with kernel-module-isp-vvcam, rather than isp-imx, but unfortunately I am not sure how to narrow it down much further than that.
I am currently looking into the VIDIOC_REQBUFS function, hoping I can find where it ties into my driver code. I realize that this is a very specific question, and might be difficult to answer without access to my source code, but maybe someone can help to at least point me in the right direction. Are there any additional troubleshooting steps I could try?
Please let me know if you have any other questions, or if anything above is unclear!
Thank you,
Cody Robson