Open deepcoder opened 2 years ago
That means the RPi kernel is not using a patched driver for the VCM. I have this working locally, and Arducam also provide the fix (I think in this repository). I'll be working towards getting this integrated in the RPi kernel and upstream too - but I don't know when I'll complete that.
In fact, I fear 'Inappropriate ioctl' might also be that you are trying to operate the focuser on the wrong device... Have you patched your device tree and kernel sources for the RPi?
I have same problem with 64mp autofocus camera. I've followed all instructions to install patch to kernel and dt overlay. Autofocusing works on camera, but the code provided in the repo does not
actually @kbingham above is correct: I used the wrong device, and the correct one was /dev/v4l-subdev1 for arducam64mp
Glad you resolved it. I hope we'll get the focus support for these devices merged in libcamera which will make sure it gets the right device to prevent this confusion in the future.
with: Arducam 16MP Autofocus Raspberry Pi Camera Module
I am getting the following error when trying to run your autofocus example.