当前位置:主页 > 科技论文 > 计算机论文 >

基于ARM的嵌入式Linux字符驱动程序研究

发布时间:2018-01-16 00:35

  本文关键词:基于ARM的嵌入式Linux字符驱动程序研究 出处:《哈尔滨理工大学》2013年硕士论文 论文类型:学位论文


  更多相关文章: 嵌入式系统 Linux 设备驱动 字符设备 内核模块


【摘要】:随着信息化,网络化,智能化的发展,嵌入式技术获得广阔的发展空间。Linux凭借其内核微小、可裁剪性、免费开源、可靠安全和多平台性迅速成为主流嵌入式开发平台。嵌入式设备种类繁多,,大多数应用在字符设备。设备驱动程序在嵌入式系统中占据举足轻重的地位。因此本文针对嵌入式Linux字符驱动程序设计原理和方法进行研究。 首先,介绍嵌入式系统开发环境搭建。内容包括宿主机Linux系统搭建,内核源码树的构建,交叉编译工具链的制作,S3C2410平台简单介绍,Linux内核的裁剪和移植,BootLoader和根文件系统。 其次,重点研究了Linux设备驱动关键技术。深入了解内核并发技术如信号量和自旋锁,内核定时器包括Tasklet机制、工作队列等技术,与硬件通信的I/O内存和I/O端口技术,中断处理及调试技术。 再者,研究了字符设备驱动程序的基本原理和方法。介绍了内核模块开发技术,包括模块的初始化和退出,错误处理和模块参数等内容。重点研究了字符设备的设备号及注册,关于字符设备的重要数据结构,并对字符设备驱动的读和写方法、ioctl接口及阻塞与非阻塞等技术进行研究。 最后,将本文研究的设备驱动技术应用于USB键盘,介绍了USB键盘驱动核心数据结构和基本方法。
[Abstract]:With the development of information, networking and intelligence, embedded technology has gained a broad development space. Linux with its tiny kernel, tailoring, free open source. Reliable security and multi-platform have become the mainstream embedded development platform rapidly. There are many kinds of embedded devices. Most of the applications are used in character devices. Device drivers play an important role in embedded systems. Therefore, the design principle and method of embedded Linux character drivers are studied in this paper. First of all, introduce the embedded system development environment, including host Linux system construction, the construction of the kernel source tree, cross-compile tool chain production of S3C2410 platform. Linux kernel clipping and porting Boot Loader and root file system. Secondly, the key technologies of Linux device driver are studied, such as semaphore and spin lock. Kernel timer includes Tasklet mechanism, work queue and so on. I / O memory and I / O port technology, interrupt processing and debugging technology for communicating with hardware. Thirdly, the basic principle and method of the character device driver are studied, and the kernel module development technology is introduced, including the initialization and exit of the module. Error handling and module parameters. This paper mainly studies the device number and registration of the character device, the important data structure about the character device, and the reading and writing method of the character device driver. The ioctl interface and blocking and non-blocking technologies are studied. Finally, the device driver technology studied in this paper is applied to USB keyboard, and the core data structure and basic method of USB keyboard driver are introduced.
【学位授予单位】:哈尔滨理工大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP368.1

【参考文献】

相关期刊论文 前4条

1 李世勇;肖竟华;;基于Linux驱动程序的编写技术[J];电脑与信息技术;2006年03期

2 王璇;;Linux下USB设备驱动加载策略分析[J];福建电脑;2008年11期

3 高岩;李珊;;基于ARM9的嵌入式控制系统实验平台的研制[J];实验技术与管理;2007年04期

4 钱磊;中国Linux市场现状与发展趋势[J];中国政府采购;2005年08期



本文编号:1430810

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1430810.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户b7dbb***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com