CN105117255A - Boot method and apparatus for BootLoader program - Google Patents

Boot method and apparatus for BootLoader program Download PDF

Info

Publication number
CN105117255A
CN105117255A CN201510542926.8A CN201510542926A CN105117255A CN 105117255 A CN105117255 A CN 105117255A CN 201510542926 A CN201510542926 A CN 201510542926A CN 105117255 A CN105117255 A CN 105117255A
Authority
CN
China
Prior art keywords
program
time
bit
bootloader program
wait
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510542926.8A
Other languages
Chinese (zh)
Inventor
艾国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
QINGDAO VIMICRO ELECTRONICS CO Ltd
Original Assignee
QINGDAO VIMICRO ELECTRONICS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by QINGDAO VIMICRO ELECTRONICS CO Ltd filed Critical QINGDAO VIMICRO ELECTRONICS CO Ltd
Priority to CN201510542926.8A priority Critical patent/CN105117255A/en
Publication of CN105117255A publication Critical patent/CN105117255A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

Embodiments of the invention provide a boot method and apparatus for a BootLoader program. The method comprises: reading the BootLoader program in an external memory; and analyzing the BootLoader program and running the BootLoader program. According to the method provided by the embodiment of the invention, normal boot loading of an embedded system still can be realized by only modifying the BootLoader program in the external memory to meet system requirements after modification.

Description

A kind of bootstrap technique of bootload BootLoader program and device
Technical field
The present invention relates to Embedded System Design field, particularly relate to a kind of bootstrap technique and device of BootLoader program.
Background technology
Bootload (BootLoader) program is the first paragraph code that embedded system performs after power, after the initialization that it completes CPU and related hardware, the built-in application program of operation system image or solidification is contained in the space then jumping to operating system place in internal memory, and start the operating system operation.Such as, based in the embedded system of ARM7TDMIcore, system all performs usually when powering on or reset from 0x00000000 place, address, and what arrange at this address place is exactly the BootLoader program of system usually.
At present, in embedded systems, for realizing BootLoader, following two kinds of mainstream scheme are usually adopted:
1) by BootLoader program Solidification in SOC (system on a chip) (SOC, SystemOnChip) chip internal; This makes BootLoader program seriously depend on SOC and realize.Later stage, BootLoader program but cannot change along with the change of system, made system normally can not realize bootload.And in order to realize the normal bootload of system, need the SOC design phase BootLoader program consider thorough, different systems can be adapted to, but it is very large to realize difficulty;
2) SOC inside arranges one piece of erasable storer, needing again to BootLoader programming according to system in later stage.But because scratch pad memory price comparison is expensive, embedded system hardware cost will be made greatly to increase, in addition, it is higher that this technology realizes difficulty, therefore, the first scheme is relatively lower by success ratio during this scheme manufacture SOC.
Summary of the invention
In order to solve the technical matters of existing existence, the embodiment of the present invention expects the bootstrap technique and the device that provide a kind of BootLoader program.
Embodiments provide a kind of bootstrap technique of BootLoader program, comprising:
BootLoader program in reading external memory;
After described BootLoader program is resolved, run described BootLoader program.
Preferably, before reading the BootLoader program in described external memory storage, described method also comprises:
Receive the BootLoader program that user writes,
Compile described BootLoader program;
Described BootLoader program is stored in external memory storage.
Preferably, described external memory storage is flash memory flash storer or is realized by secure digital SD storage card.
Preferably, described BootLoader program is the code meeting following first syntax format:
keyword+””+address+”,”+value+”,”+wait-time,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, when read operation, be verification check operation overtime time-out duration, wherein, described time-out duration is: wait-time*wait-time*0x100; Or,
Described BootLoader program is the code meeting following second syntax format:
keyword+””+address+”,”+value+”,”+wait-time+”,”+start-bit+”,”+end-bit,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, when read operation, be check operation time-out duration, wherein, described time-out duration is: wait-time*wait-time*0x100; Start-bit is when bit manipulation, and for representing the start bit of bit manipulation, the span of start-bit is 0 ~ 31; End-bit is when bit manipulation, and for representing the stop bit of bit manipulation, the span of end-bit is 0 ~ 31; Or,
Comprise the code meeting the first syntax format and the second syntax format in described BootLoader program simultaneously.
Embodiments provide a kind of guiding device of BootLoader program, comprising: program read module, outer memory module, program parsing module and program run module; Wherein,
Described program read module, for reading the BootLoader program in outer memory module;
Described outer memory module, for storing BootLoader program;
Described program parsing module, for resolving described BootLoader program;
Described program runs module, for after program parsing module is resolved described BootLoader program, runs described BootLoader program.
In another kind of embodiment of the present invention, described device also comprises: process accepts module, program compilation module and program storage block; Wherein,
Described process accepts module, for read the BootLoader program in described external memory storage at described program read module before, receives the BootLoader program that user writes,
Described program compilation module, for compiling described BootLoader program;
Described program stores operational module, for described BootLoader program being stored in outer memory module.
Preferably, described outer memory module is realized by flash memory flash storer or is realized by secure digital SD storage card.
Preferably, described BootLoader program is the code meeting following first syntax format:
keyword+””+address+”,”+value+”,”+wait-time,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, and when read operation, be the overtime time-out duration of verification check step, wherein, described time-out duration is: wait-time*wait-time*0x100; Or,
Described BootLoader program is the code meeting following second syntax format:
keyword+””+address+”,”+value+”,”+wait-time+”,”+start-bit+”,”+end-bit,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, when read operation, be check operation time-out duration, wherein, described time-out duration is: wait-time*wait-time*0x100; Start-bit is when bit manipulation, and for representing the start bit of bit manipulation, the span of start-bit is 0 ~ 31; End-bit is when bit manipulation, and for representing the stop bit of bit manipulation, the span of end-bit is 0 ~ 31; Or,
Comprise the code meeting the first syntax format and the second syntax format in described BootLoader program simultaneously.
The embodiment of the present invention at least possesses following advantage:
The bootstrap technique of a kind of BootLoader program that the embodiment of the present invention provides and device, the BootLoader program in reading external memory; After described BootLoader program is resolved, run described BootLoader journey.In such scheme, because BootLoader is stored in external memory storage, instead of solidify in SOC inner, therefore, the bootload process of embedded system does not need to depend on SOC to realize, like this, when embedded system changes, the method provided according to the embodiment of the present invention one, only needs to revise the BootLoader program in external memory storage, make it meet the system requirements after changing, then still can realize the normal bootload of embedded system; On the other hand, because BootLoader program is stored in external memory storage, compared to prior art, do not need built-in scratch pad memory in SOC, can the bootload of the different Implementation of Embedded System system of flexible adaptation, can reduce costs again.
Accompanying drawing explanation
Fig. 1 shows the flow chart of steps of the bootstrap technique of a kind of BootLoader program that the embodiment of the present invention one provides;
Fig. 2 shows the flow chart of steps of the bootstrap technique reality of a kind of BootLoader program that the embodiment of the present invention two provides;
Fig. 3 shows the basic structure block diagram of the guiding device of a kind of BootLoader program of the present invention;
Fig. 4 shows the exemplary process diagram of the bootstrap technique based on a kind of BootLoader program of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Embodiment of the method one
With reference to Fig. 1, show the flow chart of steps of the bootstrap technique embodiment of a kind of BootLoader program of the present invention, specifically can comprise:
BootLoader program in step 101, reading external memory;
In this step, when embedded system powers on, read the BootLoader program stored in embedded system external memory by the SOC in embedded system;
Step 102, described BootLoader program is resolved after, run described BootLoader program;
Concrete, the SOC in embedded system is resolved the BootLoader program read from external memory storage by built-in resolver; After being parsed, running described BootLoader program, thus realize the bootload of embedded system, thus the operation that starts the operating system.
It should be noted that, the BootLoader program of the BootLoader program in described external memory storage and described SOC inside forms complete BootLoader program jointly, and the BootLoader program of SOC inside is for triggering reading to the BootLoader program in external memory storage, parsing and operating procedure, thus the loading completing embedded system starts; Specifically, SOC in embedded system is when system electrification, by to load and the BootLoader program running SOC inside carrys out the BootLoader program in reading external memory, and the parsing performed the BootLoader program in described external memory storage and operation.
BootLoader program in described external memory storage is the program that can revise, and the BootLoader program of described SOC inside can not be modified.
In such scheme, because BootLoader program is stored in external memory storage, instead of solidify in SOC inner, therefore, the bootload process of embedded system does not need to depend on SOC to realize, like this, when embedded system changes, the method provided according to the embodiment of the present invention one, only needs to revise the BootLoader program in external memory storage, make it meet the system requirements after changing, then still can realize the normal bootload of embedded system.
On the other hand, because BootLoader program is stored in external memory storage, compared to prior art, do not need built-in scratch pad memory in SOC, can the bootload of the different Implementation of Embedded System system of flexible adaptation, can reduce costs again.
Embodiment of the method two
With reference to Fig. 2, show the flow chart of steps of the bootstrap technique embodiment of a kind of BootLoader program of the present invention, specifically can comprise:
BootLoader program in step 201, reading external memory, described BootLoader program is the program that user writes;
Therefore, before reading the BootLoader program in described external memory storage, said method also comprises:
Receive the BootLoader program that user writes,
Compile described BootLoader program;
Described BootLoader program is stored in external memory storage.
Pass through such scheme, no matter there is the change of any system in embedded system, user can again write with change after the BootLoader program that matches of system, such BootLoader program need not depend on SOC, make BootLoader program possess higher dirigibility, the demand of different system can be adapted to.
Concrete, described external memory storage can be flash memory flash storer, comprises NANDflash storer and NORflash storer etc.; Also can be other type of storage such as secure digital (SecureDigital, SD) storage card.
Concrete, described BootLoader program is the code meeting following first syntax format:
keyword+””+address+”,”+value+”,”+wait-time,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, and when read operation, be the overtime time-out duration of verification check step, wherein, described time-out duration is: wait-time*wait-time*0x100; Or,
Described BootLoader program is the code meeting following second syntax format:
keyword+””+address+”,”+value+”,”+wait-time+”,”+start-bit+”,”+end-bit,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, when read operation, be check operation time-out duration, wherein, described time-out duration is: wait-time*wait-time*0x100; Start-bit is when bit manipulation, and for representing the start bit of bit manipulation, the span of start-bit is 0 ~ 31; End-bit is when bit manipulation, and for representing the stop bit of bit manipulation, the span of end-bit is 0 ~ 31; Or,
Comprise the code meeting the first syntax format and the second syntax format in described BootLoader program simultaneously; Namely, when BootLoader program is lines of code formation, the code meeting the first syntax format can be there is in these codes, also can occur the code meeting the second syntax format simultaneously.
In such scheme, in read operation, when the highest bit of start-bit and end-bit is 1, represent that this read operation will not carry out check operation.
Be presented above the syntax format of two kinds of BootLoader programs, but in actual realization, BootLoader program includes but not limited to above-mentioned two kinds of concrete syntax formats, can also arrange according to actual needs, as long as be arranged to the code that can carry out corresponding operating to register, described corresponding operating comprises: read and write, compare, time delay etc.
Step 202, described BootLoader program is resolved after, run described BootLoader program.
Concrete, the SOC in embedded system is resolved the BootLoader program read from external memory storage by built-in resolver; Concrete, described resolver is the resolver that the BootLoader program that can meet corresponding syntax format carries out resolving.
After being parsed, BootLoader program described in operation for embedded system, realizes the bootload of embedded system, thus the operation that starts the operating system.
It should be noted that, the resolver that in the method that the embodiment of the present invention two provides, SOC is built-in matches with the prescriptive grammar form of BootLoader program, namely, after the syntax format defining BootLoader program, the built-in resolver of SOC is also determined; And the syntax format that a user-defined BootLoader program demand fulfillment specifies.
Also it should be noted that, the BootLoader program of BootLoader program in described external memory storage in described SOC inside forms complete BootLoader program jointly, and the BootLoader program of SOC inside is for triggering reading to the BootLoader program in external memory storage, parsing and operation, thus the loading completing embedded system starts; Specifically, SOC in embedded system is when system electrification, by to load and the BootLoader program running SOC inside carrys out the BootLoader program in reading external memory, and the parsing performed the BootLoader program in described external memory storage and operation.
BootLoader program in described external memory storage is the program that can revise, and the BootLoader program of described SOC inside can not be modified.
Like this, the bootstrap technique of BootLoader program realized in this way, can according to the system requirements of different embedded system, carry out setting and the adjustment of BootLoader program, the problem by could realize BootLoader modification of program at the built-in scratch pad memory of SOC can not be revised or need to the BootLoader program in prior art that overcomes, thus the requirement of maximized satisfied different embedded system, and this implementation method is simple, convenient, with low cost.
Device embodiment
With reference to Fig. 3, show the structured flowchart of the guiding device embodiment of a kind of BootLoader program of the present invention, described device is positioned at embedded system, be specially in the SOC of embedded system, comprise: program read module 31, outer memory module 32, program parsing module 33 and program run module 34; Wherein,
Described program read module 31, for reading the BootLoader program in outer memory module 32;
Described outer memory module 32, for storing BootLoader program;
Described program parsing module 33, for resolving described BootLoader program;
Described program runs module 34, for after program parsing module 33 is resolved described BootLoader program, runs described BootLoader program.
In a kind of embodiment of the present invention, described program read module 31, also for before reading the BootLoader program in outer memory module 32, read the BootLoader program of the SOC inside in embedded system, thus read, resolve and run the BootLoader program in external memory storage.
In another kind of embodiment of the present invention, described device also comprises: process accepts module 35, program compilation module 36 and storage operational module 37; Wherein,
Described process accepts module 35, before reading the BootLoader program in described outer memory module 32 at described program read module 31, receives the BootLoader program that user writes,
Described program compilation module 36, for compiling described BootLoader program;
Described storage operational module 37, for being stored in described BootLoader program in outer memory module 32.
Concrete, described outer memory module 32 can be realized by flash memory (flash) storer, comprises NANDflash storer and NORflash storer etc.; Also can be other type of storage such as secure digital (SecureDigital, SD) storage card.
Concrete, described BootLoader program is the code meeting following first syntax format:
keyword+””+address+”,”+value+”,”+wait-time,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, and when read operation, be the overtime time-out duration of verification check step, wherein, described time-out duration is: wait-time*wait-time*0x100; Or,
Described BootLoader program is the code meeting following second syntax format:
keyword+””+address+”,”+value+”,”+wait-time+”,”+start-bit+”,”+end-bit,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, when read operation, be check operation time-out duration, wherein, described time-out duration is: wait-time*wait-time*0x100; Start-bit is when bit manipulation, and for representing the start bit of bit manipulation, the span of start-bit is 0 ~ 31; End-bit is when bit manipulation, and for representing the stop bit of bit manipulation, the span of end-bit is 0 ~ 31; Or,
Comprise the code meeting the first syntax format and the second syntax format in described BootLoader program simultaneously; Namely, form in the lines of code of BootLoader program, the code meeting the first syntax format can be occurred, also can occur the code meeting the second syntax format simultaneously.
In such scheme, in read operation, when the highest bit of start-bit and end-bit is 1, represent this read operation will not test (check) operation.
In specific implementation process, said procedure read module 31, outer memory module 32, program parsing module 33, program are run module 34, process accepts module 35, program compilation module 36 and stored operational module 37 all can by the central processing unit (CPU in embedded system, CentralProcessingUnit), microprocessor (MPU, MicroProcessingUnit), digital signal processor (DSP, DigitalSignalProcessor) or programmable logic array (FPGA, Field-ProgrammableGateArray) realize.
Application example
With reference to Fig. 4, show the bootstrap technique process flow diagram based on a kind of BootLoader program of the present invention, specifically can comprise:
Step 401, user write BootLoader program according to predefined syntax format;
Concrete, described predefined form is: described BootLoader program comprises the code meeting the first syntax format and the second syntax format simultaneously:
Concrete, the first syntax format is:
keyword+””+address+”,”+value+”,”+wait-time,
Wherein, Address is register address; Value: value; Wait-time when write operation, for delay operation complete after delay duration, its value is 0xff to the maximum, and when read operation, be the time-out duration of check, wherein, described duration is: wait-time*wait-time*0x100;
Second syntax format is:
Described BootLoader program is the code meeting following second syntax format:
keyword+””+address+”,”+value+”,”+wait-time+”,”+start-bit+”,”+end-bit,
Wherein, Address is register address; Value: value; Wait-time when write operation, for delay operation complete after delay duration, its value is 0xff to the maximum, and when read operation, be the time-out duration of check, wherein, described duration is: wait-time*wait-time*0x100; Start-bit is when bit manipulation, and for representing start bit, the span of start-bit is 0 ~ 31; End-bit is when bit manipulation, and for representing stop bit, the span of end-bit is 0 ~ 31.
It is as follows that user writes code according to above-mentioned requirements:
Memw60011804,60000000,2; // represent toward address to be write 0x60000000 in the register of 0x60011804, and a time delay 0x400 clock;
Memw60011804,56,4,0,11; // represent toward address to be write 0x56 in the bit0-bit17 of the register of 0x60011804, and a time delay 0x1000 clock;
Memr60011804,56,80,0,11; // represent that reading address is value in the bit0-bit17 of the register of 0x60011804, and determine whether 0x56, words that no, till reading always and being.Timeout duration 0x400000 clock;
Memr60011804,56,80,80,91; // represent that reading address is value in the bit0-bit17 of the register of 0x60011804, runs through and namely terminates.
Step 402, embedded system receive the BootLoader program that user writes;
Step 403, the BootLoader program of being write by the compiler compiling user that SOC is built-in.
Step 404, by compiling after BootLoader program stored in the external memory storage of embedded system;
When step 405, system electrification, SOC reads BootLoader program, compiles and performs;
Concrete, during system electrification, SOC reads BootLoader program from external memory storage, compiles described BootLoader program, and is compiling the described BootLoader program of execution successfully.
Implement for embodiment for device, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Those skilled in the art should understand, the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the embodiment of the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code.
The embodiment of the present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, terminal device (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminal equipment to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing terminal equipment produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing terminal equipment, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing terminal equipment, make to perform sequence of operations step to produce computer implemented process on computing machine or other programmable terminal equipment, thus the instruction performed on computing machine or other programmable terminal equipment is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although described the preferred embodiment of the embodiment of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of embodiment of the present invention scope.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the terminal device comprising described key element and also there is other identical element.
Above to bootstrap technique and the device of a kind of BootLoader program provided by the present invention, be described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1. a bootstrap technique for bootload BootLoader program, is characterized in that, described method comprises:
BootLoader program in reading external memory;
After described BootLoader program is resolved, run described BootLoader program.
2. method according to claim 1, is characterized in that, before reading the BootLoader program in described external memory storage, described method also comprises:
Receive the BootLoader program that user writes,
Compile described BootLoader program;
Described BootLoader program is stored in external memory storage.
3. method according to claim 1, is characterized in that, described external memory storage is flash memory flash storer or is realized by secure digital SD storage card.
4., according to the method for claims 1 to 3 according to any one of it, it is characterized in that, described BootLoader program is the code meeting following first syntax format:
keyword+””+address+”,”+value+”,”+wait-time,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, when read operation, be verification check operation overtime time-out duration, wherein, described time-out duration is: wait-time*wait-time*0x100; Or,
Described BootLoader program is the code meeting following second syntax format:
keyword+””+address+”,”+value+”,”+wait-time+”,”+start-bit+”,”+end-bit,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, when read operation, be check operation time-out duration, wherein, described time-out duration is: wait-time*wait-time*0x100; Start-bit is when bit manipulation, and for representing the start bit of bit manipulation, the span of start-bit is 0 ~ 31; End-bit is when bit manipulation, and for representing the stop bit of bit manipulation, the span of end-bit is 0 ~ 31; Or,
Comprise the code meeting the first syntax format and the second syntax format in described BootLoader program simultaneously.
5. a guiding device for bootload BootLoader program, is characterized in that, described device comprises: program read module, outer memory module, program parsing module and program run module; Wherein,
Described program read module, for reading the BootLoader program in outer memory module;
Described outer memory module, for storing BootLoader program;
Described program parsing module, for resolving described BootLoader program;
Described program runs module, for after program parsing module is resolved described BootLoader program, runs described BootLoader program.
6. device according to claim 5, is characterized in that, described device also comprises: process accepts module, program compilation module and program storage block; Wherein,
Described process accepts module, for read the BootLoader program in described external memory storage at described program read module before, receives the BootLoader program that user writes,
Described program compilation module, for compiling described BootLoader program;
Described program stores operational module, for described BootLoader program being stored in outer memory module.
7. device according to claim 5, is characterized in that, described outer memory module is realized by flash memory flash storer or realized by secure digital SD storage card.
8., according to the device of claim 5 to 7 according to any one of it, it is characterized in that, described BootLoader program is the code meeting following first syntax format:
keyword+””+address+”,”+value+”,”+wait-time,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, and when read operation, be the overtime time-out duration of verification check step, wherein, described time-out duration is: wait-time*wait-time*0x100; Or,
Described BootLoader program is the code meeting following second syntax format:
keyword+””+address+”,”+value+”,”+wait-time+”,”+start-bit+”,”+end-bit,
Wherein, Address is register address; Value is the value of register address; Wait-time when write operation, for write operation complete after delay duration, its value is 0xff to the maximum, when read operation, be check operation time-out duration, wherein, described time-out duration is: wait-time*wait-time*0x100; Start-bit is when bit manipulation, and for representing the start bit of bit manipulation, the span of start-bit is 0 ~ 31; End-bit is when bit manipulation, and for representing the stop bit of bit manipulation, the span of end-bit is 0 ~ 31; Or,
Comprise the code meeting the first syntax format and the second syntax format in described BootLoader program simultaneously.
CN201510542926.8A 2015-08-28 2015-08-28 Boot method and apparatus for BootLoader program Pending CN105117255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510542926.8A CN105117255A (en) 2015-08-28 2015-08-28 Boot method and apparatus for BootLoader program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510542926.8A CN105117255A (en) 2015-08-28 2015-08-28 Boot method and apparatus for BootLoader program

Publications (1)

Publication Number Publication Date
CN105117255A true CN105117255A (en) 2015-12-02

Family

ID=54665257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510542926.8A Pending CN105117255A (en) 2015-08-28 2015-08-28 Boot method and apparatus for BootLoader program

Country Status (1)

Country Link
CN (1) CN105117255A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293832A (en) * 2016-08-09 2017-01-04 上海盈方微电子有限公司 A kind of SOC is booted up method and system
CN108021405A (en) * 2016-10-28 2018-05-11 福州瑞芯微电子股份有限公司 The driving method and device of storage medium in a kind of SOC system starting process
CN109388412A (en) * 2018-12-05 2019-02-26 安徽省航嘉智源科技有限公司 A kind of portable bootload device
CN109918124A (en) * 2019-03-15 2019-06-21 盛科网络(苏州)有限公司 SOC starting early stage is loaded into method and system, the Bootloader mirror configuration method of user configuration
CN110990041A (en) * 2019-12-16 2020-04-10 杭州涂鸦信息技术有限公司 Bootloader upgrading method and bootloader upgrading system
CN111142918A (en) * 2019-12-26 2020-05-12 天津津航计算技术研究所 Programmable device program parameter configuration and flow control method
CN111198718A (en) * 2019-12-27 2020-05-26 广东高云半导体科技股份有限公司 FPGA-based processor starting method and processor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755626A (en) * 2004-09-27 2006-04-05 乐金电子(昆山)电脑有限公司 Bootloader updating method for portable personal digital assistant
CN101146002A (en) * 2007-07-26 2008-03-19 北京联合大学 An evaluation system and method for built-in sensing network terminal
CN101231593A (en) * 2007-01-26 2008-07-30 佛山市顺德区顺达电脑厂有限公司 Method for updating software module of microcomputer apparatus
CN101789265A (en) * 2009-12-31 2010-07-28 芯通科技(成都)有限公司 FLASH express programming method for Power PC system
CN103186390A (en) * 2011-12-29 2013-07-03 中国移动通信集团公司 Home gateway and software upgrading method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755626A (en) * 2004-09-27 2006-04-05 乐金电子(昆山)电脑有限公司 Bootloader updating method for portable personal digital assistant
CN101231593A (en) * 2007-01-26 2008-07-30 佛山市顺德区顺达电脑厂有限公司 Method for updating software module of microcomputer apparatus
CN101146002A (en) * 2007-07-26 2008-03-19 北京联合大学 An evaluation system and method for built-in sensing network terminal
CN101789265A (en) * 2009-12-31 2010-07-28 芯通科技(成都)有限公司 FLASH express programming method for Power PC system
CN103186390A (en) * 2011-12-29 2013-07-03 中国移动通信集团公司 Home gateway and software upgrading method thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293832A (en) * 2016-08-09 2017-01-04 上海盈方微电子有限公司 A kind of SOC is booted up method and system
CN106293832B (en) * 2016-08-09 2020-01-14 上海盈方微电子有限公司 SOC chip boot starting method and system
CN108021405A (en) * 2016-10-28 2018-05-11 福州瑞芯微电子股份有限公司 The driving method and device of storage medium in a kind of SOC system starting process
CN108021405B (en) * 2016-10-28 2020-11-06 瑞芯微电子股份有限公司 Method and device for driving storage medium in SOC system starting process
CN109388412A (en) * 2018-12-05 2019-02-26 安徽省航嘉智源科技有限公司 A kind of portable bootload device
CN109918124A (en) * 2019-03-15 2019-06-21 盛科网络(苏州)有限公司 SOC starting early stage is loaded into method and system, the Bootloader mirror configuration method of user configuration
CN110990041A (en) * 2019-12-16 2020-04-10 杭州涂鸦信息技术有限公司 Bootloader upgrading method and bootloader upgrading system
CN111142918A (en) * 2019-12-26 2020-05-12 天津津航计算技术研究所 Programmable device program parameter configuration and flow control method
CN111142918B (en) * 2019-12-26 2023-04-28 天津津航计算技术研究所 Programmable device program parameter configuration and flow control method
CN111198718A (en) * 2019-12-27 2020-05-26 广东高云半导体科技股份有限公司 FPGA-based processor starting method and processor

Similar Documents

Publication Publication Date Title
CN105117255A (en) Boot method and apparatus for BootLoader program
Yiu The Definitive Guide to ARM® Cortex®-M3 and Cortex®-M4 Processors
US10628141B2 (en) Compiler transformation with loop and data partitioning
CN107436762B (en) Register code file generation method and device and electronic equipment
US20060064576A1 (en) Boot systems and methods
KR101615907B1 (en) Method and system using exceptions for code specialization in a computer architecture that supports transactions
EP2706459B1 (en) Apparatus and method for validating a compiler for a reconfigurable processor
US10877770B2 (en) Computing device
CN102707982A (en) Incremental generation of managed assemblies
CN111857776A (en) Online upgrading method for application programs of DSP (digital Signal processor) board cards
CN104156234A (en) Multi-core processor starting and bootloader big-little endian mode adapting method device
US8370618B1 (en) Multiple platform support in computer system firmware
US8806453B1 (en) Integrating disparate programming languages to form a new programming language
WO2023107789A1 (en) Deterministic replay of a multi-threaded trace on a multi-threaded processor
US9395992B2 (en) Instruction swap for patching problematic instructions in a microprocessor
US10198544B2 (en) Method for improving OpenCL hardware execution efficiency
KR102152735B1 (en) Graphic processor and method of oprating the same
CN201708785U (en) System for realizing real-time dynamic configuration of FPGA
US20190286544A1 (en) Method, device and server for checking a defective function
US10540151B1 (en) Graphical customization of a firmware-provided user interface (UI)
CN105630530A (en) Multilevel boot method and system of digital signal processor
CN112445688A (en) Generating different traces of graphics processor code
CN105204896A (en) BootLoader design method of digital storage oscilloscope
US10210334B2 (en) Systems and methods for software integrity assurance via validation using build-time integrity windows
Cohen et al. Android Application Development for the Intel Platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151202

RJ01 Rejection of invention patent application after publication