QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1660|回复: 2

ov519芯片摄像头有驱动了

[复制链接]
发表于 2006-7-4 14:11:22 | 显示全部楼层 |阅读模式
下载地址:http://www.rastageeks.org/ov51x-jpeg/index.php/Ov51xJpegHackedSource
安装说明:
Ov51xJpegHackedInstall
[edit]
Installation Instructions
Basically, you need a kernel with its headers, and the videodev module built with video4linux option (try modprobe videodev as root).
Then, as normal user, type in the ov51x-jpeg-x.x.x directory:
% make

and, as root:
# make install
# update-modules
# modprobe ov51x
# modprobe ov519_decomp

'update-modules' is named 'update-modules.dep' in some distributions (i.e. Suse).
or if this fails for any reason:
# insmod ./ov51x.ko
# insmod ./ov519_decomp.ko

from the source directory.
On Fedora, make sure 'kernel-devel' is installed. If the 'make' command doesn't build anything, first go to the kernel-headers directory (i.e. '/usr/src/kernels/2.6.16-1.2069_FC4-i686') and type 'make'. This might produce an error, but at least makes sure ov51x will build. Instead of 'update-modules', use 'depmod -a'.
That's it, you got your camera ready to work with your favorite v4l application!
Note: A cool thing to do is to have the ov519_decomp loaded after each time you load the ov51x module. With kernels 2.6, it is really easy: all you have to do is to put a text file at /etc/modprobe.d that has this line: 'install ov51x /sbin/modprobe --ignore-install ov51x; /sbin/modprobe ov519_decomp'. To do so, just do the following things:
# echo "install ov51x /sbin/modprobe --ignore-install ov51x; /sbin/modprobe ov519_decomp" \
> /etc/modprobe.d/ov51x
# update-modules

(The \ is only to tell that the two lines have to be typed in a row.. But it would not fit the page here ;) )
Note: To work around the kopete for KDE 3.5 green image bug, you should add this parameter: /sbin/modprobe --ignore-install ov51x force_palette=13, see FAQ for more details.
Note: Here, debian sid, this does no longer seems to work.. Instead it worked adding the same line to /etc/modprobe.conf
Then, if you unload ov51x and ov519_decomp and do modprobe ov51x, you should see this:
16:55 root@duppy /home/toots# modprobe ov51x
/home/toots/Sources/ov51x-jpeg/ov51x-jpeg-0.2/ov51x.c: USB OV519 video device found
/home/toots/Sources/ov51x-jpeg/ov51x-jpeg-0.2/ov51x.c: Sensor is an OV7648
/home/toots/Sources/ov51x-jpeg/ov51x-jpeg-0.2/ov51x.c: Device at usb-0000:00:11.2-1 registered to minor 1
usbcore: registered new driver ov51x
/home/toots/Sources/ov51x-jpeg/ov51x-jpeg-0.2/ov51x.c: v1.65-1.11-mark : ov51x USB Camera Driver
/home/toots/Sources/ov51x-jpeg/ov51x-jpeg-0.2/ov519_decomp.c: v1.3 : OV519 JPEG Decompression  Module

That's it!
只是本人水平太差不知道怎么安装,请大大总结一下贴个中文的安装说明!
100%能用的驱动,我瞎搞都让摄像头的指示灯亮了起来。
 楼主| 发表于 2006-7-4 14:51:27 | 显示全部楼层
我在ML2.0正式版中直接make;make install成功,驱动也加载了,摄像头的指示灯也能亮了,可后面怎么操作就搞不懂了,运行spcaview后好像是上v4l出错
Initializing SDL.
SDL initialized.
bpp 3 format 15
Using video device /dev/video0.
Initializing v4l.
ERROR opening V4L interface
: No such file or directory
正确的应该怎么安装,请各位指教
回复

使用道具 举报

发表于 2006-7-4 18:01:14 | 显示全部楼层
modprobe v4l
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-24 17:54 , Processed in 0.050368 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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