Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camera not enabled #4

Open
guy111a opened this issue Jul 13, 2022 · 5 comments
Open

camera not enabled #4

guy111a opened this issue Jul 13, 2022 · 5 comments

Comments

@guy111a
Copy link

guy111a commented Jul 13, 2022

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 giometti@linux.it
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

@Qengineering
Copy link
Owner

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

@guy111a
Copy link
Author

guy111a commented Jul 15, 2022 via email

@Qengineering
Copy link
Owner

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

@burpen
Copy link

burpen commented Oct 4, 2022

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.

@guy111a
Copy link
Author

guy111a commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants