Research on Porting Embedded Linux System on the Platform of ARM9
- Author
- BianZuo
- Advisor
- WangBo
- School
- Chongqing University
- Major
- Applied Computer Technology
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 628
- Citations
- 2
Abstract
With the increasingly widespread use of the 32-bit high performance embedded microprocessor, the embedded operating system has become one of the most important parts in embedded system. In the various embedded operating systems, Linux has been progressively widely used in embedded systems because of many advantages it has, such as open source, stable performance, powerful network capability, and wide support for various CPU architecture, etc. The premise of embedded Linux software development is to establish the development platform at first, and porting embedded Linux system is the most important step to establish that platform.The thesis systematically studies porting embedded Linux system on the platform of ARM9, and the core of the hardware platform adopted in the research is S3C2440A which is a 32-bit SoC (system-on-chip) based on ARM9 core. The main study includes following parts: porting U-Boot (a kind of bootloader), porting Linux kernel, building root file system, developing and porting Linux device drivers, porting the graphical user interface Qtopia.i) in the part of porting U-Boot, the work of porting the drivers for NOR Flash and NAND Flash has been done, and the capability of writing the image of YAFFS2 file system to NAND Flash is added;ii) in the part of porting Linux kernel, the structure of Linux kernel source and the configuration mechanism of kernel are analyzed, and the detailed way and steps of porting Linux kernel are presented; in the part of building Linux root file system, the conception and composition of root file system are analyzed in detail, then the way of porting Busybox, the installation of kernel modules, the creation of configuration files, and the way of creating the image of YAFFS2 root file system are introduce;iii) in the part of developing and porting Linux device drivers, the way of developing simple character device drivers is introduced, the LCD backlight driver and the touch screen driver for S3C2440 are developed, and the work of porting LCD display driver is done;iv) in the part of porting graphical user interface Qtopia, the way and steps of porting Qtopia 2.2.0 to ARM9 platform are presented, including the compilation and installation of tslib (an open-source touch screen support library), then the running Qtopia is tested and several problems are fixed. During the test process, the U-Boot command line running test is performed through serial console, and the running test under Linux shell command line is performed through serial console after successfully booting Linux kernel. The successful result of tests approves the porting of U-Boot and Linux kernel. The successful operation test of Qtopia approves the development of touch screen driver and the work of porting LCD display driver.The relatively complete and in-depth study about critical parts of porting embedded Linux system on the platform of ARM9 are fulfilled in this thesis, and the ways and steps of porting has been approved by experiments and practices. Although the research is done on the platform of ARM9, it also presents reference value with regard to the research on porting embedded Linux system on other platforms.
Table of contents
Chinese Abstract 3-4
Abstract 4-10
1 Introduction 10-14
1.1 research significance 10 < br /> 1.2 research status 10-13
1.2.1 development of embedded systems 10-11
1.2.2 status of this research 11-13
1.3 the main contributions of this research work 13
1.4 chapter Summary 13-14
2 embedded Linux development Overview 14 - 18
2.1 embedded system Introduction 14-16
2.1.1 definition of embedded systems 14
2.1.2 embedded technology development stage 14
2.1.3 common embedded operating system 14-16
2.2 ARM processor-based embedded Linux system 16-17
2.2.1 ARM processors 16
2.2.2 select reason of embedded Linux 16-17
2.2.3 embedded Linux system Migration of the general process 17 < br /> 2.3 chapter Summary 17-18
3 embedded Linux development environment to build 18-22
3.1 hardware environment to build 18-19
3.1.1 cross development model 18
3.1.2 host hardware requirements 18
3.1.3 target board hardware configuration 18-19
3.2 software environment to build 19-21
3.2.1 host Linux operating system installation 19
3.2.2 host Linux-related network services configuration 19-20 <br / > 3.2.3 Installing cross tool chain 20-21
3.3 environment variable settings and sign convention 21
3.4 Summary 21-22
4 U-Boot boot loader transplant 22-48
4.1 U-Boot Profile 22-23
4.1.1 Bootloader concept 22 <br / > 4.1.2 U-Boot features 22-23
4.2 U-Boot transplant analysis 23-28
4.2.1 U-Boot code structural 23
4.2.2 U-Boot configuration process analysis 23-24
4.2.3 U-Boot compilation , linking process 24-25
4.2.4 U -Boot boot process analysis 25-26
4.2.5 transplantation general idea and skills 26-28
4.3 U-Boot transplant detailed implementation 28 - 46
4.3.1 New development board type 28-29
4.3.2 modify the first stage boot code 29
4.3.3 add in the code for S3C2440 support 29-30
4.3.4 S3C24x0 system clock analysis 30-32
4.3.5 system Clock section of the transplant 32-34 <br / > 4.3.6 Configuring the DM9000 network card driver 34-36
4.3.7 NOR Flash drive transplantation 36-38
4.3.8 NAND Flash drive transplant 38 - 41
4.3.9 supports programming YAFFS2 image 41-46
4.4 U-Boot commonly used commands example 46-47
4.4.1 environment variable settings and Save 46
4.4.2 Download and programming 46-47
4.5 chapter Summary 47-48
5 Linux kernel and root file transplantation system construction 48-70
5.1 Linux kernel porting preparations 48-56
5.1.1 kernel Makefile analysis 48-49
5.1 .2 kernel Kconfig analysis 49-50
5.1.3 kernel configuration option 50-56
5.2 Linux kernel porting detailed steps 56-61 < br /> 5.2.1 New target platform 56-57
5.2.2 transplantation NAND flash drive 57-58
5.2.3 adding YAFFS2 file system support 58
5.2.4 transplantation UDA1341 audio driver 58
5.2.5 activate the RTC driver 58-59
5.2.6 configuration supports USB storage device 59
5.2.7 transplantation DM9000 network card driver 59-60
5.2.8 custom Logo Linux boot image 60-61
5.2.9 compiling, the boot kernel 61
5.3 Linux root file system build 61-69
5.3.1 Linux file system Overview 61-62
5.3. 2 Create the root file system directory structure 62-63
5.3.3 Busybox transplant 63-64
5.3.4 compile and install the kernel module 64 <br / > 5.3.5 build etc directory profile 64-68
5.3.6 production YAFFS2 root file system image 68-69
5.4 Summary 69-70
6 Linux device driver development and porting 70-82
6.1 Linux device Drivers Overview 70-72
6.1.1 Linux software system hierarchy 70-71
6.1.2 Linux driver classification and development steps 71
6.1.3 simple character device driver development 71-72 <br / > 6.2 adds LCD backlight driver 72-74
6.2.1 LCD backlight control principle 72
6.2.2 added to the kernel backlight driver 72 - 74
6.3 Add S3C2440 touchscreen driver 74-77
6.3.1 Linux input subsystem description 74-75
6.3.2 input subsystem device Driver implementation 75
6.3.3 S3C2440 ADC and touch screen interface 75-77
6.3.4 S3C2440 touchscreen driver implementation 77
6.4 transplant LCD display drive 77-81
6.4.1 LCD background 77-78
6.4.2 monitor image display principle 78
6.4.3 common TFT screen work timing analysis 78-80
6.4.4 LCD frame buffer device driver parameter settings 80-81
6.5 chapter Summary 81-82 <br / > 7 graphical user interface Qtopia transplant 82-90
7.1 Qt / Qtopia brief 82
7.2 Qtopia transplant 82-89
7.2. a compile, install Qtopia 2.2.0 82-83
7.2.2 compile, install touch screen support library tslib 83-85
7.2.3 set Qtopia run the script file 85
7.2.4 Qtopia running tests and corrections 85-89
7.3 chapter Summary 89-90
8 Summary and Outlook 90 - 92
8.1 study concluded 90
8.2 Prospects for future research work 90-92
Thanks 92-93
References 93-95
Appendix 95-99
A. the authors of papers published during the master's degree 95
B.S3C2440 touchscreen driver source 95-99
Related dissertations
- Research and design of embedded control system based on ARM9
- The Research of Embeded Intelligent Household Based on ARM
- Research on Intelligent Home Furnishing system based on Android
- Design and Implementaiton of a Human-computer Interaction System Train Monitoirng Device
- Human-Computer Interaction Technology Research of Gene Amplification Based on Arm
- Transplantation of Embedded Linux Operating System Based on S3C6410
- Design and implementation of the embedded terminal based on Qt multimedia player
- The Design and Implementation of Data Terminal and Sensor Network Gateway of Mesh Emergency Network in Mine
- Theoretical Research on Image Transmission System Basedon ARM and Bluetooth Technology
- The Design of Reconfiguration of FPGA Based on ARM in a Long Distance
- Study and Implementation on Detection System of Generator Insulation Overheating Device
- Design and Realization of Remote Video Monitoring System Based on the Embedded System
- The Research on Embedded Flight Control System Based on Quadrotor X450
- The Design of Portable Video Surveillance Terminal Based on ARM
- Research of Embedded Home Video Surveillance System Based on S3C2440
- The Unattended Telecommunication Room of Data Acquisition System
- Research and Design of Embedded Intelligent Concentrator Based on M-Bus
- As the design device of dynamic control system based on ARM
- Research of Projection Stereo Lithography Network Control System Base on ARM
- Design and Implementation of Smart Home System Based on ARM