LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Easycap (https://www.linuxquestions.org/questions/linux-hardware-18/easycap-742876/)

seecam 07-26-2009 07:34 AM

Easycap
 
Hi,

I bought some easycap products a while back:

http://www.amazon.co.uk/EasyCAP-4cha...ref=pd_cp_ce_2
http://www.amazon.co.uk/Weatheproof-..._bxgy_ce_img_b

Today i'm intend to get them working with linux (Fedora10).

Last time I tried I had trouble compiling the driver, so i'm starting this thread to document my progress and in attempt to gain some helpful advice.

lazlow 07-27-2009 01:16 AM

You might want to look here:

http://ubuntuforums.org/showthread.php?t=662531

and

here:

http://translate.google.com/translat...3DX%26num%3D50


Google also has many other hits.

wikapuki 09-13-2009 02:41 PM

I read here

http://news.softpedia.com/news/Linux...m-113733.shtml

that kernel Linux Kernel 2.6.30 as support for:
Easy Cap Capture DC-60 support


So I bought a EasyCap USB2.0 Video Adapter DC60

Plugged it in and all I get is:
lsusb:
Bus 002 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 093a:2601 Pixart Imaging, Inc. SPC 610NC Laptop Camera
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 008: ID 05e1:0408 Syntek Semiconductor Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

uname -a
Linux jilldando 2.6.30-1-486 #1 Sat Aug 15 18:14:04 UTC 2009 i686 GNU/Linux


Am I suppose to install something else to make it work? Cheese works with my philuips webcam on /dev/video0 and have tried /dev/video1 but it sees nothing.

ozegoods 02-24-2010 10:08 PM

Quote:

Originally Posted by wikapuki (Post 3681321)
Bus 001 Device 008: ID 05e1:0408 Syntek Semiconductor Co., Ltd

That would be your Easycap device.

You might find it more helpful to view the dmesg text. Boot your computer without connecting your Easycap. As root, type dmesg -c to clear the buffer, then connect your USB Easycap device. Type dmesg, all of what you see should be from the Easycap device.

wikapuki 02-25-2010 05:50 AM

Solution:
Code:

jilldando:/opt/syntekdriver# svn co https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/trunk/driver /opt/syntekdriver
[snip]
Checked out revision 99.

jilldando:/opt/syntekdriver# cd /opt/syntekdriver
jilldando:/opt/syntekdriver# make -f Makefile.standalone clean
jilldando:/opt/syntekdriver# make -C /lib/modules/2.6.32-trunk-486/build SUBDIRS=/opt/syntekdriver clean

make[1]: Entering directory `/usr/src/linux-headers-2.6.32-trunk-486'
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-trunk-486'
jilldando:/opt/syntekdriver# make -f Makefile.standalone
make -C /lib/modules/2.6.32-trunk-486/build SUBDIRS=/opt/syntekdriver modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-trunk-486'
[snip]
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /opt/syntekdriver/stk11xx.mod.o
  LD [M]  /opt/syntekdriver/stk11xx.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-trunk-486'
ctags: no input files specified.
        Try `ctags --help' for a complete list of options.
make: *** [driver] Error 1

jilldando:/opt/syntekdriver# cp /opt/syntekdriver/stk11xx.ko /lib/modules/2.6.32-trunk-486/kernel/drivers/media/video/usbvideo/

jilldando:/opt/syntekdriver# insmod  /lib/modules/2.6.32-trunk-486/kernel/drivers/media/video/usbvideo/stk11xx.ko

jilldando:/opt/syntekdriver# modprobe videodev

So this all works, I test with cheese webcam booth.

When I restart the PC I have to redo the insmod and modprobe

1) Is there a correct way / place to make sure this is done on boot?

2) Whenever there is a kernel update I have to repeat the whole process of ensuring the headers are installed for the new kernel and do the whole make thing again. Is there a way to:
2a) Automate that the Kernel headers are automatically included when a new kernel is added?
2b) Detect a new kernel and headers have been installed and fire off the making of the driver?


All times are GMT -5. The time now is 08:38 AM.