Analysis and Design of Embedded Boot Loader
- Author
- ZhaoQingMing
- Advisor
- LuoLei , ZhouJianBin
- School
- University of Electronic Science and Technology
- Major
- Software Engineering
- Classification
- TP368.1 Microprocessor
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 180
- Citations
- 0
Abstract
The project issued from the building of the National Quality Courses (NQC) of Embedded Systems and Application of the University of Electronic Science and Technology of China. And this project is designed to further improve the quality of the curriculum.Embedded Boot Loader is one of the very important components of Embedded System. Books and teaching materials on markets related to the content of Embedded Boot Loader are less. At the same time, the parts of the contents are more abstract. For most students, there is a certain difficulty in understanding and grasping it. So, after the accumulation of knowledge in the project of Transferring of Embedded Real-time OS-Core and Application Development, and through the exploration and analysis of the current prevalence several Embedded Boot-Loaders related to, I have designed an Embedded Boot loader, which is simple、easy to understand and easy to grasp. The contents, which I designed experiments related to Core-Boot, are to be expected to easy understanding and easy grasping the content of Boot Loader in the learning of Embedded System.Designing of Core-Boot draws on some of the most popular Boot Loader’s basic elements, and abandon their numbers of contents, which are complex and difficult to be understand or application-specific. But also have considered the scalability in functions. Thus, it makes the Core-Boot became a streamlined, easy-to-understand and easy to expand Boot Loader. In line with the high-configurable of LambdaEDU3, it can be used in teaching and experiments. And this can be a very important supplementary content in the building of NQC of Embedded System and Application to the University of Electronic Science and Technology of China.
Table of contents
Abstract 4-5
ABSTRACT 5-10
Chapter 1 Introduction 10-16
1.1 Embedded system concept 10-11
1.2 embedded systems development 11-12
1.3 embedded BOOT LOADER About 12-13
1.4 This article background 13-15
1.5 This thesis structure 15-16
Chapter 2 experimental system 16-36
2.1 hardware environment 16-20
the learning board of
2.1.1 W90P710 17-18
2.1.2 LambdaICE JTAG 18-20
2.2 software environment 20-35
2.2.1 LambdaEDU3 20-21
2.2.2 GCC toolchain 21-25
2.2.2.1 program to compile and link 22-23
2.2.2.2 GCC commonly used models 23-24
2.2.2.3 commonly used options 24
2.2.2.4 warning function 24-25
2.2.3 connect script 25-28
2.2.3.1 basic concepts 25-26
2.2.3.2 link script 26-27
2.2.3.3 simple example 27-28
2.2.3.4 implied connection script 28
2.2.4 Makefile 28-35
2.2.4.1 Makefile structure 28-29
2.2.4.2 a simple Makefile example 29-32
an improved version
2.2.4.3 Makefile: use variables 32-33
an improved version
2.2.4.4 Makefile: Use automatic derivation 33-34
an improved version
2.2.4.5 Makefile: automatic variables ($ ^ $ 34-35
2.3 summarizes 35-36
Chapter 3 embedded application image 36-50
3.1 ELF file 36-47
3.1.1 elf file Introduction 37-38
3.1.2 elf object file format 38
3.1.3 elf Header part 38-41
3.1.4 elf section area (Sections) 41
3.1.5 string table (String Table) 41-42
3.1.6 symbol table (Symbol Table) 42-43
3.1.7 relocation information 43-45
3.1.7.1 re-positioning table entries 43-45
3.1.7.2 relocation type 45
3.1.8 program loading and dynamic link 45-47
3.2 file format 47-49
3.2.1 S-Record file 47
3.2.2 HEX file format 47-49
3.2.3 BIN file format 49
the difference of 3.3 part of the executable file format 49
3.4 summarizes 49-50
Chapter 4 mainstream embedded BOOTLOADER analysis 50-93
4.1 mainstream embedded BOOTLOADER compare 50-54
4.1.1 Blob (Boot Loader Object) 50-51
4.1.2 ARMBoot 51-52
4.1.3 U-Boot 52
4.1.4 Redboot 52-53
4.1.5 vivi 53-54
4.1.6 Bios-lt 54
4.2 U--BOOT source code analysis 54-92
the 4.2.1 first stage (Stage 1) 54-58
4.2.2 The second stage (Stage 2) 58-64
4.2.3 U-boot initialization 64-79
4.2.3.1 private data global_data 64-65
4.2.3.2 initialization sequence init_sequence 65-72
4.2.3.3 environment variable relocation 72-73
4.2.3.4 initialize the device 73-76
4.2.3.5 console initialization 76-79
4.2.4 command processing 79-92
4.2.4.1 command data structure 79-80
4.2.4.2 command Find 80-81
4.2.4.3 main loop 81-92
4.3 summarizes 92-93
Chapter 5 CORE-BOOT Design and Implementation 93-121
5.1 ARM processor initiates principle 93-94
5.2 CORE-BOOT organization structure design 94-99
5.2.1 LambdaEDU3 directory structure 94-96
5.2.2 Core-Boot directory structure 96-99
5.2.2.1 / target / tool / bsps / boards directory 96-97
the 5.2.2.2 / target / tool / bsps / drivers file folder 97-99
the
the 5.2.2.3 / target / tool / bsps / include file folder 99
5.2.2.4 / target / tool / bsps / shared file folder 99
5.3 CORE-BOOT code design 99-120
5.3.1 the Boot Loader and application relationship 99-103
5.3.1.1 RAM Boot Loader 99
5.3.1.2 Boot Loader and application integration structure 99-100
5.3.1.3 Boot Loader and application separation structure 100-103
5.3.2 Address Planning and Design (ROM and RAM memory relationship) 103-107
5.3.2.1 memory remap 103-104
5.3.2.2 memory mapping 104
5.3.2.3 memory conducted twice a mapping 104-105
5.3.2.4 system initialization 105-107
5.3.3 Core-Boot source code design 107-117
5.3.3.1 Core-Boot first stage (Stage 1) 107-115
5.3.3.2 Core-Boot second stage (Stage 2) 115-117
5.3.4 Core-boot initialization 117-120
5.3.4.1 Core-Boot initialization sequence init_sequence 117-119
5.3.4.2 init_sequence function 119
5.3.4.3 NOR Flash initialization 119-120
5.3.4.4 NAND FLASH initialization 120
5.3.4.5 console initialization 120
5.4 Summary 120-121
Chapter 6 the CORE-BOOT testing and experimental design 121-134
6.1 BOOT LOADER RAM-based experiments 121-129
6.1.1 the create a project Boot_RAM, 121-124
6.1.2 project set 124-126
6.1.3 project compiled . 126-127
6.1.4 download running 127-129
6.1.5 validation results 129
6.2 BOOT LOADER ROM-based experiments 129-132
6.2.1 to the create a project Boot_App, 130
6.2.2 project set 130-131
6.2.3 project compiled 131
6.2.4 programming 131
6.2.5 validation results 131-132
6.3 based on the BOOT LOADER experimental ROMRAM 132-133
6.3.1 Creating a Project \
6.3.2 project configuration 132
6.3.3 project compiled 132
6.3.4 programming 132
6.3.5 validation results 132-133
6.4 summarizes 133-134
Chapter 7 Conclusion 134-138
7.1 The research 134-135
7.2 CORE-BOOT transplant brief 135
7.3 CORE-BOOT advantages and disadvantages 135-136
7.4 topics in the learning and work situation 136-138
Acknowledgements 138-139
the
References 139-141
Appendix 141-143
research during the study period 143-144
Related dissertations
- Effects of the Multi-National Corporation to China embedded industrial agglomeration
- The Remote Wireless Control System Based on ARM Processor
- The Research and Design of Security Monitoring System Based on Embedded and Cloud Storage
- Engine Room Monitoring System Based on the Embedded Web Server
- Rearch on Intelligent Monitoring Technology That Access to Internet
- Design of Indoor Environmental Quality Monitoring System Based on ARM
- Design of Industrial Equipment State Wireless Monitoring System Based on STM32
- Design and Implementation of Intelligent Network Dome Based on DaVinci Technology
- 3G Agricultural Experiment Station of intelligent design and development of remote monitoring system based on
- Design of Human Physiological Parameters Acquisition System Based on Embedded Linux
- Embedded Software Design of AC Field Detection Instrument Based on ARM
- Design and Realization of Farm Machinery Working State Real Time Wireless Monitoring System
- Design of Farmland Environment Remote Monitoring System Based on ZigBee Network
- Design and Implementation of Video Capture System Based on Embedded Technology
- Research of Surface Roughness Network Data Collector System Based on ARM
- The Design and Implementation of Gateway and Client of Embedded Smart Home System
- The Embedded Industrial Control Module Based on iCAN Protocol
- A Design of Embedded Motion Controller for4-axis Industrial Robot
- Study on Function Modules of the Mobile Robots in Sudden Accident
- Research on Embedded Control System for Palletizing Robot