BananaPi-M2-Zero-OV5640 icon indicating copy to clipboard operation
BananaPi-M2-Zero-OV5640 copied to clipboard

camera not enabled

Open guy111a opened this issue 2 years ago • 5 comments

Hello

I got a bananaPI M2 Zero and got the recommended camera module. Trying to follow this manual, downloaded the image, it is working.

when trying to init the camera i get this: pi@banana:~$ sudo media-ctl --device /dev/media1 --set-v4l2 '"ov5640 2-003c":0[fmt:YUYV8_2X8/1280x720]' Failed to enumerate /dev/media1 (-2) pi@banana:~$ sudo media-ctl --device /dev/media1 --set-v4l2 '"ov5640 2-003c":0[fmt:YUYV8_2X8/640x480]' Failed to enumerate /dev/media1 (-2) pi@banana:~$

I activated all io of the board (i2c etc') no help.

From DMESG: pi@banana:~$ dmesg | grep capture -a3 -n5 109-[ 1.192517] libata version 3.00 loaded. 110-[ 1.192815] usbcore: registered new interface driver usbfs 111-[ 1.192863] usbcore: registered new interface driver hub 112-[ 1.192910] usbcore: registered new device driver usb 113-[ 1.193053] mc: Linux media interface: v0.10 114:[ 1.193087] videodev: Linux video capture interface: v2.00 115-[ 1.193217] pps_core: LinuxPPS API ver. 1 registered 116-[ 1.193225] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected] 117-[ 1.193245] PTP clock support registered 118-[ 1.193965] Advanced Linux Sound Architecture Driver Initialized. 119-[ 1.194992] NetLabel: Initializing pi@banana:~$

so, would like help in getting it to work.

Thank you. bpi2mz

Guy

guy111a avatar Jul 13 '22 12:07 guy111a

I'm not sure what's causing your problem. It looks like a hardware problem. Are you 100% sure that you have the OV5640 camera suitable for the BananaPIi-M2? There are OV5640 cameras with opposite wiring.

I downloaded the image again and tested it on my BPi. No problems here. I have listed a number of diagnostic screens below.

Screenshot_2022-07-15_09-38-32 Screenshot_2022-07-15_09-39-44 Screenshot_2022-07-15_09-39-21 Screenshot_2022-07-15_09-27-24

Qengineering avatar Jul 15 '22 09:07 Qengineering

Thank you for your comment, i was following the next : https://github.com/Qengineering/BananaPi-M2-Zero-OV5640 And bought the camera mentioned there : https://nl.aliexpress.com/item/32660117929.html

The one that I got looks the same as the photos by the manual and the aliexpress dealer.

Let me test the things you show in the screen shots.

Thank you

Guy

On Fri, Jul 15, 2022 at 12:53 PM Q-engineering @.***> wrote:

I'm not sure what's causing your problem. It looks like a hardware problem. Are you 100% sure that you have the OV5640 camera suitable for the BananaPIi-M2? There are OV5640 cameras with opposite wiring.

I downloaded the image again and tested it on my BPi. No problems here. I have listed a number of diagnostic screens below.

[image: Screenshot_2022-07-15_09-38-32] https://user-images.githubusercontent.com/44409029/179199383-10f3a675-95c1-4e4d-9545-a2e1b08b3189.png [image: Screenshot_2022-07-15_09-39-44] https://user-images.githubusercontent.com/44409029/179199464-64be7776-47e4-409d-a824-dd1dd7742b71.png [image: Screenshot_2022-07-15_09-39-21] https://user-images.githubusercontent.com/44409029/179199528-dc2934c3-d757-4787-9dd7-54d3de6ba682.png [image: Screenshot_2022-07-15_09-27-24] https://user-images.githubusercontent.com/44409029/179199572-b1733fea-ce94-43c8-9fa9-b2292fabdb15.png

— Reply to this email directly, view it on GitHub https://github.com/Qengineering/BananaPi-M2-Zero-OV5640/issues/4#issuecomment-1185379465, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTXH2SUADVFVRSKDGPXAFTVUEYIPANCNFSM53OSIAAA . You are receiving this because you authored the thread.Message ID: @.***>

--

~Guy

guy111a avatar Jul 15 '22 10:07 guy111a

In that case it should (eventually) work; you use the same hardware.

Qengineering avatar Jul 15 '22 10:07 Qengineering

I experienced this problem with the same board and camera. Initially, on first boot I successfully used the camera following the instructions in the readme. I then updated all packages in aptitude and rebooted. Afterwards, /dev/media1 and /dev/video1 were no longer present.

pi@banana:~$ v4l2-ctl --list-devices
cedrus (platform:cedrus):
	/dev/video0

pi@banana:~$ ls /dev/video*
/dev/video0
pi@banana:~$ ls /dev/media*
/dev/media0
pi@banana:~$

After this I restored a fresh image and the camera worked once more. Looking at scrollback from my earlier session, I noticed that one of the packages that was upgraded was linux-image-current-sunxi. I suspect that doing so caused my problems, although I haven't confirmed. If appropriate, I would suggest putting a hold on that package in aptitude.

burpen avatar Oct 04 '22 22:10 burpen

Amazing !

Used the same img file and somehow it works now .. very slow, but working.

Thank you for the help !!!!!!

[image: image.png]

On Fri, Jul 15, 2022 at 1:55 PM Q-engineering @.***> wrote:

In that case it should (eventually) work; you use the same hardware.

— Reply to this email directly, view it on GitHub https://github.com/Qengineering/BananaPi-M2-Zero-OV5640/issues/4#issuecomment-1185429087, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTXH2X355ONZSHCALJG3ITVUE7RBANCNFSM53OSIAAA . You are receiving this because you authored the thread.Message ID: @.***>

--

~Guy

guy111a avatar Oct 11 '22 09:10 guy111a