rego21
Posts: 30
Joined: Fri Feb 16, 2018 4:09 pm

bcm2835-unicam driver and ov5647

Sun Feb 09, 2020 4:36 pm

Hi all!

I'm trying to learn more about V4l2, so while searching about this I found the bcm2835-unicam driver. And I'm trying to use it along with the OV5647 Camera. So far what I have done:

- used the overlay provided --> ov5647 overlay
- modrpobe both bcm2835-unicam and ov5647 modules

However, the system doesn't create a /dev/video0 and cant output video...

Can anyone help me with this or maybe I'm missing something.

Setup:
Raspberry Pi A+ v1.1

Thank you all!

UPDATE: When running modprobe ov5647 dmesg outputs the following : probe of 0-0036 failed with error -5

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 8076
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: bcm2835-unicam driver and ov5647

Sun Feb 09, 2020 9:46 pm

Please don't spam multiple threads and then ask the same question on a new thread as well.

Youve loaded modules but haven't provided any device tree configuration for them, therefore they sit there dumbly and are unable to load.
Add "dtoverlay=ov5647" to config.txt and the kernel will load the matching modules for you, and they will then have the required configuration. As you're on a Pi 1A+ you'll need to add "i2c_pins_28_29=1" to the end of the line as the camera is connected to those GPIOs instead of the default 44&45.

See https://github.com/raspberrypi/linux/bl ... verlay.dts for the contents of that overlay.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

rego21
Posts: 30
Joined: Fri Feb 16, 2018 4:09 pm

Re: bcm2835-unicam driver and ov5647

Mon Feb 10, 2020 5:44 pm

6by9 wrote:
Sun Feb 09, 2020 9:46 pm
Please don't spam multiple threads and then ask the same question on a new thread as well.

Youve loaded modules but haven't provided any device tree configuration for them, therefore they sit there dumbly and are unable to load.
Add "dtoverlay=ov5647" to config.txt and the kernel will load the matching modules for you, and they will then have the required configuration. As you're on a Pi 1A+ you'll need to add "i2c_pins_28_29=1" to the end of the line as the camera is connected to those GPIOs instead of the default 44&45.

See https://github.com/raspberrypi/linux/bl ... verlay.dts for the contents of that overlay.
Hii,

Sorry I forgot to delete them!

Its working, thanks for the help I was missing the i2c pins. Thanks once more!

Mrlbppy
Posts: 12
Joined: Fri Aug 30, 2019 12:05 pm

Re: bcm2835-unicam driver and ov5647

Thu Mar 26, 2020 12:46 pm

Hi,
I need your help. I have a problem. When I run 'sudo modprobe bcm2835-unicam' , I get some errors:
libkmod: ERROR ../libkmod/libkmod-config.c:656 kmod_config_parse: /etc/modprobe.d/▒laCklist,rt,8xxxu.conf line 1: ignoring bad line starting with 'import'
Do you know why?

Return to “Camera board”