Embedded real-time Linux system

Author
YuXiaoFeng
Advisor
ZhuHong
School
University of Electronic Science and Technology
Major
Signal and Information Processing
Classification
TP316.81
Degree
Master's thesis
Year
2008
Downloads
383
Citations
8

Request the full text

Abstract

As one of the most important open-source operating system, Linux kernel open source, stable performance, compatible UNIX supports a variety of processors, network functions, high security, the kernel can cut a series of advantages are rapidly entering the real-time control areas. Linux initially as a general-purpose operating system design and development, the basic principles of the design is to try to shorten the average response time of the system and to improve the throughput of the system, although Linux also provides real-time processing support, including support for most of the POSIX standard The real-time functionality, multi-tasking, multi-threaded, preemptive kernel, O (1) process scheduling algorithms, however, the real-time performance of Linux is still relatively poor, and can not guarantee real-time task response time [1]. Therefore, Linux usually need to do a certain transformation can be better used in embedded real-time systems. This topic is part of the embedded Linux network video surveillance system development work, the monitoring system has good real-time characteristics required in the health of the greater network throughput and long read and write data concurrently. In order to take full advantage of the rich network functionality of Linux itself, exclude the transformation of real-time performance of Linux dual-core programs to be improved in order to achieve real-time requirements of the Linux kernel itself. Standard Linux2.6 kernel has been successfully implemented O (1) scheduler to ensure time is a constant process scheduling and preemptive scheduling; 2.6 kernel supports preemption, as long as the re-scheduling is safe, is running task can seize other executable tasks at any time. Visible in the process of scheduling and kernel 2.6 kernel to seize the two aspects have made good improvements. The main focus of this topic is focused on internal transformation of the Linux kernel to the application brought on the theme of the real-time performance, the following major elements: (1) analysis Linux2.6 kernel interrupt mechanism, and marked the real-time patch of Ingo Molnar kernel interrupt mechanism analysis of how improved interrupt mechanism to improve the real-time performance of the Linux system. (2) improvement program: interrupts as kernel threads and give real-time priority, in the interrupt service routine entry function task priority and interrupt thread priority comparisons, different different, thus ensuring real-time high task uninterrupted, high-priority interrupt can respond immediately; analysis of the standard Linux synchronization mechanism, as well as the Linux spinlock inadequacies in real-time programs with mutex instead of spin lock to be improved. (3) the analysis and testing of this program improved the system to solve the the standard Linux shortcomings in real-time to become a soft real-time systems, significantly improve the accuracy of the response time of the task, can be applied in many soft real-time requirements of environmental data collection was completed within the specified time, rapid processing, multimedia information processing, process control requirements work, such as application-based network monitoring system, indoor temperature control system. (4) discussion during the selection and module division, constructed hardware platform, the ARM9-based development platform for embedded real-time Linux system, including the bootloader the development of development platform, real-time Linux kernel image compiled, the establishment of a cross-compiler environment, transplantation of the root file system, the long-running late-system test, a good real-time performance of the system, the stability of the system is running.

Table of contents

Abstract 4-6 ABSTRACT 6-11 Introduction 11-19 1.1 paper The research background and significance 11-12 1.2 embedded real-time systems are summarized 12-15 1.2.1 Embedded System Overview 1.2.2 embedded real-time systems; nbsp 12-14 1.2.3 domestic and international development status and trends The 14-15 1.3 embedded remote video surveillance system; nbsp 15-16 1.3.1 Remote Monitoring System Overview 1.3.2 domestic and foreign development and trend 15-16 the papers 1.4 16-19 embedded real-time Linux system 19-32 In 2.1 The impact of real-time factors 19-23 2.1.1 preemptive scheduler and non-preemptive scheduling 19-20 2.1.2 kernel preemption is 20-21 2.1.3 priority the possibility of reversal 21-22 2.1.4 interrupt mechanism 22-23 the 2.1.5 Storage The management mechanism 23 2.2 real-time operating system performance indicators 23-26 2.3 Linux system real-time performance improved method 26-28 2.4 Linux as the pros and cons of embedded real-time operating system 28-32 2.4.1 Linux for embedded systems main advantage 28-29 2.4.2 Embedded Linux application defects 29-32 Chapter Linux2.6 kernel interrupt the Mechanism 32-42 3.1 interrupt mechanism 32-36 3.1.1 interrupt 32-33 3.1.2 interrupt handler 33-34 3.1.3 interrupt initialization 34-36 3.2 interrupt response process 36-42 3.2.1 interrupt or exception upfront hardware processing 37 3.2.2 interrupt processing The 37-39 3.2.3 exception handling process 39-40 3.2.4 interrupted or exception handling return 40-42 Chapter Linux real-time improvements and testing 42-64 4.1 Ingo real-time patch interrupt threaded 42-43 4.1.1 kernel thread concept 42 4.1.2 interrupt threads and interrupt priority 42-43 In 4.2 kernel 2.6.18 interrupt mechanism to improve 43-50 4.2.1 interrupt thread of 43-45 4.2.2 interrupted the the threaded implementation 45-47 4.2.3 interrupted the response process 47-50 4.3 synchronization mechanism to improve 50-54 4.3.1 Linux synchronization mechanism 50-52 The the 4.3.2 Linux synchronization mechanism optimization strategy 52-54 4.4 improvement program to verify 54-59 4.4.1 Interrupt threaded program correctness verification 55-58 4.4.2 improvements before and after the interrupt response time test and compare 58-59 4.5 context switching time test 59-60 In 4.6 task response time test 60-64 4.6.1 task The response process analysis 60-61 4.6.2 existing test tools 61-62 The task 4.6.3 response time test and compare 62-64 Chapter the embedded systems transplantation 64-74 5.1 embedded Linux developers the general steps 64 5.2 ST2410 development platform 64-66 5.2.1 development platform hardware configuration 64-65 5.2.2 s3c2410 processor chip and memory space expansion 65-66 5.2.3 development platform for the bootloader hardware support 66 5.3 embedded Linux kernel the ST2410 platforms transplant 66-74 5.3.1 embedded cross compiler built environment; nbsp 67-68 5.3.2 Embedded Linux kernel image compiled 68-69 5.3.3 ST2410 platform bootloader development 69-70 5.3.4 root file system development 70-72 5.3.5 transplantation 72-74 Chapter Summary and Outlook 74-76 6.1 summarizes 74-75 In 6.2 Looking 75-76 the Acknowledgements 76-77 the References 77-79 the APPENDIX 79-80 research achievements during the school 80-81

Related dissertations

  1. Application Research of Real-Time Linux in SMP System
    QiuZuo ·Southwest Jiaotong University ·2012 ·Master's thesis
  2. Study and Improvement on Real Time about Embedded Linux
    ZhangXingFa ·Southwest Jiaotong University ·2006 ·Master's thesis
  3. Study of An Improved Method of Attenuating Linux Time Granularity
    WangYinHui ·Chongqing University ·2005 ·Master's thesis
  4. Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
    PanZuoZuo ·Dalian Polytechnic University ·2010 ·Master's thesis
  5. Research and Design of Embedded Building Security System
    YangChen ·Liaoning Normal University ·2012 ·Master's thesis
  6. The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
  7. The Research of Household Remote Monitoring Based on Embedded Web Server
  8. Research and Design of Intelligent Video Surveillance System Based on ARM
  9. Design of Video Monitoring System Based on the Embedded
  10. The Design of Embedded Network Video Surveillance System Based on ARM9
  11. Design and Application of the Distributed Monitoring System Based on Embedded Web
  12. Study on Embedded Data Acquisition System Application
    ZhangDong ·Dalian Polytechnic University ·2009 ·Master's thesis
  13. Embedded Software Design of AC Field Detection Instrument Based on ARM
  14. Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
    SunZuoLi ·Hunan University ·2013 ·Master's thesis
  15. Design of distributed control system based on embedded platform
    JieZhouKai ·Xi'an Optics and Fine Mechanics ·2010 ·Master's thesis
  16. Based on the Samsung2440Embedded Home Furnishing Design and Implementation of Intelligent Control System
  17. The Design of Embedded Software for Motion Controller Based on DSP
  18. Design of Industrial Ethernet Motion Controller Based on ARM
  19. Research on Pulsating Vacuum Pressure Steam Sterilization Control System Based on ARM
    FuAiJun ·Nanchang University of Aeronautics and ·2013 ·Master's thesis
  20. The software design of intelligent control Home Furnishing gateway based on ARM11
    ZuoPengZuo ·Northwestern University ·2013 ·Master's thesis