Installation of camera driver for Linux operating system

Source: Internet
Author: User

First. Installation of camera driver for Linux operating system

A) Please refer to the kernel version and camera type from http://mxhaard.free.fr/download.html

Choose to download the latest driver, which supports most cameras on the market.
B) Compile, install, and load the camera driver
C
) # Tar xvzf gspcav1-20061216.tar.gz
# Cd gspcav1-20061216
# Make
# Make install
# Modprobe gspca

Note: the Ubuntu update Library also contains this driver. You can simply use the "M-a-I spca5xx" command to automatically download, compile, and install the driver, however, because the code in the library is not the latest, there may be problems with the driver of some cameras, it is recommended to manually download, compile and install the method.
D) Use the camorama program to test the camera and its driver.
# Apt-Get install camorama
Start the camorama program from the Start Menu. If the driver works properly, a dynamic preview window is displayed in the program.


Second. Driver Installation notes



There are not many camera drivers in Linux. It seems that the spca5xx developed by the French bearded man is quite popular now. Let me install it.
First, plug in the camera and check it according to the lsusb. Alas, why don't we have this command, G, oh, it's not installed. The file is called usbutils and yum is installed.
Lsusb, Logitech mouse, chesen keyboard, no camera. What's the problem? Try again and try again. Now, Z-star Microelectronics Corp. zc0301 webcam, Id 0ac8: 301b, SMIC film, classic version, hopefully.

When I installed the camera driver, the French website ending with FR could not go up, and this was also harmonious? Agent, go out and finally see,
The name is gspcavl. Next, compile, and make an error. Owner = this_module
This is an error. g. I can see that openswan compilation also has this problem. The solution is to comment out the problem. I have also commented out the problem and then compiled it. OK And insmod.
Error. Check makefile and make again.
Install, that's right, but it's useless. The device and G cannot be found in ekiga. To see what a man wrote, you need to load v4l first. If you don't understand the truth, follow the instructions first. So only
First
Modprobe videodev
Then
Insmod gspca. Ko
OK. In ekiga, select v4l as the device type, and then you can see the cute camera.

Third. Installation notes


1. preparations. Enter CAT/proc/bus/USB/devices | grep "0ac8" in the command line"
. If any, for example, P: vendor = 0ac8 prodid = 301b REV =
1.00. Write down the prodid, which is the Sensor Product Number of your camera. If nothing is returned, don't worry. This shows that your camera is not a z-star sensor.
But there is no difference in the installation steps, enter CAT/proc/bus/USB/devices, find the PC
In the first row of the camera line, write down the prodid as well. Okay, go to this site and check if your sensor ID has been supported by the http://mxhaard.free.fr/spca5xx.html.
, Most Z-star products have been well supported. If you don't have any support, I'm sorry. I 'd like to express my condolences to you. You don't have to read the following.

2. Go to the download page and download the latest driver,
Http://mxhaard.free.fr/spca50x/Download/spca5xx-20050701.tar.gz
. At the same time, the tool spcagui20050601.tar.gz is also removed.
Http://mxhaard.free.fr/spca50x/Download/spcaview-20050701.tar.gz
If you are interested, you can also use the GUI tool provided by it. By the way, developed French are like Saddam.

3. Now, unpack the first package and check install. The compilation requires that you have installed the source code tree and header file of the corresponding kernel. Of course, video4linux must also be installed. Simple make;
Make install. Insmod spca5xx. Ko. If you are 2.4
The kernel is installed according to the requirements in install. If everything is okay, You can compile and install the spcaview and the SDL library is required.
Use spcaview-f yuv for testing. If you still have a video card, do not forget to add-D/dev/video1.

Fourth. Install a camera in Ubuntu (good)


1. a) Please refer to the kernel version and camera type from http://mxhaard.free.fr/download.html
Choose to download the latest driver, which supports most cameras on the market.

B) Compile, install, and load the camera driver

C) # tar xvzf gspcav1-20061216.tar.gz

# Cd gspcav1-20061216

# Make

# Make install

# Modprobe gspca

Note: the Ubuntu update Library also contains this driver. You can simply use the "M-a-I spca5xx" command to automatically download, compile, and install the driver, however, because the code in the library is not the latest, there may be problems with the driver of some cameras, it is recommended to manually download, compile and install the method.

D) Use the camorama program to test the camera and its driver.

# Apt-Get install camorama

Start the camorama program from the Start Menu. If the driver works properly, a dynamic preview window is displayed in the program.
 

Insert USB camera

$ Dmesg

Linux video capture interface: v2.00

Zc0301: v4l2 driver for zc0301 [p] image processor and control chip V1: 1.05

USB 1-2: zc0301 [p] image processor and control chip detected (Vid/PID 0x0ac8/0x301b)

USB 1-2: No supported image sensor detected

Usbcore: registered new driver zc0301

$ Lsusb

Bus 001 device 005: Id 0ac8: 301b Z-star Microelectronics Corp. zc0301 webcam

Bus 001 device 004: Id 0133: 8150 RealTek semiconducorp. rtl8150 Fast Ethernet Adapter

Bus 001 device 002: Id 0ace: 1215 zydas

Bus 001 device 001: Id :0000

Zc0301 webcam is the chip of our USB camera, and the kernel supports drivers.

Drivers/Media/Video/zc0301/, supports v4l2.

$ Apt-Get install spca5xx-source

[Confirmation Source:

Deb http://debian.cn99.com/debian
Etch main contrib non-free

Deb-Src http://debian.cn99.com/debian
Etch main contrib non-free

]

Let's see where the source code is pulled.

$ Dpkg-l spca5xx-source

/.

/Usr

/Usr/src

/Usr/src/spca5xx-source.tar.bz2

/Usr/share

/Usr/share/doc

/Usr/share/doc/spca5xx-source

/Usr/share/doc/spca5xx-source/README-SONIX

/Usr/share/doc/spca5xx-source/README-TV8532

/Usr/share/doc/spca5xx-source/RGB-YUV % 2fmodule-setting

/Usr/share/doc/spca5xx-source/readme. Debian

/Usr/share/doc/spca5xx-source/Copyright

/Usr/share/doc/spca5xx-source/changelog.gz

/Usr/share/doc/spca5xx-source/readme.gz

/Usr/share/doc/spca5xx-source/changelog.debian.gz

/Usr/share/modass

/Usr/share/modass/overrides

/Usr/share/modass/overrides/spca5xx-source

$ CD/usr/src

$ Tar jxf spca5xx-source.tar.bz2

$ CD modules/spca5xx/

Refer to the install file

$ Make clean

$ Make

$ Make install

Load Module

$ Modprobe spca5xx

$ Lsmod | grep sp

Spca5xx 642544 0

Videodev 21120 2 spca5xx, zc0301

Pcspkr 3072 0

Usbcore 112644 7 spca5xx, zc0301, zd1211b, rtl8150, usbhid, ohci_hcd

[Pcspkr was originally available before modprobe]

At this time,/dev/video0 is ready.

Install an application

$ Apt-Get install camorama

Run camorama.

Another camera (chip sn9c101) can be used directly this time because the SPCA driver has been installed.
Generally, it can be used.
2. install video software

Sudo apt-Get install camorama

Install Camera 2 in Ubuntu

Enter lsusb in the terminal

Bus 005 device 001: Id :0000

Bus 003 device 001: Id :0000

Bus 002 device 001: Id :0000
Bus 001 device 002: Id 0ac8: 301b Z-star Microelectronics Corp. zc0301 webcam (note that this line is camera Information)

Bus 001 device 001: Id :0000
Bus 004 device 001: Id :0000

Enter ekiga in the terminal, and then set (Application> Internet> ekiga ).


Great! So far, I have never installed any Ubuntu drivers, and the system has its own.

# Upgrade: I tested that both ubuntu7.04 and ubuntu7.10 are acceptable.

Install camera 3 in Ubuntu



You can use easycam to install the camera,

Easycam 2
Easycam 2 is a new version of easycam. If you encounter problems when using easycam, try easycam 2.

Install
Add the code in the next line to your/etc/APT/sources. list file.

Deb http://blognux.free.fr/debian
Unstable main
Then update the software package in your system and install easycam.

Sudo apt-Get update
Sudo apt-Get install easycam2
Easycam 1
Easycam is a program used to automatically install cameras. It automatically detects your camera and selects and installs the appropriate driver.

Here is a list of cameras that can be detected by easycam. The scale of this list is still relatively small, but it continues to expand.

The source code can be found here.

Install
Add the code in the next line to your/etc/APT/sources. list file.

Deb http://blognux.free.fr/debian
Unstable main
Then update the software package in your system and install easycam.

Start easycam

You can use the following command to start easycam (there is an icon in the system> System Management menu, you can also use it to start easycam ):

Lauchcam2
Easycam 2
Select your camera model from the list that appears, and easycam will ask you if you want to install the driver.

After a period of compilation, your camera should be ready for use.

Problem
If you encounter any problems, you can go to documentaion Ubuntu francophone (French) or their Forum (French) for query.

Test your camera
Camorama is a small tool used to watch, modify, and save images obtained from the camera. You can use apt to install it:

Sudo apt-Get install camorama
Introduce some additional software
If you want to display an icon on the system tray when the camera is turned on, you can try camera monitor. Debian and Ubuntu users can directly use this Deb package for installation.

Install spca5xx manually
Here you can find the manual Installation Guide for the spca5xx driver.

Easycam 2
Easycam 2 is a new release of easycam. Please try if you have any problems with easycam

Installation
Add the following line to your/etc/APT/sources. List

Deb http://blognux.free.fr/debian
Unstable main
Then you need to update the packages and install easycam

Sudo apt-Get update
Sudo apt-Get install easycam2
Easycam 1
Easycam is a software for an automatic webcam installation. Thanks
The Auto Detection it will install the needed driver for your webcam.

There is are lists of the autodetected Webcam's. At the moment the list is small, but it's constantly growing.

The source code is here

Installation
Add the following line to your/etc/APT/sources. List

Deb http://blognux.free.fr/debian
Unstable main
Then you need to update the packages and install easycam

Sudo apt-Get update
Sudo apt-Get install easycam
Start easycam
With the following command you start easycam (there is also an icon under system-> Administration ):

Lauchcam2
Now you can choose your webcam from the list. The software asks you if you want to install the driver.

After a some compilation your webcam shoshould be ready.

Problems
If you get in trouble you can check on their thread (in French) or on the same entaion Ubuntu francophone (in French)

Testing your webcam
There is a nifty little application called camorama to view, alter and save images from a webcam. Simply install it via apt:

Sudo apt-Get install camorama
Additional Software
If you want to have a little tray System icon that notifies you when
Your webcam is on, try camera monitor. There is even a Debian/Ubuntu
Package available.

Installing spca5xx manually
You can find howto's for manual installation of the spca5xx driver here

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.