I think you should start from using the script as you believe it should be used - if my script is wrong then that is an artifact of my attempt and not interesting.
In other words: show me how it works in any way and I will be satisfied.
To answer your question: The MIPI_Camera/RPI/utils/c2i_camera script does exactly the same, only it also check which board you have first (it has not support for the Fin board) and then sets the gpio accordingly.
Also see Lee from Arducam’s reply to my thread on their forum asking about this specifically telling me the pin needs to be powered on:
https://www.arducam.com/forums/topic/ov9281-uc-599-not-being-detected-need-help/#post-20243
Replying to your second thread, you are correct: the ov9281 bring up (via the i2c I guess, maybe some mipi specific stuff too? no way to know, it is closed) is done by arducam’s library, no question there. I am left to wait for arducam’s support to help me. I believe you are in a better position to ask them for help since you know your board better than I do.
The patch I created moves from “cannot find sensor” to “can find sensor, but timeout on taking an image”. This is where I am stuck.
There are btw two kernel drivers just not in upstream, and I’ve started using it in raspiraw [1] (which also does not use any kernel support) but did not manage to complete it
- https://github.com/BPI-SINOVOIP/BPI-F2S-bsp/blob/master/linux-sp/drivers/media/video/ov9281.c
-
https://gitlab.incom.co/CM-Shield/android_kernel_nvidia_quill/blob/lineage-15.1/kernel/linux-4.4/drivers/media/i2c/ov9281.c
(both have header files in the same subdirectory as well)