Debugging of Embedded System and the Development of Devices Drives

Author
QinJuan
Advisor
HaoTingZhu
School
Tianjin University of Technology
Major
Signal and Information Processing
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2006
Downloads
650
Citations
12

Request the full text

Abstract

With the rapid development of information technology and network technology, embedded systems are becoming more widely used in scientific research, military technology, engineering, computer, communications, consumer electronics. Embedded system is application-based center, computer technology, and the hardware and software can be cropped, applicable to the application system functionality, reliability, cost, size, power consumption with the stringent requirements of a dedicated computer system. The main problem with Linux for embedded development to face two-fold: First, the transformation of the operating system, to reduce the kernel or directly rewrite the Linux memory management, process scheduling mechanism, the second is the design and development of device drivers. This study focuses on the design of Linux device drivers. The article body is divided into the following sections: First of all, start from introduced embedded Linux system architecture and its core. Detailed study of the establishment of the cross-compiler environment based on the X-scale the kernel PXA255 hardware platform and Linux interrupt handling mechanism, the the transplant technology embedded Linux operating system based on this platform, including the start-up code (Bootloader) transplant Embedded Linux kernel transplantation research, transplantation of specific steps. Second, analysis of the device driver design principle, a method - a modular concept and write, compile, debug. From the point of view of program structure, the driver is a collection of routines and data, the software interface for input and output devices, and its task is to provide an interface to the system function, so simple to write driver interface functions. The driver is divided into three types: character devices, block devices, network equipment, the article is a detailed analysis of the design and programming of Linux device drivers to be achieved. Through the analysis of the external device driver, this paper designs a character device driver model and block device driver model. Two models complete kernel driver almost all affairs, including unified register and unregister the device, the device is turned on and off, and read and write system call interface, the method of data sent from the kernel memory to user memory . 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. The model was also added to certain security measures to ensure its reliability.

Table of contents

Abstract 5-6 the ABSTRACT 6-9 the chapter 9-13 1.1 embedded systems development Overview 9-10 1.2 embedded Linux system; nbsp nbsp 10-11 1.3 development in the world; the 1.4 main research content of 11-12 12-13 The embedded Linux architecture and core analysis 13-22 2.1 embedded systems architecture 13-14 2.2 Linux in the embedded system architecture 14 to 18 2.2.1 hardware abstraction layer Linux 14-15 2.2.2 Linux kernel layer 15-18 <br / > 2.3 Linux kernel process status analysis 18-20 2.4 process communication between 20-21 This chapter Summary 21-22 Chapter embedded the type Linux kernel porting and debugging achieve 22-38 3.1 embedded platform introduced 22-23 3.2 cross-compiler environment to prepare 23-25 ??<br / > 3.3 embedded Linux interrupt response and handling 25-28 3.3.1 interrupt handling mechanism 25-26 3.3.2 interrupt handling data structures 26-27 3.3.3 interrupt processing three important concepts 27-28 3.4 Linux kernel porting process analysis 28-37 3.4. 1 Bootloader code analysis, design and portable implementation 29-31 3.4.2 Linux kernel source file organization structure 31-32 3.4.3 kernel transplantation and code analysis 32-37 This chapter Summary the Chapter 37-38 Linux device drivers 38-46 4.1 device driver concept 38-39 the 4.2 major data structures 39-42 4.3 Modular concept 42-43 4.4 to write, compile and debug 43-45 Chapter Summary 45-46 Chapter character device driver design and realization 46-54 5.1 Linux character device driver 46-48 5.1.1 character device registration and cancellation 46 5.1.2 using memory read and write I / O ports 46-47 5.1 .3 basic entry function 47-48 the the 5.2 character device driver model 48-49 5.2.1-driven model proposed 48 5.2. 2 characters prototype driver model 48-49 5.2.3 reliability mechanisms 49 5.3 USB device driver design and implementation 49-52 5.3.1 the process of preparing 49-52 5.3.2 reliability verification; nbsp nbsp 52 this chapter of summary; 52-54 the sixth chapter block The device driver design and 54-60 6.1 Linux block device driver 54-58 6.1.1 block device driver registration and cancellation of 54 The block 6.1.2 Equipment buffer-based data exchange 54-56 the block 6.1.3 device read and write requests 56-58 6.2 block device drivers. model 58-59 6.3 memory-based block device drivers are found; 59 6.3.1 the process of preparing 59 6.3.2 59 6.3.3 reliability verification nbsp 59 Chapter Summary; 59-60 Design and implementation of Chapter VII of the network device driver 60-64 7.1 Linux network device drivers important data structure 60-61 7.2 Linux network device interface 61 7.3 NIC driver to achieve nbsp 61-63 7.3.1 Module Driver; the 61 the drive method of the 7.3.2 kernel starts 61-62 7.3.3 the NIC initialization function analysis 62-63 This chapter Summary 63-64 Conclusion 64-65 refer to the literature 65-67 Appendix 67-73 studying papers published during the Master 73 studying during the master to participate in research projects 73-74 Acknowledgements 74 -75

Related dissertations

  1. The Research and Design of Embedded Linux Based on ST-E9500
  2. Research of Embedded Linux Device Drivers Concurrency Control
    ZhangJiHong ·Chang'an University ·2013 ·Master's thesis
  3. Research and Implementation of Motion Detection and Tracking in Intelligent Surveillance System
    YuHaiBin ·Harbin Institute of Technology ·2013 ·Master's thesis
  4. Software Design and Implementation of Modular Power Qulity Monitor
    LiuHongWei ·Shanghai Jiaotong University ·2013 ·Master's thesis
  5. Design of Radio Frequence Module Driver Based on S3C2440+Linux Platform
  6. The Research and Development of Embedded Linux Device Drivers
  7. ARM-based Linux driver development research
    WangXinYong ·Jiangxi University of Technology ·2011 ·Master's thesis
  8. Research and Application of Embedded Linux Device Driver on FPC
  9. Large Food Enterprise Automation Production Equipment Management Model Research
  10. The Research and Design of Embedded Mobile Image Monitoring System Based on ARM
    YangMingJun ·Hubei University of Technology ·2013 ·Master's thesis
  11. Design and Implementation of Network Video Monitoring and Alarm System Based on Embedded Linux
    LiJiaJia ·Northwest Normal University ·2013 ·Master's thesis
  12. Design and Implementation of Terminal for Snowflakes Beef Carcass Quality Measurement System Based on Embedded and Machine Vision
    LiuChaoChao ·Nanjing Agricultural College ·2011 ·Master's thesis
  13. The Design and Implementation of the Heat Meter Date Acquisition Unit Based on M-Bus
    ZhaoWenMing ·Harbin Institute of Technology ·2012 ·Master's thesis
  14. Research and Design of Harmonic Detecting Device Based on ARM9
  15. The Design and Application of Network Measurement and Control Platform Based on Embedded WEB Service
    SunWei ·Hebei University of Technology ·2013 ·Master's thesis
  16. Development of Small Smart Controller Software Technology Based on ARM9
    HuShu ·Hebei University of Technology ·2013 ·Master's thesis
  17. Design of the Paper Quality Control System Based on Industrial Ethernet
    LiQiZuo ·Chongqing University ·2013 ·Master's thesis
  18. The Research of Embeded Intelligent Household Based on ARM
    WangWenChuan ·Hefei University of Technology ·2013 ·Master's thesis
  19. The Design of Data Acquisition Controller Based on Wireless Ad-Hoc Network Technology
  20. Research on Intelligent Home Furnishing system based on Android