Webcam Installation Guide for the YADE-Board
Total Page:16
File Type:pdf, Size:1020Kb
antrax Datentechnik GmbH [email protected] - www.antrax.de Webcam Installation Guide for the YADE-Board This installation guide explains how to operate a Webcam – in this case using the "Logitech® Webcam C250" as an example - with the YADE-Board. Required components • "Logitech® Webcam C250" or different UVC-USB camera • the uvcvideo.tar.gz package It is assumed that an not-modified YADE-Board is used and basic knowledge on operating and the management of Linux is given. Preparation Put into operation the YADE-Board and copy the uvcvideo.tar.gz package to the file system. It is recommended to use the directory /var/tmp to do so, please download as described in the "YADE_Quick_Installation_Guide". starting pid 357, tty '/dev/console': '/bin/sh' #cd /var/tmp #rz --ymodem rz waiting to receive.CCC Once downloaded, unpack the package. # tar -xvzf uvcvideo.tar.gz uvcvideo/ uvcvideo/install.sh uvcvideo/modules.dep uvcvideo/videodev.ko uvcvideo/v4l2-int-device.ko uvcvideo/v4l2-common.ko uvcvideo/v4l1-compat.ko uvcvideo/uvcvideo.ko uvcvideo/checksums uvcvideo/uvccapture # From the files listed, only those with the ".ko" ending are need at first. - 1 - Hasenbrink 4, 32052 Herford, Germany Tel. +49 (0) 5221 929660 Fax +49 (0) 5221 9296628 antrax Datentechnik GmbH [email protected] - www.antrax.de "ko" here stands for "kernel object" and is a binary snippet that is hooked into the kernel as as a module. To do so, you have to follow a certain order, otherwise it will not work! At first the USB interfaces need to be activated, then load the existing modules for USB and I²C1 on the YADE-Board. Thereafter, use the command insmod to load the modules one by one. # cd uvcvideo/ # echo O1 >> /dev/at91sam9260_gpio.32 # modprobe usbcore usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb # modprobe ohci-hcd at91_ohci at91_ohci: AT91 OHCI at91_ohci at91_ohci: new USB bus registered, assigned bus number 1 at91_ohci at91_ohci: irq 20, io mem 0x00500000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected # usb 1-2: new full speed USB device using at91_ohci and address 2 usb 1-2: configuration #1 chosen from 1 choice # insmod v4l1-compat.ko # modprobe i2c-core # insmod videodev insmod: can't open 'videodev': No such file or directory # insmod videodev.ko Linux video capture interface: v2.00 # insmod v4l2-common.ko # insmod v4l2-int-device.ko # insmod uvcvusb 1-2: USB disconnect, address 2 # insmod uvcvideo.ko usbcore: registered new interface driver uvcvideo USB Video Class driver (v0.1.0) # 1 the I²C module is used by the v4l2-common module. Both can be left aside for this description without any problems. - 2 - Hasenbrink 4, 32052 Herford, Germany Tel. +49 (0) 5221 929660 Fax +49 (0) 5221 9296628 antrax Datentechnik GmbH [email protected] - www.antrax.de Take a picture You can connect the webcam after all modules have been loaded correctly and the USB hardware interface was loaded. With the "uvccapture" program you can take a snapshot. # ./uvccapture # ls checksums uvccapture v4l2-int-device.ko install.sh uvcvideo.ko videodev.ko modules.dep v4l1-compat.ko snap.jpg v4l2-common.ko # The underlined file "snap.jpg" shown is the result of the snapshot. - 3 - Hasenbrink 4, 32052 Herford, Germany Tel. +49 (0) 5221 929660 Fax +49 (0) 5221 9296628 antrax Datentechnik GmbH [email protected] - www.antrax.de Install the drivers permanently Use the install.sh script to to use the kernel modules on your YADE-Board permanently and to install the "uvccapture" program. CAUTION: this script interferes at a sensitive part of the system. Existing drivers will be overwritten. It is recommended to safe a backup of these drivers. To do this, copy all files from "/lib/modules/2.6.24-rc5-rt1/kernel/drivers/media/video/" for example to a USB stick! # ./install.sh /lib/modules/2.6.24-rc5-rt1/modules.dep: OK cp modules.dep /lib/modules/2.6.24-rc5-rt1/modules.dep mkdir /lib/modules/2.6.24-rc5-rt1/kernel/drivers/usb/media cp uvcvideo.ko /lib/modules/2.6.24-rc5-rt1/kernel/drivers/usb/media/uvcvideo.ko cp v4l1-compat.ko /lib/modules/2.6.24-rc5-rt1/kernel/drivers/media/video/ cp v4l2-common.ko /lib/modules/2.6.24-rc5-rt1/kernel/drivers/media/video/ cp v4l2-int-device.ko /lib/modules/2.6.24-rc5-rt1/kernel/drivers/media/video/ cp videodev.ko /lib/modules/2.6.24-rc5-rt1/kernel/drivers/media/video/ cp uvccapture /usr/bin # Now it is possible to load the driver of the webcam with one single command: "modprobe". # modprobe uvcvideo usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Linux video capture interface: v2.00 usbcore: registered new interface driver uvcvideo USB Video Class driver (v0.1.0) # If you do not want to overwrite current drivers, it is possible to copy the new drivers to a own directory and to load them as described above or for example write a script for future use. - 4 - Hasenbrink 4, 32052 Herford, Germany Tel. +49 (0) 5221 929660 Fax +49 (0) 5221 9296628 antrax Datentechnik GmbH [email protected] - www.antrax.de Supported cameras Following camera types are supported by the "uvcvideo" driver. Device ID Name Manufacturer 0402:5606 USB 2.0 Camera (VIT D2010 notebooks) ALi Corporation 0408:030c HP Webcam (HP Pavilion DV6744 and DV6750) Quanta Computer 041e:4057 Creative Live! Cam Optia Creative Labs 041e:4058 Creative Live! Cam Optia AF Creative Labs 041e:4063 Creative Live! Cam Video IM Pro Creative Labs 041e:4065 Creative Live! Cam Optia Pro Creative Labs 041e:406a Creative Live! Cam Notebook Ultra Creative Labs 041e:4080 Creative Live! Cam Socialize HD Creative Labs 0458:505e Genius iSlim 330 Genius 0458:7055 Genius iSlim 2020AF Genius 0458:705d Genius iSlim 2000AF Genius 0458:706e Genius eFace 2025 Genius 0458:7070 Genius FaceCam 310 Genius 0458:7071 Genius iSlim 1300 V2 Genius 045e:00f8 Microsoft LifeCam NX-6000 Microsoft 045e:074a Microsoft LifeCam VX-500 Microsoft 045e:075d Microsoft LifeCam Cinema Microsoft 045e:0770 Microsoft LifeCam VX-700 Microsoft 046d:0802 Logitech Webcam C200 Logitech 046d:0804 Logitech Webcam C250 Logitech 046d:0805 Logitech Webcam C300 Logitech 046d:0807 Logitech Webcam C500 Logitech 046d:0808 Logitech Webcam C600 Logitech 046d:0809 Logitech Webcam Pro 9000 Logitech 046d:080a Logitech Portable Webcam C200 Logitech 046d:0819 Logitech Webcam C210 Logitech 046d:081d Logitech Webcam C310 Logitech 046d:0821 Logitech Portable Webcam C910 Logitech 046d:08c1 Logitech Quickcam Fusion Logitech 046d:08c2 Logitech Quickcam Orbit/Sphere MP Logitech 046d:08c3 Logitech Quickcam for Notebooks Pro Logitech 046d:08c5 Logitech Quickcam Pro 5000 Logitech 046d:08c6 Logitech Quickcam OEM Dell Notebook Logitech 046d:08c7 Logitech Quickcam OEM Cisco VT Camera II Logitech 046d:08c9 Logitech Quickcam Ultra Vision Logitech 046d:08ca Logitech Quickcam Fusion (2006 model) Logitech 046d:08cb Logitech Quickcam for Notebooks Pro (2006 model) Logitech 046d:08cc Logitech Quickcam Orbit/Sphere MP (2006 model) Logitech 046d:08ce Logitech Quickcam Pro 5000 (2006 model) Logitech - 5 - Hasenbrink 4, 32052 Herford, Germany Tel. +49 (0) 5221 929660 Fax +49 (0) 5221 9296628 antrax Datentechnik GmbH [email protected] - www.antrax.de Device ID Name Manufacturer Logitech Quickcam Pro 9000 Logitech Quickcam Pro 046d:0990 9000 for Business Logitech Logitech Quickcam Pro for Notebooks (2007 model) 046d:0991 Logitech Quickcam Pro for Notebooks for Business Logitech 046d:0992 Logitech Quickcam Communicate Deluxe Logitech 046d:0994 Logitech Quickcam Orbit/Sphere AF Logitech Logitech Quickcam Communicate MP/S5500 Logitech 046d:09a1 Quickcam Communicate MP for Business Logitech 046d:09a2 Logitech Quickcam Communicate Deluxe/S7500 Logitech 046d:09a4 Logitech Quickcam E 3500 Logitech 046d:09a5 Logitech Quickcam 3000 for Business Logitech 046d:09a6 Logitech Quickcam Vision Pro Logitech 046d:09b0 Acer OrbiCam (Acer notebooks) Logitech 046d:09b2 Fujitsu Webcam (Fujitsu-Siemens notebooks) Logitech 046d:09c0 Quickcam for Dell Notebooks (Dell notebooks) Logitech Logitech Quickcam Deluxe for Notebooks Logitech 046d:09c1 Quickcam Deluxe for Notebooks for Business Logitech 0471:0331 Philips SPC 1300NC Philips 0471:0332 Philips SPC 1000NC Philips 0471:0333 Philips SPC 620NC Philips 0471:0334 Philips SPC 520/525NC Philips 0471:2034 Philips SPC 530NC Philips 0471:2037 Philips SPC 1330NC Philips 0471:2038 Philips SPC 2050NC Philips 0474:02da Sanyo Xacti HD2000 Sanyo Electric 0474:0722 Sanyo W33SA Sanyo Electric 0474:0b0e Sanyo VPC-CA102 Sanyo Electric 0489:d00a Traveler DC 8900 Schenker Inc. 04cb:014c Fujifilm FinePix A340 Fujifilm 04cb:016f Fujifilm FinePix S5500 Zoom Fujifilm 04cb:0172 Fujifilm FinePix E550 Fujifilm 04da:2318 Panasonic Camcorder NV-GS11/230/250 (webcam mode) Panasonic 04da:231a Panasonic Camcorder NV-GS11/230/250 (DV mode) Panasonic Panasonic Camcorder NV-GS27/37/320/500 (webcam 04da:231d mode) Panasonic 04da:231e Panasonic Camcorder NV-GS27/37/320/500 (DV mode) Panasonic Chicony USB 2.0 1.3MP UVC Camera (Maxell MaxCam 04f2:a133 MWC-1300D) Chicony Electronics 04f2:a13c HP KQ246AA 8.0MP Deluxe Webcam Chicony Electronics 04f2:a13e Panda 10C Chicony Electronics 04f2:a147 Medion P86004 2MP Webcam with Headset Chicony Electronics 04f2:b008 Chicony USB 2.0 Camera Chicony Electronics 04f2:b012 Chicony 1.3M UVC Webcam (Asus G1S notebooks) Chicony Electronics 04f2:b013 Chicony USB 2.0 Camera (Lenovo 3000 N200 notebooks) Chicony Electronics 04f2:b015 Chicony VGA 24fps UVC Webcam (HP notebooks)