A bootloader code reuse method and development board in an embedded system

An embedded system and development board technology, applied in the computer field, can solve the problems of code running away, BootLoader can not run normally, can not call functions and access variables correctly, etc., to achieve the effect of improving compatibility

Active Publication Date: 2022-04-26
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) The operation of the code on the hardware resources is carried out by directly operating the hardware. If the hardware resources on the development board change, the BootLoader will not run normally.
[0005] (2) The running address of the code is determined when compiling. It is specified by TEXT_BASE when compiling. Then after BootLoader starts, it must copy its own code to the address specified by TEXT_BASE to start executing. If it is not copied to the address specified by TEXT_BASE Address execution, because the address of the function and variable accessed in the code has changed, there will be problems that the function cannot be called and the variable accessed correctly, causing the code to run away

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A bootloader code reuse method and development board in an embedded system
  • A bootloader code reuse method and development board in an embedded system
  • A bootloader code reuse method and development board in an embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0027] Based on the above-mentioned purpose, the first aspect of the embodiment of the present invention proposes an embodiment of a BootLoader code reuse method in an embedded system, which can make the BootLoader code adaptive to the hardware development board, so that the BootLoader code does not need to be recompiled It can run on different hardware development boards.

[0028] Usually, in an embedded system, the BootLoader code directly controls the hardware, so when the hardware resources change, the source code of the BootLoader must be re-modified to match the modified hardware resources before it can run normally, which leads to The compatibility of BootLoader code becomes worse. In order to s...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a BootLoader code reuse method in an embedded system, comprising the following steps: creating a device description file, describing hardware on a development board in the device description file; compiling the BootLoader code and transplanting the BootLoader code to the development board, The BootLoader code obtains the mapping address and memory size of the memory of the development board from the device description file during the transplantation process to relocate itself to the memory of the development board; and runs the relocated BootLoader code to operate the hardware according to the device description file. The invention can improve the compatibility of the BootLoader code, so that the BootLoader code can be directly run on different development boards without recompiling.

Description

technical field [0001] The present invention relates to the technical field of computers, and more specifically, refers to a method for reusing BootLoader codes in an embedded system and a development board. Background technique [0002] In an embedded system, BootLoader is a piece of code executed before the operating system runs. The purpose is to perform hardware initialization operations before the operating system runs, prepare the environment for the operating system to run, and finally load the operating system into memory for execution. [0003] There are two disadvantages in the traditional BootLoader: [0004] (1) The operation of the code on the hardware resources is carried out by directly operating the hardware. If the hardware resources on the development board are changed, the BootLoader will not run normally. [0005] (2) The running address of the code is determined when compiling. It is specified by TEXT_BASE when compiling. Then after BootLoader starts, i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/76G06F8/41G06F9/4401
CPCG06F8/41G06F8/76G06F9/4403
Inventor 刘茂栋
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products