The Research and Development of Embedded Linux Device Drivers
- Author
- ZhuYuan
- Advisor
- LinZhong
- School
- Beijing University of Posts and Telecommunications
- Major
- Mechanical and Electronic Engineering
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 624
- Citations
- 14
Abstract
Compared to other operating systems , the Linux operating system security and reliability is excellent . And its kernel source code is open , the user can be developed based on the embedded operating system to meet their own requirements . These features of the Linux operating system to make it in many areas has been a lot of applications , computer peripherals , study their driver becomes necessary . Efficient , stable drivers can give full play to the superiority of Computer peripherals can , at the same time it is also the whole system and reliable operation of the premise . The device driver plays a special role in the Linux kernel , it is a door into the world of the Linux kernel . Research on embedded Linux device driver , help us to understand the embedded Linux kernel code . In addition , the hardware must be supporting the driver in order to work properly , different embedded products in the development , design their own device drivers must determine due to a wide range of characteristics of embedded devices , making the development of device drivers in the entire embedded occupies a pivotal position in the system development work . Therefore, the study of embedded Linux device driver has important social and commercial value . This paper first introduces Linux device drivers and embedded device driver . Followed by analysis of the drivers of the three basic types of external devices ( character devices , block devices , and network equipment ) , and to the development of different types of device drivers , for example , describes a general method for the development of different types of device drivers and steps. These steps to complete the kernel driver almost all affairs , including the registration and cancellation of the device , the device opens and closes a unified interface to read and write system call , the data sent from the kernel memory to user memory methods . The article also gave a detailed description of the memory usage and access equipment . With the above foundation , developers only need to re- familiar with the use of external devices and data formats , such as hardware , a driver can easily be written .
Table of contents
Abstract 4-5
ABSTRACT 5-10
first chapter 10-14
1.1 Background 10-11
1.2 Research 11-12
1.3 research significance 12-13
1.4 main contents 13-14
Chapter II embedded device driver 14-17
2.1 device driver concept 14
2.2 device driver characteristics 14-15
2.3 device driver 15
2.4 device driver software structure 15-16
2.5 Summary 16-17
Chapter Linux device drivers 17-32
3.1 Linux Device Manager 17-20
3.1.1 Linux I / O subsystem 18-19
3.1.2 Linux device drivers, system calls 19-20
3.2 device access and achieve under Linux 20-24
3.2.1 query mode 20-21
3.2.2 interrupt 21-22
3.2.3 DMA way 22-24
3.3 Linux device drivers 24-31
3.3.1 device driver concept 24-25
3.3.2 The main data structure 25-28
3.3.3 modular concept 28-29
3.3.4 to write, compile and debug 29-31
3.4 This chapter Summary 31-32
Chapter character device driver design 32-42
4.1 Linux character driver 32-34
4.1.1 character device registration and cancellation 32
4.1.2 using the memory read and write I / O port 32-34
4.1.3 Basic entry function 34
the
the 4.2 character device driver development 34-36
the
similarities between 4.2.1 different character device driver 34-35
The general steps
4.2.2 character device driver development 35
4.2.3 reliability mechanisms 35-36
4.3 based on the embedded ARM9 S3C2410 AD7707 driver design 36-41
4.3.1 Samsung S3C2410 processor 36-38
4.3.2 file system interface definition 38
4.3.3 initialization and exit functions 38-39
4.3.4 to interrupt reception service program 39
4.3.5 write functions 39-40
4.3.6 read function 40
4.3.7 test program 40-41
4.3.8 compile and run 41
4.4 This chapter Summary 41-42
the
the Chapter block device driver design 42-50
5.1 Linux block device driver 42-48
5.1.1 block device driver registration and cancellation 42
5.1.2 block device-based the buffer data exchange 42-44
5.1.3 block devices to read and write request 44-48
5.2 block device driver development 48
5.3 memory-based block device drivers 48-49
5.3.1 process of preparing 48-49
5.3.2 working process 49
5.3.3 Reliability Verification way 49
5.4 This chapter Summary 49-50
Chapter network device driver design 50-59
6.1 Introduction to network equipment 50-51
6.2 Device data structure 51
6.3 sk_buff data structure 51-52
6.4 kernel driver interface 52-54
6.4.1 to open and close the 52
6.4.2 detection function 52
6.4.3 send packets (hard-start-xmit) 52-53
6.4.4 receive packets 53
6.4.5 interrupt handling 53-54
6.4.6 Other operating 54
6.5 design based on the Linux network driver for the USB bus 54-58
6.5.1 USB device access and control 54-55
6.5.2 USB network device driver design 55-58
6.6 Chapter Summary 58-59
Chapter VII Summary and Outlook 59-60
Reference 60-62
to
pursuing degree during the academic 62-63
Acknowledgements 63
Related dissertations
- ARM-based Linux driver development research
- Research and Application of Embedded Linux Device Driver on FPC
- Debugging of Embedded System and the Development of Devices Drives
- Design of Security Surveillance System Based on Intelligent Video Analysis
- Research on the Embedded Control System of Fed-Batch Culture in the Production of Monosodium Glutamate
- Real-time Operating System Customization of Linux and Development of Device Driver
- Research and Implementation of Usbtmc Specification about Universal Test Instrument
- Research and Development of Bottom Software of Inkjet Printer System Based on Embedded Linux
- Radio Monitoring and Direction-finding System Software Development
- Design and development of laser gyro and USB interface frequency test system
- Study on Data Acquisition and LCD Display System of5kW Photovoltaic Inverter System
- Research of Integrated Scheduling Algorithm Based on Dynamic Essential Short Path by Device Driver
- Research and Design of Online Monitoring System of Metal Sawing Machine Saw Blade Displacement
- Design of Embedded 8 Channels High Speed Data Acquisition System
- Based ARM Rotating Machinery Data Acquisition and Analysis System
- Communication Controller Design Base on Embedded Linux System
- Based on the CANopen protocol and the realization of the automobile instrument from the nodes of the study
- Design and implementation of remote control system based on Embedded Intelligent Home Furnishing
- Research and Realization of Software of Monitoring and Control of Smart Home System of IoT Based on Configuration Software
- Research and Exploitation of Multi-Function Combined Instrument Based on ARM