LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 863|回复: 3

有没有好心人帮帮我安装这个该死的摄像头驱动啊?

[复制链接]
发表于 2009-7-22 07:15:36 | 显示全部楼层 |阅读模式
我的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
发表于 2009-7-22 13:31:20 | 显示全部楼层
前面是告诉你必须enable的内核选项,如果你现在用的内核在编译的时候已经打开了就不用你再去编译内核
回复 支持 反对

使用道具 举报

发表于 2009-7-27 10:20:04 | 显示全部楼层
理论上内核应该已经支持了该摄像头.如果实际上不支持就没办法了.
回复 支持 反对

使用道具 举报

发表于 2009-7-27 10:50:37 | 显示全部楼层
用ubuntu最新的liveCD启动,运行cheese看看能不能用,如果可以,证明没问题,然后怎么做,你应该知道的吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表