PINE64
Android USB camera support - Android 7.0 - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Android on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=5)
+--- Thread: Android USB camera support - Android 7.0 (/showthread.php?tid=2228)

Pages: 1 2 3


Android USB camera support - Android 7.0 - mikey0000 - 09-17-2016

Hi all,

Been working on getting the camera module up a firing. Tonight I had success and got my logitech 615 webcam opening in a camera app. However it probably means that the himax 5mp camera won't work with these changes. Just out of curiosity how many people here have the himax 5mp camera? It should be possible to support both but as I don't have one I can't test it.

Will post a link to the module when its a bit more ready flag that here it is and eventually it will end up in Ayufan's Android builds.

To use the module ALPHA
https://drive.google.com/open?id=0B3jDRHAxbOx4RTZGYUtmcmVVckE

run adb remount

adb push 32bit/camera.tulip.so /system/lib/hw/
adb push 64bit/camera.tulip.so /system/lib64/hw/

and also everytime you start

lsmod and look for uvcvideo or ls /dev/ and look for video0

if they are not there do the following

adb shell insmod /system/vendor/modules/videobuf2-vmalloc.ko sorted in latest build, uvcvideo too
adb shell insmod /system/vendor/modules/uvcvideo.ko  (assuming kernel support)

---> these two last steps should be fixed eventually in a new os build latest Ayufan has fixed this

You should at least get a video feed with this module.

Bug Reports:

- app your using ( e.g skype, camera app)
- Device your using (camera not pine)
- adb logcat with errors
- steps to reproduce



as always I will not be held accountable if your pine melts down because you followed these instructions!


RE: Android USB camera support - Android 7.0 - ayufan - 09-17-2016

Amazing work! Congrats Smile


RE: Android USB camera support - Android 7.0 - Artyom - 09-17-2016

(09-17-2016, 03:25 AM)mikey0000 Wrote: Hi all,

Been working on getting the camera module up a firing. Tonight I had success and got my logitech 615 webcam opening in a camera app. However it probably means that the himax 5mp camera won't work with these changes. Just out of curiosity how many people here have the himax 5mp camera? It should be possible to support both but as I don't have one I can't test it.

Will post a link to the module when its a bit more ready and eventually it will end up in Ayufan's Android builds.
I have logitech 920. I don't have 5mp camera modul. Maybe need two different images? One with 5mp camera modul and one with logitech? I need logitech camera support. Because I need Skype work properly, but 5 MP camera modul not so good choice for Skype... But 5 MP camera need for robotics, I think.


RE: Android USB camera support - Android 7.0 - ayufan - 09-17-2016

mikey0000: I'm working on integrating Kernel compilation process into AOSP.

Could you add missing pieces to this defconfig: https://github.com/ayufan-pine64/linux-pine64/blob/hdmi-cec/arch/arm64/configs/sun50iw1p1smp_android_defconfig?

And we also have to add this insmods: https://github.com/ayufan-pine64/device-softwinner/blob/nougat/tulip-chiphd/init.sun50iw1p1.rc#L51


RE: Android USB camera support - Android 7.0 - ayufan - 09-17-2016

mikey0000: kernel compilation is part of AOSP now, when you build image you will also compile kernel, you have to update local manifests

mikey0000: I'm working on adding these two modules now and to add insmods for them.

mikey0000: I use longsleep kernel with my HDMI-CEC patches


RE: Android USB camera support - Android 7.0 - ayufan - 09-17-2016

The kernel modules are now part of the build


RE: Android USB camera support - Android 7.0 - Zoidiano0 - 09-17-2016

i have the camera i can test it !


RE: Android USB camera support - Android 7.0 - Project-XXX - 09-18-2016

I'm also have the camera Pine is selling, so just tell me what to do and how then I'll give it a shoot...


RE: Android USB camera support - Android 7.0 - mikey0000 - 09-18-2016

(09-17-2016, 09:21 AM)ayufan Wrote: The kernel modules are now part of the build

Awesome, so quick, I was out all of yesterday with a nasty gastro bug.

@Zoidiano0 and @Project-XXX wait for the next working build of Ayufans 7.0 as it has most of the work I've done to get the camera module up. 1. let me know if it works on the himax (I'm assuming it will) If it doesn't detect it automagically, please do the following.

adb shell
dmesg output
lsmod output

check for /dev/video0

also mention what apps you've used to check the camera with as it matters.

Ayufan has done an awesome job and already enabled the correct module on boot.


RE: Android USB camera support - Android 7.0 - mikey0000 - 09-20-2016

@Zoidiano0 and @Project-XXX can you follow instructions at top post on latest Ayufan build either TV or non, please specify which build you will use. @ayufan can you confirm if cameraservice is running on TV version?