|
|
我的webcam是sn9c120,上网找驱动找了好久,终于找到了,不过不知如何安装,直接make出错
官方的安装文档是这样说的,但是我第一部分就看不懂。。。是不是要自己编译内核啊?那要怎么搞?
5. Driver installation
======================
As noted above, kernel 2.6.19 is the minimum for this driver; for it to work
properly, the driver needs kernel support for Video4Linux and USB.
The following options of the kernel configuration file must be enabled and
corresponding modules must be compiled:
# Multimedia devices
#
CONFIG_VIDEO_DEV=m
To enable advanced debugging functionality on the device through /sysfs:
# Multimedia devices
#
CONFIG_VIDEO_ADV_DEBUG=y
On the contrary, to disable the debugging functionality, it's necessary to both
set CONFIG_VIDEO_ADV_DEBUG=n and remove its definition from the Kbuild file
provided with the SN9C1xx driver.
# USB support
#
CONFIG_USB=m
In addition, depending on the hardware being used, the modules below are
necessary:
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_UHCI_HCD=m
CONFIG_USB_OHCI_HCD=m
The SN9C103, SN9C105 and SN9C120 controllers also provide a built-in microphone
interface. It is supported by the USB Audio driver thanks to the ALSA API:
# Sound
#
CONFIG_SOUND=y
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
# USB devices
#
CONFIG_SND_USB_AUDIO=m
Moving along to the SN9C1xx driver: after having downloaded the package,
decompress and compile:
[user@localhost home]$ tar xvzf sn9c1xx-v.vv.tar.gz
[user@localhost home]$ cd sn9c1xx-v.vv
(where "v.vv" has to be substituted with the version of the package just
downloaded)
It is necessary to properly configure your particular kernel source tree before
compiling the driver. The modular building process is used; therefore you must
have read and write access to your kernel source tree. If not, log in as root
before running the following commands:
[user@localhost sn9c1xx-v.vv]$ make clean
[user@localhost sn9c1xx-v.vv]$ make modules
If the commands fail, control the Makefile and change the path to the kernel
source tree or to any other files, according to your system configuration;
then run the previous commands again.
If everything went well, the SN9C1xx driver can be used either immediatly
(skip to the next paragraph) or be installed.
The driver will not be installed in the default directory reserved for modules
being built outside the kernel. This means that the possible version of the
driver present in the official Linux kernel tree might be overwritten during
the installation process.
To install the driver, run as root:
[root@localhost sn9c1xx-v.vv]# make modules_install |
|