Go Down

Topic: How to Arduino Yun support Creative Live! VISTA VF0470 webcam? (Read 12314 times) previous topic - next topic

khchan

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!

noblepepper

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

khchan

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.

noblepepper

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

khchan

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.

noblepepper

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?

khchan

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.




noblepepper

You could use
Code: [Select]
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.
https://www.dropbox.com/s/zmnege8cottr5t5/kmod-video-gspca-ov519_3.8.3-1_ar71xx.ipk

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

khchan

Hi,

My webcam is working now  ;) , after i have try your code :
Quote
Code:
opkg --force-depends install kmod-video-gspca-ov519_3.8.3-
1_ar71xx.ipk


Thanks !!

kaul

#9
May 10, 2014, 09:14 pm Last Edit: May 10, 2014, 09:21 pm by kaul Reason: 1
Im glad your cam works now!

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

Code: [Select]
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:

Code: [Select]
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.

noblepepper

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?

kaul

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

Code: [Select]
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?

noblepepper

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
Code: [Select]
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, https://www.dropbox.com/s/zmnege8cottr5t5/, or the official repository  http://downloads.arduino.cc/openwrtyun/1/packages?

federicofissore

From the "New Yun Image" topic

- Added lots of webcam modules

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)

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:

Code: [Select]
--- 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.

Go Up