CN102426529A - Method, device and system for firmware update - Google Patents

Method, device and system for firmware update Download PDF

Info

Publication number
CN102426529A
CN102426529A CN2011103298273A CN201110329827A CN102426529A CN 102426529 A CN102426529 A CN 102426529A CN 2011103298273 A CN2011103298273 A CN 2011103298273A CN 201110329827 A CN201110329827 A CN 201110329827A CN 102426529 A CN102426529 A CN 102426529A
Authority
CN
China
Prior art keywords
configuration
configuring area
loading
storer
upgrading
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
CN2011103298273A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2011103298273A priority Critical patent/CN102426529A/en
Publication of CN102426529A publication Critical patent/CN102426529A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for firmware update, wherein the update comprises configuration loading, and the configuration loading process comprises the following steps of: receiving a configuration loading instruction sent by a loading apparatus; selecting a configuration loading mode as the work mode according to the instruction, and entering into a configuration loading process; and when the configuration loading is failed, resetting the configuration parameter in a current configuration region to be the configuration parameter in the last successfully loaded configuration region. The invention further provides an interface device for firmware update, and a firmware update system comprising the loading apparatus and the interface device. In the method for firmware update, configuration upgrading and configuration loading for the firmware in an apparatus are realized through a firmware interface, efficiency of loading and upgrading the firmware configuration can be improved, and simultaneously, the security and the reliability of loading and upgrading of the firmware can be guaranteed.

Description

The method of firmware update, Apparatus and system
Technical field
The present invention relates to the firmware upgrade field, specially refer to a kind of method, Apparatus and system of firmware update.
Background technology
Firmware is the hardware with software function, and it is being served as, and a system is the most basic, the work of the bottom, the back-up system operation.Along with function that network provided constantly increases; The complexity of system equipment is also improving constantly; Sometimes in order to solve existing problem or new function to be provided; Need upgrade to the startup configuration parameter of equipment, after the upgrading when equipment starts next time, but the just configuration parameter behind the loading upgrading.Traditional upgrade method is to upgrade through cable, perhaps through behind the special-purpose programmable device elder generation upgrade parameter storage chip, chip is installed on the equipment again, adopts the mode of this upgrading, and efficient is lower, and is not suitable for the execute-in-place of equipment; At present, the mode that has occurred adopting remote download to upgrade comes equipment is upgraded upgrading, still; In the process of upgrading upgrading; The uncertain factor that might exist some to cause firmware upgrade failure, after the upgrading failure, in the time of can causing the startup of equipment to the loading failure of configuration parameter; Thereby make equipment can't normally start the problem of work, this just makes the security and reliability reduction that firmware in the equipment is loaded and upgrades.
Summary of the invention
Fundamental purpose of the present invention is the method that a kind of firmware update is provided; Firmware is configured upgrading and configuration loading in the hardware interface realization equipment through adopting; The efficient that firmware configuration loads and upgrades can be improved, the security and the reliability of firmware loads and upgrading can be guaranteed simultaneously.
The present invention provides a kind of method of firmware update, and said renewal comprises that configuration loads, and this configuration loads and comprises:
Receive the configuration load instructions that loading equipemtn sends;
According to said instruction, select mode of operation to be the configuration loading mode, and get into configuration loading process;
When configuration loads failure, the configuration parameter in the current configuring area is reset to the last configuration parameter in the configuring area that successfully loads.
Preferably, said entering configuration loading process specifically comprises:
Parse the address information of current configuring area entrained in the said instruction;
Convert said address information the actual address of current configuring area in storer into, and this actual address is sent to storer, export the configuration parameter in the said current configuring area according to said actual address for storer.
Preferably, before the address information in carrying out said parsing instruction, also comprise:
Open watchdog module carrying out timing, and the stand-by period is set loads whether success to judge configuration.
Preferably, said actual address is sent to storer carrying out, for storer according to this actual address export said current configuring area in configuration parameter after, also comprise:
When configuration loads successfully, close indication to said watchdog module transmission, and the base address of said current configuring area in storer saved as the last base address of configuring area in storer that successfully load.
Preferably, said renewal also comprises the configuration upgrading, and this configuration upgrading specifically comprises:
Receive the configuration upgrade that loading equipemtn sends;
According to said instruction, select mode of operation to be the configuration upgrade mode, and get into the configuration Upgrade process;
Being provided with the different configuring area in base address that successfully loads for the last time configuring area is current configuring area, and will write in the said current configuring area in order to the configuration parameter of upgrading.
Preferably, said configuration upgrading also comprises:
Parse the address information of current configuring area entrained in the said instruction;
Convert said address information the actual address of current configuring area in storer into, and this actual address is sent to storer, will deposit in the said current configuring area in order to the configuration parameter of upgrading for storer.
The present invention also provides a kind of interface arrangement that is used for firmware update, is used for disposing loading or the configuration upgrading, when being used for the configuration loading, comprising:
First receiver module is used to receive the configuration load instructions that loading equipemtn sends;
First gets into module, is used for according to said instruction, selects mode of operation to be the configuration loading mode, and gets into configuration loading process;
Reseting module is used for when configuration loads failure, the configuration parameter in the current configuring area is reset to successfully loads the configuration parameter in the configuring area for the last time.
Preferably, the said first entering module comprises:
First resolution unit is used for parsing the address information of the entrained current configuring area of said instruction;
First converting unit is used for converting said address information the actual address of current configuring area at storer into, and this actual address is sent to storer, exports the configuration parameter in the said current configuring area for storer according to said actual address.
Preferably, said interface arrangement also comprises:
Watchdog module is used for after getting into the configuration loading mode, carries out timing based on the set stand-by period, and when configuration loaded successfully, reception was closed and indicated and close timing; When configuration loads failure, send and load the failure indication to said reseting module.
Preferably, when being used for the configuration upgrading, said interface arrangement comprises:
Second receiver module is used to receive the configuration upgrade that loading equipemtn sends;
Second gets into module, is used for according to said instruction, selects mode of operation to be the configuration upgrade mode, and gets into the configuration Upgrade process;
Module is set, and the different configuring area in base address that is used to be provided with successfully loading for the last time configuring area is current configuring area, and will write in the said current configuring area in order to the configuration parameter of upgrading.
Preferably, the said second entering module comprises:
Second resolution unit is used for parsing the address information of the entrained current configuring area of said instruction;
Second converting unit is used for converting said address information the actual address of current configuring area at storer into, and this actual address is sent to storer, will deposit in the said current configuring area in order to the configuration parameter of upgrading for storer.
The present invention also provides a kind of firmware update system, comprises loading equipemtn and interface arrangement, and said interface arrangement is used for configuration and loads or dispose and upgrade, and interface arrangement comprises:
First receiver module is used to receive the configuration load instructions that loading equipemtn sends;
First gets into module, is used for according to said instruction, selects mode of operation to be the configuration loading mode, and gets into configuration loading process;
Reseting module is used for when configuration loads failure, the configuration parameter in the current configuring area is reset to successfully loads the configuration parameter in the configuring area for the last time.
The present invention is through the function of the hardware interface that interface arrangement provided; Realize the firmware in the loading equipemtn is configured the process that loads or dispose upgrading; Utilize transparent visible method of operating, at first carry out model selection, be configured the process that loads or dispose upgrading again.After selecting the configuration loading mode; And when configuration loads failure; Can the configuration parameter in the current configuring area be reset to and successfully load the configuration parameter in the configuring area for the last time, make loading equipemtn can reload the configuration parameter that successfully loads configuring area for the last time.Adopting this method that the firmware in the loading equipemtn is configured loads or the configuration upgrading; Make that the step that configuration loads or configuration is upgraded is more simple; And improved the efficient that firmware configuration loads or configuration is upgraded; When configuration loads failure, can guarantee to produce the problem that causes equipment can't normally start, move because of the loading failure simultaneously, promptly improve configuration loads or configuration is upgraded security and reliability.
Description of drawings
Fig. 1 loads the schematic flow sheet of an embodiment for configuration in the method for firmware update of the present invention;
Fig. 2 is the schematic flow sheet that configuration loads configuration loading process among the embodiment among Fig. 1;
Fig. 3 loads the schematic flow sheet of another embodiment for configuration in the method for firmware update of the present invention;
Fig. 4 is the schematic flow sheet of configuration upgrading one embodiment in the method for firmware update of the present invention;
Fig. 5 is the schematic flow sheet of the another embodiment of configuration upgrading in the method for firmware update of the present invention;
The structural representation of embodiment when Fig. 6 loads for interface arrangement of the present invention is used to dispose;
Fig. 7 is the structural representation of the first entering module among Fig. 6;
The structural representation of another embodiment when Fig. 8 loads for interface arrangement of the present invention is used to dispose;
The structural representation of one embodiment when Fig. 9 is used to dispose upgrading for interface arrangement of the present invention;
Figure 10 is the structural representation of the second entering module among Fig. 9;
Figure 11 is the structural representation of firmware update system of the present invention.
The realization of the object of the invention, functional characteristics and advantage will combine embodiment, further specify with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
With reference to Fig. 1, configuration loads an embodiment in the method for proposition firmware update of the present invention, and this configuration loads and comprises:
Step S101 receives the configuration load instructions that loading equipemtn sends;
The method of firmware update provided by the present invention, this update method can comprise that configuration loads and the configuration upgrading.Be to adopt interface arrangement; Come the firmware in the loading equipemtn is configured loading and configuration Upgrade process; Configuration load and the process of configuration upgrading in, can utilize at present general PLD and EEPROM etc. realize the hardware capability of this interface arrangement.In the present embodiment, when loading equipemtn starts, and when needing to load configuration parameter, just can send a configuration load instructions to interface arrangement, this moment, interface arrangement received the instruction that this configuration loads.
Step S102 according to said instruction, selects mode of operation to be the configuration loading mode, and gets into configuration loading process;
After receiving the instruction that configuration that loading equipemtn sends loads; Interface arrangement can be chosen as the configuration loading mode with mode of operation, and gets into the process that configuration loads, at this moment; Just need be according to the instruction of this configuration loading; In storer, find current configuring area, and configuration parameter is wherein loaded, load with the configuration of accomplishing loading equipemtn.
Step S103 when configuration loads failure, is reset to the last configuration parameter in the configuring area that successfully loads with the configuration parameter in the current configuring area.
In the configuration loading procedure; If configuration loads failure; Then can the configuration parameter in the current configuring area be resetted, the step that resets promptly is successfully to be loaded the configuration parameter in the configuring area for the last time with what preserve in the storer, writes again in the current configuring area.The present invention defines a kind of configuring area that successfully loads for the last time; Be after once startup has also successfully loaded the configuration parameter in a certain configuring area on loading equipemtn; Can the base address information of this configuring area to be preserved, the pairing configuring area of base address information of being preserved just can be called and successfully loads configuring area for the last time, like this; Loading equipemtn is being configured the process of loading next time; And when loading failure, just can in storer, search and reload the last configuration parameter in the configuring area that successfully loads according to the base address information of being preserved.
The method that the firmware configuration that the embodiment of the invention provided loads; Through the hardware capability that interface arrangement provided; Realize the firmware in the loading equipemtn is configured the process of loading; Utilize transparent visible method of operating, at first carry out model selection, carry out the process that the loading equipemtn configuration loads then.When loading failure, can the configuration parameter in the current configuring area be reset to and successfully load the configuration parameter in the configuring area for the last time, make loading equipemtn can reload the configuration parameter that successfully loads configuring area for the last time.Adopt this method that the firmware in the loading equipemtn is configured loading; The step that makes configuration load is more simple; Improved the efficient that firmware configuration loads, can guarantee simultaneously when configuration loads failure, can not produce because of loading the problem that failure causes equipment can't normally start, move.
With reference to Fig. 2, configuration loads among the embodiment in the method for firmware update of the present invention, and step S102 specifically comprises:
S1021 parses the address information of current configuring area entrained in the said instruction;
When the instruction that loads according to the configuration that loading equipemtn sent that receives; Mode of operation is chosen as the configuration loading mode; And after entering into the process of configuration loading, at first, resolve the instruction that received configuration loads; Parse the address information of the current configuring area of wherein entrained needs loading, the start address of configuring area in storer of each different editions that the address information refer to is here stored in storer.After successfully having carried out the configuration loading each time, all can in interface arrangement, the address information of this configuring area be stored, the configuring area in storer of this address information correspondence is just for successfully loading configuring area for the last time.
S1022 converts said address information the actual address of current configuring area in storer into, and this actual address is sent to storer, exports the configuration parameter in the said current configuring area for storer according to said actual address.
After the instruction of being received is parsed the address information of wherein entrained current configuring area; Just can obtain the actual address of this current configuring area in storer, then this address information changed, convert the actual address of current configuring area in storer into; And the actual address after will changing is sent to storer; Storer just can find its pairing configuring area according to this actual address, and configuration parameter is wherein exported, and is configured loading for loading equipemtn.Like this, just accomplished the process that loading equipemtn is configured loading.
In storer; The configuration parameter of different editions and the configuring area at these configuration parameters place are stored; Address information according to current configuring area entrained in the configuration load instructions; Just can in storer, find current configuring area and configuration parameter wherein, storer is exported configuration parameter then.Like this, just can further guarantee configuration loading safety and reliability, thereby make loading equipemtn can not occur loading the problem that can't normally start, move that failure causes because of configuration.
With reference to Fig. 3, configuration loads another embodiment in the method for proposition firmware update of the present invention, and configuration loads and also comprises:
Step S104 opens watchdog module carrying out timing, and the stand-by period is set loads whether success to judge configuration.
In the present embodiment; After the configuration load instructions received according to interface arrangement is chosen as mode of operation the configuration loading mode; Open watchdog module, this watchdog module is used for the process that configuration loads is carried out timing, simultaneously; A stand-by period is set, and whether the configuration of judgment device loads successful according to waiting time.In the timing course of watchdog module,, can judge that then configuration loads successfully if in waiting time, receive and close indication; Also do not receive and close indication if surpassed the stand-by period, can judge in view of the above that then configuration loads failure.
In the above-described embodiments, loading mode also comprises:
Step S105 when configuration loads successfully, closes indication to said watchdog module transmission, and the base address of said current configuring area in storer is saved as the last base address of configuring area in storer that successfully load.
If the time that configuration loads does not exceed the set stand-by period; Interface arrangement will send one to watchdog module and cut out indication; After watchdog module receives that this closes indication, just can judge that configuration loads successfully, watchdog module just can be closed timing.Then; The base address of current configuring area in storer that successfully is configured loading preserved, it is saved as successfully load the base address of configuring area in storer for the last time, like this; When after when configuration loads failure next time configuration parameter being resetted; According to successfully loading the base address of configuring area in storer for the last time, just can in storer, find easily and successfully load configuring area for the last time, and configuration parameter is wherein exported through storer.
Through using watchdog module to come the process that configuration loads is carried out timing; And be set a stand-by period; When whether needs are successfully judged the configuration loading,,, i.e. configuration do not exceed the stand-by period if loading just can accomplish according to this stand-by period; Just can send one to watchdog module and load successful indication, indicate it to close timing; If exceed the stand-by period, and watchdog module is not also received the indication that loading is successful, loads failure just can judge configuration.Through watchdog module, can further improve the efficient that the loading equipemtn configuration loads.
With reference to Fig. 4, configuration upgrading one embodiment in the method for proposition firmware update of the present invention, the configuration upgrading specifically comprises:
Step S201 receives the configuration upgrade that loading equipemtn sends;
The method of firmware update provided by the present invention, this update method can comprise that configuration loads and the configuration upgrading.Be to adopt interface arrangement; Come the firmware in the loading equipemtn is configured loading and configuration Upgrade process; Configuration load and the process of configuration upgrading in, can utilize at present general PLD and EEPROM etc. realize the hardware capability of this interface arrangement.In the present embodiment, when loading equipemtn need be upgraded to configuration parameter, just can send a configuration upgrade to interface arrangement, this moment, interface arrangement received the instruction of this configuration upgrading.
Step S202 according to said instruction, selects mode of operation to be the configuration upgrade mode, and gets into the configuration Upgrade process;
After the instruction that receives the configuration upgrading that loading equipemtn sends; Interface arrangement can be chosen as the configuration upgrade mode with mode of operation, and gets into the process of configuration upgrading, at this moment; Just need be according to the instruction of this configuration upgrading; In storer, find current configuring area, and will write in this current configuring area, to accomplish configuration upgrading loading equipemtn in order to the configuration parameter of upgrading.
Step S203, being provided with the different configuring area in base address that successfully loads for the last time configuring area is current configuring area, and will write in the said current configuring area in order to the configuration parameter of upgrading.
When instruction according to the received configuration that loading equipemtn sent upgrading; And mode of operation is set to dispose upgrade mode, promptly get into the process of configuration upgrading after, at first; In the configuring area that need in storer, be preserved; Select also a configuring area to be set as current configuring area to be upgraded, this current configuring area base address in storer should be and successfully load the different configuring area in base address of configuring area for the last time, then; To be written in the selected current configuring area to be upgraded in order to the configuration parameter of upgrading through storer, so just accomplished the process that the configuration parameter in the current configuring area is upgraded.
The method of the firmware configuration upgrading that the embodiment of the invention provided; Through the hardware capability that interface arrangement provided; Realize the firmware in the loading equipemtn is configured the process of upgrading, utilize transparent visible method of operating, at first carry out model selection; The configuration parameter that will upgrade again is written in the selected current configuring area to be upgraded, to accomplish the process that the configuration parameter of current configuring area is upgraded.Adopt this method that the firmware in the loading equipemtn is configured upgrading, make that the step of configuration upgrading is more simple, and improved the efficient of firmware configuration upgrading.
With reference to Fig. 5, the another embodiment of configuration upgrading in the method for proposition firmware update of the present invention, the configuration upgrading also comprises:
Step S204 parses the address information of current configuring area entrained in the said instruction;
When instruction according to the configuration that loading equipemtn the sent upgrading that receives; Mode of operation is chosen as the configuration upgrade mode; And after entering into the process of configuration upgrading, at first, resolve the instruction of received configuration upgrading; Parse the address information of the current configuring area of wherein entrained needs upgrading, the start address of configuring area in storer of each different editions that the address information refer to is here stored in storer.After successfully having carried out the configuration loading each time, all can in interface arrangement, the address information of this configuring area be stored, the configuring area in storer of this address information correspondence is just for successfully loading configuring area for the last time.
Step S205 converts said address information the actual address of current configuring area in storer into, and this actual address is sent to storer, will deposit in the said current configuring area in order to the configuration parameter of upgrading for storer.
After the instruction of being received is parsed the address information of wherein entrained current configuring area; Just can obtain the actual address of this current configuring area in storer; Then this address information is changed; Convert the actual address of current configuring area in storer into; And the actual address after will changing is sent to storer, and storer just can find the current configuring area of its pairing needs upgrading according to this actual address, and will deposit in the current configuring area that is found in order to the configuration parameter of upgrading.Like this, just accomplished the process that loading equipemtn is configured upgrading.
After the process of loading equipemtn successfully having been carried out the configuration upgrading; Need the mode of operation of loading equipemtn be chosen as the configuration loading mode once more; With convenient at start-up loading equipment next time and when being configured the loading process, the carrying out that can directly be carried in the storer to be preserved the configuration parameter in the configuring area after the upgrading.
Entrained address information in the configuration upgrade that receives is resolved; And will resolve after resulting address information converts the actual address of current configuring area in storer into; This actual address is sent to storer; Storer just can be written to the configuration parameter in order to upgrading in this current configuring area, has so just accomplished the process that loading equipemtn is configured upgrading.At this moment, also need mode of operation be chosen as the configuration loading mode once more, so that be configured when loading the configuration parameter in the current configuring area after directly having carried out in the pseudostatic ram upgrading at loading equipemtn next time.Like this, just can improve the security and the reliability that firmware are configured upgrading, further improve the efficient of firmware upgrade simultaneously.
With reference to Fig. 6, propose interface arrangement of the present invention and be used to dispose the embodiment when loading, interface arrangement comprises:
First receiver module 110 is used to receive the configuration load instructions that loading equipemtn sends;
First gets into module 120, is used for according to said instruction, selects mode of operation to be the configuration loading mode, and gets into configuration loading process;
Reseting module 130 is used for when configuration loads failure, the configuration parameter in the current configuring area is reset to successfully loads the configuration parameter in the configuring area for the last time.
The method of firmware update provided by the present invention, this update method can comprise that configuration loads and the configuration upgrading.Be to adopt interface arrangement; Come the firmware in the loading equipemtn is configured loading and configuration Upgrade process; Configuration load and the process of configuration upgrading in, can utilize at present general PLD and EEPROM etc. realize the hardware capability of this interface arrangement.In the present embodiment, when loading equipemtn starts, and when needing to load configuration parameter, just can send a configuration load instructions to interface arrangement, this moment first, receiver module 110 received the instruction that this configuration loads.
After receiving the instruction that configuration that loading equipemtn sends loads; Interface arrangement can be chosen as the configuration loading mode with mode of operation, and gets into the process that configuration loads through the first entering module 120, at this moment; Just need be according to the instruction of this configuration loading; In storer, find current configuring area, and configuration parameter is wherein loaded, load with the configuration of accomplishing loading equipemtn.
In the configuration loading procedure; If configuration loads failure; Then can the configuration parameter in the current configuring area be resetted, the step that resets promptly is successfully to be loaded the configuration parameter in the configuring area for the last time with what preserve in the storer, writes again in the current configuring area.The present invention defines a kind of configuring area that successfully loads for the last time; Be after once startup has also successfully loaded the configuration parameter in a certain configuring area on loading equipemtn; Can the base address information of this configuring area to be preserved, the pairing configuring area of base address information of being preserved just can be called and successfully loads configuring area for the last time, like this; Loading equipemtn is being configured the process of loading next time; And when loading failure, just can in storer, search and reload the last configuration parameter in the configuring area that successfully loads according to the base address information of being preserved.
The embodiment of the invention through the hardware capability that interface arrangement provided, realizes the firmware in the loading equipemtn is configured the process of loading, utilizes transparent visible method of operating, at first carries out model selection, carries out the process that the loading equipemtn configuration loads then.When loading failure, can the configuration parameter in the current configuring area be reset to and successfully load the configuration parameter in the configuring area for the last time, make loading equipemtn can reload the configuration parameter that successfully loads configuring area for the last time.Adopt this method that the firmware in the loading equipemtn is configured loading; The step that makes configuration load is more simple; Improved the efficient that firmware configuration loads, can guarantee simultaneously when configuration loads failure, can not produce because of loading the problem that failure causes equipment can't normally start, move.
With reference to Fig. 7, in the above-described embodiments, said first gets into module 120 comprises:
First resolution unit 121 parses the address information of current configuring area entrained in the said instruction;
First converting unit 122 converts said address information the actual address of current configuring area in storer into, and this actual address is sent to storer, exports the configuration parameter in the said current configuring area for storer according to said actual address.
When the instruction that loads according to the configuration that loading equipemtn sent that receives; Mode of operation is chosen as the configuration loading mode; And after entering into the process of configuration loading, at first, first resolution unit 121 will be resolved the instruction that received configuration loads; Parse the address information of the current configuring area of wherein entrained needs loading, the start address of configuring area in storer of each different editions that the address information refer to is here stored in storer.After successfully having carried out the configuration loading each time, all can in interface arrangement, the address information of this configuring area be stored, the configuring area in storer of this address information correspondence is just for successfully loading configuring area for the last time.
After the instruction of being received is parsed the address information of wherein entrained current configuring area; Just can obtain the actual address of this current configuring area in storer; First converting unit 122 is changed this address information then; Convert the actual address of current configuring area in storer into, and the actual address after will changing is sent to storer, storer just can find its pairing configuring area according to this actual address; And configuration parameter that will be wherein exports, and is configured loading for loading equipemtn.Like this, just accomplished the process that loading equipemtn is configured loading.
In storer; The configuration parameter of different editions and the configuring area at these configuration parameters place are stored; Address information according to current configuring area entrained in the configuration load instructions; Just can in storer, find current configuring area and configuration parameter wherein, storer is exported configuration parameter then.Like this, just can further guarantee configuration loading safety and reliability, thereby make loading equipemtn can not occur loading the problem that can't normally start, move that failure causes because of configuration.
With reference to Fig. 8, propose interface arrangement of the present invention and be used for disposing another embodiment when loading, interface arrangement also comprises:
Watchdog module 140 is used for after getting into the configuration loading mode, carries out timing based on the set stand-by period, and when configuration loaded successfully, reception was closed and indicated and close timing; When configuration loads failure, send and load the failure indication to said reseting module.
In the present embodiment; After the configuration load instructions received according to interface arrangement is chosen as mode of operation the configuration loading mode; Open watchdog module 140, this watchdog module 140 is used for the process that configuration loads is carried out timing, simultaneously; A stand-by period is set, and whether the configuration of judgment device loads successful according to waiting time.In the timing course of watchdog module 140,, can judge that then configuration loads successfully if in waiting time, receive and close indication; Also do not receive and close indication if surpassed the stand-by period, can judge in view of the above that then configuration loads failure.
If the time that configuration loads does not exceed the set stand-by period; Interface arrangement will send one to watchdog module 140 and cut out indication; After watchdog module 140 receives that this closes indication, just can judge that configuration loads successfully, watchdog module 140 just can be closed timing.Then; The base address of current configuring area in storer that successfully is configured loading preserved, it is saved as successfully load the base address of configuring area in storer for the last time, like this; When after when configuration loads failure next time configuration parameter being resetted; According to successfully loading the base address of configuring area in storer for the last time, just can in storer, find easily and successfully load configuring area for the last time, and configuration parameter is wherein exported through storer.
The time that loads when configuration has exceeded the set stand-by period; 140 of watchdog modules can not receive the indication of closing timing, can judge in view of the above that just configuration loads failure, at this moment; Watchdog module 140 can send the indication that configuration loads failure to loading equipemtn; Indicating equipment resets, and what be about to preserved in the storer successfully loads the configuration parameter in the configuring area for the last time, writes again in the current configuring area.
Through using watchdog module 140 that the process that configuration loads is carried out timing; And be set a stand-by period; When whether needs are successfully judged the configuration loading,,, i.e. configuration do not exceed the stand-by period if loading just can accomplish according to this stand-by period; Just can send one to watchdog module 140 and load successful indication, indicate it to close timing; If exceed the stand-by period, and watchdog module 140 is not also received the indication that loading is successful, loads failure just can judge configuration.Like this, through watchdog module 140, can further improve the efficient that the loading equipemtn configuration loads, and can guarantee can not produce because of loading the problem that failure causes equipment can't normally start, move.
With reference to Fig. 9, propose interface arrangement of the present invention and be used to dispose the embodiment when upgrading, interface arrangement comprises:
Second receiver module 210 receives the configuration upgrade that loading equipemtn sends;
Second gets into module 220, is used for according to said instruction, selects mode of operation to be the configuration upgrade mode, and gets into the configuration Upgrade process;
Module 230 is set, and the different configuring area in base address that is used to be provided with successfully loading for the last time configuring area is current configuring area, and will write in the said current configuring area in order to the configuration parameter of upgrading.
The method of firmware update provided by the present invention, this update method can comprise that configuration loads and the configuration upgrading.Be to adopt interface arrangement; Come the firmware in the loading equipemtn is configured loading and configuration Upgrade process; Configuration load and the process of configuration upgrading in, can utilize at present general PLD and EEPROM etc. realize the hardware capability of this interface arrangement.In the present embodiment, when loading equipemtn need be upgraded to configuration parameter, just can send a configuration upgrade to interface arrangement, this moment second, receiver module 210 received the instruction of this configuration upgrading.
After the instruction that receives the configuration upgrading that loading equipemtn sends; Interface arrangement can be chosen as the configuration upgrade mode with mode of operation, and gets into the process of configuration upgrading, at this moment; Second gets into module 220 just need be according to the instruction of this configuration upgrading; In storer, find current configuring area, and will write in this current configuring area, to accomplish configuration upgrading loading equipemtn in order to the configuration parameter of upgrading.
When instruction according to the received configuration that loading equipemtn sent upgrading; And mode of operation is set to dispose upgrade mode, promptly get into the process of configuration upgrading after, at first; Be provided with in the configuring area that module 230 need be preserved in storer; Select also a configuring area to be set as current configuring area to be upgraded, this current configuring area base address in storer should be and successfully load the different configuring area in base address of configuring area for the last time, then; To be written in the selected current configuring area to be upgraded in order to the configuration parameter of upgrading through storer, so just accomplished the process that the configuration parameter in the current configuring area is upgraded.
The method of the firmware configuration upgrading that the embodiment of the invention provided; Through the hardware capability that interface arrangement provided; Realize the firmware in the loading equipemtn is configured the process of upgrading, utilize transparent visible method of operating, at first carry out model selection; The configuration parameter that will upgrade again is written in the selected current configuring area to be upgraded, to accomplish the process that the configuration parameter of current configuring area is upgraded.Adopt this method that the firmware in the loading equipemtn is configured upgrading, make that the step of configuration upgrading is more simple, and improved the efficient of firmware configuration upgrading.
With reference to Figure 10, the embodiment when interface arrangement of the present invention is used for disposing upgrading, said second gets into module 220 comprises:
Second resolution unit 221 parses the address information of current configuring area entrained in the said instruction;
Second converting unit 222 converts said address information the actual address of current configuring area in storer into, and this actual address is sent to storer, will deposit in the said current configuring area in order to the configuration parameter of upgrading for storer.
When instruction according to the configuration that loading equipemtn the sent upgrading that receives; Mode of operation is chosen as the configuration upgrade mode; And after entering into the process of configuration upgrading, at first, second resolution unit 221 will be resolved the instruction of received configuration upgrading; Parse the address information of the current configuring area of wherein entrained needs upgrading, the start address of configuring area in storer of each different editions that the address information refer to is here stored in storer.After successfully having carried out the configuration loading each time, all can in interface arrangement, the address information of this configuring area be stored, the configuring area in storer of this address information correspondence is just for successfully loading configuring area for the last time.
After the instruction of being received is parsed the address information of wherein entrained current configuring area; Just can obtain the actual address of this current configuring area in storer; Second converting unit 222 is changed this address information then; Convert the actual address of current configuring area in storer into; And the actual address after will changing is sent to storer, and storer just can find the current configuring area of its pairing needs upgrading according to this actual address, and will deposit in the current configuring area that is found in order to the configuration parameter of upgrading.Like this, just accomplished the process that loading equipemtn is configured upgrading.
After the process of loading equipemtn successfully having been carried out the configuration upgrading; Need the mode of operation of loading equipemtn be chosen as the configuration loading mode once more; With convenient at start-up loading equipment next time and when being configured the loading process, the carrying out that can directly be carried in the storer to be preserved the configuration parameter in the configuring area after the upgrading.
Entrained address information in the configuration upgrade that receives is resolved; And will resolve after resulting address information converts the actual address of current configuring area in storer into; This actual address is sent to storer; Storer just can be written to the configuration parameter in order to upgrading in this current configuring area, has so just accomplished the process that loading equipemtn is configured upgrading.At this moment, also need mode of operation be chosen as the configuration loading mode once more, so that be configured when loading the configuration parameter in the current configuring area after directly having carried out in the pseudostatic ram upgrading at loading equipemtn next time.Like this, just can improve the security and the reliability that firmware are configured upgrading, further improve the efficient of firmware upgrade simultaneously.
With reference to Figure 11, the system of firmware update of the present invention is proposed, this system comprises loading equipemtn and interface arrangement.
When needs are configured loading and configuration upgrading to loading equipemtn, can utilize the hardware capability of interface arrangement, utilize transparent visible method of operating, realize the firmware in the loading equipemtn is configured loading or disposes the process of upgrading.Adopt this interface arrangement that the firmware in the loading equipemtn is loaded or upgrade; Make that the step that configuration loads or configuration is upgraded is more simple; Improved the efficient that firmware configuration loads or configuration is upgraded; When configuration loads failure, can guarantee can not produce simultaneously because of loading the problem that failure causes equipment can't normally start, move.
Realize the firmware in the loading equipemtn is configured through interface arrangement and load or the configuration upgrading, can be referring to figs. 1 through the firmware update described in Figure 10 embodiment and the technical scheme of interface arrangement, do not do at this and to give unnecessary details.
The above is merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in scope of patent protection of the present invention.

Claims (12)

1. the method for a firmware update is characterized in that, said renewal comprises that configuration loads, and this configuration loads and comprises:
Receive the configuration load instructions that loading equipemtn sends;
According to said instruction, select mode of operation to be the configuration loading mode, and get into configuration loading process;
When configuration loads failure, the configuration parameter in the current configuring area is reset to the last configuration parameter in the configuring area that successfully loads.
2. update method as claimed in claim 1 is characterized in that, said entering configuration loading process specifically comprises:
Parse the address information of current configuring area entrained in the said instruction;
Convert said address information the actual address of current configuring area in storer into, and this actual address is sent to storer, export the configuration parameter in the said current configuring area according to said actual address for storer.
3. update method as claimed in claim 2 is characterized in that, before the address information in carrying out said parsing instruction, also comprises:
Open watchdog module carrying out timing, and the stand-by period is set loads whether success to judge configuration.
4. update method as claimed in claim 3 is characterized in that, said actual address is sent to storer carrying out, for storer according to this actual address export said current configuring area in configuration parameter after, also comprise:
When configuration loads successfully, close indication to said watchdog module transmission, and the base address of said current configuring area in storer saved as the last base address of configuring area in storer that successfully load.
5. update method as claimed in claim 1 is characterized in that, said renewal also comprises the configuration upgrading, and this configuration upgrading specifically comprises:
Receive the configuration upgrade that loading equipemtn sends;
According to said instruction, select mode of operation to be the configuration upgrade mode, and get into the configuration Upgrade process;
Being provided with the different configuring area in base address that successfully loads for the last time configuring area is current configuring area, and will write in the said current configuring area in order to the configuration parameter of upgrading.
6. update method as claimed in claim 5 is characterized in that, said configuration upgrading also comprises:
Parse the address information of current configuring area entrained in the said instruction;
Convert said address information the actual address of current configuring area in storer into, and this actual address is sent to storer, will deposit in the said current configuring area in order to the configuration parameter of upgrading for storer.
7. an interface arrangement that is used for firmware update is used for disposing loading or configuration upgrading, it is characterized in that, when being used for the configuration loading, comprising:
First receiver module is used to receive the configuration load instructions that loading equipemtn sends;
First gets into module, is used for according to said instruction, selects mode of operation to be the configuration loading mode, and gets into configuration loading process;
Reseting module is used for when configuration loads failure, the configuration parameter in the current configuring area is reset to successfully loads the configuration parameter in the configuring area for the last time.
8. interface arrangement as claimed in claim 7 is characterized in that, said first gets into module comprises:
First resolution unit is used for parsing the address information of the entrained current configuring area of said instruction;
First converting unit is used for converting said address information the actual address of current configuring area at storer into, and this actual address is sent to storer, exports the configuration parameter in the said current configuring area for storer according to said actual address.
9. interface arrangement as claimed in claim 8 is characterized in that, said interface arrangement also comprises:
Watchdog module is used for after getting into the configuration loading mode, carries out timing based on the set stand-by period, and when configuration loaded successfully, reception was closed and indicated and close timing; When configuration loads failure, send and load the failure indication to said reseting module.
10. interface as claimed in claim 7 connects to be put, and it is characterized in that, when being used for the configuration upgrading, comprising:
Second receiver module is used to receive the configuration upgrade that loading equipemtn sends;
Second gets into module, is used for according to said instruction, selects mode of operation to be the configuration upgrade mode, and gets into the configuration Upgrade process;
Module is set, and the different configuring area in base address that is used to be provided with successfully loading for the last time configuring area is current configuring area, and will write in the said current configuring area in order to the configuration parameter of upgrading.
Put 11. interface as claimed in claim 10 connects, it is characterized in that, said second gets into module comprises:
Second resolution unit is used for parsing the address information of the entrained current configuring area of said instruction;
Second converting unit is used for converting said address information the actual address of current configuring area at storer into, and this actual address is sent to storer, will deposit in the said current configuring area in order to the configuration parameter of upgrading for storer.
12. a firmware update system is characterized in that, comprises loading equipemtn and like the interface arrangement of claim 7~11.
CN2011103298273A 2011-10-26 2011-10-26 Method, device and system for firmware update Pending CN102426529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103298273A CN102426529A (en) 2011-10-26 2011-10-26 Method, device and system for firmware update

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103298273A CN102426529A (en) 2011-10-26 2011-10-26 Method, device and system for firmware update

Publications (1)

Publication Number Publication Date
CN102426529A true CN102426529A (en) 2012-04-25

Family

ID=45960519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103298273A Pending CN102426529A (en) 2011-10-26 2011-10-26 Method, device and system for firmware update

Country Status (1)

Country Link
CN (1) CN102426529A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106088A (en) * 2012-12-28 2013-05-15 上海斐讯数据通信技术有限公司 Hardware and firmware independently updating system and method thereof
CN104168125A (en) * 2013-05-16 2014-11-26 上海斐讯数据通信技术有限公司 Configuration method, system and configuration file execution method of multi-scheme optical line terminal
CN106873943A (en) * 2017-01-12 2017-06-20 深圳市优必选科技有限公司 Firmware upgrading method of embedded system
CN107391174A (en) * 2017-06-15 2017-11-24 广州视源电子科技股份有限公司 Control method and control device for online upgrading of system
CN108170444A (en) * 2016-12-06 2018-06-15 佛山市顺德区顺达电脑厂有限公司 Firmware updates debugging system
CN109800565A (en) * 2017-11-16 2019-05-24 深圳市优必选科技有限公司 Software upgrading method and terminal equipment
CN111656416A (en) * 2018-01-31 2020-09-11 富士通先端科技株式会社 Paper processing apparatus and PLD configuration method for paper processing apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1495610A (en) * 2002-09-13 2004-05-12 国际商业机器公司 Method and device for firmware renewal
US20060031666A1 (en) * 2004-08-03 2006-02-09 Kei Yasuda Data processing apparatus and firmware update method
CN101004691A (en) * 2007-01-23 2007-07-25 北京映翰通网络技术有限公司 Method and device for updating firmware program
CN101778376A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Method and device for realizing wireless firmware update

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1495610A (en) * 2002-09-13 2004-05-12 国际商业机器公司 Method and device for firmware renewal
US20060031666A1 (en) * 2004-08-03 2006-02-09 Kei Yasuda Data processing apparatus and firmware update method
CN101004691A (en) * 2007-01-23 2007-07-25 北京映翰通网络技术有限公司 Method and device for updating firmware program
CN101778376A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Method and device for realizing wireless firmware update

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106088A (en) * 2012-12-28 2013-05-15 上海斐讯数据通信技术有限公司 Hardware and firmware independently updating system and method thereof
CN103106088B (en) * 2012-12-28 2016-07-20 上海斐讯数据通信技术有限公司 Hardware firmware standalone upgrade system and method
CN104168125A (en) * 2013-05-16 2014-11-26 上海斐讯数据通信技术有限公司 Configuration method, system and configuration file execution method of multi-scheme optical line terminal
CN104168125B (en) * 2013-05-16 2018-01-30 上海斐讯数据通信技术有限公司 Collocation method, system and the configuration file of multi-scheme optical line terminal perform method
CN108170444A (en) * 2016-12-06 2018-06-15 佛山市顺德区顺达电脑厂有限公司 Firmware updates debugging system
CN106873943A (en) * 2017-01-12 2017-06-20 深圳市优必选科技有限公司 Firmware upgrading method of embedded system
CN106873943B (en) * 2017-01-12 2020-01-17 深圳市优必选科技有限公司 Firmware upgrading method of embedded system
CN107391174A (en) * 2017-06-15 2017-11-24 广州视源电子科技股份有限公司 Control method and control device for online upgrading of system
CN107391174B (en) * 2017-06-15 2020-12-04 广州视源电子科技股份有限公司 Control method and control device for online upgrading of system
CN109800565A (en) * 2017-11-16 2019-05-24 深圳市优必选科技有限公司 Software upgrading method and terminal equipment
CN111656416A (en) * 2018-01-31 2020-09-11 富士通先端科技株式会社 Paper processing apparatus and PLD configuration method for paper processing apparatus

Similar Documents

Publication Publication Date Title
CN102426529A (en) Method, device and system for firmware update
CN102012831B (en) Over-the-air technology (OTA) upgrading method based on Linux platform
CN101996087B (en) Dynamical loading method for multi-core processor array program
CN102376153B (en) The method of collector and carrier wave meter remote upgrade in automatic meter reading system
CN102662699A (en) Method for updating NFC (Near Field Communication) firmware of mobile terminal and mobile terminal
CN103024074B (en) DSP (digital signal processor) remote wireless upgrading method based on GPRS (general packet radio service)
CN102855146A (en) Firmware updating system and method
CN103023939A (en) Method and system for realizing REST (Radar Electronic Scan Technique) interface of cloud cache on Nginx
CN105991223A (en) Method and system for preventing packet splicing in TCP network data transmission
CN101567962A (en) Double-Loader updating method for set-top box
CN103379446A (en) Multi-terminal control method and device based on wifi
CN111813425A (en) Equipment upgrading method, device, equipment and storage medium
CN102799452A (en) Method and device for upgrading system software
CN104516809A (en) Automated testing system and method
CN102830995A (en) Method for upgrading Android platform software with user data reserved
CN101916200A (en) Method for terminal upgrading, method for backoff of terminal upgrading and upgrading management center
CN110175056A (en) A kind of control device and control method of heterogeneous platform Remote Dynamic load multiple target FPGA
CN101692249B (en) Method for performing data access on power demand side system
CN107315607A (en) One kind driving adaptive allocation system
CN104750516A (en) Upgrading method for terminal equipment operating system
CN103870319A (en) Method and device for information processing and electronic device
CN101621792A (en) Method for upgrading telesoftware of wireless fixed phone terminal
CN108572837A (en) Software upgrading method and device, readable storage medium and computer equipment
CN102571491B (en) Method and device for detecting whether network is usable
CN102917267A (en) Set-top box upgrading method and device

Legal Events

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

Application publication date: 20120425