Transplantation of Loongson platform based on Bootloader
- Author
- XiaHaoJun
- Advisor
- WangHaiRui
- School
- Kunming University of Science and Technology
- Major
- Computer technology
- Classification
- TP311.54 Software migration
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 2
- Citations
- 0
Abstract
Bootloader is the first running program after power-on in embedded systems. Its function is to initialize the hardware devices, to establish the system memory space mapping, and finally to finish loading the Linux operating system. This dissertation is about porting bootloader to the Loongson platform. Loongson is a general-purpose CPU designed and developed independently by Institute of Computing Technology Chinese Academy of Sciences. An analysis about the bootloader ported based on the Loongson platform is significant for the promotion and application of domestic CPU.Bootloader has several versions currently, so this dissertation analyzes the advantages and disadvantages of the various versions and selects U-boot as the final object for porting. Because the bootloader porting is very closely related to the CPU architecture, an overview and some necessary details about the Loongson architecture are provided.The start-up phase of different embedded hardware is obviously quite different and U-boot doesn’t provide a complete code about this phase, so this part of the code must be ported according to the characteristics of the specific hardware. In the process of migration a lot of things have to be considered including setting the interrupt vector, initializing the CPU registers, setting up the temporary stack, initializing the memory and cache, moving and relocating Nand blocks, allocating the memory of U-boot, activating the serial support etc. This dissertation also involves the instruction to the hardware related to this porting such as cache and Nand flash. The key points regarding the code porting are elaborated in detail and summarized. The stability of the ported U-boot is also well-verified. The last part of this dissertation gives the prospects for further work.At last, the porting of U-boot based on the Loongson platform is completed, and U-boot works well on the Loongson platform. The experiments show that this ported u-boot performs well and stably.
Table of contents
Summary 3-4
Abstract 4-5
directory 5-8
first chapter 8-16 <br / > 1.1 dissertation research background and significance 8-9
1.2 embedded Systems 9-11
1.2.1 embedded system hardware 9-10 <br / > 1.2.2 embedded system software 10-11
1.2.3 future trends 11
1.3 Bootloader in the development of domestic and 11 - 13
1.4 research papers and chapters arranged 13-14
1.5 the main work 14
1.6 Summary 14-16 <br / > The second chapter introduces the Godson architecture 16-26
2.1 Godson About 16
2.2 Godson CPU architecture 16-25
2.2.1 Godson CPU pipeline structure 16-17
2.2.2 Godson CPU address space 17-19
2.2.3 Godson general purpose register usage 19-21 <br / > 2.2.4 Godson interrupt exception 21-23
2.2.5 Godson cache 23-25 ??
2.2.6 Godson architecture other points 25 <br / > section 2.3 of this chapter functional and structural analysis nbsp 25-26
Chapter III of Bootloader ; 26-32
3.1 Bootloader general description 26-31 <br / > 3.1.1 U-boot basic functions and extensions 26-27
3.1.2 U-boot boot process introduced 27
3.1.3 U-boot operating mode introduced 27-28
3.1.4 U-boot directory structure analysis main function 28-30
3.1.5 U-boot support 30
3.1.6 U-boot typical structural frame 30-31
3.2 of this chapter subsections 31-32
Chapter Godson -based platform U-boot transplant analysis 32-72
4.1 Godson SoC hardware resources introduced 32-34
4.2 U-boot program selected 34-37
4.2.1 software development environment to build 34
4.2.2 basic environment variable configuration 34
4.2.3 transplant procedures and modify the file description 34-36
4.2.4 U-boot configure , compile and link process 36-37
transplant analysis 4.3 U-boot of 37-69
4.3.1 interrupt Vector set 37-39
4.3.2 CPU registers are initialized 39-41
4.3.3 Cache memory and initialize 41-45
4.3.4 temporary stack initialization 45
4.3.5 NandFlash move 45-49
4.3.6 U-boot memory planning 49-52
4.3.7 relocation and board-level initialization 52-56
4.3.8 data Structure gd_t and bd_t introduced 56-57
4.3.9 U-boot environment variables 57-58
4.3.10 support serial peripheral 58-59
ELF file format and other analytical 4.3.11 U-boot 59-64
4.3.12 U-boot script file links 64-66
4.3.13 Got principle 66-68
4.3.14 U-boot the overall structure of the flowchart 68
4.3.15 U -boot test results and system stability 68-69
section 4.4 of this chapter 69-72
Chapter follow-up work with the prospect 72-74 <br / > Thanks 74-76
References 76-78
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
- Design of Data Recording Device
- 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