CN105653269A - Boot starting device and method - Google Patents
Boot starting device and method Download PDFInfo
- Publication number
- CN105653269A CN105653269A CN201511001363.8A CN201511001363A CN105653269A CN 105653269 A CN105653269 A CN 105653269A CN 201511001363 A CN201511001363 A CN 201511001363A CN 105653269 A CN105653269 A CN 105653269A
- Authority
- CN
- China
- Prior art keywords
- boot
- configuration information
- cpu
- storing device
- steering routine
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a Boot starting device and method. The Boot starting device comprises storage equipment, a CPU and an RAM, wherein the storage equipment is used for storing configuration information and an executable program; the configuration information is a preset configuration parameter; the CPU is used for starting a Boot and reading the configuration information and the executable program in the storage equipment; and the RAM is used for storing the executable program read from the storage equipment and data generated in the Boot starting process. According to the Boot starting device and method, corresponding hardware modules can be initialized through reading the configuration information of the storage equipment, and the rapid starting of a preset function can be realized before operating the executable program, so that the demand of rapidly starting the preset function in the starting process of an embedded system is satisfied; and mark information is output during the operation process of the Boot so as to monitor the execution process of the Boot.
Description
Technical field
The present invention relates to the Boot starter gear in a kind of Boot starter gear and starting method, particularly embedded system start-up course and starting method, belong to Computer Control Technology field.
Background technology
Embedded system is special applications construction, and hardware and software height is integrated, and development model is the model of hardware and software collaborative design. Boot is first link of embedded development, is combined in together by hardware and software closely, for embedded system subsequent development and use most important. Boot is generally cured in CPU, from certain storing device target system can steering routine be loaded in RAM perform, so need can the prior programming of steering routine in storing device, need other outside burn writing equipments, and the Boot generally solidified does not have configuration file, can not flexible configuration system as required
Summary of the invention
The technology of the present invention is dealt with problems and is: overcome the deficiencies in the prior art, provide a kind of Boot starter gear and starting method, storing device adds configuration information, can by reading the corresponding hardware module of configuration information initializing of storing device, not do not running the quick startup that can realize predetermined function before steering routine, meet the demand of the quick startup of preset function in embedded system start-up course, and in Boot operational process, export flag information, the execution process of monitoring Boot.
The technical solution of the present invention is: a kind of Boot starter gear, mainly comprises:
Storing device, for depositing configuration information and can steering routine; Described configuration information is configuration parameter given in advance;
CPU, for starting Boot, reads the configuration information in storing device and can steering routine;
RAM, for depositing the data that can produce in steering routine and Boot start-up course read from storing device.
Described configuration parameter is used for the peripheral hardware of CPU being configured, can before steering routine runs, and the function that the peripheral hardware of CPU sets in advance according to configuration information and executing.
Described in Boot starter gear, also comprise more new module, for the configuration information that upgrades in storing device and can steering routine.
Based on a Boot Booting sequence for described Boot starter gear, comprising:
Configuration information reading step, CPU reads the configuration information in storing device, the peripheral hardware of configuration CPU;
Configuration function performs step, and the peripheral hardware of CPU, according to configuration information, performs function given in advance;
Can steering routine read step, CPU read in storing device can steering routine, and leave in RAM.
Also comprise step of updating, for the configuration information that upgrades in storing device and can steering routine.
Described Boot Booting sequence exports flag information in operational process, for being monitored by Boot Booting sequence.
The present invention's useful effect compared with prior art is:
The present invention by adding configuration information in storing device, by reading the corresponding hardware module of configuration information initializing of storing device, can be implemented in the quick startup not running and can realizing predetermined function before steering routine, meet the demand of the quick startup of preset function in embedded system start-up course, and in Boot operational process, export flag information, the execution process of monitoring Boot.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the first embodiment of Boot starter gear in the present invention;
Fig. 2 is the schematic diagram of Boot starter gear the 2nd kind of embodiment in the present invention;
Fig. 3 is the schematic diagram of the first embodiment of Boot starting method in the present invention;
Fig. 4 is the schematic diagram of Boot starting method the 2nd kind of embodiment in the present invention;
Fig. 5 is the flow process example that in the present invention, configuration information reads;
Fig. 6 be in the present invention can steering routine read and store a flow process example.
Embodiment
In order to make technical problem solved by the invention, technical scheme and useful effect clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated, it should be understood that, specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The schematic diagram being illustrated in figure 1 in the present invention Boot the first embodiment of starter gear, as can be seen from Figure 1, in the present invention, Boot starter gear comprises:
Storing device 101, for depositing configuration information and can steering routine; Described configuration information is configuration parameter given in advance;
Described configuration information is the CPU peripheral configuration information set in advance, and for being configured by the peripheral hardware of CPU, can before steering routine runs, the peripheral hardware of CPU be according to the configuration function that sets in advance of information and executing. Such as, by the setting of some parameters, can steering routine run before, it is achieved the quick acquisition and tracking etc. of signal.
Described can steering routine be the program bound in advance in storing device 101, and the program that described program can be able to perform for more any embedded systems given in advance, comprises some concrete signal receiving, location algorithms etc.
Described storing device can be Flash, SD card, hard disk etc. in specific operation process.
CPU102, for starting Boot, reads the configuration information in storing device and can steering routine;
CPU is after starting Boot, first need to read configuration information, CPU peripheral hardware is arranged, operates fast the peripheral hardware of CPU is carried out some according to configuration information, and then to reading by steering routine, and can be stored in what read in RAM103 by steering routine.
Certainly, the function of CPU is except starting except Boot, in addition it is also necessary to carry out initialize operation, described initialize comprise exception vector is set, initialize storehouse, loading program run required library file etc.
RAM103, for depositing the data that can produce in steering routine and Boot start-up course read from storing device.Be specially: what CPU was read by described RAM103 can each code section of steering routine be stored in corresponding RAM, redirect PC pointer to start address, the data in Boot operational process also leave in corresponding RAM.
Further, in order to better the signal in storing device be conducted interviews and read, in the beginning of whole storing device, configuration information start and can steering routine start corresponding zone bit is set, if zone bit is not the numeral preset or letter, then represent corresponding data for empty, corresponding data are not conducted interviews, if zone bit is default numeral or letter, then represents corresponding data not for empty, corresponding data are conducted interviews. Table 1 show an example of configuration information form, and in table 1,0x55AAAA55 is the zone bit of configuration information, and the data from zone bit are concrete configuration information. In practical implementation, the register in CPU peripheral hardware is carried out concrete configuration by configuration information often, therefore can arrange the address of register quantity and each register, Configuration Values and operation delay in configuration information. Like this, when CPU initially starts Boot, first read configuration information and the register in CPU peripheral hardware is arranged, thus realize catching and the operation such as tracking signal, like this, can steering routine run time, signal has been caught complete, greatly accelerates the time of signal processing.
Table 1
As shown in table 2 for can an example of steering routine form in the present invention, that adopt in this example is double-core CPU, comprise CPU0 and CPU1, as known from Table 2, 0xAA5555AA is that CPU0 can the zone bit of steering routine, can be used to interpretation whether can read by steering routine CPU0, specifically can the data content of steering routine comprise CPU0 can steering routine total length, CPU0 can enter port address by steering routine, CPU0's can the Section quantity of steering routine, the data length of each Section and data content, CPU1 can steering routine and CPU0 can level of enforcement similar. above data structure can realize can the quick reading of steering routine data.
Table 2
Certainly, for those skilled in the art, configuration information and can the concrete structure of steering routine and the content content that to be not limited in table 1 and table 2 listed, those skilled in the art can according to actual demand, configuration information and can the concrete structure of steering routine and content adjusting in his-and-hers watches 1 and table 2, with the demand of satisfied different task.
Further, in order to the configuration information in storing device 101 with programming and renewal can be carried out steering routine, described Boot starter gear also comprises more new module 104, for the configuration information that upgrades in storing device and can steering routine, specifically as shown in Figure 2.
Described renewal process is specially: if read configuration Information sign position and can steering routine zone bit all failed, or read data zone bit failure (namely not having data in storing device 101) of storing device 101, then need to carry out the programming of corresponding data, it is specially: initialize serial ports controller, unlatching serial ports interrupts, wait-receiving mode serial data, after receiving serial data, it is written in the corresponding address of storing device 101 by SPI, finally export programming flag information, with reason, when needs to configuration information and can steering routine upgrade time, above method can also be adopted to upgrade, export and upgrade flag information.
It is illustrated in figure 3 the Boot starting method based on the Boot starter gear described in the present invention, specifically comprises:
Configuration information reading step 201, CPU reads the configuration information in storing device, the peripheral hardware of configuration CPU;The step reading configuration information is concrete as shown in Figure 5.
Configuration function performs step 202, and the peripheral hardware of CPU, according to configuration information, performs function given in advance;
Can steering routine read step 203, CPU read in storing device can steering routine, and leave in RAM. A specific embodiment of above process as shown in Figure 6, in shown Fig. 6 can level of enforcement read with store used by can steering routine with in table 2 can steering routine corresponding. Certainly,
To those skilled in the art, it is possible to according to specifically the difference of steering routine the flow process in Fig. 6 being carried out the amendment of adaptability.
Further, in order to the configuration information in storing device with programming and renewal can be carried out steering routine, described Boot starting method also comprises step of updating 204, for the configuration information that upgrades in storing device and can steering routine, specifically as shown in Figure 4.
Further, in order to each node in Boot Booting sequence is monitored, realize the quick status function of fault, flag information can be exported after each node of Boot Booting sequence has run, described flag information can be used for distinguishing each node, there is numeral or the signal form of certain inheritance, as shown in table 3 is the specific form of a kind of flag information, Fig. 3 flag information that to show in double-core Boot Booting sequence corresponding, as known from Table 3, flag information have employed GPIO [1] and GPIO [0] and represents, wherein, it is produce the clocksignal of different number when 1 different nodes has run to represent that GPIO [1] represents at GPIO [0], such that it is able to realized the location of malfunctioning node fast by GPIO [1] and GPIO [0] when there is fault. to those skilled in the art, it is possible to use other forms of flag information, certainly, as long as good each node can be distinguished.
Table 3
The content not being described in detail in specification sheets of the present invention belongs to the known technology of professional and technical personnel in the field.
Detailed in preferred embodiment the present invention is described above by concrete; but those skilled in the art should be understood that; the present invention is not limited to the above embodiment; within the spirit and principles in the present invention all; the any amendment done, equivalent replacement etc., all should be included within protection scope of the present invention.
Claims (6)
1. a Boot starter gear, it is characterised in that: mainly comprise:
Storing device, for depositing configuration information and can steering routine; Described configuration information is configuration parameter given in advance;
CPU, for starting Boot, reads the configuration information in storing device and can steering routine;
RAM, for depositing the data that can produce in steering routine and Boot start-up course read from storing device.
2. a kind of Boot starter gear according to claim 1, it is characterised in that: described configuration parameter is used for the peripheral hardware to CPU and configures, can before steering routine runs, the function that the peripheral hardware of CPU sets in advance according to configuration information and executing.
3. a kind of Boot starter gear according to claim 1, it is characterised in that: described in Boot starter gear, also comprise more new module, for the configuration information that upgrades in storing device and can steering routine.
4. the Boot Booting sequence based on described Boot starter gear arbitrary in claims 1 to 3, it is characterised in that comprising:
Configuration information reading step, CPU reads the configuration information in storing device, the peripheral hardware of configuration CPU;
Configuration function performs step, and the peripheral hardware of CPU, according to configuration information, performs function given in advance;
Can steering routine read step, CPU read in storing device can steering routine, and leave in RAM.
5. a kind of Boot Booting sequence according to claim 4, it is characterised in that: also comprise step of updating, for the configuration information that upgrades in storing device and can steering routine.
6. a kind of Boot starter gear according to claim 4, it is characterised in that: described Boot Booting sequence exports flag information in operational process, for being monitored by Boot Booting sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511001363.8A CN105653269A (en) | 2015-12-28 | 2015-12-28 | Boot starting device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511001363.8A CN105653269A (en) | 2015-12-28 | 2015-12-28 | Boot starting device and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105653269A true CN105653269A (en) | 2016-06-08 |
Family
ID=56477011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511001363.8A Pending CN105653269A (en) | 2015-12-28 | 2015-12-28 | Boot starting device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105653269A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595212A (en) * | 2018-03-30 | 2018-09-28 | 上海康斐信息技术有限公司 | A kind of method and wireless router of quick startup wireless router |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060010317A1 (en) * | 2000-10-26 | 2006-01-12 | Lee Shyh-Shin | Pre-boot authentication system |
CN101122936A (en) * | 2007-09-21 | 2008-02-13 | 武汉大学 | Embed type platform guiding of credible mechanism |
CN101510161A (en) * | 2009-03-30 | 2009-08-19 | 北京中星微电子有限公司 | Bootstrap implementing method, apparatus and portable electronic apparatus |
CN102314354A (en) * | 2010-06-30 | 2012-01-11 | 无锡中星微电子有限公司 | Embedded system starting method and embedded device |
CN104866357A (en) * | 2015-05-29 | 2015-08-26 | 中国电子科技集团公司第五十八研究所 | Boot starting method of digital signal processor and starting apparatus thereof |
-
2015
- 2015-12-28 CN CN201511001363.8A patent/CN105653269A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060010317A1 (en) * | 2000-10-26 | 2006-01-12 | Lee Shyh-Shin | Pre-boot authentication system |
CN101122936A (en) * | 2007-09-21 | 2008-02-13 | 武汉大学 | Embed type platform guiding of credible mechanism |
CN101510161A (en) * | 2009-03-30 | 2009-08-19 | 北京中星微电子有限公司 | Bootstrap implementing method, apparatus and portable electronic apparatus |
CN102314354A (en) * | 2010-06-30 | 2012-01-11 | 无锡中星微电子有限公司 | Embedded system starting method and embedded device |
CN104866357A (en) * | 2015-05-29 | 2015-08-26 | 中国电子科技集团公司第五十八研究所 | Boot starting method of digital signal processor and starting apparatus thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595212A (en) * | 2018-03-30 | 2018-09-28 | 上海康斐信息技术有限公司 | A kind of method and wireless router of quick startup wireless router |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103207797B (en) | Capsule type customized updating method based on universal extensible firmware interface firmware system | |
CN108898230B (en) | Equipment management method and management server | |
US8694767B2 (en) | Method and system for NAND flash support in an autonomously loaded secure reprogrammable system | |
CN103377063A (en) | Method and system for recovering unified extensible firmware interface (UEFI) pre-starting environment from legacy operation system environment | |
CN102650947A (en) | Continuous increment over-the-air upgrade method of Android handheld equipment | |
KR20140060912A (en) | Method and apparatus for updating boot loader | |
US10579801B2 (en) | Selecting and loading firmware volumes based on license | |
JP2020038604A (en) | Method and system for streamlined server design | |
CN104965760A (en) | Method and apparatus for managing life cycle of software function module | |
CN104081376A (en) | Maintaining system firmware images remotely using a distribute file system protocol | |
CN108762797A (en) | A kind of SSD firmwares online updating method, system and SSD | |
US20170185311A1 (en) | Data Processing Method and Smart Device | |
WO2022105595A1 (en) | Method and apparatus for upgrading system of embedded device, and embedded device | |
US9672047B1 (en) | Systems and methods for accessing a bootable partition on a serial peripheral interface device | |
CN104050006A (en) | Updating system and updating method of FPGA | |
CN102622243A (en) | Method for executing solidified codes supporting various NAND flash memories | |
CN105278976B (en) | A kind of FPGA reconstruct device, system and method | |
CN104978204A (en) | Application installing and updating method based on mobile terminal and application installing and updating device based on mobile terminal | |
CN118051277A (en) | Method and device for starting server, storage medium and electronic equipment | |
CN105653269A (en) | Boot starting device and method | |
CN113849230A (en) | Server starting method and device, electronic equipment and readable storage medium | |
CN110908644B (en) | Configuration method and device of state node, computer equipment and storage medium | |
CN102623066A (en) | Saving and acquisition method for solidification code parameter table | |
US9934045B1 (en) | Embedded system boot from a storage device | |
WO2020113382A1 (en) | Hardware upgrading method, apparatus and device, and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160608 |