Author: atomiq

Activate camera

[Copy link]

16

threads

104

posts

989

credits

Senior member

Rank: 4

credits
989
Published in 2015-7-27 17:06:13 | Show all floors
Hi Steven, unluckly it give me an error:
gc2035: disagrees about version of symbol module_layout
.
Is it possible for you to upload the files in a zip (or rar or tar)?
Cheers
Tk
OrangePi A20, with Qbee-X_testing

Still waiting for refund/replacement of no working op+2e bought on 11/11 >_<...really serious company

1

threads

46

posts

583

credits

Senior member

Rank: 4

credits
583
Published in 2015-7-27 18:05:26 | Show all floors
Edited by phelum at 2015-7-27 18:11
tokka replied at 2015-7-27 17:06
Hi Steven, unluckly it give me an error:
.
Is it possible for you to upload the files in a zip (or r ...

The URL is http://phelum.net/temp/gc2035.tar.gz and it contains the gc2035 and include directories I uploaded yesterday.   If you want to compile the driver the include directory must exist beside the gc2035 directory.  This matches the directory structure in the kernel.  This include directory contains csi0 stuff not gc2035 stuff.  The include directory inside the gc2035 directory contains the driver specific files.

If you don't get anywhere here do you want me to upload my kernel and modules (including the gc2035 driver) ?  Code files only, not source due to size.

Cheers,
Steven


16

threads

104

posts

989

credits

Senior member

Rank: 4

credits
989
Published in 2015-7-28 04:03:41 | Show all floors
Hi Steven, i'm trying to make it as a sort of stand alone module
For the moment i created a Makefile with these lines
obj-m = gc2035.o
KVERSION = $(shell uname -r)
all:
        make -C /lib/modules/$(KVERSION)/kernel/drivers/media/video/sun4i_csi/device/ M=$(PWD) modules
clean:
        make -C /lib/modules/$(KVERSION)/kernel/drivers/media/video/sun4i_csi/device/ M=$(PWD) clean


but at the moment i got an error
If it will works, it should be the easy way to compile the drivers
Cheers
Tk
OrangePi A20, with Qbee-X_testing

Still waiting for refund/replacement of no working op+2e bought on 11/11 >_<...really serious company

0

threads

6

posts

156

credits

Registered member

Rank: 2

credits
156
Published in 2015-8-28 18:43:17 | Show all floors
Is camera support now included in a Linux image somewhere, or should I go through the instructions above?

1

threads

46

posts

583

credits

Senior member

Rank: 4

credits
583
Published in 2015-8-30 04:55:29 | Show all floors
cnxsoft replied at 2015-8-28 18:43
Is camera support now included in a Linux image somewhere, or should I go through the instructions a ...

I don't know of any kernels with gc2035 support.  Android maybe ?  As well as making the driver I also had to modify sun4i_drv_csi because it dropped the wrong frames when the data sink was slower than the source.

Cheers,
Steven

0

threads

2

posts

40

credits

Novice

Rank: 1

credits
40
Published in 2015-9-4 20:10:04 | Show all floors
I try to connect the csi camera gc2035 on OPi2 Raspbian orangepi 3.4.39
  1. modprobe gc2035 vfe_v4l2
  2. ls /dev/vide0
  3. /etc/init.d/motion start
Copy code


We enter an http://IP_orange:8081 into the browser and we see the stream picture.

If in a command line to write:
  1. mplayer -vo png -frames 3 tv://
Copy code


The *.png files aren't created, and mplayer writes:
  1. MPlayer svn r34540 (Raspbian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
  2. mplayer: could not connect to socket
  3. mplayer: No such file or directory
  4. Failed to open LIRC support. You will not be able to use your remote control.

  5. Playing tv://.
  6. TV file format detected.
  7. Selected driver: v4l2
  8. name: Video 4 Linux 2 input
  9. author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
  10. comment: first try, more to come ;-)
  11. v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
  12. Selected device: sunxi-vfe
  13. Capabilities:  video capture  read/write  streaming
  14. supported norms:
  15. inputs: 0 = ;
  16. Current input: -1
  17. Current format: unknown (0x2006)
  18. v4l2: ioctl set format failed: Operation not permitted
  19. v4l2: ioctl set mute failed: Inappropriate ioctl for device
  20. v4l2: 0 frames successfully processed, 0 frames dropped.


  21. Exiting... (End of file)
Copy code


I tried this command for USB webcam - works, creates *.png

You can prompt how to force to work as gc2035 with mplayer?

3

threads

24

posts

184

credits

Registered member

Rank: 2

credits
184
Published in 2015-12-10 06:58:22 | Show all floors
Zheck replied at 2015-4-18 04:53
Hi, can anybody write here, step by step, how to setup orange pi to work with own camera module?

I have OrangePI-PC_Ubuntu_Vivid_Mate and I've plugged the camera gc2035  and I'm completly bloked.
- Firstly I'm wondering if exist any command to find out that the camera is properly connected and the PI-PC is detecting it (similar to fdisk or lsusb etc)
- I assume that @laboris has included the driver gc2035. don't you?
- How can I check it? (this distro come with the app smplayer)


0

threads

2

posts

70

credits

Registered member

Rank: 2

credits
70
Published in 2016-4-5 23:47:52 | Show all floors
if the camera is connected and modules loaded
  1. ls /dev/video0
Copy code
will show
  1. /dev/video0
Copy code
.
Loboris image includes all needed modules, use the camera link to load them.. up to 1600x1200 worked with fswebcam for me after running the kernel update script
for current armbian modules are also included, however only 640x480 and 1280x720 produce any usable output

4

threads

21

posts

449

credits

Intermediate member

Rank: 3Rank: 3

credits
449
Published in 2016-8-19 17:40:48 | Show all floors
phelum replied at 2015-7-27 18:05
The URL is http://phelum.net/temp/gc2035.tar.gz and it contains the gc2035 and include directories  ...

Hi Steven

my camera is not yet arrived, i read thread and found cs2035.ko already present on ubuntu 15.04

  1. find /lib -name "*2035*"
  2. /lib/modules/3.4.39/kernel/drivers/media/video/sunxi-vfe/device/gc2035.ko
Copy code

So all i need is to install v4l2-utils?

Could you copy here output of for OPI Camera?
  1. sudo v4l2-ctl --list-formats --all
Copy code

P.S.
This thread is about officeal camera for PC/Plus/One http://www.aliexpress.com/store/product/Orange-Pi-Open-source-IP-Camera-with-wide-angle-lens-Smart-Home-Control-Device-for-PC/1553371_32652476606.html?spm=2114.8147860.0.98.Lcc9WU ? Right?



1

threads

46

posts

583

credits

Senior member

Rank: 4

credits
583
Published in 2016-8-28 16:31:52 | Show all floors
Vlad replied at 2016-8-19 17:40
Hi Steven

my camera is not yet arrived, i read thread and found cs2035.ko already present on ubun ...

Hi Vlad,

I don't have v4l2-ctl (or any v4l2 code files) on my OPi PC so I can't answer your question.  I can run the camera at 800x600 and 1600x1200.

Your kernel (3.4.39) is much older than mine (3.4.103) and if I remember correctly there are big changes in the video processing standards.  So I couldn't use the old driver with my newer kernel.  But if it works for you then it's better than an unofficial driver.

Cheers,
Steven
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list