Orange pi câmera gc2035 works fine with v4l2 applications


Recommended Posts

Hi, i discovered and solved incompatible gc2035 driver with some v4l2 applications.

 

I made some modifications to the 3.4.39-02 kernel-lobo:

 

gc2035: of 8fps to ~20fps eand improvements in the matter of light.

The original driver accepts only 800×600, added the following resolutions: 800×600/640×480/320×240

sunxi_wdt: builtin to module (greater flexibility to change the module options) / pr_info some functions, causing flood in kern.log (switched to pr_debug)

CONFIG_CMDLINE=â€earlyprintk=ttyS0,115200 loglevel=5 initcall_debug=0 console=ttyS0,115200 console=tty0 fsck.mode=force fsck.repair=yes init=/init ipv6.disable=1

kernel size: ~59mb

 

For more informations:

http://www.sistemasembarcados.org/2016/04/orange-pi-camera-with-v4l2loopback-vidcopy.html

Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

Thank you, for your input.

I have tried to make v42loopback, but it fails during make operation pointing to sun8i.110 kernel, with missing build folder. (As far as I understood correct one shold be 112 version, but don't know how to change symlink to it)

 

(I tried to deploy it on armbian 5.05)

Link to post
Share on other sites

Hi my friend!!

 

I will make a kernel fork and apply the changes, basically just change the gc2035.c by https://github.com/lhelontra/OrangePI-Kernel/commit/cecec660a3af2f44b39791660f48df2b4367bef7

 

:D

Leonardo,

 

I'm excited to try your patch. Have you had an opportunity to submit a pull request to the armbian project? i saw a a gc2035 patch in the unresolved folder but it didnt look like your changes

 

Sent from my SM-G920V using Tapatalk

Link to post
Share on other sites

The sources repository show the inclusion of a patched gc2035 kernel module submitted on June 11.  Is there a way I can verify if this patch in included in my recently updated 5.16 system running on an orange pi one?  My csi cam on an external dongle is still causing problems and I'm not sure if I'm running this patch. How long do changes in the repository take to make into downstream systems on the street, and is there a way I can "check"?

Link to post
Share on other sites

Is there a way I can verify if this patch in included in my recently updated 5.16 system running on an orange pi one?

 

Sure, use uname and modinfo:

root@orangepipcplus:~# uname -a
Linux orangepipcplus 3.4.112-sun8i #2 SMP PREEMPT Wed Jul 13 16:38:07 CEST 2016 armv7l armv7l armv7l GNU/Linux
root@orangepipcplus:~# modinfo gc2035
filename:       /lib/modules/3.4.112-sun8i/kernel/drivers/media/video/sunxi-vfe/device/gc2035.ko
license:        GPL
description:    A low-level driver for GalaxyCore gc2035 sensors
author:         @lex
author:         leonardo lontra
author:         raymonxiu
alias:          i2c:gc2035
depends:        cci,vfe_subdev
intree:         Y
vermagic:       3.4.112-sun8i SMP preempt mod_unload modversions ARMv7 p2v8 
parm:           hres:hres=0 (640x480|1280x720|1600x1200 - 15 FPS), hres=1 (800x600|1600x1200 - 10 FPS), hres=2 (320x240|640x480|800x600 - 20 FPS), hres=3 (320x240|352x288|640x480 - 15 FPS) (default=0) (uint)
parm:           mclk:mclk override (default=0) (uint)
parm:           frate:frate override (default=0) (uint)
Link to post
Share on other sites
Guest
This topic is now closed to further replies.