下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026届江西省南昌市东湖区南昌十中化学高一上期中综合测试试题含解析
- 2025年初级会计师的题库及答案
- 2025年高三历史选择题题库及答案
- 2025年人才发展面试题库及答案
- 第8讲一元一次不等式(组)课件2026年中考数学一轮复习(河北省)
- 2025贵州水投水库运营管理仁怀有限公司招聘1人备考题库(含答案详解)
- 2026届云南省澜沧县第一中学化学高三上期末检测模拟试题含解析
- 2026湖南益阳市两型建设投资集团有限公司招聘备考题库附答案详解(巩固)
- 2025江苏盐城市滨海县农旅集团有限公司招聘14人备考题库及答案详解一套
- 减数分裂过程中的曲线图其遗传定律的关系教案
- 【MOOC】法理学-西南政法大学 中国大学慕课MOOC答案
- 期末测试卷-2024-2025学年语文六年级上册统编版
- 《建筑设计基础》全套教学课件
- 2024电气装置安装工程电气设备交接试验标准
- 养老院食堂培训
- 《核燃料循环完》课件
- 01s519小型排水构筑物图集
- 电动工具ODM协议书
- 南京市指导服务企业安全生产工作指引-加油站现场安全重点检查指引分册
- 高考英语应用文复习之倡议信课件
- 《石雕技艺》课件-石雕的制作过程
评论
0/150
提交评论