Difference between revisions of "Linux driver untuk STK11 Webcam Video Adapter"

From OnnoWiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
Langkah yang perlu dilakukan:
 
Langkah yang perlu dilakukan:
 +
 +
* Update the library of hardwares PCI and USB:
 +
 +
sudo update-pciids
 +
sudo update-usbids
 +
 +
* Siapkan software pendukung
 +
 +
sudo apt-get install doxygen linux-headers-2.6.32-21-generic bin86 libqt3-headers libqt3-mt-dev libncurses5-dev \
 +
libusb-dev libsane-dev libsane-extras-dev exuberant-ctags camorama subversion
 +
 +
* Cek EasyCAP USB 2.0 apakah terdeteksi
 +
 +
$ lsusb
 +
 +
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 +
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 +
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 +
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 +
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 +
Bus 001 Device 002: ID 05e1:0408 Syntek Semiconductor Co., Ltd
 +
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  
 
* Download & install versi baru dari driver tsb dari sourceforge
 
* Download & install versi baru dari driver tsb dari sourceforge
Line 13: Line 37:
 
  cp stk11xx-2.1.0.tar.gz ~/stk11
 
  cp stk11xx-2.1.0.tar.gz ~/stk11
 
  cd ~/stk11
 
  cd ~/stk11
 +
tar zxvf stk11xx-2.1.0.tar.gz
 +
cd ~/stk11/stk11xx-2.1.0
  
 
* Type:
 
* Type:
  
  sudo ./configure && make
+
  cd ~/stk11/stk11xx-2.1.0
  # sesudah perintah ini maka file stk11xx.ko akan di buat di folder stk11xx-1.3.1)
+
make -f Makefile.standalone
 +
make -f Makefile.standalone driver
 +
make -f Makefile.standalone
 +
  # sesudah perintah ini maka file stk11xx.ko akan di buat di folder stk11xx-2.1.0)
 
  sudo modprobe videodev
 
  sudo modprobe videodev
 
  sudo modprobe v4l1-compat
 
  sudo modprobe v4l1-compat
 
  sudo insmod stk11xx.ko  
 
  sudo insmod stk11xx.ko  
  
* Tekan ALT+F2 dan jalankan 'gksu gedit /etc/modules’ dan tambahkan kalimat berikut:
+
* Alternatif lain
 +
 
 +
cd ~
 +
svn co https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/trunk/driver syntekdriver
 +
cd ~/syntekdriver
 +
make -f Makefile.standalone clean
 +
make -f Makefile.standalone
 +
modprobe videodev
 +
insmod stk11xx.ko
  
# modules for infrastructure to support the video
+
* Cek apakah /dev/video0 muncul
videodev
 
v4l1-compat
 
  
6.Press ALT+F2 and executes ‘gksu gedit /etc/rc.local’ then adds the following line:
+
  ls /dev/video0
  insmod /home/<your login name>/stk11xx-1.3.1/stk11xx.ko
 
(this line must be added before last line “ exit 0 ”)
 
  
Test with Camorama or even better zapping which can be got with the command
+
* Tambahkan kalimat berikut pada /etc/modules:
$ sudo apt-get install zapping
 
  
Thats all folks!!!!
+
vi /etc/modules
P.S. Im thinking of thinking of tinkering around with the the driver myself, if anybody would be interested that would be great. Send a message through the forums.
 
  
 +
# modules for infrastructure to support the video
 +
videodev
 +
v4l1-compat
  
==Alternatif Cara Instalasi==
+
6.Tambahkan pada /etc/rc.local
  
1.Update the library of hardwares PCI and USB:
+
  sudo vi /etc/rc.local
  $ sudo update-pciids
 
$ sudo update-usbids
 
  
2.Make sure your ASUS laptop has really one webcam syntek?
+
insmod /home/<login anda>/stk11/stk11xx-2.1.0/stk11xx.ko
$ lsusb
+
  # sebelum kalimat 'exit 0'
Bus 005 Device 003: ID 05e1:0501 Syntek Semiconductor Co., Ltd
 
Bus 005 Device 001: ID 0000:0000
 
Bus 002 Device 003: ID 046d:c019 Logitech, Inc.
 
  Bus 002 Device 001: ID 0000:0000
 
Bus 001 Device 001: ID 0000:0000
 
Bus 003 Device 001: ID 0000:0000
 
Bus 004 Device 001: ID 0000:0000
 
$
 
  
3.Install some dependences:
 
$ sudo apt-get install bin86
 
$ sudo apt-get install libqt3-headers
 
$ sudo apt-get install libqt3-mt-dev
 
$ sudo apt-get install libncurses5-dev
 
$ sudo apt-get install libusb-dev
 
$ sudo apt-get install libsane-dev
 
$ sudo apt-get install libsane-extras-dev
 
$ sudo apt-get install exuberant-ctags
 
$ sudo apt-get install camorama
 
$ sudo apt-get install subversion
 
  
(all these packages could be installed in Synaptic)
 
  
4.Download the sources and compile it:
+
* Test menggunakan Camorama atau zapping
$ cd ~
 
$ svn co https://syntekdriver.svn.sourceforge...t/syntekdriver
 
$ cd syntekdriver/trunk/driver
 
$ make
 
$ sudo modprobe videodev
 
$ sudo modprobe v4l1-compat
 
$ sudo insmod stk11xx.ko
 
  
5.Press ALT+F2 and executes ‘gksu gedit /etc/modules’ then adds the lines:
+
  $ sudo apt-get install zapping camorama
  # modules for infrastructure to support the video
 
videodev
 
v4l1-compat
 
  
6.Press ALT+F2 and executes ‘gksu gedit /etc/rc.local’ then adds the following line:
+
* Reboot dan buka Camorama apakah bisa terdeteksi
insmod /home/<YourloginName>/syntekdriver/trunk/driver/stk11xx.ko
 
(this line must be added before last line “ exit 0 ”)
 
  
7. Reboot and then open Camorama to check if the webcam works.
+
  $ camorama
  Applications > Art or something? (美工繪圖) > Camorama
 
( I use Chinese Ubuntustudio, so please check the path yourself)
 
  
 +
atau
  
 +
$ zapping
  
 
==Referensi==
 
==Referensi==

Latest revision as of 20:09, 30 October 2010

Nampaknya driver ini belum di program untuk EasyCAP device. Setelah kita colok ke PC, hardware info memberikan berbagai ALSA input tapi tidak memberikan video chip yang sebenarnya.

Langkah yang perlu dilakukan:

  • Update the library of hardwares PCI and USB:
sudo update-pciids
sudo update-usbids
  • Siapkan software pendukung
sudo apt-get install doxygen linux-headers-2.6.32-21-generic bin86 libqt3-headers libqt3-mt-dev libncurses5-dev \
libusb-dev libsane-dev libsane-extras-dev exuberant-ctags camorama subversion
  • Cek EasyCAP USB 2.0 apakah terdeteksi
$ lsusb

Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 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 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e1:0408 Syntek Semiconductor Co., Ltd 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  • Download & install versi baru dari driver tsb dari sourceforge
http://sourceforge.net/project/showfiles.php?group_id=178178
http://sourceforge.net/projects/syntekdriver/files/
  • Copy & Extract paket di home folder
mkdir ~/stk11
cp stk11xx-2.1.0.tar.gz ~/stk11
cd ~/stk11
tar zxvf stk11xx-2.1.0.tar.gz
cd ~/stk11/stk11xx-2.1.0
  • Type:
cd ~/stk11/stk11xx-2.1.0
make -f Makefile.standalone
make -f Makefile.standalone driver
make -f Makefile.standalone 
# sesudah perintah ini maka file stk11xx.ko akan di buat di folder stk11xx-2.1.0)
sudo modprobe videodev
sudo modprobe v4l1-compat
sudo insmod stk11xx.ko 
  • Alternatif lain
cd ~
svn co https://syntekdriver.svn.sourceforge.net/svnroot/syntekdriver/trunk/driver syntekdriver
cd ~/syntekdriver
make -f Makefile.standalone clean
make -f Makefile.standalone
modprobe videodev
insmod stk11xx.ko
  • Cek apakah /dev/video0 muncul
ls /dev/video0
  • Tambahkan kalimat berikut pada /etc/modules:
vi /etc/modules
# modules for infrastructure to support the video
videodev
v4l1-compat

6.Tambahkan pada /etc/rc.local

sudo vi /etc/rc.local
insmod /home/<login anda>/stk11/stk11xx-2.1.0/stk11xx.ko 
# sebelum kalimat 'exit 0'


  • Test menggunakan Camorama atau zapping
$ sudo apt-get install zapping camorama
  • Reboot dan buka Camorama apakah bisa terdeteksi
$ camorama

atau

$ zapping

Referensi

Pranala Menarik