INNO-MAKER / CAM-OV9281RAW-V2

Sersor OV9281, RAW-DATA, 2-LAN Output Module
19 stars 4 forks source link

Raspberry Pi Zero 2 W Rev 1.0 #6

Open Belroguim opened 1 year ago

Belroguim commented 1 year ago

Hi,

I am using a fresh bullseye lite image and I can not use inno maker driver in pi Zero2. Instead, when I am following your documentation in a pi4 I can use your driver.

In your wiki you say it is compatible with Pi Zero: https://www.inno-maker.com/product/cam-mipiov9281/ CAM-MIPIOV9281 is an Industrial Camera Module for Raspberry Pi 4/3B+/3B/3A+/CM3/CM3+/Zero/ZeroW;

When I try automated install this message appear: ./autoinstall_driver.sh ------INNO-MAKER cammipi_ov9281 driver install script v1.0------ Enable i2c_vc in /boot/config.txt ... count = 1 count2 = 3 --- Add dtoverlay=vc_mipi_ov9281 to /boot/config.txt console=serial0,115200 console=tty1 root=PARTUUID=701c8738-02 rootfstype=ext4 fsck.repair=yes rootwait cma=128M cma=128M --- alread have cma=128M string ./autoinstall_driver.sh: line 81: warning: command substitution: ignored null byte in input 5.15.61-v7+ Raspberry Pi Zero 2 W Rev 1.0 armv7l @ Linux Version Not Match! Please contact support@inno-maker.com @ HW Version Not Match! Please contact support@inno-maker.com System is 32 bit arch. driverpath: ./0/0 @ Install Failed, Please contact support@inno-maker.com

Later, I have try manual install. But same unsuccesfully story. No drivers for kernell 5.15.84. If I try using drivers 5.15.32, only next devices are available: arm64 cm4-dual pi3 pi4 No zero is available. If I am using pi4, they are not working. Next messages are shown: pi@raspberrypi:~/CAM-OV9281RAW-V2/Linux_5.15.32/pi4 $ sudo make install sudo install -p -m 644 vc_mipi_ov9281/vc_mipi_ov9281.ko /lib/modules/5.15.84-v7+/kernel/drivers/media/i2c/ sudo install -p -m 644 vc_mipi_ov9281.dtbo /boot/overlays/ sudo /sbin/depmod -a 5.15.84-v7+ sudo /sbin/modprobe vc_mipi_ov9281 modprobe: ERROR: could not insert 'vc_mipi_ov9281': Exec format error make: *** [Makefile:35: install] Error 1

Could you point me how to solve it. I would like to use your driver in Mode 11 and Mode 12 in my Pi Zero.

Thanks in advance

Belroguim commented 1 year ago

I have also tried to compile driver from sources. Downloading headers of my kernel (5.15.84) according to this: https://github.com/raspberrypi/firmware/releases/tag/1.20230106 https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/ And "make" following this: https://github.com/INNO-MAKER/CAM-OV9281RAW-V2/blob/main/Documents/CAM-MIPI9281V2-Compile%20Driver%20Source%20Code.pdf Paying attention to also include this: dtoverlay=vc_mipi_ov9281,i2c_pins_28_29=1

But again, I end with: pi@raspberrypi:~ $ ls /dev/video0 ls: cannot access '/dev/video0': No such file or directory

I would thankfull any advide or clarification. May be it is not possible to accomplish what I am tring or someone could point me in the right direction.

Thanks