


下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、A new device driver for a video frame grabberTerm Project 一 Kernel Device -Summer 2019Binh Tran 一 Lucie Ngnepieba1. Overview2. Our goals3. Our achievement4. 4. Difficulties and our solutions5. Discovered facts and our learns6. Future works7. Conclusion-515s?I c c01d ar cdar c To compile correctly on
2、 the Linux distribution 2.6.16 To improve the previous Video frame grabber device driver to support Video4Linux. To integrate the previous driver and make it work on both grayscale and color support.To work on the low-level operation of the frame grabber to support the new interrupt-driven I/O featu
3、re (if time permits).Previous studenfs worksTaken from the previous students journal (The device driver ran on Linux distribution 2.6.10 and 2.6.11.2. The greyscale works correctly, but thecolor was fuzzy.3. The cleanup function was inconsistent4. Kernel panic when unload the moduleOur achievements
4、Our device driver一 is stable with the 2.6.16.14 kernel一 works properly, consistently without errors( ie load module, unload module , auto-detect different devices, no kernel panic) (goal #1) Our driver supports Video4linux (goal #2) We improve the preview driver to support both grey scale and color
5、cards (goal #3)Problems found in the original device driver and our so I u t i1. When compiled and executed the hrt module was loaded, but:一 No device was detected,一 The major number did not show upSol: we put a series of debugging messages to test, and we add code in the hrt_init_module9 hrt_cleanu
6、p_module9 hrtjoad, hrt_unload.2. The two cards were detected as grayscale cards,and give us a warning message about sysfs needed.(Cont)Sol: Switched the two cards, reboot, and load module again It works We diagnose the cards slots are sensitive Moreove巧 sysfs is not a main issue.3. The pci color car
7、d was not unregistered when we unload the module(this prob panic the kernel when unloading). First found by Danny一 Sols we add lines of code to unregister the color card in the hrt_cleanup and hrt_pci_cleanup functions4. Pixels mapping among user space, kernel buffer and I/O devices do not work corr
8、ectly, the color display was fuzzy一 Sol: pixel mapping between kernel and user buf was not correct We changed the way the mapping was done in the grab.field function.一 And set the resolution in the test file to 640 x 480.(Cont)5. Missing libraries needed for Video4linux Sol: we installed SDL librari
9、es that was missing and modified the Makefile by adding the right location for those librariesLearn how tclbuild a driver for many different cards, especially video cards, in a Kernel on Linux distribution 2.6Learn how to dissect the long source code(>65 pages with more than 3700 lines of codes)L
10、earn how to debug subtle errorsImprove how to use the following techniques Char Device driver Memory mapped I/O Internal mutual exclusion (spinlocks and semaphores) Use of lOCUs Interrupt & Timer management (tasklets and kernel timer API) Learn more about Linux like making a make file, etc.Improve knowledge about LinuxWorks left The color display for different resolutions still needs to be done To work
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年电镀行业重金属监测合规考核试卷
- 市场承包经营合同(标准版)
- 学校商店供货合同(标准版)
- 买卖继续合同(标准版)
- 城建指挥部工作总结
- 综合解析人教版八年级物理《运动和力》章节测试试题(解析版)
- 重难点解析人教版八年级物理上册第6章质量与密度-密度章节测评试卷(解析版含答案)
- 陈学智心电图课件
- 2025年建筑学结构测试题及答案
- 2024年省燃气经营企业从业人员考试(压缩天然气场站工)仿真试题及答案
- 2025营养指导员考试真题库(含答案)
- 2024年新青岛版(六三制)六上科学全册知识点
- DL∕T 1987-2019 六氟化硫气体泄漏在线监测报警装置技术条件
- 2024年云南楚雄州楚雄市事业单位选调30人历年高频考题难、易错点模拟试题(共500题)附带答案详解
- 中医护理方案分析总结优化
- 化妆品购销合同电子版完整版(2篇)
- 轴流风机的维护守则和周期
- 第三章 金属的塑性
- 珠宝设计iPad绘制技法基础到进阶教程
- 《后滚翻》教学课件
- 公安机关业务技术用房建设标准
评论
0/150
提交评论