Playstation Eye Camera on Parallella

Playstation Eye Camera on Parallella

Postby e97 » Sun Dec 13, 2015 11:55 pm

This requires installing the OV534 kernel module.

"Device Drivers -> Multimedia Support -> Media USB Adapters -> GSPCA based Webcams. Scroll down to OV534 OV772x USB Camera Driver (this is the driver for the PS Eye)"

Reference: https://devtalk.nvidia.com/default/topi ... etson-tk1/
e97
 
Posts: 10
Joined: Sun Jul 19, 2015 1:56 am

Re: Playstation Eye Camera on Parallella

Postby e97 » Mon Dec 14, 2015 2:20 am

I'm having issues compiling the kernel modules.

1) Checkout
Clone repo:
Code: Select all
git clone https://github.com/parallella/parallella-linux.git

Code: Select all
checkout 3.14.12-parallella-xilinx-g40a90c3


(`uname -r`)



2) Build
Code: Select all
make parallella_defconfig
make menuconfig


Select necessary modules


Code: Select all
make prepare
make modules_prepare
make scripts
make M=drivers/media/usb/gspca modules
make M=drivers/media/usb/gspca modules_install
sudo modprobe gspca_main gspca_ov534


Then I'm getting this error, even if I use 'modprobe --force'
modprobe: ERROR: could not insert 'gspca_main': Exec format error

Any ideas on what I'm doing wrong?
e97
 
Posts: 10
Joined: Sun Jul 19, 2015 1:56 am

Re: Playstation Eye Camera on Parallella

Postby e97 » Fri Dec 18, 2015 7:09 pm

Only step I was missing was building the kernel to obtain the symbols and what not.

Capabilities:

Code: Select all
$ fswebcam --list-controls
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Available Controls        Current Value   Range
------------------        -------------   -----
Error reading value of control 'User Controls'.
VIDIOC_G_CTRL: Permission denied
User Controls             N/A             [Unknown Control Type]
Brightness                0 (0%)          0 - 255
Contrast                  32 (12%)        0 - 255
Saturation                64 (25%)        0 - 255
Hue                       0 (50%)         -90 - 90
White Balance, Automatic  True            True | False
Exposure                  120 (47%)       0 - 255
Gain, Automatic           True            True | False
Gain                      20 (31%)        0 - 63
Horizontal Flip           False           True | False
Vertical Flip             False           True | False
Power Line Frequency      Disabled        Disabled | 50 Hz
Sharpness                 0 (0%)          0 - 63
Error reading value of control 'Camera Controls'.
VIDIOC_G_CTRL: Permission denied
Camera Controls           N/A             [Unknown Control Type]
Auto Exposure             Auto Mode       Auto Mode | Manual Mode
Adjusting resolution from 384x288 to 320x240.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
There are unsaved changes to the image.


Code: Select all
$ v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
   Index       : 0
   Type        : Video Capture
   Pixel Format: 'YUYV'
   Name        : YUYV

parallella@parallella:~/images$ v4l2-ctl --all
Driver Info (not using libv4l2):
   Driver name   : ov534
   Card type     : USB Camera-B4.09.24.1
   Bus info      : usb-zynq-ehci.0-1
   Driver version: 3.14.12
   Capabilities  : 0x85000001
      Video Capture
      Read/Write
      Streaming
      Device Capabilities
   Device Caps   : 0x05000001
      Video Capture
      Read/Write
      Streaming
Priority: 2
Video input : 0 (ov534: ok)
Format Video Capture:
   Width/Height  : 320/240
   Pixel Format  : 'YUYV'
   Field         : None
   Bytes per Line: 640
   Size Image    : 153600
   Colorspace    : SRGB
Streaming Parameters Video Capture:
   Capabilities     : timeperframe
   Frames per second: 30.000 (30/1)
   Read buffers     : 2

User Controls

                     brightness (int)    : min=0 max=255 step=1 default=0 value=0 flags=slider
                       contrast (int)    : min=0 max=255 step=1 default=32 value=32 flags=slider
                     saturation (int)    : min=0 max=255 step=1 default=64 value=64 flags=slider
                            hue (int)    : min=-90 max=90 step=1 default=0 value=0 flags=slider
        white_balance_automatic (bool)   : default=1 value=1
                       exposure (int)    : min=0 max=255 step=1 default=120 value=120 flags=inactive, volatile
                 gain_automatic (bool)   : default=1 value=1 flags=update
                           gain (int)    : min=0 max=63 step=1 default=20 value=20 flags=inactive, volatile
                horizontal_flip (bool)   : default=0 value=0
                  vertical_flip (bool)   : default=0 value=0
           power_line_frequency (menu)   : min=0 max=1 default=0 value=0
                      sharpness (int)    : min=0 max=63 step=1 default=0 value=0 flags=slider

Camera Controls

                  auto_exposure (menu)   : min=0 max=1 default=0 value=0 flags=update
e97
 
Posts: 10
Joined: Sun Jul 19, 2015 1:56 am


Return to Image and Video Processing

Who is online

Users browsing this forum: No registered users and 1 guest