CN108491217A - A kind of upgrade method and equipment of configuration file - Google Patents

A kind of upgrade method and equipment of configuration file Download PDF

Info

Publication number
CN108491217A
CN108491217A CN201810182164.9A CN201810182164A CN108491217A CN 108491217 A CN108491217 A CN 108491217A CN 201810182164 A CN201810182164 A CN 201810182164A CN 108491217 A CN108491217 A CN 108491217A
Authority
CN
China
Prior art keywords
file
system configuration
differential
destination
equipment
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
CN201810182164.9A
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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology 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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201810182164.9A priority Critical patent/CN108491217A/en
Publication of CN108491217A publication Critical patent/CN108491217A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of upgrade method of configuration file and equipment, and functional configuration information and user configuration information are lost when for solving the problems, such as configuration file upgrading in the prior art.The embodiment of the present invention is when the configuration file to equipment upgrades, the first differential file is generated according to system configuration upgrade file to be compared with the system configuration local file being locally stored, then the first differential file and system configuration current file are merged, form system configuration file destination, so that equipment is restarted using system configuration file destination, and system configuration file destination includes user configuration information, functional configuration information, the information in information and the first differential file in the system configuration local file being locally stored, to which user configuration information and functional configuration information can be retained when carrying out configuration file upgrading, reduce the fussy degree of user configuration, the pressure of server is also reduced simultaneously.

Description

A kind of upgrade method and equipment of configuration file
Technical field
The present invention relates to field of computer technology, more particularly to the upgrade method and equipment of a kind of configuration file.
Background technology
With the continuous development of computer technology, in order to improve the function of some equipment, enhance the stability of equipment, repair The loophole of equipment, it usually needs the configuration file of equipment is upgraded.
In the prior art, when upgrading to configuration file, the method for generally use is Server remote matching upgrading It sets file and is sent to equipment;After equipment receives configuration upgrade file, with configuring, upgrade file replacement equipment is currently used to match File is set, then restarting equipment, updated configuration file is loaded into caching by equipment.
When configuration file upgrades, since the currently used configuration file of equipment includes functional configuration information and user configuration Information, and the information of functions of the equipments configuration information and user configuration be do not need it is newer, it is in the prior art that equipment is current The configuration file update used, can cause the information of functional configuration information and user configuration to be lost, thus need user again It is configured, server issues functions of the equipments configuration information to equipment again.
Since user needs to re-start configuration, the fussy degree of configuration is increased;It needs to be each to set due to server It is standby to re-issue functional configuration information, if a wide range of upgrading, needs the enormous amount of equipment upgraded, server that can issue largely Functional configuration information, to which the pressure of server can be increased.
Therefore, the information of functional configuration information and user configuration can be lost when configuration file upgrades at present.
Invention content
The present invention provides a kind of method and apparatus of configuration file upgrading, to solve configuration text existing in the prior art When part upgrades, the problem of information of functional configuration information and user configuration is lost.
In a first aspect, a kind of method of configuration file upgrading provided in an embodiment of the present invention includes:
The system configuration upgrade file received is compared with the system configuration local file being locally stored, generates the One differential file;
According to first differential file and system configuration current file, system configuration file destination is generated, wherein described System configuration current file includes the information in user configuration information, functional configuration information and the system configuration local file;
Reboot operation simultaneously loads the system configuration file destination.
Second aspect, the embodiment of the present invention also provide a kind of equipment of configuration file upgrading, which is characterized in that the equipment packet Include contrast module, synthesis module and operation module:
Contrast module, for comparing the system configuration file of reception with the system configuration local file being locally stored It is right, generate the first differential file;
Synthesis module, for according to first differential file and system configuration current file, generating system configuration target File, wherein the system configuration current file includes that user configuration information, functional configuration information and the system configuration are local Information in file;
Operation module for reboot operation and loads the system configuration file destination.
The embodiment of the present invention by the system configuration upgrade file received and the system configuration local file that is locally stored into Row compares, and generates the first differential file;According to the first differential file and system configuration current file, system configuration target text is generated Part, wherein the system configuration current file includes the local text of user configuration information, functional configuration information and the system configuration Information in part;Equipment is restarted, and loading system configures file destination after restart.By the above content it is found that the present invention is implemented Example is when the configuration file to equipment upgrades, according to system configuration upgrade file and the system configuration being locally stored is local File, which is compared, generates the first differential file, and the first differential file here is exactly system configuration upgrade file and is locally stored The difference content of system configuration local file form system then according to the first differential file and system configuration current file Configure file destination so that equipment is restarted using system configuration file destination, and to include user match system configuration file destination Information in confidence breath, functional configuration information, the system configuration local file that is locally stored and the letter in the first differential file Breath reduces user configuration to retain user configuration information and functional configuration information when carrying out configuration file upgrading Fussy degree, while also reducing the pressure of server.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is the method flow schematic diagram that configuration file of the embodiment of the present invention is upgraded;
Fig. 2 is the entire flow schematic diagram for the method that configuration file of the embodiment of the present invention is upgraded;
Fig. 3 is the structural schematic diagram for the equipment that the first configuration file of the embodiment of the present invention is upgraded;
Fig. 4 is the structural schematic diagram for the equipment that second of configuration file of the embodiment of the present invention is upgraded.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
The embodiment of the present invention is described in further detail with reference to the accompanying drawings of the specification.
A kind of configuration file upgrade method provided in an embodiment of the present invention, as shown in Figure 1, specifically including following steps:
S100, the system configuration upgrade file received is compared with the system configuration local file being locally stored, Generate the first differential file;
S101, according to first differential file and system configuration current file, generate system configuration file destination, wherein The system configuration current file includes the letter in user configuration information, functional configuration information and the system configuration local file Breath;
S102, reboot operation simultaneously load the system configuration file destination.
The embodiment of the present invention by the system configuration upgrade file received and the system configuration local file that is locally stored into Row compares, and generates the first differential file;According to the first differential file and system configuration current file, system configuration target text is generated Part, wherein the system configuration current file includes the local text of user configuration information, functional configuration information and the system configuration Information in part;Equipment is restarted, and loading system configures file destination after restart.By the above content it is found that the present invention is implemented Example is when the configuration file to equipment upgrades, according to the system configuration upgrade file that will be received and the system being locally stored Configuration local file, which is compared, generates the first differential file, the first differential file here be exactly system configuration upgrade file and The difference content of system configuration local file, then according to the first differential file and system configuration current file, formation system is matched Set file destination so that equipment is restarted using system configuration file destination, and system configuration file destination includes user configuration Information in information, functional configuration information, the system configuration local file that is locally stored and the information in the first differential file, To which user configuration information and functional configuration information can be retained when carrying out configuration file upgrading, reduce the numerous of user configuration Trivial degree, while also reducing the pressure of server.
Wherein, system configuration upgrade file can be that Server remote is sent to equipment, can also be that equipment is locally raw At, for example system configuration upgrade file can be generated by Web page.If system configuration upgrade file is Server remote hair It send, is then remote upgrade, if what system configuration upgrade file was locally generated, for local upgrade.
User configuration information include user need some information, such as procedural item, screen color, network is locally configured Connection, printer connection, mouse setting etc..
Functional configuration information includes the demand configuration information of user, such as some equipment, and some users need IP electric Function is talked about, some does not need then, and IP phone function is the functional configuration file of equipment at this time.
The system configuration current file that equipment uses includes user configuration information, functional configuration information and described is locally stored System configuration local file in information.
If necessary to change user configuration information, then the user configuration information in system configuration current file is directly changed;
If necessary to change functional configuration information, then the functional configuration information in system configuration current file is directly changed;
If necessary to change system configuration local file, the prior art can be replaced directly with the system configuration upgrade file received The system configuration current file used is changed, to cause user configuration information and functional configuration information to lose.
And the embodiment of the present invention is with the first differential file obtained according to the system configuration upgrade file received and use System configuration current file synthesized, so that user configuration information can also be retained while system configuration file upgrades With functional configuration information.
Equipment can be any equipment that can be upgraded by configuration file, such as ONU in the embodiment of the present invention (Optical Network Onit, optical network unit) equipment, smart television etc..
The embodiment of the present invention can be applied in MTK (Media Tek, MediaTek Inc.) platform, by being protected in the independent partitions MTK The upgrading for realizing configuration file on the frame of configuration file is stayed, can also be applied in other platforms, such as Botong's platform.
In force, system configuration upgrade file, the system configuration local file being locally stored, system configuration ought be above Part, system configuration file destination and some differential files will be stored in different positions, these positions can be different point Area can also be data block different in identical subregion, as long as with the subregion of storage program area as long as in the same subregion It can be with because being based on security consideration, for Embedded operating system half in Reading Sections, the part of storage program area is empty Between cannot change, be Reading Sections, and configuration file upgrade when, need to be stored in write partitions, thus configuration file upgrade When, the subregion of save file cannot be with operating system in the same subregion.
Here subregion is the boundary and PC (Personal that kernel is based on that FLASH (flash of light) physical address delimited Computer, personal computer) subregion it is different, the subregion of PC is generally based on sector.
The embodiment of the present invention is with system configuration upgrade file, system configuration local file, system configuration current file, system Configuration file destination and some differential files illustrate for being stored in different subregions.
Below to system configuration upgrade file, system configuration local file, system configuration current file, system configuration target The different subregions that file and some differential files preserve are defined.
SYSTEM (system) subregion:Storage system configuration upgrade file, permission are read-only;
CONFIG_0 (configuration _ 0) subregion:Storage system configuration current file or system configuration file destination, permission are Read-write;
CONFIG_1 (configuration _ 1) subregion:Storage system configuration current file or system configuration file destination, permission are Read-write;
Wherein CONFIG_0 subregions and CONFIG_1 subregions backups each other;
CONFIG_FLAG (configuration _ mark) subregion:Store function selecting switch, the position for selecting booting configuration file It sets, permission is read-write;
CONFIG_BACK (configuration _ retroversion) subregion:Storage system configuration local file, permission are read-write;
TMP (Temporary, interim) subregion:The intermediate file generated of storage, permission are read-write.
System configuration upgrade file is compared the equipment of the embodiment of the present invention with system configuration local file, generates the One differential file.
Here the first differential file that comparison generates include system configuration upgrade file and system configuration local file it Between difference content.
In force, the mode of comparison has very much, below by taking equipment is ONU equipment as an example:
ONU equipment can be by system configuration upgrade file storage to SYSTEM subregions after receiving system configuration upgrade file In;
When being compared, the system configuration upgrade file in SYSTEM subregions is copied in TMP/config_new;
The system configuration local file preserved in CONFIG_BACK subregions is copied in TMP/config_old;
Then both of these documents are compared using comparison tool:
For example it is run using diff (comparing text based documents) tool with the comparison realized to both of these documents of issuing orders:
diff-u config_new config_old>patch
The patch files generated with diff tools are the first differential file, later can be stored in patch files In TMP/patch.
Due to the first differential file of generation is possible to format can be problematic, so using can before the first differential file It is verified with the format to the first differential file.
A kind of feasible verification mode is:Call the interface of a generation/checking file verification sum.
If the format of the first differential file is incorrect, illustrates that system configuration upgrade file is problematic, need to exit text at this time Part upgrade-system;
If the format of the first differential file is correct, illustrate that there is no problem for system configuration upgrade file, then by the first difference text Part and system configuration local file merge.
Wherein, if equipment is ONU equipment, after examining the format of the first differential file correct, TMP/config_ is deleted System configuration upgrade file in new, and delete the system configuration local file in TMP/config_old.
Optionally, according to first differential file and system configuration current file, system configuration file destination is generated.
Here the first differential file and system configuration local file are merged, is really matched by differential file and including user The system configuration current file of confidence breath, functional configuration information and the information in system configuration local file merges.
By taking equipment is ONU equipment as an example, specific practice is as follows:
Assuming that is stored in CONFIG_0 subregions is system configuration current file;
When merging, the system configuration current file stored in CONFIG_0 subregions is copied to TMP/config_old In;
First differential file patch files are stored in TMP/patch;
Then both of these documents are merged using merging tool:
For example it is run using patch (patch) merging tool with the merging realized to both of these documents of issuing orders:
$patch<patch;
System configuration file destination is generated with patch tools, system configuration file destination can be stored in TMP/ In config_new.
Due to the system configuration file destination of generation is possible to format can be problematic, so using system configuration target text The format of system configuration file destination is verified before part.If to system configuration destination file format authentication failed, say Bright system configuration destination file format is problematic, then needs to exit configuration file upgrade-system.
If being proved to be successful to system configuration destination file format, illustrate that there is no problem for system configuration destination file format, then It will be in the storage to CONFIG_1 subregions of system configuration file destination.
Optionally, the format of the system configuration file destination is verified in the following manner:
The system configuration file destination and system configuration current file are compared, the second differential file is generated;
First differential file and second differential file are compared, third differential file is generated;
Judge whether the third differential file content is empty, if it is, system configuration file destination verification is logical It crosses, otherwise authentication failed.
Here third differential file is the difference content between the first differential file and the second differential file.
Wherein, the first differential file is the difference content between system configuration upgrade file and system configuration local file;
Second differential file is the difference content between system configuration file destination and system configuration current file, wherein being File destination under unified central planning of setting is file made of system configuration current file merges with the first differential file.
Because system configuration file destination is made of being merged by the first differential file and system configuration current file, will to be It is under unified central planning to set file destination and system configuration current file is compared and generates the second differential file, actually the first differential file and Second differential file is the same, that is, the first differential file and the second differential file comparison content should be sky.
If the comparison content of the first differential file and the second differential file is sky, that is, third differential file is sky, Then illustrate that system configuration destination file format is correct;
If the comparison content of the first differential file and the second differential file is not sky, that is, third differential file is not Sky then illustrates that system configuration destination file format is incorrect.
Below by taking ONU equipment as an example, the specific practice verified to the format of system configuration file destination is as follows:
System configuration current file is stored in TMP/config_old;
System configuration file destination is stored in TMP/config_new;
Then both of these documents are compared using comparison tool:
For example it is run using diff tools with the comparison realized to both of these documents of issuing orders:
diff-u config_new config_old>patch_check
The patch_check files generated with diff tools are the second differential file, later can be by patch_ Check files are stored in TMP/patch_check.
System configuration file destination and system configuration current file, which are compared, generates the second differential file patch_check Afterwards, the second differential file and the first differential file are compared, the first differential file is system configuration upgrade file and system It configures local file and compares the file generated.
First differential file is stored in TMP/patch;
Second differential file is stored in TMP/patch_check;
Both of these documents are compared using comparison tool:
For example it is run using diff tools with the comparison realized to both of these documents of issuing orders:
diff-u patch_ccpatch>check
The check files generated with diff tools are third differential file, if check files are sky, verification is logical It crosses, otherwise authentication failed.
After the format verification to system configuration file destination passes through, it is necessary to make equipment loading system configuration target literary Part.The mode of load is exactly to need restarting equipment.
It needs the reading position to the system configuration file that is switched on to be revised as system configuration file destination before restarting equipment to deposit System configuration file destination is read in the position of storage to realize after equipment is restarted.
Optionally, the system configuration file destination is stored to the of the reading position to instruction boot system configuration file In one address.
Equipment loading system configures file destination, and by taking ONU equipment as an example, concrete operations are as follows:
The system configuration file destination stored in TMP/config_new is covered in CONFIG_1 subregions, it will Functional select switch config_flag in CONFIG_FLAG subregions becomes 1 from 0, and equipment is restarted.
When functional select switch config_flag is 1, the file in CONFIG_1 can be loaded when equipment is restarted.
Equipment carries out reboot operation, and loading system configures file destination after restart.
After equipment loading system configures file destination, need verification upgrade status whether normal.
If upgrading to remote upgrade, i.e., system configuration upgrade file is that server is sent to equipment, then equipment can be with After restart upgrading verification message is sent to server.
Equipment judges the upgrading verification corresponding message of server return whether can be received within the set duration, if connect It receives and then determines that upgrade status is normal, otherwise determine that upgrade status is abnormal.
It is able to verify that the whether normal mode of upgrade status all in addition to the mode given above for sending information authentication is any It is applicable in the embodiment of the present invention.
If upgrading to local upgrade, i.e., system configuration upgrade file is that equipment locally generates, then need repairing personnel Examine upgrade status whether normal, than such as whether can surf the Internet, whether various functions being capable of normal operations etc..
Optionally, if system is normal after the load system configuration file destination, by system configuration local File replaces with the system configuration file destination;Otherwise it will indicate that the reading position of boot system configuration file is revised as second Address, and restart, wherein the file stored in second address is the system configuration current file.
Loading configuration file is needed when equipment is restarted, according to the difference of selecting switch, the configuration file of load is different, than Such as, when functional select switch config_flag is 0, what is loaded when equipment is restarted is the configuration file in CONFIG_0 subregions, work( When energy selecting switch config_flag is 1, what equipment restarted load is the configuration file in CONFIG_1 subregions.
If the currently used device configuration file of equipment is stored in CONFIG_0 subregions, then configuration file is upgraded When, the first differential file and system configuration current file merge and generate system configuration file destination, and are stored in CONFIG_ In 1 subregion, equipment is restarted, and functional select switch config_flag becomes 1 from 0, and equipment loads the system in CONFIG_1 subregions Configure file destination.
If configuration file upgrades successfully, the state that functional select switch config_flag is in 1 is constant, ensures equipment What is loaded when booting is the system configuration file destination in CONFIG_1 subregions;
If configuration file upgrading failure, functional select switch config_flag become 0 from 1, equipment is restarted, load System configuration current file in CONFIG_0 subregions.
Configuration file upgrades successfully, and when subsequently upgrading again, system configuration current file is to be preserved in CONFIG_1 subregions Configuration file, system configuration upgrade file and the system configuration local file being locally stored, which are compared, generates the 4th difference text The currently used system configuration current file preserved in 4th differential file and CONFIG_1 subregions is merged generation by part New system configuration file destination is stored in CONFIG_0 subregions, functional select switch by new system configuration file destination Config_flag becomes 0 from 1, and equipment is restarted, and loads the new system configuration file destination in CONFIG_0 subregions.
If configuration file upgrades successfully, the state that functional select switch config_flag is in 0 is constant, ensures equipment What is loaded when booting is the new system configuration file destination in CONFIG_0 subregions;
If configuration file upgrading failure, functional select switch config_flag become 1 from 0, equipment is restarted, load Currently used system configuration current file in CONFIG_1 subregions.
It, can basis if configuration file upgrades to remote upgrade【TR069】Agreement is operated, and specific practice is as follows:
Device-to-server sends Event " M Download " (event " M downloads ") and Event " Transfer The message of Complete " (event " being transmitted ");
Server returns to Event " Transfer Complete Response " (event " biographies to equipment within the set duration Be totally lost into reply ") message;
It can be 200 periods to set duration, 5 minutes, can also be adjusted according to actual conditions;
If equipment does not receive Event " the Transfer Complete Response " reports of server return in setting duration Text illustrates equipment not in remote server control range, it is determined that configuration file upgrading failure, need be before loading upgrading It is under unified central planning to set current file.
If configuration file upgrades to local upgrade, after generating system configuration file destination, equipment loading system configures mesh Mark file is restarted and timing, and maintenance personal confirms that device upgrade is in good condition about in 3-5 minutes detection device upgrade status, The submitting button on the page is clicked, upgrading is completed;If detection device upgrade status is problematic, for example the problematic upgrading of upgrade package is lost It loses, or display upgrading is normal, but equipment cisco unity malfunction, then the personnel's manual termination that needs repairing upgrading, equipment terminate After upgrading, the device configuration file before automatic loading upgrading carries out reboot operation.
By taking ONU equipment as an example, following operation will be carried out when configuration file remote upgrade fails:
Functional select switch config_flag in CONFIG_FLAG subregions becomes 0 from 1;
What is stored in CONFIG_0 subregions is the system configuration current file that equipment uses before device upgrade;
Equipment is restarted, the system configuration current file that equipment uses before the device upgrade in load CONFIG_0 subregions.
If that is, configuration file upgrading failure, what equipment loaded after restarting is that the system that the preceding equipment of upgrading uses is matched Current file is set, the configuration file of equipment is not changed.
If equipment receives Event " the Transfer Complete Response " reports of server return in setting duration Text illustrates equipment in remote server control range, it is determined that configuration file upgrades successfully, and loading system is needed to configure target File.
It determines after upgrading successfully, by taking ONU equipment as an example, specific practice is as follows:
The system configuration upgrade file stored in SYSTEM subregions is covered the system stored in CONFIG_BACK subregions to match Set local file.
As shown in Fig. 2, a kind of complete method of configuration file upgrading provided in an embodiment of the present invention includes:
System configuration upgrade file and the system configuration local file being locally stored are compared step 200, generate the One differential file;
Whether step 201, the format for verifying the first differential file are correct, if correctly, thening follow the steps 202, otherwise executing Step 209;
Step 202 merges the first differential file and system configuration current file, generates system configuration target text Part;
System configuration file destination and system configuration current file are compared step 203, generate the second difference text Part;
First differential file and the second differential file are compared step 204, generate third differential file;
Step 205 examines whether third differential file is empty, if it is empty, thens follow the steps 206, no to then follow the steps 209;
Step 206 carries out restarting rear loading system configuration file destination;
Step 207 judges whether upgrade status is normal, if normal, thens follow the steps 209, no to then follow the steps 208;
Step 208 restarts rear loading system configuration current file;
Step 209 exits configuration file upgrade-system.
Based on same inventive concept, a kind of equipment of configuration file upgrading is additionally provided in the embodiment of the present invention, due to this The principle that equipment solves the problems, such as is similar to progress of the embodiment of the present invention method of configuration file upgrading, therefore the implementation of the equipment can With referring to the implementation of method, overlaps will not be repeated.
As shown in figure 3, the embodiment of the present invention provides a kind of equipment of configuration file upgrading, including:At least one processing is single Member 300 and at least one storage unit 301, wherein the storage unit 301 has program stored therein code, when described program generation When code is executed by the processing unit 300 so that the processing unit 300 executes following process:
The system configuration upgrade file received is compared with the system configuration local file being locally stored, generates the One differential file;According to first differential file and system configuration current file, system configuration file destination, wherein institute are generated It includes the letter in user configuration information, functional configuration information and the system configuration local file to state system configuration current file Breath;Reboot operation system simultaneously loads the system configuration file destination.
Optionally, the processing unit 300 is additionally operable to:
After generating system configuration file destination, the format of the system configuration file destination is verified.
Optionally, the processing unit 300 is additionally operable to:
The format of the system configuration file destination is verified in the following manner:
The system configuration file destination and system configuration current file are compared, the second differential file is generated;It will First differential file and second differential file are compared, and third differential file is generated;Judge the third difference Whether file content is empty, if it is, the system configuration file destination is verified, otherwise authentication failed.
Optionally, the processing unit 300 is additionally operable to:
The system configuration file destination is stored to the first ground of the reading position of instruction boot system configuration file In location.
Optionally, the processing unit 300 is additionally operable to:
If system is normal after the load system configuration file destination, the system configuration local file is replaced For the system configuration file destination;Otherwise it will indicate that the reading position of boot system configuration file is revised as the second address, and Restart, wherein the file stored in second address is the system configuration current file.
Based on same inventive concept, a kind of equipment of configuration file upgrading is additionally provided in the embodiment of the present invention, due to this The principle that equipment solves the problems, such as is similar to progress of the embodiment of the present invention method of configuration file upgrading, therefore the implementation of the equipment can With referring to the implementation of method, overlaps will not be repeated.
As shown in figure 4, the embodiment of the present invention provides a kind of equipment of configuration file upgrading, including contrast module 400, it closes At module 401 and operation module 402:
Contrast module 400, system configuration upgrade file for will be received and the local text of the system configuration being locally stored Part is compared, and generates the first differential file;;
Synthesis module 401, for according to first differential file and system configuration current file, generating system configuration mesh File is marked, wherein the system configuration current file includes user configuration information, functional configuration information and the system configuration sheet Information in ground file;
Operation module 402 is for reboot operation system and loads the system configuration file destination.
Optionally, the synthesis module 401 is additionally operable to:
After generating the system configuration file destination, it is logical that verification is carried out to the format of the system configuration file destination It crosses.
Optionally, the synthesis module 401 is additionally operable to:
The format of the system configuration file destination is verified in the following manner:
The system configuration file destination and system configuration current file are compared, the second differential file is generated;It will First differential file and second differential file are compared, and third differential file is generated;Judge the third difference Whether file content is empty, if it is, the system configuration file destination is verified, otherwise authentication failed.
Optionally, the operation module 402 is additionally operable to:
By system configuration file destination storage to the first address of the reading position of instruction boot system configuration file In.
Optionally, the operation module 402 is additionally operable to:
If system is normal after the load system configuration file destination, the system configuration local file is replaced For the system configuration file destination;Otherwise it will indicate that the reading position of boot system configuration file is revised as the second address, and Restart, wherein the file stored in second address is the system configuration current file.
The embodiment of the present invention also provides a kind of computer-readable non-volatile memory medium, including program code, when described When program code is run on the computing device, said program code is for making the computing device execute present invention method The step of method that middle configuration file is upgraded.
Above by reference to showing according to the method, apparatus (system) of the embodiment of the present application and/or the frame of computer program product Figure and/or flow chart describe the application.It should be understood that can realize that block diagram and or flow chart is shown by computer program instructions The combination of one block of figure and the block of block diagram and or flow chart diagram.These computer program instructions can be supplied to logical With computer, the processor of special purpose computer and/or other programmable data processing units, to generate machine so that via meter The instruction that calculation machine processor and/or other programmable data processing units execute creates for realizing block diagram and or flow chart block In specified function action method.
Correspondingly, the application can also be implemented with hardware and/or software (including firmware, resident software, microcode etc.).More Further, the application can take computer usable or the shape of computer program product on computer readable storage medium Formula has the computer realized in the medium usable or computer readable program code, to be made by instruction execution system It is used with or in conjunction with instruction execution system.In the present context, computer can be used or computer-readable medium can be with It is arbitrary medium, can includes, store, communicating, transmitting or transmitting program, is made by instruction execution system, device or equipment With, or instruction execution system, device or equipment is combined to use.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of upgrade method of configuration file, which is characterized in that this method includes:
The system configuration upgrade file received is compared with the system configuration local file being locally stored, it is poor to generate first Different article part;
According to first differential file and system configuration current file, system configuration file destination is generated, wherein the system Configuration current file includes the information in user configuration information, functional configuration information and the system configuration local file;
Reboot operation system simultaneously loads the system configuration file destination.
2. the method as described in claim 1, which is characterized in that after the generation system configuration file destination, carry out restarting behaviour Before work, further include:
The format of the system configuration file destination is verified.
3. method as claimed in claim 2, which is characterized in that in the following manner to the lattice of the system configuration file destination Formula is verified:
The system configuration file destination and system configuration current file are compared, the second differential file is generated;
First differential file and second differential file are compared, third differential file is generated;
Judge whether the third differential file content is empty, if it is, the system configuration file destination is verified, it is no Then authentication failed.
4. the method as described in claim 1, which is characterized in that after the generation system configuration file destination, restarted Before operation, further include:
It will be in system configuration file destination storage to the first address of the reading position of instruction boot system configuration file.
5. method as claimed in claim 4, which is characterized in that it is described load after restart the system configuration file destination it Afterwards, further include:
If system is normal after the load system configuration file destination, the system configuration local file is replaced with into institute State system configuration file destination;Otherwise it will indicate that the reading position of boot system configuration file is revised as the second address, and restart, The file stored in wherein described second address is the system configuration current file.
6. a kind of equipment of configuration file upgrading, which is characterized in that the equipment is used for:
Contrast module, the system configuration upgrade file for will be received compare with the system configuration local file being locally stored It is right, generate the first differential file;
Synthesis module, for according to first differential file and system configuration current file, generating system configuration file destination, The wherein described system configuration current file includes in user configuration information, functional configuration information and the system configuration local file Information;
Operation module for reboot operation system and loads the system configuration file destination.
7. equipment as claimed in claim 6, which is characterized in that the synthesis module is additionally operable to:
After generating the system configuration file destination, the format of the system configuration file destination is verified.
8. equipment as claimed in claim 7, which is characterized in that the synthesis module is additionally operable to, in the following manner to described The format of system configuration file destination is verified:
The system configuration file destination and system configuration current file are compared, the second differential file is generated;It will be described First differential file and second differential file are compared, and third differential file is generated;Judge the third differential file Whether content is empty, if it is, the system configuration file destination is verified, otherwise authentication failed.
9. equipment as claimed in claim 6, which is characterized in that the operation module is additionally operable to:
It will be in system configuration file destination storage to the first address of the reading position of instruction boot system configuration file.
10. equipment as claimed in claim 9, which is characterized in that the operation module is additionally operable to:
If system is normal after the load system configuration file destination, the system configuration local file is replaced with into institute State system configuration file destination;Otherwise it will indicate that the reading position of boot system configuration file is revised as the second address, and restart, The file stored in wherein described second address is the system configuration current file.
CN201810182164.9A 2018-03-06 2018-03-06 A kind of upgrade method and equipment of configuration file Pending CN108491217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810182164.9A CN108491217A (en) 2018-03-06 2018-03-06 A kind of upgrade method and equipment of configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810182164.9A CN108491217A (en) 2018-03-06 2018-03-06 A kind of upgrade method and equipment of configuration file

Publications (1)

Publication Number Publication Date
CN108491217A true CN108491217A (en) 2018-09-04

Family

ID=63341314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810182164.9A Pending CN108491217A (en) 2018-03-06 2018-03-06 A kind of upgrade method and equipment of configuration file

Country Status (1)

Country Link
CN (1) CN108491217A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582288A (en) * 2018-11-30 2019-04-05 阿里巴巴集团控股有限公司 A kind of method, system and storage medium producing configuration reflux
CN109597639A (en) * 2018-12-04 2019-04-09 深圳市创维软件有限公司 A kind of method for upgrading software, device, equipment and medium
CN109656577A (en) * 2018-12-07 2019-04-19 陕西瑞迅电子信息技术有限公司 A kind of method and device of the customized ROM of industrial personal computer
CN109800022A (en) * 2019-01-25 2019-05-24 郑州云海信息技术有限公司 A kind of method, system, terminal and the storage medium of automation comparison BIOS information difference
CN111078257A (en) * 2019-12-19 2020-04-28 杭州安恒信息技术股份有限公司 Loading method and related device of H5 application package
CN112803957A (en) * 2019-11-14 2021-05-14 中国电信股份有限公司 Data processing method and system, embedded user card and terminal
CN113138809A (en) * 2021-04-30 2021-07-20 广东天波信息技术股份有限公司 Method and system for safely switching working modes of terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700920A (en) * 2016-01-05 2016-06-22 深圳市创想天空科技股份有限公司 Simulator operating system upgrading system and method
CN107368331A (en) * 2017-06-26 2017-11-21 聚好看科技股份有限公司 The configuration file update method and device of application program
CN107547239A (en) * 2016-10-27 2018-01-05 腾讯科技(深圳)有限公司 Configure the update method and device of object

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700920A (en) * 2016-01-05 2016-06-22 深圳市创想天空科技股份有限公司 Simulator operating system upgrading system and method
CN107547239A (en) * 2016-10-27 2018-01-05 腾讯科技(深圳)有限公司 Configure the update method and device of object
CN107368331A (en) * 2017-06-26 2017-11-21 聚好看科技股份有限公司 The configuration file update method and device of application program

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582288A (en) * 2018-11-30 2019-04-05 阿里巴巴集团控股有限公司 A kind of method, system and storage medium producing configuration reflux
CN109582288B (en) * 2018-11-30 2022-02-15 创新先进技术有限公司 Method, system and storage medium for producing configuration reflux
CN109597639A (en) * 2018-12-04 2019-04-09 深圳市创维软件有限公司 A kind of method for upgrading software, device, equipment and medium
CN109656577A (en) * 2018-12-07 2019-04-19 陕西瑞迅电子信息技术有限公司 A kind of method and device of the customized ROM of industrial personal computer
CN109656577B (en) * 2018-12-07 2022-02-25 陕西瑞迅电子信息技术有限公司 Method and device for customizing ROM by industrial personal computer
CN109800022A (en) * 2019-01-25 2019-05-24 郑州云海信息技术有限公司 A kind of method, system, terminal and the storage medium of automation comparison BIOS information difference
CN112803957A (en) * 2019-11-14 2021-05-14 中国电信股份有限公司 Data processing method and system, embedded user card and terminal
CN111078257A (en) * 2019-12-19 2020-04-28 杭州安恒信息技术股份有限公司 Loading method and related device of H5 application package
CN111078257B (en) * 2019-12-19 2023-09-08 杭州安恒信息技术股份有限公司 H5 application package loading method and related device
CN113138809A (en) * 2021-04-30 2021-07-20 广东天波信息技术股份有限公司 Method and system for safely switching working modes of terminal

Similar Documents

Publication Publication Date Title
CN108491217A (en) A kind of upgrade method and equipment of configuration file
US11093230B2 (en) Consistent operating system servicing for distributed nodes
US20180075242A1 (en) Customer-Owned Trust of Device Firmware
CN110430087A (en) The architecture design and realization of block chain heat upgrading
CN104657174A (en) Method and device for dynamically realizing application function
US20090017812A1 (en) Method and system for restoring user settings after over-the-air update of mobile electronic device software
KR102358470B1 (en) Boot loader update firmware, method for updating boot loader
CN105808292A (en) Firmware upgrade method of embedded terminal device
CN105138347A (en) Difference upgrade patch generating method, software upgrading method and corresponding apparatus
CN107680295A (en) Automatic teller machine control update method and device
WO2011006378A1 (en) Method and system for upgrading wireless data card
CN104951308B (en) The management optimization mode and device of Docker Registry
CN102945177A (en) Programmable logic controller (PLC) firmware upgrading system and method
CN106325929A (en) Firmware upgrading method, firmware upgrading device, refrigerator and server side
CN109062598A (en) A kind of safe OTA upgrade method and system
CN107908417A (en) Firmware upgrade method and electronic equipment
CN108270846A (en) The mancarried device of secure operating system Dynamical Deployment is supported under a kind of cloud environment
CN109918096A (en) A kind of installation method of server operating system, system and associated component
CN102880478B (en) Oftware updating method
JP2011150499A (en) Thin client system, thin client terminal, and thin client program
US20090144722A1 (en) Automatic full install upgrade of a network appliance
CN105589718A (en) System updating method and updating apparatus for intelligent device
CN106301877A (en) The upgrade method of a kind of Virtual NE and device
EP1818825A2 (en) Information processing device, method and program for controlling information processing device
CN109597639A (en) A kind of method for upgrading software, device, equipment and medium

Legal Events

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

Application publication date: 20180904

RJ01 Rejection of invention patent application after publication