Jump to content

Can I use OV5640 on Nanopi Duo2 with armbian now?


developer_ken

Recommended Posts

Hi everyone.

I bought an ov5640 camera for my Nanopi Duo2. As their wiki clearly showed ov5640 plug and play, I thought I am facing no problems.

That's not the case. Armbian seems not to support ov5640 by defualt.

 

My problem:

OV5640 do not work on nanopi duo2 with latest armbian.

 

What did I try:

I searched for answers online, but they are old (years ago), saying I have to edit some dts files to get the cam work.

I tried some of them, then I messed up my system and have to re-flash the sd card again and again. I guess they might won't apply to the latest image.

 

I wonder:

  • Is the camera ov5640 on Nanopi Duo2 supported by armbian by default now?
  • If not, how exactly can I make it work?

 

Thanks for reading , looking for solutions.

 

--------------------------------------------------

 

Additional info (on a fresh image from armbian, only did "apt upgrade" and changed some armbian-config)

 

I am on linux 5.10.60-sunxi:

root@nanopiduo2:~# uname -a
Linux nanopiduo2 5.10.60-sunxi #21.08.1 SMP Wed Aug 25 18:19:32 UTC 2021 armv7l armv7l armv7l GNU/Linux

 

What I did to armbian-config:

 lqqqqToggle hardware configurationqqqqqqk
 x                                       x
 x Use <space> to toggle functions and   x
 x save them. Exit when you are done.    x
 x                                       x
 x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
 x x   [ ] analog-codec                x x
 x x   [*] cir                         x x
 x x   [ ] cpu-clock-1.2GHz-1.3v       x x
 x x   [*] cpu-clock-1.368GHz-1.3v     x x
 x x   [ ] cpu-clock-1.3GHz-1.3v       x x
 x x   [*] i2c0                        x x
 x x   [*] i2c1                        x x
 x x   [*] i2c2                        x x
 x x   [*] pps-gpio                    x x
 x x   [*] pwm                         x x
 x x   [*] spdif-out                   x x
 x x   [*] spi-add-cs1                 x x
 x x   [ ] spi-jedec-nor               x x
 x x   [*] spi-spidev                  x x
 x x   [ ] uart1                       x x
 x x   [ ] uart2                       x x
 x x   [ ] uart3                       x x
 x x   [*] usbhost0                    x x
 x x   [ ] usbhost1                    x x
 x x   [*] usbhost2                    x x
 x x   [*] usbhost3                    x x
 x x   [*] w1-gpio                     x x
 x mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj x
 x                                       x
 x                                       x
 tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
 x         < Save >     < Back >         x
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

 

/dev/video0 exists no matter the camera is connected or not, but can't open by ffmpeg or fswebcam.

root@nanopiduo2:~# ls /dev/video*
/dev/video0
root@nanopiduo2:~# fswebcam a.png
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Unable to query input 0.
VIDIOC_ENUMINPUT: Inappropriate ioctl for device

 

dmesg never mention 5640.

root@nanopiduo2:~# dmesg|grep 5640
root@nanopiduo2:~#

 

Some says I need to load vfe_v4l2, but failed:

root@nanopiduo2:~# modprobe vfe_v4l2
modprobe: FATAL: Module vfe_v4l2 not found in directory /lib/modules/5.10.60-sunxi

 

Edited by developer_ken
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines