MiPi Camera

Moderators: mdrjr, odroid

MiPi Camera

Unread postby kidovate » Fri Jul 26, 2013 8:27 am

Hi all,

Is there any way to use the MIPI camera module with Ubuntu? I know you clarify on your "buy" page that it is not compatible, but has anyone made a driver in the community?

Thanks
kidovate
 
Posts: 44
Joined: Fri Jun 21, 2013 8:26 am
languages_spoken: english
ODROIDs: ODroid X2

Re: MiPi Camera

Unread postby mdrjr » Fri Jul 26, 2013 10:11 am

ahh.. not that we are aware.. its something on driver<->v4l2 talks the problem.. :(
mdrjr
Site Admin
 
Posts: 11635
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: MiPi Camera

Unread postby philipp » Thu Oct 17, 2013 2:33 am

Hi, sorry to reopen this thread.
Where is this problem located? I mean, the Android kernel has some sort of v4l abstraction builtin as far as I know,
so is it possible/tried to use the module in Ubuntu on top of the Android kernel?
philipp
 
Posts: 10
Joined: Sat Aug 17, 2013 12:35 am
languages_spoken: english, german
ODROIDs: u2, x2

Re: MiPi Camera

Unread postby mdrjr » Thu Oct 17, 2013 4:13 am

There was a patch to add s5k4ecgx on kernel from Linaro.. however I haven't tested it.

http://patchwork.linuxtv.org/patch/14344/

You can try it.
mdrjr
Site Admin
 
Posts: 11635
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: MiPi Camera

Unread postby philipp » Thu Oct 17, 2013 5:02 am

I'm building the 3.0.51 (http://dn.odroid.com/Android_Beta_1.7/BSP) which doesn't have
the drivers/media/i2c subsystem that is patched there.

Are you saying that the module is currently not talking to the video4linux system and therefore will not work in Ubuntu if the necessary communcation protocol is not included/patched into the kernel...?
philipp
 
Posts: 10
Joined: Sat Aug 17, 2013 12:35 am
languages_spoken: english, german
ODROIDs: u2, x2

Re: MiPi Camera

Unread postby mdrjr » Thu Oct 17, 2013 5:07 am

1. We use kernel 3.8 for Linux (Its on our github).
This patch will probably work on 3.8 with minor changes :)
mdrjr
Site Admin
 
Posts: 11635
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: MiPi Camera

Unread postby philipp » Thu Oct 17, 2013 6:03 am

My approach was the following:
I knew from this forum and the product side that the camera module won't work with Ubuntu.
So I thought I maybe could make it work using the Android kernel (in a Ubuntu build).

You say the patch will /probably/ make the module work in the default Linux kernel?? That's good news! I'll try that and report.

Can you say something about my idea above? Is it worth to try on?
philipp
 
Posts: 10
Joined: Sat Aug 17, 2013 12:35 am
languages_spoken: english, german
ODROIDs: u2, x2

Re: MiPi Camera

Unread postby mdrjr » Thu Oct 17, 2013 10:45 am

The problem isn't the kernel is the driver ...
mdrjr
Site Admin
 
Posts: 11635
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: MiPi Camera

Unread postby Matt » Fri Oct 18, 2013 8:21 am

The driver for the camera that exists in the "Android Kernel", as you put it, is not a "real" driver. It is probably nothing more than a generic memory driver that moves information bak and forth to the closed-source vendor binary driver written for Android. The Linux driver for the camera is a real driver that attempts to do the same job as the binary driver for Android. It is a work of reverse-engineering done by watching the effects on the camera as certain information and commands are passed to/from the binary driver.

If you configured the Linux kernel to be Android-compatible, complete with the camera driver, you would get a driver that is basically just 3 minutes of coding above completely worthless for doing what you want, because you would still have to code a userland driver to talk to the Linux driver in order to use the camera.
ODROID Boards: U2, X2, XU+E rev.2
Accessories: VU, Smart Power, 13" LCD Kit (for the X2)
User avatar
Matt
 
Posts: 576
Joined: Tue Feb 26, 2013 4:57 pm
Location: Charlottesville, VA, USA
languages_spoken: English
ODROIDs: X2, U2, XU+E rev.2, Smart Power

Re: MiPi Camera

Unread postby philipp » Tue Oct 22, 2013 3:32 am

Ah, interesting..
The patch mentioned above is already applied to the 3.8 branch, but, like Matt suggests, it
doesn't help a lot.
Too bad, but thanks.
philipp
 
Posts: 10
Joined: Sat Aug 17, 2013 12:35 am
languages_spoken: english, german
ODROIDs: u2, x2

Re: MiPi Camera

Unread postby pculverhouse » Sun Jan 05, 2014 12:56 am

Sorry to butt in on this. I'm wanting to try out the MIPI camera interface under linux. I have some experience with hardware and drivers for cameras, having linked an omnivision camera up to an FPGA for image processing tasks. What is missing from the linux 3.8 that prevents me from using the S5K4ECGX camera in default VGA mode?

Regards

Phil
pculverhouse
 
Posts: 17
Joined: Mon Jul 15, 2013 7:12 pm
languages_spoken: english
ODROIDs: we have 20 X2's for robotics teaching and humanoid robot competition

Re: MiPi Camera

Unread postby pculverhouse » Sun Jan 05, 2014 1:00 am

Oh, I should have declared that I am using the Odroid XU. I'm currently running Xubuntu 13.10.

Phil
pculverhouse
 
Posts: 17
Joined: Mon Jul 15, 2013 7:12 pm
languages_spoken: english
ODROIDs: we have 20 X2's for robotics teaching and humanoid robot competition

Re: MiPi Camera

Unread postby mdrjr » Sun Jan 05, 2014 2:53 am

pculverhouse wrote:Oh, I should have declared that I am using the Odroid XU. I'm currently running Xubuntu 13.10.

Phil


AFAIK XU Mipi CSI isn't working.
mdrjr
Site Admin
 
Posts: 11635
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: MiPi Camera

Unread postby pculverhouse » Sun Jan 05, 2014 7:04 am

Thanks. I guess I have to go to Android then. But I think I'll get a performance hit with OpenCV and other maths computation if I do.

Are there any plans to get this working?

Regards

Phil
pculverhouse
 
Posts: 17
Joined: Mon Jul 15, 2013 7:12 pm
languages_spoken: english
ODROIDs: we have 20 X2's for robotics teaching and humanoid robot competition

Re: MiPi Camera

Unread postby priopiro2 » Mon Aug 21, 2017 11:38 pm

pculverhouse wrote:Thanks. I guess I have to go to Android then. But I think I'll get a performance hit with OpenCV and other maths computation if I do.

Are there any plans to get this working?

Regards

Phil


Hi, Phil
I read this thread and I understood that using mipi camera on Ubuntu was a little difficult.
Then, if the OS is Android, could you use the mipi camera module on ODROID XU?

I want to know whether there are any ways to use mipi camera module on ODROID XU or not ,regardless that which OS is running on it.

Regards

Hiro
priopiro2
 
Posts: 3
Joined: Mon Aug 21, 2017 11:04 pm
languages_spoken: english

Re: MiPi Camera

Unread postby meveric » Tue Aug 22, 2017 12:24 am

@priopiro2
this is a 3 1/2 year old thread.

The ODROID XU is no longer in production, the ODROID XU4 is NOT the same as the ODROID XU.

If you have an issue with the ODROID XU4 you should ask in the ODROID XU3/XU4 section, if it's about the ODROID XU, it may be very hard to find support at all.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7723
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: MiPi Camera

Unread postby priopiro2 » Tue Aug 22, 2017 12:41 am

Thank you for replying.
I see.
I know ODROID XU is an obsolete product.
I just want to know whether s5k4ecgx camera module did work on android on XU or not!
I hope someone knows that...

Anyway thank you!
priopiro2
 
Posts: 3
Joined: Mon Aug 21, 2017 11:04 pm
languages_spoken: english

Re: MiPi Camera

Unread postby odroid » Tue Aug 22, 2017 4:14 am

The ODROID-XU had no MIPI-CSI port on the board while it had a MIPI-DSI port for a LCD display.
User avatar
odroid
Site Admin
 
Posts: 24651
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: MiPi Camera

Unread postby priopiro2 » Tue Aug 22, 2017 10:11 am

I can see MIPI CSI connector on the bottom side of ODROID XU in this URL.
The connector locates at right edge in the bottom side's picture of ODROID.
http://www.hardkernel.com/main/products ... &tab_idx=2

I found this line in Hardkernel's linux repository:
\linux-odroidxu-3.4.y-android-jb\arch\arm\configs\odroidxu_android_csi_defconfig:
2003: CONFIG_VIDEO_S5K4ECGX=y

And the directory "odroidxu_android_csi_defconfig" does exist only in "linux-odroidxu-3.4.y-android-jb" branch.
and CONFIG_VIDEO_S5K4ECGX is set.

I supposed camera module S5K4ECGX works on android on XU.
priopiro2
 
Posts: 3
Joined: Mon Aug 21, 2017 11:04 pm
languages_spoken: english

Re: MiPi Camera

Unread postby odroid » Tue Aug 22, 2017 11:08 pm

You are right.
But we never tried it.
User avatar
odroid
Site Admin
 
Posts: 24651
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 1 guest