Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
Author: atomiq

Activate camera

[Copy link]

16

Threads

104

Posts

985

Credits

Senior member

Rank: 4

Credits
985
Post time 2015-7-27 17:06:13 | Show all posts
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
Post time 2015-7-27 18:05:26 | Show all posts
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

985

Credits

Senior member

Rank: 4

Credits
985
Post time 2015-7-28 04:03:41 | Show all posts
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

7

Posts

128

Credits

Registered member

Rank: 2

Credits
128
Post time 2015-8-28 18:43:17 | Show all posts
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
Post time 2015-8-30 04:55:29 | Show all posts
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
Post time 2015-9-4 20:10:04 | Show all posts
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 the 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 the 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 the 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
Post time 2015-12-10 06:58:22 | Show all posts
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
Post time 2016-4-5 23:47:52 | Show all posts
if the camera is connected and modules loaded
  1. ls /dev/video0
Copy the Code
will show
  1. /dev/video0
Copy the 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

20

Posts

419

Credits

Intermediate member

Rank: 3Rank: 3

Credits
419
Post time 2016-8-19 17:40:48 | Show all posts
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 the 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 the 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
Post time 2016-8-28 16:31:52 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2017-11-22 17:17 GMT+8 , Processed in 0.032869 second(s), 21 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list