PINE64
Camera is working on Linux - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32)
+---- Forum: Camera Module (https://forum.pine64.org/forumdisplay.php?fid=38)
+---- Thread: Camera is working on Linux (/showthread.php?tid=1481)

Pages: 1 2 3 4 5 6


RE: Camera is working on Linux - @lex - 06-29-2016

You need to enable the sensor in the DTS and compile it.
The lsmod looks just fine.

First, you need to find out which sensor you have, i doubt there is OV6650 (352- by 288-pixel array
??) for the pine.

Please, if you can share a picture of your sensor and FPC cable would be nice.

BTW, we need to ask @tllim about the slightly modified s5k4ec.ko in some Android build, i don't know who is in charge of that build, but Android SDK 2.0 has outdated driver. May be the visible artifacts shown can be fixed if we find additional info about this specific s5k4ec source code and the clock used.

Anyway, if someone can get that source code and timings used we can improve the driver.


RE: Camera is working on Linux - micko - 06-30-2016

The camera module looks like this https://www.flickr.com/photos/96700120@N06/27892212642/in/dateposted/ and when attached like this https://www.flickr.com/photos/96700120@N06/27381039244/in/dateposted/

I found some info about compiling DTS from sunxi-wiki, but didn't find any sufficient instructions on how to do it. How do I enable and compile it?


RE: Camera is working on Linux - Pander - 06-30-2016

I am also stuck. What is the role of apt-get install v4l-utils here?

In which log should I see exactly what that this video device has been detected as micko also says.


RE: Camera is working on Linux - @lex - 06-30-2016

@micko
That is s5k4ec , same as mine. You need to enable this device in the DTS and compile it
Where i am right now i don't have access to the board, tomorrow i can share my DTB (the compiled DTS) with this device enabled.

@Pander
v4l-utils are used get some info about the camera, set some parms,etc.
If you have s5k4ec enabled you should see some debugging message (dmesg), like [s5kec] init sensor... (something like that).

I will update the instructions and logs (and DTB) so it will easy the use of the camera, sorry i am out of town right now.


RE: Camera is working on Linux - micko - 06-30-2016

(06-30-2016, 04:29 AM)@lex Wrote: @micko
That is s5k4ec , same as mine. You need to enable this device in the DTS and compile it
Where i am right now i don't have access to the board, tomorrow i can share my DTB (the compiled DTS) with this device enabled.
Thanks!
Is there a guide or something about the DTS and how to compile it? I'm guessing it's the *.dts in /boot/pine64/, but how do I modify that? It looks like a binary file. I am quite familiar with compiling stuff myself but this is something I've never heard of.


RE: Camera is working on Linux - @lex - 06-30-2016

Here is Basic instructions, should work with Debian / Ubuntu.

https://github.com/avafinger/pine64_camera


RE: Camera is working on Linux - micko - 07-01-2016

I did as you instructed and loading the modules worked. My dmesg from that operation http://pastebin.com/8XE8iEaw

However starting guvcview crashes. Here's output on terminal http://pastebin.com/kN56b4AT

And here's dmesg from that http://pastebin.com/QCjn9bs9

So no camera for me yet...


RE: Camera is working on Linux - @lex - 07-01-2016

dmesg tell us Camera was recognized and is OK!

You are almost there, so now tell us a bit more about guvciew, how did you install it?

Print the output:
  * uname -ra
 * lsb_release -a
 * cat /etc/*release
 * cat /proc/version


Edit: Forgot to say DTB is for HDMI


RE: Camera is working on Linux - MarkHaysHarris777 - 07-01-2016

Sorry for the intrusion; hope things are working better... I am wondering if anyone who has the camera connected and recognized successfully might post a close-in pic so that everyone can see how the cable is connected, side-up, side-down, and maybe some tips on the method that 'you' used to open the connector (or if you even did open it) and what your experience with that was... tnx

marcus


RE: Camera is working on Linux - BigBear59 - 07-01-2016

@lex
Quote:dmesg tell us Camera was recognized and is OK!

What lines exactly tell us that the Camera was recognized and is OK?

Also in GitHub there is a file "camera.cfg" where does that belong?

Thanks