CN109144532A - Upgrade method and device - Google Patents

Upgrade method and device Download PDF

Info

Publication number
CN109144532A
CN109144532A CN201710445482.5A CN201710445482A CN109144532A CN 109144532 A CN109144532 A CN 109144532A CN 201710445482 A CN201710445482 A CN 201710445482A CN 109144532 A CN109144532 A CN 109144532A
Authority
CN
China
Prior art keywords
epld
program
epld program
storing
area
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.)
Granted
Application number
CN201710445482.5A
Other languages
Chinese (zh)
Other versions
CN109144532B (en
Inventor
廖奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201710445482.5A priority Critical patent/CN109144532B/en
Publication of CN109144532A publication Critical patent/CN109144532A/en
Application granted granted Critical
Publication of CN109144532B publication Critical patent/CN109144532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The present invention provides a kind of upgrade method and devices, this method comprises: the downloading in the standby information area of the detection for storing slack storage area status information with the presence or absence of the second erasable Programmadle logic device EPLD program identifies, wherein, second EPLD program is the upgraded version of the first EPLD program, first EPLD program is version to be upgraded, and slack storage area is for storing the second EPLD program;In the case where testing result, which is, is, trial operation is carried out to the second EPLD program;In to the second successful situation of EPLD program trial operation, the second EPLD program is activated.By the invention it is possible to which solving the problem of not can guarantee in the related technology to be available after EPLD program after upgrading is activated causes veneer that may be unable to operate normally, while the selection to upgraded version is realized, achievees the effect that guarantee EPLD starting reliability.

Description

Upgrade method and device
Technical field
The present invention relates to the communications fields, in particular to a kind of upgrade method and device.
Background technique
Currently, needing to upgrade erasable Programmadle logic device (Erasable Programmable in a veneer Logic Device, referred to as EPLD) program when, be by low pin count LPC (Low pin count Bus) bus download will The direct programming of program is into EPLD in ISF (In System Flash).When needing to upgrade EPLD program this requires veneer, work Cheng personnel must arrive scene and operate.And our many equipment veneers are distributed in each place in the whole world, when multiple websites When multiple veneers need to upgrade EPLD program, a large amount of manpower and material resources can be expended.And many times using original upgrading mode It carries out pulling out plate operation, situations such as the normal work of entire network element may be will affect during pulling out plate, lead to service disconnection.And And the EPLD program after upgrading, when being unable to operate normally, veneer cannot normally start herein, and original EPLD program also by Erasing, veneer will be unable to operate normally again.
A kind of method of remote upgrade network element software is provided in document CN200810141637.7, but the method is not Suitable for the remote upgrade of EPLD, after the completion of the realization of EPLD remote upgrade must fully take into account upgrading, the operation area EPLD Selection and starting.But after the completion of the above method does not consider upgrading, the selection and starting of the operation area EPLD, and it is above-mentioned Method also function without back-off,.
Therefore, it not can guarantee EPLD program after upgrading in the related technology to be available after being activated, cause veneer may nothing The problem of method operates normally.
Summary of the invention
The embodiment of the invention provides a kind of upgrade method and devices, at least to solve after not can guarantee upgrading in related skill The problem of EPLD program is available after being activated, and causes veneer that may be unable to operate normally.
According to one embodiment of present invention, a kind of upgrade method is provided, comprising: detection is for storing spare memory area It is identified in the standby information area of domain status information with the presence or absence of the downloading of the second erasable Programmadle logic device EPLD program, In, second EPLD program is the upgraded version of the first EPLD program, and first EPLD program is version to be upgraded, described Slack storage area is for storing second EPLD program;In the case where testing result, which is, is, to the 2nd EPLD journey Sequence carries out trial operation;In to the successful situation of the second EPLD program trial operation, second EPLD program is activated.
Optionally, it whether there is the 2nd EPLD in the standby information area detected for storing slack storage area status information Before the downloading mark of program, further includes: receive the first EPLD journey for being used to indicate upgrading EPLD that network element control plate NCP is sent The upgrade command of sequence;According to the upgrade command, obtain the second EPLD program and be written the EPLD for storing EPLD journey Slack storage area in the memory of sequence;The downloading mark of second EPLD program is set in the standby information area.
Optionally, in the successful situation of the second EPLD program trial operation, the second EPLD program packet is activated It includes: in the successful situation of the second EPLD program trial operation, sending the successful message of trial operation to the NCP;It receives The activation command for activation second EPLD program that the NCP is sent;According to the activation command, by spare being deposited described It switches as the mode of the primary storage region, activation second EPLD program, wherein the primary storage region in storage area domain For storing first EPLD program.
Optionally, upgrade the upgrade command of first EPLD program in being used to indicate of receiving that the NCP sends Before, further includes: subregion is carried out to the storage region of the memory, by the storage region at least subregion are as follows: for storing The primary storage region of EPLD program, for storing the slack storage area of EPLD program, for storing primary storage region shape The main information area of state information and the standby information area for storing slack storage area status information.
Optionally, in the successful situation of the second EPLD program trial operation, activate second EPLD program it Before, further includes: judge to identify in Flash ISF with the presence or absence of LPC programming in the system of the EPLD;It is no in judging result In the case of, second EPLD program is updated into the ISF;Second EPLD program is tried in the ISF Operation.
Optionally, according to the upgrade command, obtain second EPLD program and be written the EPLD for storing Slack storage area in the memory of EPLD program includes: the storage of the second EPLD program according to the upgrade command Location information downloads second EPLD program from storage equipment CF card;The EPLD is written into second EPLD program For storing the slack storage area in the memory of EPLD program.
Optionally, the memory for EPLD program is Flash.
According to another embodiment of the invention, a kind of update device is provided, comprising:
Detection module, for detecting in the standby information area for storing slack storage area status information with the presence or absence of second The downloading of erasable Programmadle logic device EPLD program identifies, wherein second EPLD program is the first EPLD program Upgraded version, first EPLD program are version to be upgraded, and the slack storage area is for storing the 2nd EPLD journey Sequence;Commissioned module, for carrying out trial operation to second EPLD program in the case where testing result, which is, is;Activate mould Block, for activating second EPLD program in the successful situation of the second EPLD program trial operation.
Optionally, the active module is also used in the successful situation of the second EPLD program trial operation, to institute It states NCP and sends the successful message of trial operation;Receive the activation command for activation second EPLD program that the NCP is sent;Root According to the activation command, by way of switching the slack storage area for the primary storage region, described the is activated Two EPLD programs, wherein the primary storage region is for storing first EPLD program.
Optionally, the detection module is also used to carry out subregion to the storage region of the memory, by the memory block Domain at least subregion are as follows: for storing the primary storage region of EPLD program, for storing the slack storage area of EPLD program, use In the main information area for storing primary storage region status information and the standby information area for storing slack storage area status information.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, the storage medium includes storage Program, wherein described program executes method described in any of the above embodiments when running.
According to still another embodiment of the invention, a kind of processor is additionally provided, the processor is used to run program, In, described program executes method described in any of the above embodiments when running.
It through the invention, can with the presence or absence of second in the standby information area of the detection for storing slack storage area status information Wipe the downloading mark of Programmadle logic device EPLD program, wherein the second EPLD program is the upgrade version of the first EPLD program This, the first EPLD program is version to be upgraded, and slack storage area is for storing the second EPLD program;It is yes in testing result In the case of, trial operation is carried out to the second EPLD program;In to the second successful situation of EPLD program trial operation, activation second EPLD program.Due to having divided the standby information area for storing slack storage area status information, is recorded and risen by the information area The downloading mark of grade the second EPLD program of version, allows and knows that veneer has closely downloaded the liter of the first EPLD according to the mark Grade version, to realize selection to upgraded version, and after getting the second EPLD program of upgraded version, do not activate directly and It is that trial operation first is carried out to the second EPLD program, only after trial operation success, just activates second EPLD program, it is ensured that The second EPLD program after activation is available.Therefore, it can solve in the related technology EPLD program quilt after not can guarantee upgrading The problem of being available after activation, causing veneer that may be unable to operate normally, while the selection to upgraded version is realized, reach Guarantee the effect of EPLD starting reliability.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the veneer of upgrade method of the embodiment of the present invention;
Fig. 2 is the flow chart of upgrade method according to an embodiment of the present invention;
Fig. 3 is that user according to an embodiment of the present invention with NCP interacts the general frame;
Fig. 4 is flash subarea schematic diagram according to an embodiment of the present invention;
Fig. 5 is EPLD upgrading processing flow diagram according to an embodiment of the present invention;
Fig. 6 is EPLD program flow diagram in the area operation ISF A according to an embodiment of the present invention;
Fig. 7 is EPLD program schematic diagram in trial operation Flash according to an embodiment of the present invention;
Fig. 8 is EPLD program schematic diagram in operation Flash according to an embodiment of the present invention;
Fig. 9 is BOOT processing EPLD upgrade process schematic diagram according to an embodiment of the present invention;
Figure 10 is remote update command processing schematic according to an embodiment of the present invention;
Figure 11 is long-range trial operation command process schematic diagram according to an embodiment of the present invention;
Figure 12 is remote activation demand processing schematic according to an embodiment of the present invention;
Figure 13 is the structural block diagram of update device according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can execute in veneer or similar arithmetic unit.With For operating on veneer, Fig. 1 is a kind of hardware block diagram of the veneer of upgrade method of the embodiment of the present invention.Such as Fig. 1 institute Show, veneer 10 may include that (processor 102 may include but unlimited one or more (one is only shown in figure) processors 102 In the processing unit of Micro-processor MCV or programmable logic device FPGA etc.), memory 104, Yi Jiyong for storing data In the transmitting device 106 of communication function.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, simultaneously The structure of above-mentioned electronic device is not caused to limit.For example, veneer 10 may also include than shown in Fig. 1 more or less groups Part, or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing the software program and module of application software, such as the upgrading in the embodiment of the present invention Corresponding program instruction/the module of method, the software program and module that processor 102 is stored in memory 104 by operation, Thereby executing various function application and data processing, that is, realize above-mentioned method.Memory 104 may include high speed random storage Device may also include nonvolatile memory, such as one or more magnetic storage device, flash memory or other are non-volatile solid State memory.In some instances, memory 104 can further comprise the memory being arranged relative to processor 102, these are deposited Reservoir can pass through network connection to veneer 10.The example of above-mentioned network includes but is not limited to internet, intranet, local Net, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of veneer 10 provide.In an example, transmitting device 106 includes a network adapter (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to interconnection Net is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, be used for Wirelessly communicated with internet.
A kind of upgrade method for running on above-mentioned veneer is provided in the present embodiment, and Fig. 2 is according to embodiments of the present invention Upgrade method flow chart, as shown in Fig. 2, the process includes the following steps:
Step S202 is detected erasable with the presence or absence of second in the standby information area for storing slack storage area status information Except the downloading mark of Programmadle logic device EPLD program, wherein the second EPLD program is the upgraded version of the first EPLD program, First EPLD program is version to be upgraded, and slack storage area is for storing the second EPLD program;
Step S204 carries out trial operation to the second EPLD program in the case where testing result, which is, is;
Step S206 activates the second EPLD program in the second successful situation of EPLD program trial operation.
Through the above steps, due to having divided the standby information area for storing slack storage area status information, by this The downloading mark of the second EPLD program of upgraded version is recorded in the information area, allows and knows that veneer has closely been downloaded according to the mark The upgraded version of first EPLD, to realize the selection to upgraded version, and after getting the second EPLD program of upgraded version, It does not activate directly but trial operation first is carried out to the second EPLD program, only after trial operation success, just activate the 2nd EPLD Program, it is ensured that the second EPLD program after activation is available.Therefore, it can solve in the related technology and not can guarantee upgrading The problem of being available after EPLD program is activated afterwards, causing veneer that may be unable to operate normally, while realizing to upgrade version This selection has achieved the effect that guarantee EPLD starting reliability.
Optionally, it whether there is the 2nd EPLD in the standby information area detected for storing slack storage area status information Before the downloading mark of program, further includes: receive network element control plate (Network Control Processor is referred to as NCP) What is sent is used to indicate the upgrade command of the first EPLD program of upgrading EPLD;According to upgrade command, the second EPLD program is obtained And the slack storage area in the memory for storing EPLD program of EPLD is written;The 2nd EPLD is set in the standby information area The downloading of program identifies.It wherein, can be Flash for the memory of EPLD program;
Optionally, in the second successful situation of EPLD program trial operation, the second EPLD program of activation includes: to the In the two successful situations of EPLD program trial operation, the successful message of trial operation is sent to NCP;Receive the activation second that NCP is sent The activation command of EPLD program;According to activation command, by way of switching slack storage area for primary storage region, swash Second EPLD program living, wherein primary storage region is for storing the first EPLD program.Through the above steps, only second After the success of EPLD program trial operation, just primary storage region can be set by the storage where it, therefore, if the after upgrading After the failure of two EPLD program trial operations, it not will do it switching for active and standby storage region, veneer allowed to continue to run first EPLD program, thus it is unavailable after EPLD program is activated after upgrading when, veneer still can operate normally.
Optionally, receive NCP send be used to indicate upgrading the first EPLD program upgrade command before, further includes: Subregion is carried out to the storage region of memory, by storage region at least subregion are as follows: for storing the primary memory block of EPLD program Domain, for storing the slack storage area of EPLD program, for storing main information area and the use of primary storage region status information In the standby information area of storage slack storage area status information.For example, using existing for storing EPLD program on veneer The memory block Flash therefrom marks off two regions, as the active and standby storage region of EPLD program, is persistently stored after realizing power down, The active and standby information area of two regions as EPLD program is separately marked off in the memory block Flash simultaneously, wherein the active and standby information area It is mainly used for saving the status information of the active and standby storage region of EPLD, including activestandby state mark, edition upgrading time, test run rower Will, version storage region initial address, upgrading mark, EPLD version number, the information such as CRC check value.It can be with by above-mentioned subregion Realize active and standby EPLD program selection control.
Optionally, it in the second successful situation of EPLD program trial operation, before activating the second EPLD program, also wraps It includes: judging to identify in Flash ISF with the presence or absence of LPC programming in the system of EPLD;If the determination result is NO, by Two EPLD programs are updated into ISF;Trial operation is carried out to the second EPLD program in ISF.
Optionally, before being identified in Flash ISF with the presence or absence of LPC programming in the system for judging EPLD, further includes: sentence Whether have primary EPLD identify, be not to use for the first time if there is representing veneer, there is operation if breaking in the above-mentioned active and standby information area Program, at this point, judging to identify in Flash ISF with the presence or absence of LPC programming in the system of EPLD;The case where judging result, which is, is Under, run the EPLD program in ISF;If the determination result is NO, the second EPLD program is updated into ISF;In ISF In to the second EPLD program carry out trial operation.If not having primary EPLD to identify in the active and standby information area, it is first for representing veneer It uses, runs the EPLD program in ISF, while EPLD program being updated to above-mentioned active and standby storage region, and active and standby deposited related The related status information in storage area domain is updated to the active and standby information area.
For example, initializing the memory (Flash) for storing EPLD program, and to Flash after Board Power up starting Carry out subregion.After the first operation program BOOT starting after Board Power up, it is in the EPLD information area after first determining whether subregion It is no to there is primary EPLD to identify.In the presence of primary mark, then LPC programming mark is judged whether there is, if there is the mark, then Run the EPLD in ISF;If it does not, operation is above-mentioned for storing the EPLD program of the memory of EPLD program, while more EPLD program in new ISF.If in the absence of master state mark, running the EPLD in ISF, while updating above-mentioned for storing The middle EPLD program and the information area EPLD information of EPLD program memory.
Above-described embodiment realizes the upgrading of EPLD version by using effective cooperation in EPLD and BOOT version information area.
Optionally, according to upgrade command, obtain the second EPLD program and be written EPLD for storing depositing for EPLD program Slack storage area in reservoir includes: according to the storage location information of the second EPLD program in upgrade command, from storage equipment The second EPLD program is downloaded in (Compact Flash, referred to as CF) card;Second EPLD program write-in EPLD is used to store Slack storage area in the memory of EPLD program.
For example, being logged on to by File Transfer Protocol (file transfer protocol, referred to as ftp) in network EPLD program update version document is transmitted to the CF card of master control borad by NCP master control borad.Then, network element is logged on to by telnet Control panel NCP issues upgrading EPLD program by COM (Serial Communication Port, S mouthfuls of abbreviation) Order veneer.Veneer carries out download process after receiving upgrade command, and EPLD finally is written in EPLD program update version document Spare memory area in Flash.
In another example passing through the region EPLD that NCP issues test run line command, activation command upgrades storage after the completion of downloading It is set as primary memory block, and configures the starting selection marker of BOOT in ISF.It is used when trial operation failure by fallback mechanism Original EPLD version updates information area information as primary.
With reference to the accompanying drawing, above-described embodiment is described in detail by taking EPLD remote upgrade as an example.
It realizes EPLD remote upgrade function, needs board B OOT side software, veneer application side software and NCP application software total With cooperation.This three parts adheres to different operation phase and the different spaces CPU separately.Board B OOT software and veneer application software are logical It crosses memory and carries out data communication, board software (including BOOT software, veneer application software) carries out data with NCP by S mouthfuls and leads to News.User is interacted by the telnet/ftp based on ICP/IP protocol with NCP, and interaction the general frame is as shown in Figure 3.
The process of realization is as follows:
1, compiling generates EPLD program EPZ file, calculates EPZ file size, crc value after the completion of compiling, and be written into EPZ file downloads mark as LPC (in order to be compatible with original upgrading mode).
2, after single board starting, the flash of storage EPLD program is initialized first and carries out subregion, bay status As shown in figure 4, the Flash after subregion includes: information area A, information area B, EPLD program memory block A, EPLD program memory block B. Then, board B OOT software carries out EPLD program selection processing.After Board Power up, BOOT normally starts operation, carries out EPLD liter Grade processing.
Fig. 5 is EPLD upgrading processing flow diagram according to an embodiment of the present invention, as shown in figure 5, judging above-mentioned Flash It then proves that this veneer is to use for the first time if there is no primary mark with the presence or absence of primary mark in the middle information area, runs ISF EPLD program in the area A;If there is primary mark, then continues to judge with the presence or absence of LPC programming mark in the area ISF A, be logical It crosses LCP and programming has been carried out to ISF, if there is LPC programming mark, then run EPLD program in the area ISF A;If there is no LPC programming mark, then EPLD program in trial operation Flash then activates such as trial operation success and runs EPLD journey in Flash Sequence;Current EPLD program has operated normally at this time, into BOOT processing EPLD remote upgrade processing;Complete entire remote upgrade stream Journey.
EPLD program flow diagram in the above-mentioned area operation ISF A is as shown in fig. 6, first judge EPLD program in the area ISF A Whether normal operation, the promoter region of EPLD program is set by the area ISF A if operating normally, if be not normally functioning, EPLD program in Flash is synchronized to the area ISF B, whether just the EPLD program in the triggering operation area B judges the EPLD program in the area B Often operation, in the case where the judgment result is yes, sets the promoter region EPLD for ISF B, if it is judged that being to be no, still The setting area ISF A is the promoter region EPLD.
EPLD program schematic diagram in above-mentioned trial operation Flash is as shown in fig. 7, obtain EPLD information from the information area first, so Trial operation EPLD program area is determined whether according to the information afterwards, if it is not, the primary storage region of specified EPLD is operation Area if so, then removing EPLD test run line identifier, and updates the EPLD information of the information area, and then the specified area trial operation EPLD is Operational Zone.
EPLD program schematic diagram in above-mentioned operation Flash wants Operational Zone as shown in figure 8, obtaining in ISF main area and flash Does then domain (primary memory block or trial operation area) version number judge whether version number consistent?
In the case where judging unanimous circumstances, the promoter region EPLD index is obtained, the area ISF B judged whether it is according to the call number? It if it is the area B, closes EPLD shutdown dog and triggers the operation of the area ISF B, then PCIE solution resets, and opens EPLD shutdown dog and closes At a slow speed and quickly reversion timer is closed, then, display EPLD is as a result, EPLD program in the Flash that brings into operation at this time;If not being The area B then EPLD program in direct Flash.
In the case where judging inconsistent, by flash want operation area EPLD program be synchronized to the area ISF B after, close EPLD house dog simultaneously triggers the area ISF B, then the reset of PCIE solution, opens EPLD shutdown dog and closing inverts at a slow speed and quickly timing Does then device judge that EPLD runs success? when judging result, which is, is, the setting promoter region EPLD is the area ISF B, is opened Begin to run EPLD program in Flash;Whether it is no in judging result, terminates upgrading.
Above-mentioned BOOT processing EPLD remote upgrade treatment process schematic diagram as shown in figure 9, obtain EPLD status information, according to Status information judges whether to need remote upgrade EPLD, if it is judged that initializing the phase of EPLD upgrading in the case where to be Then the global variable of pass sends upgrading EPLD request to NCP, waits NCP response, response is received in 8 minutes, receive NCP The data of transmission, after distributing last packet, check (CRC) value updates EPLD information, and sends final updating result to NCP.
3, veneer application side EPLD upgrading processing.
A, remote update command is handled, and Figure 10 is remote update command processing schematic according to an embodiment of the present invention, such as Shown in Figure 10, after veneer receives NCP remote update command, judge whether veneer has program to be in trial operation state, if any answering Answer NCP upgrading failure.When there is no test run line program, downloading is indicated into the information area EPLD in write-in Flash, is written and successfully then rises Grade command process success, is written failure then upgrade command processing failure.
B, long-range trial operation command process, Figure 11 are long-range trial operation command process signals according to an embodiment of the present invention Figure after receiving NCP test run line command, judges whether spare memory area program is abnormal and whether is in examination as shown in figure 11 Operating status, if in the case where one of both, which is, is, the failure of response NCP trial operation;In the case that if the two is no, Test run line flag is set in the information area, and spare memory area domain identifier is arranged in the information area EPLD in Flash, is arranged successfully then The success of response NCP command process, then resets.
C, remote activation demand is handled, and Figure 12 is remote activation demand processing schematic according to an embodiment of the present invention, such as Shown in Figure 12, NCP activation command is received, judges whether slack storage area program is correct and is in trial operation state, is judging It as a result is in the case where being, to remove test run line flag, set activation marker, and the information area is written, setting the area ISF B is primary operation Area, while the active and standby program area EPLD being switched, change, which identifies successfully then to reply, to be activated successfully.
4, the processing of compatible original LPC downloading mode.Program is downloaded into current primary ISF by LPC downloading default The area A, the current primary area the ISF A EPLD program of covering, and default and be converted to EPLD BOOT are converted into after Board Power up the The program of one operation, each programming will cover this region.
A kind of method that the embodiment of the present invention realizes remote upgrade EPLD program passes through EPLD and BOOT version information area The remote upgrade of co- controlling EPLD and starting, can determine the reliability of EPLD completely by way of trial operation, activation at Used main area EPLD version is available edition certainly after function.Also, this method had both been compatible with original upgrading mode, and Remote upgrade can be carried out by network, and when remote upgrade failure, original EPLD program can be used by fallback mechanism. Namely the present invention is on the basis of compatibility existing upgrading mode, the method for increasing remote upgrade.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
A kind of update device is additionally provided in the present embodiment, and the device is for realizing above-described embodiment and preferred implementation side Formula, the descriptions that have already been made will not be repeated.As used below, the software of predetermined function may be implemented in term " module " And/or the combination of hardware.Although device described in following embodiment is preferably realized with software, hardware or soft The realization of the combination of part and hardware is also that may and be contemplated.
Figure 13 is the structural block diagram of update device according to an embodiment of the present invention, and as shown in figure 13, which includes:
Detection module 132 whether there is for detecting in the standby information area for storing slack storage area status information The downloading of second erasable Programmadle logic device EPLD program identifies, wherein second EPLD program is the first EPLD journey The upgraded version of sequence, first EPLD program are version to be upgraded, and the slack storage area is for storing described second EPLD program;
Commissioned module 134 is connected to above-mentioned detection module 132, for testing result be in the case where, to described Second EPLD program carries out trial operation;
Active module 136 is connected to above-mentioned commissioned module 134, for successful to the second EPLD program trial operation In the case of, activate the second EPLD program.
Optionally, active module 136 are also used in the second successful situation of EPLD program trial operation, are sent to NCP The successful message of trial operation;Receive the activation command for the second EPLD program of activation that NCP is sent;According to activation command, pass through by Slack storage area is switched as the mode of primary storage region, the second EPLD program of activation, wherein primary storage region is for depositing Store up the first EPLD program.
Optionally, detection module 132 are also used to carry out subregion to the storage region of memory, storage region are at least divided Area are as follows: for storing the primary storage region of EPLD program, for storing the slack storage area of EPLD program, for storing master With the main information area of storage region status information and the standby information area for storing slack storage area status information.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, which includes the program of storage, wherein above-mentioned Program executes method described in any of the above embodiments when running.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
S1, detecting whether there is second and erasable compiles in the standby information area for storing slack storage area status information The downloading mark of volume logical device EPLD program, wherein the second EPLD program is the upgraded version of the first EPLD program, first EPLD program is version to be upgraded, and slack storage area is for storing the second EPLD program;
S2 carries out trial operation to the second EPLD program in the case where testing result, which is, is;
S3 activates the second EPLD program in the second successful situation of EPLD program trial operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
S1 receives be used to indicate the erasable Programmadle logic device EPLD of upgrading first that network element control plate NCP is sent The upgrade command of EPLD program;
S2 obtains the second EPLD program and the memory for being used to store EPLD program of EPLD is written according to upgrade command In slack storage area, wherein the second EPLD program is the upgraded version of the first EPLD program;
The downloading mark of the second EPLD program is arranged in S3 in the standby information area.
Optionally, storage medium is also configured to store the program code for executing following steps: to the 2nd EPLD In the successful situation of program trial operation, the second EPLD program of activation includes:
S1 sends the successful message of trial operation to NCP in the second successful situation of EPLD program trial operation;
S2 receives the activation command for the second EPLD program of activation that NCP is sent;
S3, according to activation command, by way of switching slack storage area for primary storage region, activation second EPLD program, wherein primary storage region is for storing the first EPLD program.
Optionally, storage medium is also configured to store the program code for executing following steps: sending receiving NCP Be used to indicate upgrading the first EPLD program upgrade command before, further includes:
S1 carries out subregion to the storage region of memory, by storage region at least subregion are as follows: for storing EPLD program Primary storage region, for storing the slack storage area of EPLD program, for storing the master of primary storage region status information The information area and the standby information area for storing slack storage area status information.
Optionally, storage medium is also configured to store the program code for executing following steps: to the 2nd EPLD In the successful situation of program trial operation, before the second EPLD program of activation, further includes:
S1 judges to identify in Flash ISF with the presence or absence of LPC programming in the system of EPLD;
S2 if the determination result is NO updates the second EPLD program into ISF;
S3 carries out trial operation to the second EPLD program in ISF.
Optionally, storage medium is also configured to store the program code for executing following steps: according to upgrade command, It obtains the second EPLD program and the slack storage area being written in the memory for storing EPLD program of EPLD includes:
S1 downloads the 2nd EPLD according to the storage location information of the second EPLD program in upgrade command from master control borad CF Program;
S2, by the slack storage area in the memory for being used to store EPLD program of the second EPLD program write-in EPLD.
Optionally, storage medium is also configured to store the program code for executing following steps:
S1, the memory for EPLD program are Flash.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store program code such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of processor, the processor is for running program, wherein program operation Step in Shi Zhihang any of the above-described method.
Optionally, in the present embodiment, above procedure is for executing following steps:
S1, detecting whether there is second and erasable compiles in the standby information area for storing slack storage area status information The downloading mark of volume logical device EPLD program, wherein the second EPLD program is the upgraded version of the first EPLD program, first EPLD program is version to be upgraded, and slack storage area is for storing the second EPLD program;
S2 carries out trial operation to the second EPLD program in the case where testing result, which is, is;
S3 activates the second EPLD program in the second successful situation of EPLD program trial operation.
Optionally, in the present embodiment, above procedure is for executing following steps:
S1 receives be used to indicate the erasable Programmadle logic device EPLD of upgrading first that network element control plate NCP is sent The upgrade command of EPLD program;
S2 obtains the second EPLD program and the memory for being used to store EPLD program of EPLD is written according to upgrade command In slack storage area, wherein the second EPLD program is the upgraded version of the first EPLD program;
The downloading mark of the second EPLD program is arranged in S3 in the standby information area.
Optionally, in the present embodiment, above procedure is for executing following steps: to the second EPLD program trial operation at In the case where function, the second EPLD program of activation includes:
S1 sends the successful message of trial operation to NCP in the second successful situation of EPLD program trial operation;
S2 receives the activation command for the second EPLD program of activation that NCP is sent;
S3, according to activation command, by way of switching slack storage area for primary storage region, activation second EPLD program, wherein primary storage region is for storing the first EPLD program.
Optionally, in the present embodiment, above procedure is used to execute following steps: receiving being used to indicate for NCP transmission Before the upgrade command for upgrading the first EPLD program, further includes:
S1 carries out subregion to the storage region of memory, by storage region at least subregion are as follows: for storing EPLD program Primary storage region, for storing the slack storage area of EPLD program, for storing the master of primary storage region status information The information area and the standby information area for storing slack storage area status information.
Optionally, in the present embodiment, above procedure is for executing following steps: to the second EPLD program trial operation at In the case where function, before the second EPLD program of activation, further includes:
S1 judges to identify in Flash ISF with the presence or absence of LPC programming in the system of EPLD;
S2 if the determination result is NO updates the second EPLD program into ISF;
S3 carries out trial operation to the second EPLD program in ISF.
Optionally, in the present embodiment, above procedure is for executing following steps: according to upgrade command, obtaining second EPLD program and EPLD is written include: for storing the slack storage area in the memory of EPLD program
S1 downloads the 2nd EPLD according to the storage location information of the second EPLD program in upgrade command from master control borad CF Program;
S2, by the slack storage area in the memory for being used to store EPLD program of the second EPLD program write-in EPLD.
Optionally, in the present embodiment, above procedure is for executing following steps:
S1, the memory for EPLD program are Flash.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (12)

1. a kind of upgrade method characterized by comprising
It detects and whether there is the second erasable Programmadle logic in the standby information area for storing slack storage area status information The downloading of device EPLD program identifies, wherein and second EPLD program is the upgraded version of the first EPLD program, described first EPLD program is version to be upgraded, and the slack storage area is for storing second EPLD program;
In the case where testing result, which is, is, trial operation is carried out to second EPLD program;
In to the successful situation of the second EPLD program trial operation, second EPLD program is activated.
2. the method according to claim 1, wherein in detection for storing slack storage area status information Before downloading in the standby information area with the presence or absence of the second EPLD program identifies, further includes:
Receive the upgrade command for the first EPLD program for being used to indicate upgrading EPLD that network element control plate NCP is sent;
According to the upgrade command, obtains the second EPLD program and the memory for being used to store EPLD program of the EPLD is written In slack storage area;
The downloading mark of second EPLD program is set in the standby information area.
3. according to the method described in claim 2, it is characterized in that, in the situation successful to the second EPLD program trial operation Under, activation second EPLD program includes:
In to the successful situation of the second EPLD program trial operation, the successful message of trial operation is sent to the NCP;
Receive the activation command for activation second EPLD program that the NCP is sent;
According to the activation command, by way of switching the slack storage area for primary storage region, described in activation Second EPLD program, wherein the primary storage region is for storing first EPLD program.
4. according to the method described in claim 3, it is characterized in that, being used to indicate described in upgrading what the reception NCP was sent Before the upgrade command of first EPLD program, further includes:
Subregion is carried out to the storage region of the memory, by the storage region at least subregion are as follows: for storing EPLD program Primary storage region, for storing the slack storage area of EPLD program, for storing primary storage region status information Main information area and the standby information area for storing slack storage area status information.
5. the method according to claim 1, wherein in the situation successful to the second EPLD program trial operation Under, before activation second EPLD program, further includes:
Judge to identify in Flash ISF with the presence or absence of the programming of low pin count lpc bus in the system of the EPLD;
If the determination result is NO, second EPLD program is updated into the ISF;
Trial operation is carried out to second EPLD program in the ISF.
6. according to the method described in claim 2, it is characterized in that, obtaining the 2nd EPLD journey according to the upgrade command Sequence and the EPLD is written include: for storing the slack storage area in the memory of EPLD program
The storage location information of the second EPLD program according to the upgrade command, from storage equipment CF card described in downloading Second EPLD program;
Second EPLD program is written to the slack storage area in the memory for being used to store EPLD program of the EPLD.
7. according to method described in claim 2 or 4 or 6, which is characterized in that the memory for storing EPLD program is Flash。
8. a kind of update device characterized by comprising
Detection module, it is erasable with the presence or absence of second in the standby information area for storing slack storage area status information for detecting Except the downloading mark of Programmadle logic device EPLD program, wherein second EPLD program is the upgrading of the first EPLD program Version, first EPLD program are version to be upgraded, and the slack storage area is for storing second EPLD program;
Commissioned module, for carrying out trial operation to second EPLD program in the case where testing result, which is, is;
Active module, for activating second EPLD program in the successful situation of the second EPLD program trial operation.
9. device according to claim 8, which is characterized in that the active module is also used to the 2nd EPLD In the successful situation of program trial operation, the successful message of trial operation is sent to network element control plate NCP;Receive what the NCP was sent Activate the activation command of second EPLD program;According to the activation command, by by the slack storage area switch for The mode of primary storage region activates second EPLD program, wherein the primary storage region is for storing described first EPLD program.
10. device according to claim 9, which is characterized in that the detection module is also used to storage EPLD program The storage region of memory carries out subregion, by the storage region at least subregion are as follows: for storing the primary storage of EPLD program Region, for storing the slack storage area of EPLD program, for store primary storage region status information main information area and For storing the standby information area of slack storage area status information.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run Method described in any one of perform claim requirement 1 to 7.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 7 described in method.
CN201710445482.5A 2017-06-13 2017-06-13 Upgrading method and device Active CN109144532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710445482.5A CN109144532B (en) 2017-06-13 2017-06-13 Upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710445482.5A CN109144532B (en) 2017-06-13 2017-06-13 Upgrading method and device

Publications (2)

Publication Number Publication Date
CN109144532A true CN109144532A (en) 2019-01-04
CN109144532B CN109144532B (en) 2023-04-11

Family

ID=64829857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710445482.5A Active CN109144532B (en) 2017-06-13 2017-06-13 Upgrading method and device

Country Status (1)

Country Link
CN (1) CN109144532B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096300A (en) * 2019-04-08 2019-08-06 上海赛治信息技术有限公司 A kind of fpga program file backup management system, operation method and upgrade method
CN110286932A (en) * 2019-06-28 2019-09-27 海信(广东)空调有限公司 A kind of program down-loading method and device
CN110377303A (en) * 2019-07-10 2019-10-25 杭州洲钜电子科技有限公司 Method and its equipment based on spare memory area mode upgrade procedure
CN111309353A (en) * 2020-01-20 2020-06-19 山东超越数控电子股份有限公司 Method and device for updating FPGA (field programmable Gate array) firmware of operation board based on server control board
CN114546456A (en) * 2020-11-24 2022-05-27 中移物联网有限公司 Upgrading method and device and electronic equipment
CN116225490A (en) * 2023-01-30 2023-06-06 无锡沐创集成电路设计有限公司 Upgrading method and upgrading device of memory firmware, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015051647A1 (en) * 2013-10-10 2015-04-16 中兴通讯股份有限公司 Firmware upgrade method and system, upper computer and optical module
CN105320534A (en) * 2014-08-01 2016-02-10 中兴通讯股份有限公司 BOOT remote updating method, BOOT remote updating device and BOOT remote updating system for single board

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015051647A1 (en) * 2013-10-10 2015-04-16 中兴通讯股份有限公司 Firmware upgrade method and system, upper computer and optical module
CN105320534A (en) * 2014-08-01 2016-02-10 中兴通讯股份有限公司 BOOT remote updating method, BOOT remote updating device and BOOT remote updating system for single board

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096300A (en) * 2019-04-08 2019-08-06 上海赛治信息技术有限公司 A kind of fpga program file backup management system, operation method and upgrade method
CN110096300B (en) * 2019-04-08 2023-03-14 上海赛治信息技术有限公司 FPGA program file backup management system, operation method and upgrading method
CN110286932A (en) * 2019-06-28 2019-09-27 海信(广东)空调有限公司 A kind of program down-loading method and device
CN110377303A (en) * 2019-07-10 2019-10-25 杭州洲钜电子科技有限公司 Method and its equipment based on spare memory area mode upgrade procedure
CN110377303B (en) * 2019-07-10 2022-11-04 杭州洲钜电子科技有限公司 Method and equipment for upgrading program based on spare storage area mode
CN111309353A (en) * 2020-01-20 2020-06-19 山东超越数控电子股份有限公司 Method and device for updating FPGA (field programmable Gate array) firmware of operation board based on server control board
CN114546456A (en) * 2020-11-24 2022-05-27 中移物联网有限公司 Upgrading method and device and electronic equipment
CN116225490A (en) * 2023-01-30 2023-06-06 无锡沐创集成电路设计有限公司 Upgrading method and upgrading device of memory firmware, electronic equipment and medium
CN116225490B (en) * 2023-01-30 2023-12-22 无锡沐创集成电路设计有限公司 Upgrading method and upgrading device of memory firmware, electronic equipment and medium

Also Published As

Publication number Publication date
CN109144532B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN109144532A (en) Upgrade method and device
CN107291516B (en) A kind of firmware upgrade method and system
US8712082B2 (en) Wireless updating of hearing devices
EP2456257B1 (en) Method and system for upgrading wireless data card
CN102915247B (en) APK plug-in unit management method
CN103906068A (en) Virtual base station establishment method and device
CN105511920B (en) A kind of mobile terminal operating system upgrade method and device based on container
KR20100063474A (en) Method and system for providing fota service
KR101541112B1 (en) FOTA system and the method
WO2017059724A1 (en) Operating system starting method and device
US20180246743A1 (en) Embedded System Enabling On-Line Collaborative Migration of Software Execution Environments
CN104883674A (en) Profile relating management method and apparatus
CN105141463A (en) Router remote upgrade system and method based on server strategy
CN108536464A (en) A kind of hot restorative procedure and device of application program
CN108540509A (en) A kind of processing method of terminal browser, device and server, intelligent terminal
CN112596768A (en) Device updating method and device, storage medium and electronic device
CN113168332B (en) Data processing method and device and mobile terminal
CN110837381B (en) Software upgrading method and device for projection equipment
JP5359835B2 (en) Information processing apparatus, distribution system, and reception method
CN109343944A (en) Data processing method, device, terminal and the storage medium of eSIM card
CN110688136A (en) Application program updating method and device
KR100524588B1 (en) succeeding method of data in mobile
CN106445599B (en) Application program upgrading method and device and terminal
US11425203B2 (en) Commissioning a virtualized network function
CN110442367A (en) The upgrade method and device of program, storage medium and electronic device

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
GR01 Patent grant
GR01 Patent grant