Jump to content

Armbian mainline and sun4i_csi csi-cam on BananaPi R1?


pschasch

Recommended Posts

Hello,

 

with 3.4. kernel I could use my csi-cam on my R1:

#5.0 Mega Pixel Banana PI Camera Module for Android
#and Linux. OV5640 chipset, CSI connector
#Price: US $24.00 / piece from aliexpress
sudo modprobe ov5640
sudo modprobe sun4i_csi0
#video stream
#mplayer tv://
#snapshot
mplayer tv:// -vo png -frames 1

Now I switched to armbian 4.7 with 4.2.6 to use new wifi-usb-drivers

but I saw that those modules are not supported in the new kernel.

:-(

 

Source of drivers:

https://github.com/LeMaker/linux-sunxi/tree/lemaker-3.4/drivers/media/video/sun4i_csi

https://github.com/LeMaker/linux-sunxi/blob/lemaker-3.4/drivers/media/video/sun4i_csi/device/ov5640.c

 

Did anyone got this to work with 4.x-kernel?

Is there a chance that it will/could be integrated in mainline-based Armbian?

 

regards

Link to comment
Share on other sites

Hi tkaiser

 

 

1)IMAGE see:

 

[ the black shadow on the left is from my too small hole in self-made R1-case :-)  ]

 

pndxoapx.png

 

http://www.directupload.net/file/d/4204/pndxoapx_png.htm

 

 

<a href="http://www.directupload.net"target="_blank"><img src="http://fs5.directupload.net/images/151216/pndxoapx.png" title="Kostenlos Bilder und Fotos hochladen"></a>

 

2)

How can I test max resolution?

I didn't config anything,  see my first post for what I (only) did.

 

3)

What do you want to say with your link-answer:

http://linux-sunxi.org/Mainlining_Effort#Major_drivers

"CSI (camera sensor interface) driver (WiP: Yassin Jaffer (ddc))"

Nothing is happening?

Nothing will ever happen?

 

 

I hoped anyone here or Igor has modified the code from : https://github.com/LeMaker/linux-sunxi/blob/lemaker-3.4/drivers/media/video/sun4i_csi/device/ov5640.cto/for 4.x-kernel or can do this with minimal effort...

 

regards

Link to comment
Share on other sites

I think working on CSI is still "work in progress" in mainline kernel. And regarding the OV5460 it's not worth the efforts. This is a "5MP" camera and I've never seen anyone being able to get more than 640x480 pixels with questionable quality out.

 

I tried to get an idea why and stumbled across a freescale forum (IIRC) where one engineer said that it's hard to write a driver for this module without loading/using BLOBs with tables for conversion (or something like that) on the camera first. In short words: If you don't sign an NDA with Omnivision you won't be able to write a driver for this module that doesn't suck.

 

We still use the RPi (B+) for this purpose. And the difference are just the drivers (for both the VPU -- HW accelerated h.264/1080p@30fps -- and OV5647 -- image quality)

 

Today I stumbled across these links: http://www.arducam.com/camera-modules/raspberrypi-camera/  and http://www.arducam.com/camera-modules/5mp-ov5640/

 

No idea how to deal with currently (maybe they've drivers that work better, but this still won't help with mainline kernel)

Link to comment
Share on other sites

Hi tkaiser, thanks for the info.

 

5640-BLOBs would not be a problem for me on banana pi/r1

...and for me 'only' 640x480/5MP is better as nothing!

The ardocam is spi, almost all my Gpio-pins or bussy/wired on R1.

So i would prefer using the CSI-cam on R1 with mainline.

 

regards

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines