How to Arduino Yun support Creative Live! VISTA VF0470 webcam?

Hi all,

I'm facing a problem when i control the creative VF0470 webcam with Arduino Yun.

Even i have install : kmod-video-uvc.

It show error when i typing command in SSH as per below:

root@ArduinoYun:~# fswebcam test.png
--- Opening /dev/video0...
stat: No such file or directory

Kindly Please help!

That is a gspca camera, drivers for uvcvideo cameras aren't likely to support it.

Thanks for the response!

Even i have installed those packages like:

  • kmod-video-gspca-core
  • kmod-video-core

But it seems doesn't work. Is there any possible way for Yun to support this webcam?

Please advise.

You will need to troubleshoot yourself, searching for gspca in this forum gives several hits. dmesg and lsusb will give info on the yun.

Hi,

I have try to install the package like: kmod-video-gspca-ov519_3.3.8-1_ar71xx.ipk.

But it not accepted by Yun.

Is it mean that Arduino Yun not supported GSPCA webcam?

Kindly advise.
Thanks.

It is hard to say what is wrong if you don't post the actual command you ran and the errors you received.

Did you run opkg update?

Where did the package come from?

What command did you use to try to install?

What does the kernel version match the kernel the module was compiled for? (uname -a will tell you your kernel version)

If your kernel is 3.8.3, does the package at http://chef.mesh.altermundi.net/downloads/stable/ar71xx/packages/ work?

Hi,

Thanks for reply.

Yes, i have performed the opkg update at SSH, and my Yun kernel version is:
Linux ArduinoYun 3.8.3 #8 Mon Aug 19 16:22:39 CEST 2013 mips GNU/Linux.

I have downloaded the file [kmod-video-gspca-ov519_3.8.3-1_ar71xx.ipk] from the link that you have provided to me.
But it doesn't work, and the error as below:

root@ArduinoYun:/mnt/sda1/yun_camera# opkg install kmod-video-gspca-ov519_3.8.3-
1_ar71xx.ipk
Installing kmod-video-gspca-ov519 (3.8.3-1) to root...
Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-video-gspca-ov519:
  • kernel (= 3.8.3-1-50d7afd574f6028b1f74bfed6c49de30) *
  • opkg_install_cmd: Cannot install package kmod-video-gspca-ov519.

Kindly advise.
Thanks.

You could use

opkg --force-depends install kmod-video-gspca-ov519_3.8.3-
1_ar71xx.ipk

to install that package.

I compiled a module that should install without forcing the dependencies, you can get it here.

To compile your own packages use this procedure:
http://playground.arduino.cc/Hardware/Yun#build_linino

Hi,

My webcam is working now :wink: , after i have try your code :

Code:
opkg --force-depends install kmod-video-gspca-ov519_3.8.3-
1_ar71xx.ipk

Thanks !!

Im glad your cam works now!

When I use your file and the command to install it it gives me this error:

root@Arduino:/mnt/sda1# opkg --force-depends install kmod-video-gspca-ov519_3.8.
3-1_ar71xx.ipk
Installing kmod-video-gspca-ov519 (3.8.3-1) to root...
Configuring kmod-video-gspca-ov519.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-video-gspca-ov519:
 *      kernel (= 3.8.3-1-cf85e4dc55fb28677fb803cf0f9ad60a) *   kmod-video-gspca-core *

opkg install kmod-video-gspca-core gives me:

root@Arduino:/mnt/sda1# opkg install kmod-video-gspca-core
Unknown package 'kmod-video-gspca-core'.
Collected errors:
 * opkg_install_cmd: Cannot install package kmod-video-gspca-core.

Any idea what I must do? Do I need to compile my own version? I am also using the YUN with its newest firmware.

Yes, you need to install kmod-video-gspca-core, have you run opkg update? Do you see kmod-video-gspca-core when you run opkg list?

@noblepepper: okay, that update worked, thanks a lot. one step further. now I installed the core.

root@Arduino:/mnt/sda1# opkg --force-depends install kmod-video-gspca-ov519_3.8.3-1_ar71xx.ipk
Multiple packages (kmod-video-gspca-ov519 and kmod-video-gspca-ov519) providing same name marked HOLD or PREFER. Using latest.
Installing kmod-video-gspca-ov519 (3.8.3-1) to root...
Configuring kmod-video-gspca-ov519.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-video-gspca-ov519:
 *      kernel (= 3.8.3-1-cf85e4dc55fb28677fb803cf0f9ad60a) *

This is the last error I receive. I think I have another kernel since I upgraded to the newest firmware? Do I need to compile my own one? And how to do it if I need to?

I believe this thread was about the Yun image and packages that were in use before the one that was just released. If you have upgraded to the new image then run

opkg remove kmod-video-gspca-ov519
opkg remove kmod-video-gspca-core
opkg update 
opkg install kmod-video-gspca-ov519

and if you have /dev/video0 then ignore the rest of this thread, you should have the modules installed for a Creative Live! VISTA VF0470.

When you use --force-depends I believe it will still show you the error even though it installed it.

Do you see kmod-video-gspca-ov519 when you run opkg list-installed?

Is there a file named /dev/video0?

Did you install the gspc-ov519 module from chef.mesh.altermundi.net, Dropbox - File Deleted - Simplify your life, or the official repository http://downloads.arduino.cc/openwrtyun/1/packages?

From the "New Yun Image" topic

Indeed packages

  • kmod-video-gspca-ov519
  • kmod-video-gspca-ov534
  • kmod-video-gspca-ov534

are available.
Please upgrade your Yun then install packages from the official arduino repo (that is: opkg update && opkg install kmod-video-gspca-ov519)

@noblepepper: Thank you so much. My Webcam works now! Awesome job, thanks for your help.

I have one question regarding fswebcam, maybe someone has an answer to it:

fswebcam has a feature built in where you can write the actual date on the shots the cam makes. However I receive this error:

--- Processing captured image...
Unable to load font 'sans': libgd was not built with FreeType font support

I also tried to define the path to the font, then however I receive only the error that freetype font support is not given. I understand, that this is an issue of libgd, but maybe someone knows a workaround?

Thanks for your help.

Any idea someone?

kaul:
@noblepepper: Thank you so much. My Webcam works now! Awesome job, thanks for your help.

I have one question regarding fswebcam, maybe someone has an answer to it:

fswebcam has a feature built in where you can write the actual date on the shots the cam makes. However I receive this error:

--- Processing captured image...

Unable to load font 'sans': libgd was not built with FreeType font support




I also tried to define the path to the font, then however I receive only the error that freetype font support is not given. I understand, that this is an issue of libgd, but maybe someone knows a workaround?

Thanks for your help.

recompile libgd with freetype support.

nano ~/OpenWrt-yun/package/feeds/packages/gd/Makefile

CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
        --disable-rpath \
        --without-x \
        --without-fontconfig \
        --without-freetype \
        --with-jpeg=$(STAGING_DIR)/usr \
        --with-png=$(STAGING_DIR)/usr \
        --without-xpm \
        --without-iconv

remove " --without-freetype " then recompile libgd. then remove installed libgd force install new revision one. I have not chance to test it but you should go ahead try it yourself.

After you've tested it working, please create a pull request on the packages repo GitHub - arduino/openwrt-packages-yun
(gd is here)

Thank you, Federico Fissore

Unfortunately I have little linux knowledge. I did the nano, but it seems this file does not exist. I am afraid of doing something wrong while compiling unless I find a step by step guide somewhere. If you can provide one that would be awesome, but I understand that u have limited time.

Thank you anyway and have a great day!

It's already available but it needs some hours to set up, a variable number of hours to build (my 4 cores i7 takes 6 hours) and about 30Giga of free disk space

If you feel it's too difficult, than probably it is. Still, you may want to give it a try, as it may be easier than you think :slight_smile:

An alternative path is to build just the SDK (or to obtain one from the openwrt website) and adapt instructions like those from fibasile about nodejs, so that you can build a custom version of package gd

Last alternative is to look for a totally different solution: one could be using fswebcam for taking pictures and use another program for changing them adding time and date