ov7251 Not found in Raspbian Lite

1.Which seller did you purchase the product(s) from?
Amazon
2.The Model number of the product(s) you have purchased?
X002x9rp1J / B016101. The camera also has UC-545 Rev C in silkscreen print
3.Which Platform are you using the product(s) on?
Raspberry Pi Zero W
4.Which instruction are you following?
https://www.arducam.com/docs/cameras-for-raspberry-pi/migrated/ov7251-0-3mp-global-shutter-raspberrypi-camera/
5.Has your product ever worked properly?
Not that I know of
6.What problems are you experiencing?
After following the instructions from the link above, /dev/video0 is not listed. The red LED blinks on a Pi reboot, which helps confirm the cable is installed correctly.
7.What attempts at troubleshooting have you already made?
Reformatted and installed Raspbian from a clean image sudo apt update sudo apt upgrade sudo rpi-update Ensured the cable is the correct orientation on both the pi and camera board Stackoverflow / Google searches to see if others had this problem
8.How would you like us to help you?
I would like to get the camera working, preferably with OpenCV at the higher framerates (> 150fps)offered at 320x240 resolutions.

/boot/config.txt file:

For more options and information see

http://rpf.io/configtxt

Some settings may impact device functionality. See link above for details

Uncomment some or all of these to enable the optional hardware interfaces

dtparam=i2c_arm=on

#dtparam=i2s=on

#dtparam=spi=on

Enable audio (loads snd_bcm2835)

dtparam=audio=on

[pi4]

Enable DRM VC4 V3D driver on top of the dispmanx display stack

dtoverlay=vc4-fkms-v3d

max_framebuffers=2

[all]

#dtoverlay=vc4-fkms-v3d

dtoverlay=dwc2

dtparam=i2c_vc=on

dtoverlay=ov7251

start_x=1

gpu_mem=128

output of >> cat /var/log/syslog | grep ov7251:

Jul 28 22:21:06 raspberrypi kernel: [ 26.176455] ov7251 10-0060: cannot get enable gpio

Jul 28 22:21:06 raspberrypi kernel: [ 26.208175] ov7251: probe of 10-0060 failed with error -2

Jul 28 22:21:12 raspberrypi kernel: [ 33.130765] ov7251_dvdd: disabling

Jul 28 22:21:12 raspberrypi kernel: [ 33.130796] ov7251_dovdd: disabling

Jul 28 22:21:12 raspberrypi kernel: [ 33.130814] ov7251_avdd: disabling

Jul 28 22:46:17 raspberrypi kernel: [ 26.022667] ov7251 10-0060: cannot get enable gpio

Jul 28 22:46:17 raspberrypi kernel: [ 26.049663] ov7251: probe of 10-0060 failed with error -2

Jul 28 22:46:24 raspberrypi kernel: [ 33.135923] ov7251_dvdd: disabling

Jul 28 22:46:24 raspberrypi kernel: [ 33.135955] ov7251_dovdd: disabling

Jul 28 22:46:24 raspberrypi kernel: [ 33.135974] ov7251_avdd: disabling

That error traces back to the kernel module code: https://github.com/torvalds/linux/blob/master/drivers/media/i2c/ov7251.c

on lines 1356. I’m wondering if dwc2 is causing a GPIO pin conflict.

Nope, put it on Wifi and removed dwc2, still no luck

 

Ok, my next step was to run the examples in MIPI_Camera. The output from ./capture_raw is:

[email protected]:~/MIPI_Camera/RPI $ ./capture_raw
Open camera…
sh: 1: gpio: not found
sh: 1: gpio: not found
sh: 1: gpio: not found
sh: 1: gpio: not found
sh: 1: gpio: not found
sh: 1: gpio: not found
sh: 1: gpio: not found
sh: 1: gpio: not found
sh: 1: i2cdetect: not found
Hardware platform: 9000c1
Found sensor ov7251 at address 60
Setting the resolution…

Last update for the evening, I was able to get a bit further by reinstalling wiringpi and i2c-tools. This helped resolve the GPIO and i2cdetect issues.

Unfortunately, /dev/video0 is still missing. ./capture_raw also does not return anything but does show the following:

Open camera…
Found sensor ov7251 at address 60
Setting the resolution…

Ok, I think the issue is solved, though the camera is not showing up under /dev/video0 the arducam C library works to get 200fps @ 320x240 which is perfect!

Probably the main issue was I was running rpi-update which was causing firmware issues. I also started using the 2.52 wiringpi library mentioned in the Github page, though the notes say that it is only for the Pi 4.

Hi,
Great to hear that. Thanks for your sharing.