So first here is the key question:
Did anyone get exactly this combination NanoPi Duo2, ov5640 camera, armbian focal running? If YES, HOW … ? 😊
Details below. btw. buster would be also fine...
uname -a output is
Linux nanopiduo2 5.10.34-sunxi #21.05.1 SMP Thu May 6 20:13:21 UTC 2021 armv7l armv7l armv7l GNU/Linux
I’m quite new to Linux and Armbian and have a slight problem using an Nanopi Duo2 and an ov5640 camera.
It works pretty well using the image from FriendlyElec. This has been tested using the mjpg-streamer. Due to this success I’m sure the entire hardware setup is correct.
Unfortunately the ov5640 camera does not work using mjpg-streamer as before with the armbian focal image. Also some testing with ffmpeg did not work. I can explain in more detail what “does not work” means. Ideally I’d like to have the mjpg-streamer (or the later experimental) in a working shape for testing purposes. THEN I can decide how to proceed with my own development.
ffmpeg would be also okay for testing. For me it looks like ffmpeg fails for other reasons.
I did dig through several newsgroups but could not identify the root cause.
Here is what I verified or tested:
i2cdetect 2 output is correct. It shows the device on address 0x3c
I’m not sure if that worked from the beginning after several changes but this didn’t impact at all the failing camera.
Type: Video Capture
: 'ST12' (Sunxi Tiled NV12 Format, compressed)
: 'NV12' (Y/CbCr 4:2:0)
modprobe ov5640 does not show any errors inside the dmesg output.
Interestingly after rmmod and modprobe frame_rate=2 there IS an error “unknown parameter”. This means THIS current module as part of the kernel doesn’t have that parameter as specified elsewhere.
I also played a little with dtb overlays but still no success. The last “hardcore test” 😊 was putting in the friendlyArm dtb into the armbian image but that caused other errors.
Thanks in advance!