CN110188004A - A kind of double copies software system management method and system of terminal device - Google Patents

A kind of double copies software system management method and system of terminal device Download PDF

Info

Publication number
CN110188004A
CN110188004A CN201910472391.XA CN201910472391A CN110188004A CN 110188004 A CN110188004 A CN 110188004A CN 201910472391 A CN201910472391 A CN 201910472391A CN 110188004 A CN110188004 A CN 110188004A
Authority
CN
China
Prior art keywords
area
software
control information
information area
component
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
CN201910472391.XA
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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201910472391.XA priority Critical patent/CN110188004A/en
Publication of CN110188004A publication Critical patent/CN110188004A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of double copies software system management method and system of terminal device, it is related to software technology field, the present invention has carried out double copies to the control information area, in combination with the Process Design for reading and updating, when this method can guarantee to malfunction in escalation process, it is also effective always to control the information area, so as to correctly select effective software systems, it avoids and controls the risk that the information area is likely to be broken in conventional method, it applies in home gateway, intelligent gateway, PON terminal, set-top box, in the terminal devices such as convergent terminal, it can be under the premise of meeting the O&M demand of upgrading partial software component, reduce upgrade failure risk, improve reliability.

Description

A kind of double copies software system management method and system of terminal device
Technical field
The present invention relates to software technology fields, and in particular to a kind of double copies software system management method of terminal device and System.
Background technique
The terminal devices such as home gateway, intelligent gateway, PON terminal, set-top box, convergent terminal are as a kind of typical insertion Formula equipment, the management of equipment include that the update of software systems is remotely controlled by network.In the process that software systems update In, it is possible that uncontrollable external factor such as the disconnection of equipment power supply, user's pass hull closure influences, if upgrading unsuccessfully causes Software systems failure, equipment take off the influence user experience problem such as pipe.Meanwhile terminal device generallys use Flash as memory, The device characteristics of Flash are to need to wipe a monolith storage unit of memory before data are written, and therefore, update wherein Content just need to complete by the sequence of operation of " read-modify-is wiped-write back ", if in " erasing " or " writing back " rank Segment fault, then the data of monolith storage unit can lose.
In order to guarantee the reliability of terminal device, double copies software systems are generallyd use at present, and region is backed up by upgrading And it is switched to the mode in backup region, the risk of software systems failure caused by upgrading failure can be eliminated.In this technical solution, Need to plan two mutually redundant software areas and one for selecting the control information area (such as Fig. 1 in software area in memory It is shown).
In this scheme, individually controls the information area and be also required to be updated, if broken down in renewal process (as powered off Deng), content may be destroyed.Therefore, it has become the key components in whole system for the validity of the control information area.Compared with For (as shown in Figure 1) in simple software systems, if guarantee mutually redundant software area carry out as a whole upgrading and Switching, this risk would not be exposed, because even system can choose a preparatory after the information failure of the control information area The default software area of setting is switched to another software area if verifying failure, and the reliability of system is still guaranteed.
But with the development of technology, terminal device is also more complicated, especially with linux system and introduces JAVA pumping After layer, software systems are often divided into multiple components, such as kernel, root file system, bottom software, JAVA environment and insert Part etc. (as shown in Figure 2), simultaneously as the needs of O&M, software systems only cannot be upgraded and be switched as a whole, Individually upgrading a portion component is needed support, the risk that the aforementioned control information area is destroyed at this time is just exposed, because Individually upgrading and switching is needed to need to guarantee to match each other again there are relevance for component, once the letter of the control information area Breath is lost, and system can not select correct effectively software system according to pre-set default value.
For example: as shown in Fig. 2, Liang Ge software area is available when terminal device dispatches from the factory, it is assumed that software area A is primary System, software area B are back-up system.After only upgrading JAVA environment at this time, then effectively software system is switched to " linux system A + bottom software A+JAVA environment B ", on this basis, after upgrading linux system again, then effectively software system will be switched to " linux system B+ bottom software A+JAVA environment B ".Since component needs individually upgrading and switching, the group in Liang Ge software area Part can be used staggeredly, and the control information area is most important at this time, and control information area process error, information are updated when upgrading It loses, system can not select to select correct effectively software system.
Therefore, for the software systems of complicated terminal device, the double copies system handover scheme currently generallyd use is (i.e. " mutually redundant Liang Ge software area is selected by a control information area ") there are obvious shortcomings, it is not sufficient to ensure that equipment Reliability.
Summary of the invention
In view of the deficiencies in the prior art, the purpose of the present invention is to provide a kind of double copies softwares of terminal device Method for managing system and system, it is ensured that system can correctly select effective software systems, reduce the upgrade failure of terminal device Risk improves reliability.
To achieve the above objectives, the technical solution adopted by the present invention is that: a kind of double copies software systems pipe of terminal device Reason method, comprising the following steps:
The main control information area, the standby control information area, area, major software, standby software area are divided on a memory;By component software Mirror image respectively stores portion in area, major software and standby software area, and area, major software and standby software area are drawn all in accordance with the component of its storage It is divided into multiple component areas;It will be used to select the mark and check code in charging assembly area, in the main control information area and standby control information Area respectively stores portion;
When component software upgrades, the validity of the main control information area, the standby control information area is verified respectively according to check code, and The invalid or inconsistent control information area is repaired;
According to the storage of the effective information area for selecting the mark in charging assembly area, the component mirror image currently loaded is judged From area, major software or standby software area, and the component software after upgrading is updated to the software area that non-present loads;
After component software mirror image is updated successfully, it will be used to select the mark in charging assembly area to update, with indicating equipment next time Start from the component software area that this is updated and load component software mirror image, by updated mark one-time write main control information Area, and the standby control information area of one-time write.
On the basis of above scheme, the method also includes following steps: in equipment start-up course, according to check code point Not Jiao Yan the main control information area, the standby control information area validity, according to being stored in the effective information area for selecting load The mark in component area, using the component software image starting component software in the component area for identifying corresponding software area.
On the basis of above scheme, the method also includes following steps: in equipment start-up course, according to check code point Not Jiao Yan the main control information area, the standby control information area validity, if the main control information area and the standby control information area are sentenced through verification It is disconnected effective, according to the storage of the main control information area for selecting the mark in charging assembly area, start the group in corresponding software area Component software mirror image in part area.
On the basis of above scheme, the mark for being used to select charging assembly area of the effective information area storage of basis Know, the component software after upgrading is updated to by the component mirror image that judgement currently loads from area, major software or standby software area The software area of non-present load, specifically includes the following steps:
It reads the mark for selecting charging assembly area of effective information area storage and is judged, if currently load Component software mirror image after upgrading is updated in the correspondence component area in standby software area by component mirror image in area, major software;
If it is soft that the component mirror image currently loaded is updated to master in standby software area, by the component software mirror image after upgrading In the correspondence component area in part area.
On the basis of above scheme, the component software upgrade when, verified respectively according to check code the main control information area, The validity of the standby control information area, and the invalid or inconsistent control information area is repaired, specifically includes the following steps:
Verify the validity of the main control information area, the standby control information area respectively according to check code;
Information area verification failure if it exists, then by the way that the content in the effective control information area is copied to invalid control It is repaired the information area;
If the main control information area and the standby control information area are effective, but wherein content is inconsistent, then by believing main control Content in breath area copies to the standby control information area and is repaired.
The present invention also provides a kind of double copies software system management systems of terminal device, comprising:
Partition holding module, is used for: divide on a memory the main control information area, the standby control information area, area, major software, Standby software area;Component software mirror image is respectively stored into portion in area, major software and standby software area, and by area, major software and for software area Component clustering all in accordance with its storage is multiple component areas;It will be used to select the mark and check code in charging assembly area, in master control The information area processed and the standby control information area respectively store portion;
Repair module is verified, is used for: when component software upgrades, verifying the main control information area, standby respectively according to check code The validity of the information area is controlled, and the invalid or inconsistent control information area is repaired;
Software area update module, is used for: the mark for being used to select charging assembly area of effective information area storage is read, Component software after upgrading is updated to non-work as from area, major software or standby software area by the component mirror image that judgement currently loads The software area of preceding load;
Information area update module is controlled, is used for: after component software mirror image is updated successfully, will be used to select charging assembly area Mark update, with indicating equipment next time starting from this update component software area load component software mirror image, after update The mark one-time write main control information area, and the standby control information area of one-time write.
On the basis of above scheme, the system also includes starting modules, are used for: in equipment start-up course, according to Check code verifies the validity of the main control information area, the standby control information area respectively, is used for according to what is stored in the effective information area The mark for selecting charging assembly area, using the component software image starting software group in the component area for identifying corresponding software area Part.
On the basis of above scheme, the starting module is also used to: in equipment start-up course, according to check code school respectively The validity of the main control information area, the standby control information area is tested, if the main control information area and the standby control information area are equal through verification judgement Effectively, the component area in corresponding software area is started for selecting the mark in charging assembly area according to the storage of the main control information area In component software mirror image.
On the basis of above scheme, software area update module adds according to what the effective information area stored for selection The mark in component area is carried, judges that the component mirror image that currently loads, and will be soft after upgrading from area, major software or standby software area Part component is updated to the software area of non-present load, specifically includes the following steps:
It reads the mark for selecting charging assembly area of effective information area storage and is judged, if currently load Component software mirror image after upgrading is updated in the correspondence component area in standby software area by component mirror image in area, major software;
If it is soft that the component mirror image currently loaded is updated to master in standby software area, by the component software mirror image after upgrading In the correspondence component area in part area.
On the basis of above scheme, the verification repair module verifies the main control information area, standby according to check code respectively The validity of the information area is controlled, and the invalid or inconsistent control information area is repaired, specifically includes the following steps:
Verify the validity of the main control information area, the standby control information area respectively according to check code;
Information area verification failure if it exists, then by the way that the content in the effective control information area is copied to invalid control It is repaired the information area;
If the main control information area and the standby control information area are effective, but wherein content is inconsistent, then by believing main control Content in breath area copies to the standby control information area and is repaired.
Compared with the prior art, the advantages of the present invention are as follows:
The present invention has carried out double copies to the control information area, in combination with the Process Design for reading and updating, this method energy When enough guaranteeing to malfunction in escalation process, the control information area is also effective always, so as to correctly select effective software systems, It avoids and controls the risk that the information area is likely to be broken in conventional method, apply in home gateway, intelligent gateway, PON terminal, machine In the terminal devices such as top box, convergent terminal, it can reduce and rise under the premise of meeting the O&M demand of upgrading partial software component Grade failure risk, improves reliability.
Detailed description of the invention
Fig. 1 is the software Division schematic diagram of simple software system in background technique
Fig. 2 is the software Division schematic diagram of complicated software system in background technique;
Fig. 3 is that the memory area division of the double copies software system management method of the terminal device of the embodiment of the present invention is shown It is intended to;
Fig. 4 is the stream of the equipment start-up course of the double copies software system management method of the terminal device of the embodiment of the present invention Journey schematic diagram;
Fig. 5 is the stream of the device upgrade process of the double copies software system management method of the terminal device of the embodiment of the present invention Journey schematic diagram.
Specific embodiment
The embodiment of the present invention is described in further detail below in conjunction with attached drawing.
The embodiment of the present invention provides a kind of double copies software system management method of terminal device, comprising the following steps:
It is shown in Figure 3, the main control information area, the standby control information area, area, major software, standby software are divided on a memory Area;Component software mirror image is respectively stored into portion in area, major software and standby software area, and by area, major software and standby software area all in accordance with Its component clustering stored is multiple component areas;It will be used to select the mark and check code in charging assembly area, in main control information Area and the standby control information area respectively store portion;
When component software upgrades, the validity of the main control information area, the standby control information area is verified respectively according to check code, and The invalid or inconsistent control information area is repaired;
According to the storage of the effective information area for selecting the mark in charging assembly area, the component mirror image currently loaded is judged From area, major software or standby software area, and the component software after upgrading is updated to the software area that non-present loads;
After component software mirror image is updated successfully, it will be used to select the mark in charging assembly area to update, with indicating equipment next time Start and load component software mirror image from the component software area that this is updated, and updated mark is sequentially written in main control information Area and the standby control information area.
For example, being the main control information area respectively, standby as shown in figure 3, be divided into 4 regions in flash storage Control the information area, area, major software, standby software area.Wherein the size in area, major software and standby software area is completely the same, and content is each other Backup stores Software Mirroring, and can be again wherein multiple subregions by component clustering, and storage is corresponding in each subregion Component software mirror image.The main control information area and the standby size for controlling the information area are completely the same, wherein main storage adds for selecting Carry the mark in component area --- it should be selected when load in area, major software or for the component software mirror in software area for identifying Picture, in addition there are check codes --- for the whether complete effective and other auxiliary informations of the data in check code area.
Assuming that software systems include 3 components (component 1, component 2, component 3 i.e. in figure), in the active and standby control information area Accordingly including the corresponding mark of 3 components (mark 1, mark 2, mark 3 i.e. in figure), identifying each component respectively should be selected Select corresponding mirror image in area, major software or standby software area.
Preferably, the method also includes following steps: in equipment start-up course, verifying main control respectively according to check code The validity of the information area, the standby control information area, according to being stored in the effective information area for selecting the mark in charging assembly area, Using the component software image starting component software in the component area for identifying corresponding software area.
Preferably, the method also includes following steps: in equipment start-up course, verifying main control respectively according to check code The validity of the information area, the standby control information area, if the main control information area and the standby control information area are effective through verification judgement, according to The mark for being used to select charging assembly area of main control information area storage, starts the software group in the component area in corresponding software area Part mirror image.
Preferably, the method also includes following steps: when component software upgrades, verifying main control respectively according to check code The validity of the information area, the standby control information area, and the invalid or inconsistent control information area is repaired, specific steps are such as Under:
Verify the validity of the main control information area, the standby control information area, as described below, this method respectively according to check code In be not in the invalid situation in the main control information area and the standby control information area,
Such as there is the invalid control information area, then by the way that the content in the effective control information area is copied to invalid control It is repaired the information area processed;
As the main control information area and the standby control information area are effective, but wherein content is inconsistent, then by believing main control Content in breath area copies to the standby control information area and is repaired;
If the main control information area is effective with the standby control information area and content is consistent, without being repaired.
After the completion of this step, the main control information area is effective with the standby control information area and content is consistent, is considered as verification and repairs Multiple success continues in next step according to the storage of the effective information area for selecting the mark in charging assembly area to update the step in software area Suddenly.
Preferably, the mark for being used to select charging assembly area of the effective information area storage of the basis, judgement is current to be added The component mirror image of load is updated to the soft of non-present load from area, major software or standby software area, and by the component software after upgrading Part area, specifically includes the following steps:
It reads the mark for selecting charging assembly area of effective information area storage and is judged, if currently load Component software mirror image after upgrading is updated in the correspondence component area in standby software area by component mirror image in area, major software;
If it is soft that the component mirror image currently loaded is updated to master in standby software area, by the component software mirror image after upgrading In the correspondence component area in part area.
When updated mark is sequentially written in the main control information area or the standby control information area, it is necessary to one-time write.It will The updated mark one-time write main control information area or the standby control information area, pass through the primary reading to Flash memory The sequence of operation for taking-modification-to wipe-write back is completed.
The emphasis of the embodiment of the present invention is to guarantee that updated all marks must disposably update.The single control information area Size be usually no more than the minimum operation unit of Flash, but it is not necessary to.Individually the big cell of control information is more than It, equally can be according to check code as long as guaranteeing that information of check code is ultimately written in the case where the minimum operation unit of Flash Judge whether the information for controlling the information area is effective.
It is shown in Figure 4 as preferred embodiment, equipment start-up course the following steps are included:
Step A1, whether the verification data verified in the main control information area are complete effectively, such as effectively, skip to step A4, such as In vain, step A2 is carried out;
Step A2, whether the verification data verified in the standby control information area are complete effectively, such as effectively, carry out step A3, no It may in vain (seeing below the description during literary device upgrade);
Step A3, the mark for being used to select charging assembly area saved in the standby control information area is read, step A5 is skipped to;
Step A4, the mark for being used to select charging assembly area saved in the main control information area is read, step A5 is carried out;
Step A5, it according to being read in step A3 or step A4 for selecting the mark in charging assembly area, selects from master It is loaded in software area or standby software area and starts corresponding component software;
Step A6;Actual loaded and starting component software are from area, major software or standby software area in recording step A5;
After the completion of step A6, start-up course terminates.
It is shown in Figure 5 as preferred embodiment, device upgrade process the following steps are included:
Step B1, the main control information area and the standby control information area are verified respectively, there are 3 kinds of feelings according to check results Condition: (a) the main control information area is effective, and the standby invalid information area or the main control information area and the standby control information area of controlling is effective, But wherein content is inconsistent;(b) the main control information area is invalid, and the standby control information area is effective;(c) the main control information area and standby control The information area is effective and content is consistent.It (is not in the main control information area and the situation invalid for the control information area.) for (a), step B2 is carried out;For (b), step B3 is skipped to;For (c), step B4 is skipped to;
Step B2, the information in the main control information area is copied in the standby control information area, skips to step B4;
Step B3, the information in the standby control information area is copied in the main control information area, skips to step B4;
Step B4, before this step starts, by being repaired in step B2 or step B3 to the invalid control information area, The main control information area is effective in the standby control information area at this time and content is consistent.According to what is recorded in aforementioned device start-up course As a result, updating the component software mirror image for needing to upgrade.I.e. if the component software mirror image currently loaded is from area, major software, The region that new mirror image is updated to the corresponding software component into standby software area, if the component software mirror image currently loaded is from standby New mirror image is then updated the region of the corresponding software component into area, major software, in this way, currently used component software mirror by software area As being retained, it will not be destroyed because malfunctioning in escalation process, continue step B5;
Step B5, the mark for selecting charging assembly area, check code and the related auxiliary in the main control information area are updated Information loads component software mirror image from the component software area that this is updated with starting indicating equipment next time, carries out step B6;
Step B6, updating the standby mark controlled in the information area, (it identifies the main control information updated in content and step B5 Mark content in area is consistent), check code and associated ancillary information.
After the completion of step B6, escalation process terminates, and equipment is restarted to be switched to the component software mirror image newly upgraded.
It further, should be only by once to Flash memory when updating the main control information area or the standby control information area " read-modify-is wiped-is write back " the sequence of operation complete;
In above equipment escalation process, either step malfunctions or is interrupted, this escalation process terminates entirely to flow to malfunction Journey;
Start before updating the control information area, the invalid control information area is repaired, at this time two control information Area is effective, and the subsequent update for controlling the information area to two is respectively completed, and once error will be terminated entirely with error Upgrade process, and due to only having the update for being just related to controlling the information area in escalation process, it is known that be not in two in the method The invalid situation in a control information area;
When updating the control information area, always first updating the main control information area, then the standby control information area is updated, as long as therefore main It is effective to control the information area, wherein just comprising newest identification information, therefore start-up course should preferentially select the main control information area. It is corresponding with the description of start-up course herein.
The embodiment of the present invention also provides a kind of double copies software system management system of terminal device, comprising:
Partition holding module, is used for: divide on a memory the main control information area, the standby control information area, area, major software, Standby software area;Component software mirror image is respectively stored into portion in area, major software and standby software area, and by area, major software and for software area Component clustering all in accordance with its storage is multiple component areas;It will be used to select the mark and check code in charging assembly area, in master control The information area processed and the standby control information area respectively store portion;
Repair module is verified, is used for: when component software upgrades, verifying the main control information area, standby respectively according to check code It controls the validity of the information area and the invalid or inconsistent control information area is repaired;
Software area update module, is used for: according to the storage of the effective information area for selecting the mark in charging assembly area, Component software after upgrading is updated to non-work as from area, major software or standby software area by the component mirror image that judgement currently loads The software area of preceding load;
Information area update module is controlled, is used for: after component software mirror image is updated successfully, will be used to select charging assembly area Mark update, with indicating equipment next time starting from this update component software area load component software mirror image, and will update Mark afterwards is sequentially written in the main control information area and the standby control information area.
Preferably, the system also includes starting modules, are used for: in equipment start-up course, according to check code school respectively The validity for testing the main control information area, the standby control information area is used to select charging assembly according to what is stored in the effective information area The mark in area, using the component software image starting component software in the component area for identifying corresponding software area.
Preferably, the starting module is also used to: in equipment start-up course, verifying main control information respectively according to check code The validity in area, the standby control information area, if the main control information area and the standby control information area are effective through verification judgement, according to master control The mark for being used to select charging assembly area of information area storage processed, starts the component software mirror in the component area in corresponding software area Picture.
Preferably, the mark for being used to select charging assembly area that software area update module is stored according to the effective information area Know, the component software after upgrading is updated to by the component mirror image that judgement currently loads from area, major software or standby software area The software area of non-present load, specifically includes the following steps:
It reads the mark for selecting charging assembly area of effective information area storage and is judged, if currently load Component software mirror image after upgrading is updated in the correspondence component area in standby software area by component mirror image in area, major software;
If it is soft that the component mirror image currently loaded is updated to master in standby software area, by the component software mirror image after upgrading In the correspondence component area in part area.
Preferably, the verification repair module verifies the main control information area, respectively according to check code for the control information area Validity, and the invalid or inconsistent control information area is repaired, specifically includes the following steps:
Verify the validity of the main control information area, the standby control information area respectively according to check code;
Information area verification failure if it exists, then by the way that the content in the effective control information area is copied to invalid control It is repaired the information area;
If the main control information area and the standby control information area are effective, but wherein content is inconsistent, then by believing main control Content in breath area copies to the standby control information area and is repaired.
Updated mark is sequentially written in the main control information area or standby control information by the control information area update module Qu Shi, it is necessary to one-time write.By the updated mark one-time write main control information area or the standby control information area, pass through The sequence of operation that read-modify-of Flash memory is wiped-write back is completed.
Based on the same inventive concept, the embodiment of the present application provides a kind of computer readable storage medium, is stored thereon with Computer program realizes all method and steps or Part Methods step of the above method when computer program is executed by processor.
The present invention realizes all or part of the process in the above method, can also be instructed by computer program relevant Hardware is completed, and computer program can be stored in a computer readable storage medium, which holds by processor When row, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, computer program includes computer program code, computer Program code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie Matter may include: can carry computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Rando m Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that computer-readable The content that medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as at certain A little jurisdictions do not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
Based on the same inventive concept, the embodiment of the present application also provides a kind of electronic equipment, including memory and processor, deposits The computer program run on a processor is stored on reservoir, processor is realized in the above method when executing computer program All method and steps or Part Methods step.
Alleged processor can be central processing unit (Central Processing Unit, CP U), can also be it His general processor, digital signal processor (Digital Signal Proc essor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng processor is the control centre of computer installation, utilizes each portion of various interfaces and the entire computer installation of connection Point.
Memory can be used for storing computer program and/or module, and processor is stored in memory by operation or execution Interior computer program and/or module, and the data being stored in memory are called, realize the various function of computer installation Energy.Memory can mainly include storing program area and storage data area, wherein storing program area can storage program area, at least Application program needed for one function (such as sound-playing function, image player function etc.) etc.;Storage data area can store root Created data (such as audio data, video data etc.) etc. are used according to mobile phone.In addition, memory may include high speed with Machine accesses memory, can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least One disk memory, flush memory device or other volatile solid-state parts.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system, server or calculating Machine program product.Therefore, the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware side The form of the embodiment in face.Moreover, it wherein includes computer usable program code that the present invention, which can be used in one or more, The computer program implemented in computer-usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, equipment (system), server and computer program product Flowchart and/or the block diagram describe.It should be understood that can be realized by computer program instructions in flowchart and/or the block diagram The combination of process and/or box in each flow and/or block and flowchart and/or the block diagram.It can provide these calculating Processing of the machine program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices Device is to generate a machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute For realizing the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram Device.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind 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 double copies software system management method of terminal device, which comprises the following steps:
The main control information area, the standby control information area, area, major software, standby software area are divided on a memory;By component software mirror image Portion is respectively stored in area, major software and standby software area, and is all in accordance with the component clustering of its storage by area, major software and standby software area Multiple component areas;It will be used to select the mark and check code in charging assembly area, it is each in the main control information area and the standby control information area Storage is a;
When component software upgrades, the validity of the main control information area, the standby control information area is verified respectively according to check code, and to nothing Effect or the inconsistent control information area are repaired;
According to the storage of the effective information area for selecting the mark in charging assembly area, judge that the component mirror image currently loaded comes from In area, major software or standby software area, and the component software after upgrading is updated to the software area that non-present loads;
After component software mirror image is updated successfully, it will be used to select the mark in charging assembly area to update, with starting indicating equipment next time Component software mirror image is loaded from the component software area that this is updated, by the updated mark one-time write main control information area, And the standby control information area of one-time write.
2. the method as described in claim 1, which is characterized in that the method also includes following steps: in equipment start-up course, The validity for verifying the main control information area, the standby control information area respectively according to check code, according to what is stored in the effective information area For selecting the mark in charging assembly area, using the component software image starting software in the component area for identifying corresponding software area Component.
3. the method as described in claim 1, which is characterized in that the method also includes following steps: in equipment start-up course, The validity of the main control information area, the standby control information area is verified respectively according to check code, if the main control information area and standby control letter The mark for being used to select charging assembly area that area is effective through verification judgement, stores according to the main control information area is ceased, starting corresponds to Software area component area in component software mirror image.
4. the method as described in claim 1, which is characterized in that the effective information area storage of basis is loaded for selection The mark in component area judges the component mirror image that currently loads from area, major software or standby software area, and by the software after upgrading Component is updated to the software area of non-present load, specifically includes the following steps:
It reads the mark for selecting charging assembly area of effective information area storage and is judged, if the component currently loaded Component software mirror image after upgrading is updated in the correspondence component area in standby software area by mirror image in area, major software;
If the component software mirror image after upgrading is updated to area, major software in standby software area by the component mirror image currently loaded Correspondence component area in.
5. the method as described in claim 1, which is characterized in that when the component software upgrades, verified respectively according to check code The validity of the main control information area, the standby control information area, and the invalid or inconsistent control information area is repaired, it is specific to wrap Include following steps:
Verify the validity of the main control information area, the standby control information area respectively according to check code;
Information area verification failure if it exists, then by the way that the content in the effective control information area is copied to invalid control information It is repaired in area;
If the main control information area and the standby control information area are effective, but wherein content is inconsistent, then by by the main control information area In content copy to the standby control information area and repaired.
6. a kind of double copies software system management system of terminal device characterized by comprising
Partition holding module, is used for: dividing the main control information area, the standby control information area, area, major software, standby soft on a memory Part area;Component software mirror image is respectively stored into portion in area, major software and standby software area, and by area, major software and for software Qu Jungen Component clustering according to its storage is multiple component areas;It will be used to select the mark and check code in charging assembly area, believe in main control Breath area and the standby control information area respectively store portion;
Repair module is verified, is used for: when component software upgrades, verifying the main control information area, standby control respectively according to check code The validity of the information area, and the invalid or inconsistent control information area is repaired;
Software area update module, is used for: reading the mark for being used to select charging assembly area of effective information area storage, judgement Component software after upgrading is updated to non-present and added by the component mirror image currently loaded from area, major software or standby software area The software area of load;
Information area update module is controlled, is used for: after component software mirror image is updated successfully, will be used to select the mark in charging assembly area Know and update, component software mirror image is loaded from the component software area that this is updated with starting indicating equipment next time, by updated mark Know the one-time write main control information area, and the standby control information area of one-time write.
7. system as claimed in claim 6, which is characterized in that the system also includes starting modules, are used for: equipment starting In the process, the validity for verifying the main control information area, the standby control information area respectively according to check code, according in the effective information area The mark for being used to select charging assembly area of storage, is opened using the component software mirror image in the component area for identifying corresponding software area Dynamic component software.
8. system as claimed in claim 6, which is characterized in that the starting module is also used to: in equipment start-up course, according to Check code verifies the validity of the main control information area, the standby control information area respectively, if the main control information area and the standby control information area It is effective through verification judgement, according to the storage of the main control information area for selecting the mark in charging assembly area, start corresponding soft Component software mirror image in the component area in part area.
9. system as claimed in claim 6, which is characterized in that software area update module is stored according to the effective information area For selecting the mark in charging assembly area, judge the component mirror image currently loaded from area, major software or standby software area, and Component software after upgrading is updated to the software area of non-present load, specifically includes the following steps:
It reads the mark for selecting charging assembly area of effective information area storage and is judged, if the component currently loaded Component software mirror image after upgrading is updated in the correspondence component area in standby software area by mirror image in area, major software;
If the component software mirror image after upgrading is updated to area, major software in standby software area by the component mirror image currently loaded Correspondence component area in.
10. system as claimed in claim 6, which is characterized in that the verification repair module verifies master according to check code respectively The validity of the information area, the standby control information area is controlled, and the invalid or inconsistent control information area is repaired, is specifically included Following steps:
Verify the validity of the main control information area, the standby control information area respectively according to check code;
Information area verification failure if it exists, then by the way that the content in the effective control information area is copied to invalid control information It is repaired in area;
If the main control information area and the standby control information area are effective, but wherein content is inconsistent, then by by the main control information area In content copy to the standby control information area and repaired.
CN201910472391.XA 2019-05-31 2019-05-31 A kind of double copies software system management method and system of terminal device Pending CN110188004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910472391.XA CN110188004A (en) 2019-05-31 2019-05-31 A kind of double copies software system management method and system of terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910472391.XA CN110188004A (en) 2019-05-31 2019-05-31 A kind of double copies software system management method and system of terminal device

Publications (1)

Publication Number Publication Date
CN110188004A true CN110188004A (en) 2019-08-30

Family

ID=67719662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910472391.XA Pending CN110188004A (en) 2019-05-31 2019-05-31 A kind of double copies software system management method and system of terminal device

Country Status (1)

Country Link
CN (1) CN110188004A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109861868A (en) * 2019-03-05 2019-06-07 网经科技(苏州)有限公司 The gateway system of three system architecture of two-stage based on Linux reinforces method
CN110704076A (en) * 2019-10-15 2020-01-17 上海元城汽车技术有限公司 Data processing method and device, vehicle-mounted controller and computer-readable storage medium
CN111124436A (en) * 2019-11-05 2020-05-08 上海航天控制技术研究所 Method for improving software loading reliability of star sensor
CN113630410A (en) * 2021-06-28 2021-11-09 广州宝威西科技有限公司 Network triangle double-backup conference system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216772A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 Embedded equipment startup method and software upgrading method
CN101714093A (en) * 2009-12-01 2010-05-26 福建新大陆通信科技有限公司 Three-section type double-backup Loader upgrading method of set-top box
CN101782859A (en) * 2010-03-18 2010-07-21 上海乐毅信息科技有限公司 Upgrading method of embedded system in application
CN101834976A (en) * 2009-10-20 2010-09-15 福建新大陆通信科技有限公司 Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology
CN102023876A (en) * 2009-09-14 2011-04-20 漳州科能电器有限公司 Embedded system capable of upgrading software on line and online upgrading method
CN102520979A (en) * 2011-11-22 2012-06-27 大唐移动通信设备有限公司 Boot program backup method and Boot program backup device
US20160004606A1 (en) * 2010-12-01 2016-01-07 Microsoft Technology Licensing, Llc Method, system and device for validating repair files and repairing corrupt software
CN109032846A (en) * 2018-08-08 2018-12-18 京信通信系统(中国)有限公司 Equipment remote backup upgrade method, device, computer storage medium and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216772A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 Embedded equipment startup method and software upgrading method
CN102023876A (en) * 2009-09-14 2011-04-20 漳州科能电器有限公司 Embedded system capable of upgrading software on line and online upgrading method
CN101834976A (en) * 2009-10-20 2010-09-15 福建新大陆通信科技有限公司 Method for starting and upgrading set-top box by using three-stage directing and upgrading starting technology
CN101714093A (en) * 2009-12-01 2010-05-26 福建新大陆通信科技有限公司 Three-section type double-backup Loader upgrading method of set-top box
CN101782859A (en) * 2010-03-18 2010-07-21 上海乐毅信息科技有限公司 Upgrading method of embedded system in application
US20160004606A1 (en) * 2010-12-01 2016-01-07 Microsoft Technology Licensing, Llc Method, system and device for validating repair files and repairing corrupt software
CN102520979A (en) * 2011-11-22 2012-06-27 大唐移动通信设备有限公司 Boot program backup method and Boot program backup device
CN109032846A (en) * 2018-08-08 2018-12-18 京信通信系统(中国)有限公司 Equipment remote backup upgrade method, device, computer storage medium and equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109861868A (en) * 2019-03-05 2019-06-07 网经科技(苏州)有限公司 The gateway system of three system architecture of two-stage based on Linux reinforces method
CN109861868B (en) * 2019-03-05 2022-02-22 网经科技(苏州)有限公司 Linux-based two-stage three-system architecture gateway system strengthening method
CN110704076A (en) * 2019-10-15 2020-01-17 上海元城汽车技术有限公司 Data processing method and device, vehicle-mounted controller and computer-readable storage medium
CN111124436A (en) * 2019-11-05 2020-05-08 上海航天控制技术研究所 Method for improving software loading reliability of star sensor
CN111124436B (en) * 2019-11-05 2023-12-29 上海航天控制技术研究所 Method for improving loading reliability of star sensor software
CN113630410A (en) * 2021-06-28 2021-11-09 广州宝威西科技有限公司 Network triangle double-backup conference system
CN113630410B (en) * 2021-06-28 2023-07-25 广州宝威西科技有限公司 Network triangle double-backup conference system

Similar Documents

Publication Publication Date Title
CN110188004A (en) A kind of double copies software system management method and system of terminal device
CN102360298B (en) Software upgrading method of terminal equipment
CN101533356B (en) A method, a device and a system for realizing software online upgrade
US8972591B2 (en) Method for downloading software
US20050085222A1 (en) Software updating process for mobile devices
CN102023908A (en) Method and device for backing up boot program
US20050246701A1 (en) Methods and systems for updating memory contents
CN105930236A (en) Application program version returning method based on BMS Bootloaderupgrade
WO2009116195A1 (en) Data updating method, memory system and memory device
CN107239411B (en) Memory management method and system for vehicle-mounted controller
CN109062598A (en) A kind of safe OTA upgrade method and system
CN102508686A (en) Method and system for realizing safe upgrading of system
CN102722394A (en) Start upgrading method of embedded equipment
CN100541450C (en) Storage management method and portable terminal
CN109582332B (en) System upgrading method and device for Internet camera
CN107102871A (en) The method and apparatus of embedded system upgrading
CN109766140A (en) A kind of localization method and device that set-top box starting is abnormal
CN111651304B (en) Software recovery method and device based on double-core intelligent ammeter and computer equipment
CN112433769A (en) BMC starting method and device, computer equipment and storage medium
CN113641390B (en) System upgrading method, device, equipment and storage medium
CN109375953B (en) Operating system starting method and device
CN116501409B (en) Dual-Flash-based server starting method, computer equipment and storage medium
CN117407020A (en) OTA upgrade refreshing method and device, electronic equipment and storage medium
CN117130672A (en) Server start flow control method, system, terminal and storage medium
CN108874422B (en) Software online upgrading method for refrigerator electric control board, refrigerator electric control board and refrigerator

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190830