Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can I use OV5640 on Nanopi Duo2 with armbian now?

Featured Replies

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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.