Unlock instant, AI-driven research and patent intelligence for your innovation.

BOOT program storing method and device and BOOT program starting method and device

A program and memory technology, applied in the field of BOOT program storage, can solve the problems of limited BOOT program functions and small NORFlash memory capacity, and achieve the effects of improving user experience, increasing production costs, and reducing storage space.

Inactive Publication Date: 2016-06-15
HISENSE VISUAL TECH CO LTD
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a storage method and device of a BOOT program, a starting method and a device, which are used to solve the problem that the function of the BOOT program is limited due to the small capacity of the NORFlash memory without increasing the production cost. question

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
  • BOOT program storing method and device and BOOT program starting method and device
  • BOOT program storing method and device and BOOT program starting method and device
  • BOOT program storing method and device and BOOT program starting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] Such as figure 2 As shown, the embodiment of the present invention provides a method for storing a BOOT program. The execution subject of each step of the method may be a device for storing the BOOT program in an electronic device. For example, the device may be a computer device , can also be a hardware module or a function module in a computer device. The storage methods include:

[0039]Step S101, compiling the source code of the BOOT program into a binary BOOT program.

[0040] The source code of the BOOT program is generally directly written by the software developer, and the software developer can use C / C++, BASIC, JAVA, assembly language, etc. to write the BOOT program. Of course, this embodiment is not limited to these programming languages.

[0041] The method for compiling the source code into binary may adopt the compiling scheme in the prior art, which will not be described in detail here. The compiled binary BOOT program is recorded as out.bin.

[0042...

Embodiment 2

[0143] Such as Figure 5 As shown, the method for starting a BOOT program provided by the embodiment of the present invention corresponds to the storage method for the BOOT program described in the scheme A in Embodiment 1, specifically:

[0144] S51 . Copy the decompression program and the start.s program in the NORFlash memory and the compressed BOOT program added as the decompression object into the memory.

[0145] That is to say, all the programs in the binary boot file are copied to the memory. For example, the decompression program is the GUNZIP decompression program.

[0146] S52. Execute the start.s program in the memory to complete the initial configuration of the electronic device, specifically including the completion of the initial configuration of the CPU and the memory.

[0147] S53. Execute the decompression program added with the compressed BOOT program in the memory, decompress the compressed BOOT program in the form of an array into the memory, and obtain ...

Embodiment 3

[0150] Such as Figure 6 As shown, another booting method of the BOOT program provided by the embodiment of the present invention corresponds to the storage method of the BOOT program described in Scheme B in Embodiment 1, and the binary data stored in the NORFlash memory of the electronic device is stored according to the storage method. The boot file includes a compressed BOOT program and a binary file, wherein the binary file is a file compiled by the decompression program and the startup assembler, and the address of the decompression object of the decompression program is a specified address of the memory.

[0151] The starting method of the BOOT program is specifically:

[0152] S61. Copy the binary file compiled together by the decompression program in the NORFlash memory and the start.s program into the memory.

[0153] For example, the decompression program is the GUNZIP decompression program.

[0154] S62. Execute the start.s program in the memory to complete the i...

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 embodiment of the invention provides a BOOT program storing method and device and a BOOT program starting method and device, and relates to the technical field of computers. The purpose is to solve the problem that functions achieved by a BOOT program are limited as capacity of a NORFlash memory is small on the premise of not increasing production cost. The BOOT program storing method provided by the embodiment includes the steps that a lossless compression program is adopted to compress a binary BOOT program to generate a compressed BOOT program; a binary boot file is stored into the NORFlash memory, and the binary boot file includes a decompression program corresponding to the lossless compression program, the compressed BOOT program serving as a decompression object of the decompression program and a starting assemble program. The compressed BOOT program can be decompressed through the starting method of the BOOT program, and the decompressed BOOT program can be executed.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a storage method and device for a BOOT program, and a starting method and device. Background technique [0002] The BOOT (system boot file) program is a small program that runs before the operating system runs. It is a very important system file. Without it, the system will not be able to boot. [0003] In recent years, in embedded systems, the BOOT program is usually stored in the NORFlash memory, and when the system starts, the startup is completed by executing the BOOT program stored in the NORFlash memory. But as far as the current situation is concerned, the memory capacity of NORFlash is relatively small and the price is relatively expensive, which limits the size of the BOOT program to a large extent, which in turn restricts the functions that the BOOT program can realize to a large extent. [0004] In order to solve this problem, the current practice is mostly to use e...

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 Applications(China)
IPC IPC(8): G06F9/44
CPCG06F9/4401
Inventor 李洋
Owner HISENSE VISUAL TECH CO LTD