Kernel hacking: ov51x-jpeg module with 2 webcams
来源:互联网 发布:sql server 2005 iis 编辑:程序博客网 时间:2024/05/21 10:03
墙外文章,贴来慢慢看
原文地址:
http://awesomegeekblog.blogspot.tw/2009/04/kernel-hacking-ov51x-jpeg-module-with-2.html
This is partially a note-to-self, and pretty esoteric. If you don't get what I'm talking about, don't worry. This probably doesn't apply to you.
I have sent this fix to the module creator, but until a solution becomes available in the actual module, I'm sharing the information here.
The following changes are made entirely at your own peril. I take absolutely no responsibility for whatever doom it may bring upon your computer. It may cause your computer to go up in flames, your girlfriend to cheat on you and horribly disfiguring and agonizing diseases to be inflicted upon you. Don't say I didn't warn you.
I have had problems with getting the ov51x-jpeg kernel module to accept multiple webcams with my OV519 cameras. I'm quite simply running out of USB bandwidth. Now the module has built in functionality to handle this: You modprobe with the argument "cams=2". This did not work for me. I was still using too much bandwidth.
If you make the following alteration to ov51x-jpeg-1.5.9.
File: ov51x-jpeg-core.c5435 case BRG_OV519:
5436 if (cams == 1) size = 896;
5437 else if (cams == 2) size = 512;
5438 else {
is changed into5435 case BRG_OV519:
5436 if (cams == 1) size = 896;
5437 else if (cams == 2) size = 512;
5438 else if (cams == 3) size = 384;
5439 else {
Unload the ov51x-jpeg module. Recompile the module sources. Load withmodprobe ov51x-jpeg cams=3
... and it works. At least for me.
- Kernel hacking: ov51x-jpeg module with 2 webcams
- Kernel Module with /proc/sys support
- The Kernel Newbie Corner: Kernel and Module Debugging with gdb
- Advances in kernel hacking
- linux kernel hacking 资料
- Kernel Module
- The kernel module programming primer(4)-Writing interrupt module with parameters
- Kprobes—insight into the Linux kernel—replace kernel function with module
- 一些linux kernel hacking资料
- Hacking Oracle with Sql Injection
- Hacking Oracle with Sql Injection
- How to Write Your Own Linux Kernel Module with a Simple Example
- How to use netlink socket to communicate with a kernel module?*********************8
- Linux kernel & module program
- Socket Kernel Module 01
- Recompiling VirtualBox kernel module
- Build linux kernel Module
- module injection in . kernel
- Hanoi Tower问题分析
- CString的构造函数
- 实习第三天 java学习
- Python学习笔记--BeautifulSoup、urllib、threading模块
- UVA 10970 (13.08.07)
- Kernel hacking: ov51x-jpeg module with 2 webcams
- boost.asio包装类st_asio_wrapper开发教程(2016.10.8更新)(五)
- Direct3D入门-向量和距阵变换
- 一个自动代理的php实现
- 原型设计模式
- ASP.NET MVC4 PRG模式
- 本地文件同步——C#源代码
- 实习第三天 delphi学习
- [HDU 3336]Count the String[kmp]