Leonardo Lontra Posted April 6, 2016 Share Posted April 6, 2016 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 1 Link to comment Share on other sites More sharing options...
tkaiser Posted April 6, 2016 Share Posted April 6, 2016 That's great news! Unfortunately in Armbian we still miss a few basic patches to get the camera working (please see the Known to NOT work (reliably) yet section). In case you're already using our build system pull request are welcomed Link to comment Share on other sites More sharing options...
Leonardo Lontra Posted April 8, 2016 Author Share Posted April 8, 2016 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 1 Link to comment Share on other sites More sharing options...
Leonardo Lontra Posted April 8, 2016 Author Share Posted April 8, 2016 I also wrote a utility that can be useful in building images: https://github.com/lhelontra/embedtool Link to comment Share on other sites More sharing options...
HiChem Mouldii Posted May 5, 2016 Share Posted May 5, 2016 hello Leonardo i have an orange pi pc and gc2035 camera and i want to program with python using picamera package is that possible please ? and for the OrangePI-Kernel i can't build it and i have always this message Error: KERNEL NOT BUILT Link to comment Share on other sites More sharing options...
rampage Posted May 22, 2016 Share Posted May 22, 2016 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 comment Share on other sites More sharing options...
rampage Posted May 23, 2016 Share Posted May 23, 2016 Ok, some more progress using ff. instructions: http://www.sistemasembarcados.org/orange-pi-camera-with-v4l2loopback-vidcopy.html sudo apt-get install linux-headers-3.4.112-sun8i sudo reboot sudo sed -i '287d;' /usr/src/linux-headers-3.4.112-sun8i/fs/Kconfig cd /usr/src/linux-headers-3.4.112-sun8i/ sudo make scripts after these steps I was able to make and istall v4l2loopback Link to comment Share on other sites More sharing options...
lanefu Posted May 24, 2016 Share Posted May 24, 2016 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 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 comment Share on other sites More sharing options...
tkaiser Posted May 24, 2016 Share Posted May 24, 2016 AFAIK @lex provided a more improved version here (already as patch that should apply flawlessly). Thread/discussion here: http://forum.armbian.com/index.php/topic/996-gc2035-driver-update-320x240640x480-20-fps/ 1 Link to comment Share on other sites More sharing options...
aliceander Posted July 14, 2016 Share Posted July 14, 2016 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 comment Share on other sites More sharing options...
tkaiser Posted July 14, 2016 Share Posted July 14, 2016 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 comment Share on other sites More sharing options...
Recommended Posts