The driver has been improved to run with all available win size and more than decent quality.
320x240 (30 fps),640x480 (30 fps),800x600 (30 fps),1024x768 (7.5 fps),1280x720 (~20 fps),1280x960 (~10 fps),1600x1200(~7 fps),1920x1080(~4 fps),2048x1536( ~4 fps)
Now focus on v4l2 compatibility.
https://plus.google.com/u/0/photos/photo/113203245923875824895/6309842835642781394
Now, to add to the confusion, AF pin 23 / pin 24 on Sinovoip OV5640 sensor seems inverted from what i think it should be, or compared to FriendlyArm OV5640.
Since i don't know the Orange PI pinout connector, i think one should take some care while sticking the OV5640 AF on OPI, if someone does and it works, please, post in here, well, if not post in here also.
Xunlong GC2035 (2M) => FF (Fixed Focus) so Pin 23 / Pin 24 NC
Sinovoip OV5640 (5M) => AF (Auto Focus)
FrienldyArm OV5640 (5M) => AF
Lemaker OV5640 (5M) => AF
Pine64+ S5K4EC (5M) => FF
From my understanding (not a hardware guy), Sinovoip A64 adopted the same CSI to save cost, so i think GC2035 and OV5640 will both work, which is nice. So it is CSI 24 pin, not parallel. I believe the 40 pin connector is the Raspi standard gpio way and the adoption of the DSI LCD display is a fail, i can drive a 18.4" LVDS LCD panel with resistive touch on my cubieboard (A20), and you won't find a cheap DSI LCD panel (> 10.1") anywhere.
At least $ 35 is a good price if it comes with 8 GB eMMC / BT / 2GB / Wifi.
Pine64+ schematic tells it is the same CSI plus 2 NC pins. I have not looked at the connector to see if it is 26 pins or 24 pins.
Ok, @mattday is using opione headless and if the window size is larger than current fb, it crashes. He could see some activities with 640x480.
Maybe he will send me one camera and i can test it and possibly fix if anything wrong.
Meanwhile @lvmc sent me M2P and i tested it today with gc2035, it it works!
I think we need OV5640 AF for the OPI H64 / A64 and OPI one / PC / 2E !!!!!!!!
Here is the 1600x1200 taken with M2P:
*** PS:
____ ____ _ __ __ ____
| __ ) __ _ _ __ __ _ _ __ __ _ | _ \(_) | \/ |___ \ _
| _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | | | |\/| | __) || |_
| |_) | (_| | | | | (_| | | | | (_| | | __/| | | | | |/ __/_ _|
|____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_| |_| |_| |_|_____||_|
Welcome to ARMBIAN Ubuntu 14.04.4 LTS 3.4.112-sun8i
System load: 0.07 Up time: 13 sec
Memory usage: 5 % of 1000Mb IP: 192.168.254.87
CPU temp: 51°C
Usage of /: 15% of 7.1G
[ 2 updates to install: apt-get upgrade ]
Last login: Mon Jul 4 11:46:46 2016
x@bananapim2plus:~$ sudo -s
[sudo] password for x:
root@bananapim2plus:~# sudo apt-get install libgd2-xpm-dev libjpeg-dev libpng-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libpng12-dev' instead of 'libpng-dev'
The following extra packages will be installed:
fontconfig-config fonts-dejavu-core libexpat1-dev libfontconfig1
libfontconfig1-dev libfreetype6 libfreetype6-dev libgd-dev libgd3 libice-dev
libice6 libjbig-dev libjbig0 libjpeg-turbo8 libjpeg-turbo8-dev libjpeg8
libjpeg8-dev liblzma-dev libpthread-stubs0-dev libsm-dev libsm6 libtiff5
libtiff5-dev libtiffxx5 libvpx-dev libvpx1 libx11-6 libx11-data libx11-dev
libxau-dev libxau6 libxcb1 libxcb1-dev libxdmcp-dev libxdmcp6 libxpm-dev
libxpm4 libxt-dev libxt6 x11-common x11proto-core-dev x11proto-input-dev
x11proto-kb-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
libgd-tools libice-doc liblzma-doc libsm-doc libxcb-doc libxt-doc
Recommended packages:
libx11-doc
The following NEW packages will be installed:
fontconfig-config fonts-dejavu-core libexpat1-dev libfontconfig1
libfontconfig1-dev libfreetype6 libfreetype6-dev libgd-dev libgd2-xpm-dev
libgd3 libice-dev libice6 libjbig-dev libjbig0 libjpeg-dev libjpeg-turbo8
libjpeg-turbo8-dev libjpeg8 libjpeg8-dev liblzma-dev libpng12-dev
libpthread-stubs0-dev libsm-dev libsm6 libtiff5 libtiff5-dev libtiffxx5
libvpx-dev libvpx1 libx11-6 libx11-data libx11-dev libxau-dev libxau6
libxcb1 libxcb1-dev libxdmcp-dev libxdmcp6 libxpm-dev libxpm4 libxt-dev
libxt6 x11-common x11proto-core-dev x11proto-input-dev x11proto-kb-dev
xorg-sgml-doctools xtrans-dev
0 upgraded, 48 newly installed, 0 to remove and 2 not upgraded.
Need to get 8,757 kB of archives.
After this operation, 30.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ trusty/main libxau6 armhf 1:1.0.8-1 [7,324 B]
Get:2 http://ports.ubuntu.com/ trusty/main libxdmcp6 armhf 1:1.1.1-1 [11.2 kB]
Get:3 http://ports.ubuntu.com/ trusty/main libxcb1 armhf 1.10-2ubuntu1 [33.1 kB]
Get:4 http://ports.ubuntu.com/ trusty/main libx11-data all 2:1.6.2-1ubuntu2 [111 kB]
Get:5 http://ports.ubuntu.com/ trusty/main libx11-6 armhf 2:1.6.2-1ubuntu2 [506 kB]
Get:6 http://ports.ubuntu.com/ trusty/main fonts-dejavu-core all 2.34-1ubuntu1 [1,024 kB]
Get:7 http://ports.ubuntu.com/ trusty-updates/main fontconfig-config all 2.11.0-0ubuntu4.1 [47.4 kB]
Get:8 http://ports.ubuntu.com/ trusty-security/main libfreetype6 armhf 2.5.2-1ubuntu2.5 [253 kB]
Get:9 http://ports.ubuntu.com/ trusty-updates/main libfontconfig1 armhf 2.11.0-0ubuntu4.1 [107 kB]
Get:10 http://ports.ubuntu.com/ trusty/main libjpeg-turbo8 armhf 1.3.0-0ubuntu2 [85.2 kB]
Get:11 http://ports.ubuntu.com/ trusty/main libjpeg8 armhf 8c-2ubuntu8 [2,202 B]
Get:12 http://ports.ubuntu.com/ trusty-security/main libjbig0 armhf 2.0-2ubuntu4.1 [23.3 kB]
Get:13 http://ports.ubuntu.com/ trusty-security/main libtiff5 armhf 4.0.3-7ubuntu0.4 [129 kB]
Get:14 http://ports.ubuntu.com/ trusty/main libvpx1 armhf 1.3.0-2 [797 kB]
Get:15 http://ports.ubuntu.com/ trusty/main libxpm4 armhf 1:3.5.10-1 [32.1 kB]
Get:16 http://ports.ubuntu.com/ trusty-security/main libgd3 armhf 2.1.0-3ubuntu0.1 [103 kB]
Get:17 http://ports.ubuntu.com/ trusty-updates/main x11-common all 1:7.7+1ubuntu8.1 [49.5 kB]
Get:18 http://ports.ubuntu.com/ trusty/main libice6 armhf 2:1.0.8-2 [38.2 kB]
Get:19 http://ports.ubuntu.com/ trusty/main libsm6 armhf 2:1.2.1-2 [15.4 kB]
Get:20 http://ports.ubuntu.com/ trusty-security/main libtiffxx5 armhf 4.0.3-7ubuntu0.4 [5,756 B]
Get:21 http://ports.ubuntu.com/ trusty/main libxt6 armhf 1:1.1.4-1 [146 kB]
Get:22 http://ports.ubuntu.com/ trusty-security/main libjbig-dev armhf 2.0-2ubuntu4.1 [6,272 B]
Get:23 http://ports.ubuntu.com/ trusty-security/main libexpat1-dev armhf 2.1.0-4ubuntu1.3 [104 kB]
Get:24 http://ports.ubuntu.com/ trusty-security/main libpng12-dev armhf 1.2.50-1ubuntu2.14.04.2 [199 kB]
Get:25 http://ports.ubuntu.com/ trusty-security/main libfreetype6-dev armhf 2.5.2-1ubuntu2.5 [570 kB]
Get:26 http://ports.ubuntu.com/ trusty-updates/main libfontconfig1-dev armhf 2.11.0-0ubuntu4.1 [650 kB]
Get:27 http://ports.ubuntu.com/ trusty/main libjpeg-turbo8-dev armhf 1.3.0-0ubuntu2 [215 kB]
Get:28 http://ports.ubuntu.com/ trusty/main libjpeg8-dev armhf 8c-2ubuntu8 [1,554 B]
Get:29 http://ports.ubuntu.com/ trusty/main libjpeg-dev armhf 8c-2ubuntu8 [1,554 B]
Get:30 http://ports.ubuntu.com/ trusty/main xorg-sgml-doctools all 1:1.11-1 [12.9 kB]
Get:31 http://ports.ubuntu.com/ trusty-security/main x11proto-core-dev all 7.0.26-1~ubuntu2 [700 kB]
Get:32 http://ports.ubuntu.com/ trusty/main libxau-dev armhf 1:1.0.8-1 [9,438 B]
Get:33 http://ports.ubuntu.com/ trusty/main libxdmcp-dev armhf 1:1.1.1-1 [25.3 kB]
Get:34 http://ports.ubuntu.com/ trusty/main x11proto-input-dev all 2.3-1 [139 kB]
Get:35 http://ports.ubuntu.com/ trusty/main x11proto-kb-dev all 1.0.6-2 [269 kB]
Get:36 http://ports.ubuntu.com/ trusty-updates/main xtrans-dev all 1.3.5-1~ubuntu14.04.1 [70.3 kB]
Get:37 http://ports.ubuntu.com/ trusty/main libpthread-stubs0-dev armhf 0.3-4 [4,084 B]
Get:38 http://ports.ubuntu.com/ trusty/main libxcb1-dev armhf 1.10-2ubuntu1 [72.5 kB]
Get:39 http://ports.ubuntu.com/ trusty/main libx11-dev armhf 2:1.6.2-1ubuntu2 [575 kB]
Get:40 http://ports.ubuntu.com/ trusty/main libxpm-dev armhf 1:3.5.10-1 [87.1 kB]
Get:41 http://ports.ubuntu.com/ trusty/main libice-dev armhf 2:1.0.8-2 [47.8 kB]
Get:42 http://ports.ubuntu.com/ trusty/main libsm-dev armhf 2:1.2.1-2 [16.4 kB]
Get:43 http://ports.ubuntu.com/ trusty/main libxt-dev armhf 1:1.1.4-1 [418 kB]
Get:44 http://ports.ubuntu.com/ trusty/main libvpx-dev armhf 1.3.0-2 [423 kB]
Get:45 http://ports.ubuntu.com/ trusty/main liblzma-dev armhf 5.1.1alpha+20120614-2ubuntu2 [130 kB]
Get:46 http://ports.ubuntu.com/ trusty-security/main libtiff5-dev armhf 4.0.3-7ubuntu0.4 [250 kB]
Get:47 http://ports.ubuntu.com/ trusty-security/main libgd-dev armhf 2.1.0-3ubuntu0.1 [232 kB]
Get:48 http://ports.ubuntu.com/ trusty-security/main libgd2-xpm-dev all 2.1.0-3ubuntu0.1 [1,198 B]
Fetched 8,757 kB in 41s (209 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libxau6:armhf.
(Reading database ... 40966 files and directories currently installed.)
Preparing to unpack .../libxau6_1%3a1.0.8-1_armhf.deb ...
Unpacking libxau6:armhf (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp6:armhf.
Preparing to unpack .../libxdmcp6_1%3a1.1.1-1_armhf.deb ...
Unpacking libxdmcp6:armhf (1:1.1.1-1) ...
Selecting previously unselected package libxcb1:armhf.
Preparing to unpack .../libxcb1_1.10-2ubuntu1_armhf.deb ...
Unpacking libxcb1:armhf (1.10-2ubuntu1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../libx11-data_2%3a1.6.2-1ubuntu2_all.deb ...
Unpacking libx11-data (2:1.6.2-1ubuntu2) ...
Selecting previously unselected package libx11-6:armhf.
Preparing to unpack .../libx11-6_2%3a1.6.2-1ubuntu2_armhf.deb ...
Unpacking libx11-6:armhf (2:1.6.2-1ubuntu2) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../fonts-dejavu-core_2.34-1ubuntu1_all.deb ...
Unpacking fonts-dejavu-core (2.34-1ubuntu1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../fontconfig-config_2.11.0-0ubuntu4.1_all.deb ...
Unpacking fontconfig-config (2.11.0-0ubuntu4.1) ...
Selecting previously unselected package libfreetype6:armhf.
Preparing to unpack .../libfreetype6_2.5.2-1ubuntu2.5_armhf.deb ...
Unpacking libfreetype6:armhf (2.5.2-1ubuntu2.5) ...
Selecting previously unselected package libfontconfig1:armhf.
Preparing to unpack .../libfontconfig1_2.11.0-0ubuntu4.1_armhf.deb ...
Unpacking libfontconfig1:armhf (2.11.0-0ubuntu4.1) ...
Selecting previously unselected package libjpeg-turbo8:armhf.
Preparing to unpack .../libjpeg-turbo8_1.3.0-0ubuntu2_armhf.deb ...
Unpacking libjpeg-turbo8:armhf (1.3.0-0ubuntu2) ...
Selecting previously unselected package libjpeg8:armhf.
Preparing to unpack .../libjpeg8_8c-2ubuntu8_armhf.deb ...
Unpacking libjpeg8:armhf (8c-2ubuntu8) ...
Selecting previously unselected package libjbig0:armhf.
Preparing to unpack .../libjbig0_2.0-2ubuntu4.1_armhf.deb ...
Unpacking libjbig0:armhf (2.0-2ubuntu4.1) ...
Selecting previously unselected package libtiff5:armhf.
Preparing to unpack .../libtiff5_4.0.3-7ubuntu0.4_armhf.deb ...
Unpacking libtiff5:armhf (4.0.3-7ubuntu0.4) ...
Selecting previously unselected package libvpx1:armhf.
Preparing to unpack .../libvpx1_1.3.0-2_armhf.deb ...
Unpacking libvpx1:armhf (1.3.0-2) ...
Selecting previously unselected package libxpm4:armhf.
Preparing to unpack .../libxpm4_1%3a3.5.10-1_armhf.deb ...
Unpacking libxpm4:armhf (1:3.5.10-1) ...
Selecting previously unselected package libgd3:armhf.
Preparing to unpack .../libgd3_2.1.0-3ubuntu0.1_armhf.deb ...
Unpacking libgd3:armhf (2.1.0-3ubuntu0.1) ...
Selecting previously unselected package x11-common.
Preparing to unpack .../x11-common_1%3a7.7+1ubuntu8.1_all.deb ...
Unpacking x11-common (1:7.7+1ubuntu8.1) ...
Selecting previously unselected package libice6:armhf.
Preparing to unpack .../libice6_2%3a1.0.8-2_armhf.deb ...
Unpacking libice6:armhf (2:1.0.8-2) ...
Selecting previously unselected package libsm6:armhf.
Preparing to unpack .../libsm6_2%3a1.2.1-2_armhf.deb ...
Unpacking libsm6:armhf (2:1.2.1-2) ...
Selecting previously unselected package libtiffxx5:armhf.
Preparing to unpack .../libtiffxx5_4.0.3-7ubuntu0.4_armhf.deb ...
Unpacking libtiffxx5:armhf (4.0.3-7ubuntu0.4) ...
Selecting previously unselected package libxt6:armhf.
Preparing to unpack .../libxt6_1%3a1.1.4-1_armhf.deb ...
Unpacking libxt6:armhf (1:1.1.4-1) ...
Selecting previously unselected package libjbig-dev:armhf.
Preparing to unpack .../libjbig-dev_2.0-2ubuntu4.1_armhf.deb ...
Unpacking libjbig-dev:armhf (2.0-2ubuntu4.1) ...
Selecting previously unselected package libexpat1-dev:armhf.
Preparing to unpack .../libexpat1-dev_2.1.0-4ubuntu1.3_armhf.deb ...
Unpacking libexpat1-dev:armhf (2.1.0-4ubuntu1.3) ...
Selecting previously unselected package libpng12-dev.
Preparing to unpack .../libpng12-dev_1.2.50-1ubuntu2.14.04.2_armhf.deb ...
Unpacking libpng12-dev (1.2.50-1ubuntu2.14.04.2) ...
Selecting previously unselected package libfreetype6-dev.
Preparing to unpack .../libfreetype6-dev_2.5.2-1ubuntu2.5_armhf.deb ...
Unpacking libfreetype6-dev (2.5.2-1ubuntu2.5) ...
Selecting previously unselected package libfontconfig1-dev.
Preparing to unpack .../libfontconfig1-dev_2.11.0-0ubuntu4.1_armhf.deb ...
Unpacking libfontconfig1-dev (2.11.0-0ubuntu4.1) ...
Selecting previously unselected package libjpeg-turbo8-dev:armhf.
Preparing to unpack .../libjpeg-turbo8-dev_1.3.0-0ubuntu2_armhf.deb ...
Unpacking libjpeg-turbo8-dev:armhf (1.3.0-0ubuntu2) ...
Selecting previously unselected package libjpeg8-dev:armhf.
Preparing to unpack .../libjpeg8-dev_8c-2ubuntu8_armhf.deb ...
Unpacking libjpeg8-dev:armhf (8c-2ubuntu8) ...
Selecting previously unselected package libjpeg-dev:armhf.
Preparing to unpack .../libjpeg-dev_8c-2ubuntu8_armhf.deb ...
Unpacking libjpeg-dev:armhf (8c-2ubuntu8) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../xorg-sgml-doctools_1%3a1.11-1_all.deb ...
Unpacking xorg-sgml-doctools (1:1.11-1) ...
Selecting previously unselected package x11proto-core-dev.
Preparing to unpack .../x11proto-core-dev_7.0.26-1~ubuntu2_all.deb ...
Unpacking x11proto-core-dev (7.0.26-1~ubuntu2) ...
Selecting previously unselected package libxau-dev:armhf.
Preparing to unpack .../libxau-dev_1%3a1.0.8-1_armhf.deb ...
Unpacking libxau-dev:armhf (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp-dev:armhf.
Preparing to unpack .../libxdmcp-dev_1%3a1.1.1-1_armhf.deb ...
Unpacking libxdmcp-dev:armhf (1:1.1.1-1) ...
Selecting previously unselected package x11proto-input-dev.
Preparing to unpack .../x11proto-input-dev_2.3-1_all.deb ...
Unpacking x11proto-input-dev (2.3-1) ...
Selecting previously unselected package x11proto-kb-dev.
Preparing to unpack .../x11proto-kb-dev_1.0.6-2_all.deb ...
Unpacking x11proto-kb-dev (1.0.6-2) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../xtrans-dev_1.3.5-1~ubuntu14.04.1_all.deb ...
Unpacking xtrans-dev (1.3.5-1~ubuntu14.04.1) ...
Selecting previously unselected package libpthread-stubs0-dev:armhf.
Preparing to unpack .../libpthread-stubs0-dev_0.3-4_armhf.deb ...
Unpacking libpthread-stubs0-dev:armhf (0.3-4) ...
Selecting previously unselected package libxcb1-dev:armhf.
Preparing to unpack .../libxcb1-dev_1.10-2ubuntu1_armhf.deb ...
Unpacking libxcb1-dev:armhf (1.10-2ubuntu1) ...
Selecting previously unselected package libx11-dev:armhf.
Preparing to unpack .../libx11-dev_2%3a1.6.2-1ubuntu2_armhf.deb ...
Unpacking libx11-dev:armhf (2:1.6.2-1ubuntu2) ...
Selecting previously unselected package libxpm-dev:armhf.
Preparing to unpack .../libxpm-dev_1%3a3.5.10-1_armhf.deb ...
Unpacking libxpm-dev:armhf (1:3.5.10-1) ...
Selecting previously unselected package libice-dev:armhf.
Preparing to unpack .../libice-dev_2%3a1.0.8-2_armhf.deb ...
Unpacking libice-dev:armhf (2:1.0.8-2) ...
Selecting previously unselected package libsm-dev:armhf.
Preparing to unpack .../libsm-dev_2%3a1.2.1-2_armhf.deb ...
Unpacking libsm-dev:armhf (2:1.2.1-2) ...
Selecting previously unselected package libxt-dev:armhf.
Preparing to unpack .../libxt-dev_1%3a1.1.4-1_armhf.deb ...
Unpacking libxt-dev:armhf (1:1.1.4-1) ...
Selecting previously unselected package libvpx-dev:armhf.
Preparing to unpack .../libvpx-dev_1.3.0-2_armhf.deb ...
Unpacking libvpx-dev:armhf (1.3.0-2) ...
Selecting previously unselected package liblzma-dev:armhf.
Preparing to unpack .../liblzma-dev_5.1.1alpha+20120614-2ubuntu2_armhf.deb ...
Unpacking liblzma-dev:armhf (5.1.1alpha+20120614-2ubuntu2) ...
Selecting previously unselected package libtiff5-dev:armhf.
Preparing to unpack .../libtiff5-dev_4.0.3-7ubuntu0.4_armhf.deb ...
Unpacking libtiff5-dev:armhf (4.0.3-7ubuntu0.4) ...
Selecting previously unselected package libgd-dev:armhf.
Preparing to unpack .../libgd-dev_2.1.0-3ubuntu0.1_armhf.deb ...
Unpacking libgd-dev:armhf (2.1.0-3ubuntu0.1) ...
Selecting previously unselected package libgd2-xpm-dev.
Preparing to unpack .../libgd2-xpm-dev_2.1.0-3ubuntu0.1_all.deb ...
Unpacking libgd2-xpm-dev (2.1.0-3ubuntu0.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libxau6:armhf (1:1.0.8-1) ...
Setting up libxdmcp6:armhf (1:1.1.1-1) ...
Setting up libxcb1:armhf (1.10-2ubuntu1) ...
Setting up libx11-data (2:1.6.2-1ubuntu2) ...
Setting up libx11-6:armhf (2:1.6.2-1ubuntu2) ...
Setting up fonts-dejavu-core (2.34-1ubuntu1) ...
Setting up fontconfig-config (2.11.0-0ubuntu4.1) ...
Setting up libfreetype6:armhf (2.5.2-1ubuntu2.5) ...
Setting up libfontconfig1:armhf (2.11.0-0ubuntu4.1) ...
Setting up libjpeg-turbo8:armhf (1.3.0-0ubuntu2) ...
Setting up libjpeg8:armhf (8c-2ubuntu8) ...
Setting up libjbig0:armhf (2.0-2ubuntu4.1) ...
Setting up libtiff5:armhf (4.0.3-7ubuntu0.4) ...
Setting up libvpx1:armhf (1.3.0-2) ...
Setting up libxpm4:armhf (1:3.5.10-1) ...
Setting up libgd3:armhf (2.1.0-3ubuntu0.1) ...
Setting up x11-common (1:7.7+1ubuntu8.1) ...
* Setting up X socket directories... [ OK ]
Setting up libtiffxx5:armhf (4.0.3-7ubuntu0.4) ...
Setting up libjbig-dev:armhf (2.0-2ubuntu4.1) ...
Setting up libexpat1-dev:armhf (2.1.0-4ubuntu1.3) ...
Setting up libpng12-dev (1.2.50-1ubuntu2.14.04.2) ...
Setting up libfreetype6-dev (2.5.2-1ubuntu2.5) ...
Setting up libfontconfig1-dev (2.11.0-0ubuntu4.1) ...
Setting up libjpeg-turbo8-dev:armhf (1.3.0-0ubuntu2) ...
Setting up libjpeg8-dev:armhf (8c-2ubuntu8) ...
Setting up libjpeg-dev:armhf (8c-2ubuntu8) ...
Setting up xorg-sgml-doctools (1:1.11-1) ...
Setting up x11proto-core-dev (7.0.26-1~ubuntu2) ...
Setting up libxau-dev:armhf (1:1.0.8-1) ...
Setting up libxdmcp-dev:armhf (1:1.1.1-1) ...
Setting up x11proto-input-dev (2.3-1) ...
Setting up x11proto-kb-dev (1.0.6-2) ...
Setting up xtrans-dev (1.3.5-1~ubuntu14.04.1) ...
Setting up libpthread-stubs0-dev:armhf (0.3-4) ...
Setting up libxcb1-dev:armhf (1.10-2ubuntu1) ...
Setting up libx11-dev:armhf (2:1.6.2-1ubuntu2) ...
Setting up libxpm-dev:armhf (1:3.5.10-1) ...
Setting up libvpx-dev:armhf (1.3.0-2) ...
Setting up liblzma-dev:armhf (5.1.1alpha+20120614-2ubuntu2) ...
Setting up libtiff5-dev:armhf (4.0.3-7ubuntu0.4) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libice6:armhf (2:1.0.8-2) ...
Setting up libsm6:armhf (2:1.2.1-2) ...
Setting up libxt6:armhf (1:1.1.4-1) ...
Setting up libice-dev:armhf (2:1.0.8-2) ...
Setting up libsm-dev:armhf (2:1.2.1-2) ...
Setting up libxt-dev:armhf (1:1.1.4-1) ...
Setting up libgd-dev:armhf (2.1.0-3ubuntu0.1) ...
Setting up libgd2-xpm-dev (2.1.0-3ubuntu0.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
root@bananapim2plus:~# sudo apt-get install libfreetype6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libfreetype6-dev is already the newest version.
libfreetype6-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@bananapim2plus:~# git clone https://github.com/avafinger/fswebcam
Cloning into 'fswebcam'...
remote: Counting objects: 45, done.
remote: Total 45 (delta 0), reused 0 (delta 0), pack-reused 45
Unpacking objects: 100% (45/45), done.
Checking connectivity... done.
root@bananapim2plus:~# cd fswebcam/
root@bananapim2plus:~/fswebcam# ./configure --prefix=/usr --disable-v4l1 --enable-32bit-buffer
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for gdImageCreateTrueColor in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImagePngEx in -lgd... yes
Buffer type ........... 32 bit
PNG support ........... yes
JPEG support .......... yes
Freetype 2.x support .. yes
V4L1 support .......... no
V4L2 support .......... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
root@bananapim2plus:~/fswebcam# make
gcc -g -O2 -DHAVE_CONFIG_H -c fswebcam.c -o fswebcam.o
gcc -g -O2 -DHAVE_CONFIG_H -c log.c -o log.o
log.c: In function ‘log_msg’:
log.c:193:23: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
if(!use_syslog) write(fd_log, o, strlen(o));
^
gcc -g -O2 -DHAVE_CONFIG_H -c effects.c -o effects.o
gcc -g -O2 -DHAVE_CONFIG_H -c parse.c -o parse.o
gcc -g -O2 -DHAVE_CONFIG_H -c src.c -o src.o
gcc -g -O2 -DHAVE_CONFIG_H -c src_test.c -o src_test.o
gcc -g -O2 -DHAVE_CONFIG_H -c src_raw.c -o src_raw.o
gcc -g -O2 -DHAVE_CONFIG_H -c src_file.c -o src_file.o
gcc -g -O2 -DHAVE_CONFIG_H -c src_v4l2.c -o src_v4l2.o
gcc -g -O2 -DHAVE_CONFIG_H -c dec_rgb.c -o dec_rgb.o
gcc -g -O2 -DHAVE_CONFIG_H -c dec_yuv.c -o dec_yuv.o
gcc -g -O2 -DHAVE_CONFIG_H -c dec_grey.c -o dec_grey.o
gcc -g -O2 -DHAVE_CONFIG_H -c dec_bayer.c -o dec_bayer.o
gcc -g -O2 -DHAVE_CONFIG_H -c dec_jpeg.c -o dec_jpeg.o
gcc -g -O2 -DHAVE_CONFIG_H -c dec_png.c -o dec_png.o
gcc -g -O2 -DHAVE_CONFIG_H -c dec_s561.c -o dec_s561.o
gcc -o fswebcam fswebcam.o log.o effects.o parse.o src.o src_test.o src_raw.o src_file.o src_v4l2.o dec_rgb.o dec_yuv.o dec_grey.o dec_bayer.o dec_jpeg.o dec_png.o dec_s561.o -lgd
gzip -c --best fswebcam.1 > fswebcam.1.gz
root@bananapim2plus:~/fswebcam#
root@bananapim2plus:~/fswebcam# make install
mkdir -p /usr/bin
mkdir -p /usr/share/man/man1
install -m 755 fswebcam /usr/bin
install -m 644 fswebcam.1.gz /usr/share/man/man1
root@bananapim2plus:~/fswebcam#
@tkaiser, ok, before this become part of armbian i think you should run some tests and see the limitations. i updated the https://github.com/avafinger/guvcview(Guvcview runs on OPI and Pine64+ with some restrictions on the driver side). Not referenced on Pine64 IIRC.
@Tido, it is not a question, it is an answer for those who don't have Guvcview working with CMOS camera.
Guvcview works with USB camera only, unless you modify the source or get deb packages when ready.
@Tido, it is not a question, it is an answer for those who don't have Guvcview working with CMOS camera.
Guvcview works with USB camera only, unless you modify the source or get deb packages when ready.
@Tido, it is not a question, it is an answer for those who don't have Guvcview working with CMOS camera.
Guvcview works with USB camera only, unless you modify the source or get deb packages when ready.
Next weekend i will release a build of the guvcview for the H3 and will need some help to automate the gnu makefile and packaging, today it is hard coded manually to be able to build it and run fine on OPI.
I will build the latest stable version possible.
Hope you can improve that.
I just updated the fswebcam code on github so you are able to set Exposure, Vflip and Hflip contols using command line if you don't want to mess with kernel side.
Grab the code:
git clone https://github.com/avafinger/fswebcam
cd fswebcam
./configure --prefix=/usr --disable-v4l1 --enable-32bit-buffer
make
sudo make install
Some command line samples:
fswebcam --Vflip 1 -r 1600x1200 -p YUV420P - > cam1600x1200_2.jpg
fswebcam --Hflip 1 -r 800x600 -p YUV420P - > cam800x600_1.jpg
fswebcam --exposure 4 -r 640x480 -p YUV420P - > cam640x480_1.jpg
Exposure = [-4 to 4]
Vflip = [0,1] - Flip image Vertically
Hflip = [0,1] - Filp image Horizontally
Enjoy
Sorry if it is a little off topic but you ask me to update about the camera progress. I have not received the M1 yet, i asked for 1GB so it may take a bit longer for them to ship the board. Anyway i have been experimenting with guitar and the 5MP camera so we have a parameter and we can expect something similar on the M1 with 5MP.
I just grabbed some images to get the framerate, here are some values:
640x480 => 31 fps
1280x720 => 17 fps
1920x1080 => 10 fps
1600x1200 => 3 fps
2595x1944 => 5 fps - working!!!
I can't say much about the quality of the images yet but 1600x1200 has the sharpness image among all and little noise, 3 fps is a problem for video. All this test was made with a dark room, so we could expect different results with good light condition. The camera is AF but does not work the way it works on Android.
* Update: About the AF, it is working with 640x480 (not above) and not as 'aggressive' as in Android . https://drive.google.com/open?id=0B7A7OPBC-aN7NlN2SnhFQmgtVkE
Let's see how the Nano Pi driver will perform.
PS:
I have guitar with 3D GPU and HW accel. working but could not make VPU works as i wanted/needed and PowerVR blitting seems behind Mali 400 MP2 while 3D not.