CN118012475A - Dual-CPU dual-system program upgrading method - Google Patents

Dual-CPU dual-system program upgrading method Download PDF

Info

Publication number
CN118012475A
CN118012475A CN202410240922.3A CN202410240922A CN118012475A CN 118012475 A CN118012475 A CN 118012475A CN 202410240922 A CN202410240922 A CN 202410240922A CN 118012475 A CN118012475 A CN 118012475A
Authority
CN
China
Prior art keywords
cpu system
upgrade
dual
cpu
slave
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
CN202410240922.3A
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.)
Shenzhen Xiruilian Technology Co ltd
Original Assignee
Shenzhen Xiruilian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xiruilian Technology Co ltd filed Critical Shenzhen Xiruilian Technology Co ltd
Priority to CN202410240922.3A priority Critical patent/CN118012475A/en
Publication of CN118012475A publication Critical patent/CN118012475A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of system program upgrading, in particular to a double-CPU double-system program upgrading method, which comprises the steps of integrating upgrade files of a main CPU system and a secondary CPU system into the same upgrade package, namely, constructing the upgrade package, starting the main CPU system and the secondary CPU system after constructing the upgrade package, and establishing a reliable management channel for communication after the main CPU system and the secondary CPU system are started; the main CPU system is upgraded, namely an upgrade package is downloaded to a cache area, the version is verified, after verification is passed, the erasing Flash partition operation is executed to upgrade the main CPU system, and after the main CPU system upgrade is completed, the system reset restarting is executed; then, the slave CPU system is restarted, and after the master CPU system and the slave CPU system are started, a management channel is built again for effective communication.

Description

Dual-CPU dual-system program upgrading method
Technical Field
The invention relates to the technical field of system program upgrading, in particular to a double-CPU double-system program upgrading method.
Background
System program upgrades refer to the updating or upgrading of programs in a computer system, software system, or other electronic device. Such upgrades may include repairing errors, adding new functionality, improving performance, enhancing security, and the like.
However, for the program upgrading of the dual-CPU dual-system, especially when the program upgrading of the ONU equipment of the dual-partition mirror image system of the CPU is carried out, a new program is rewritten to the spare partition, and then the main partition is switched to the spare partition for restarting, so that the consistent version of the dual-CPU program is required to be ensured during the program upgrading.
Disclosure of Invention
The invention aims to provide a double-CPU double-system program upgrading method which effectively ensures the consistency of double program versions of double-CPU double-system equipment and improves the iteration upgrading stability.
In order to achieve the above purpose, the present invention is widely applied to onu terminal network technical schemes, and in particular provides the following technical schemes: a dual CPU dual system program upgrading method includes:
Step S001: integrating upgrade files of a main CPU system and a secondary CPU system into the same upgrade package, namely constructing the upgrade package, starting the main CPU system and the secondary CPU system after constructing the upgrade package, and establishing a reliable management channel for communication after the main CPU system and the secondary CPU system are started;
step S002: the main CPU system is upgraded, namely an upgrade package is downloaded to a cache area, the version is verified, after verification is passed, the erasing Flash partition operation is executed to upgrade the main CPU system, and after the main CPU system upgrade is completed, the system reset restarting is executed; then, the slave CPU system is restarted, and after the master CPU system and the slave CPU system are started, a management channel is built again for effective communication;
Step S003: the slave CPU system initiates software version check immediately, when the master CPU system is updated and the software information of the slave CPU system bound in the file system is different from the local actual version information, the software update is required to be executed, and then the slave CPU system receives a new update file through a management channel and performs Flash partition erasing update on the new version software;
step S004: after the secondary CPU system is upgraded, the associated versions of the secondary CPU system and the primary CPU system are consistent, and the complete machine reset is executed, the primary CPU system and the secondary CPU system are marked to be upgraded.
Preferably, in the step S001, in the step of constructing the upgrade package of the master CPU system, the software version information of the slave CPU system and the corresponding file thereof are compiled together in advance and stored in the file system of the master CPU system, so as to ensure that the software versions of the master CPU system and the slave CPU system are closely associated and packaged as a whole.
Preferably, the management channel comprises an I < C channel, an SPI channel and an RPC channel.
Preferably, in the step S001, when the reliable management channel is established for communication, if the master CPU system fails to establish a connection with the slave CPU system within a set time, the complete machine reset operation is actively performed to attempt to resume communication.
Preferably, in the process of upgrading the main CPU system, the upgrade package is received and temporarily stored in the buffer area through a remote communication mode.
Compared with the prior art, the invention has the beneficial effects that:
(1) The invention integrates the upgrade files of the main CPU system and the auxiliary CPU system into the same upgrade package, namely, the upgrade package is constructed, the main CPU system and the auxiliary CPU system are started after the upgrade package is constructed, a reliable management channel is required to be established for communication after the main CPU system and the auxiliary CPU system are started, then the main CPU system is upgraded, namely, the upgrade package is downloaded to a buffer area, the version is verified, after the verification is passed, the erasing Flash partition operation is executed for the main CPU system upgrade, and after the main CPU system upgrade is completed, the system reset and the restart are executed; then, the slave CPU system is restarted, and after the master CPU system and the slave CPU system are started, a management channel is built again for effective communication; in this way, the upgrade files of the main CPU system and the auxiliary CPU system are integrated in the same upgrade package, and after the version is verified, the main CPU system and the auxiliary CPU system are upgraded, so that the consistency of the double program versions of the main CPU system and the auxiliary CPU system can be effectively ensured, and the iteration upgrade stability is improved.
Drawings
FIG. 1 is a step diagram of an upgrade method of a master CPU system and a slave CPU system according to the present invention;
FIG. 2 is a flow chart of the upgrade of the master CPU system and the slave CPU system of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1 and 2, the method for upgrading dual-CPU dual-system program in the present invention includes:
Step S001: integrating upgrade files of a main CPU system and a secondary CPU system into the same upgrade package, namely constructing the upgrade package, starting the main CPU system and the secondary CPU system after constructing the upgrade package, and establishing a reliable management channel for communication after the main CPU system and the secondary CPU system are started;
step S002: the main CPU system is upgraded, namely an upgrade package is downloaded to a cache area, the version is verified, after verification is passed, the erasing Flash partition operation is executed to upgrade the main CPU system, and after the main CPU system upgrade is completed, the system reset restarting is executed; then, the slave CPU system is restarted, and after the master CPU system and the slave CPU system are started, a management channel is built again for effective communication;
Step S003: the slave CPU system initiates software version check immediately, when the master CPU system is updated and the software information of the slave CPU system bound in the file system is different from the local actual version information, the software update is required to be executed, and then the slave CPU system receives a new update file through a management channel and performs Flash partition erasing update on the new version software;
step S004: after the secondary CPU system is upgraded, the associated versions of the secondary CPU system and the primary CPU system are consistent, and the complete machine reset is executed, the primary CPU system and the secondary CPU system are marked to be upgraded.
In this embodiment, in the step S001, in the step of constructing the upgrade package of the master CPU system, the software version information of the slave CPU system and the corresponding file thereof are compiled in advance and stored in the file system of the master CPU system, so as to ensure that the software versions of the master CPU system and the slave CPU system are closely related and packaged as a whole.
In this embodiment, the management channel includes an i_c channel, an SPI channel, and an RPC channel; specifically, when a reliable management channel is established for communication, if the master CPU system fails to establish connection with the slave CPU system within a set time, the complete machine reset operation is actively executed to attempt to restore communication, and the slave CPU system can enter a subsequent software upgrading verification stage on the premise that the slave CPU system has to establish communication with the master CPU system in a starting process.
In this embodiment, during the upgrade of the main CPU system, the upgrade package is received and temporarily stored in the buffer area through a remote communication manner, then a strict version verification is performed, after the verification is passed, the erasing Flash partition operation is performed to upgrade the system, and after the upgrade is completed, the system is automatically triggered to reset and restart.
In this embodiment, after the slave CPU system is normally started and successfully establishes a management communication channel with the master CPU system, a built-in software version checking process is started, through the management channel, the slave CPU system obtains own software version information, and performs version consistency check, once the difference between the version of the master CPU system and the version of the slave CPU system is found, the slave CPU system is triggered to upgrade, an upgrade package file is downloaded to a memory, then an erase Flash partition upgrade step is performed, after the upgrade is completed, the system is reset and restarted, if the verification result shows that the version of the master CPU system is consistent with the version of the slave CPU system, the current system state is maintained, and normal operation is continued, otherwise, the upgrade operation is performed again, so that the version of the master CPU system is consistent with the version of the slave CPU system.
In this embodiment, the device upgrade process of the whole dual-CPU system integrates the two parts, the main CPU system first triggers the upgrade process, downloads the upgrade package to the cache and verifies the version, and then executes the system reset restart after the self upgrade is completed, at this time, the slave CPU system is restarted, and establishes the management channel again after both are started for effective communication. The slave CPU system then initiates a software version check flow, and the software information of the slave CPU system bound in the file system is different from the local actual version information in view of the updated master CPU system, so that the software upgrading flow needs to be executed. And then, receiving a new upgrade file from the CPU system through the management channel, and performing erasure upgrade of the Flash partition on the new version software. After the secondary CPU system is upgraded and the complete machine reset is executed, the complete upgrading process of the complete machine double CPU system is marked to be completed smoothly.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (5)

1. A double CPU double system program upgrading method is characterized in that: comprising the following steps:
Step S001: integrating upgrade files of a main CPU system and a secondary CPU system into the same upgrade package, namely constructing the upgrade package, starting the main CPU system and the secondary CPU system after constructing the upgrade package, and establishing a reliable management channel for communication after the main CPU system and the secondary CPU system are started;
step S002: the main CPU system is upgraded, namely an upgrade package is downloaded to a cache area, the version is verified, after verification is passed, the erasing Flash partition operation is executed to upgrade the main CPU system, and after the main CPU system upgrade is completed, the system reset restarting is executed; then, the slave CPU system is restarted, and after the master CPU system and the slave CPU system are started, a management channel is built again for effective communication;
Step S003: the slave CPU system initiates software version check immediately, when the master CPU system is updated and the software information of the slave CPU system bound in the file system is different from the local actual version information, the software update is required to be executed, and then the slave CPU system receives a new update file through a management channel and performs Flash partition erasing update on the new version software;
step S004: after the secondary CPU system is upgraded, the associated versions of the secondary CPU system and the primary CPU system are consistent, and the complete machine reset is executed, the primary CPU system and the secondary CPU system are marked to be upgraded.
2. The dual CPU dual system program upgrade method according to claim 1, wherein: in the step S001, in the step of constructing the upgrade package of the master CPU system, the software version information of the slave CPU system and the corresponding file thereof are compiled in advance and stored in the file system of the master CPU system, so as to ensure that the software versions of the master CPU system and the slave CPU system are closely related and packaged as a whole.
3. The dual CPU dual system program upgrade method according to claim 1, wherein: the management channels comprise an I-type C channel, an SPI channel and an RPC channel.
4. The dual CPU dual system program upgrade method according to claim 1, wherein: in the step S001, when the reliable management channel is established for communication, if the master CPU system fails to establish a connection with the slave CPU system within a set time, the complete machine reset operation is actively performed to attempt to resume communication.
5. The dual CPU dual system program upgrade method according to claim 1, wherein: and in the process of upgrading the main CPU system, the upgrade package is received and temporarily stored in the buffer area in a remote communication mode.
CN202410240922.3A 2024-03-04 2024-03-04 Dual-CPU dual-system program upgrading method Pending CN118012475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410240922.3A CN118012475A (en) 2024-03-04 2024-03-04 Dual-CPU dual-system program upgrading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410240922.3A CN118012475A (en) 2024-03-04 2024-03-04 Dual-CPU dual-system program upgrading method

Publications (1)

Publication Number Publication Date
CN118012475A true CN118012475A (en) 2024-05-10

Family

ID=90947957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410240922.3A Pending CN118012475A (en) 2024-03-04 2024-03-04 Dual-CPU dual-system program upgrading method

Country Status (1)

Country Link
CN (1) CN118012475A (en)

Similar Documents

Publication Publication Date Title
KR100506203B1 (en) Booting and boot code update method and system thereof
KR100584338B1 (en) Method and system for updating software
US8136108B2 (en) Updating firmware with multiple processors
US8196130B2 (en) Tri-phase boot process in electronic devices
TWI384367B (en) System of updating firmware and method thereof
CN1936844A (en) Method and system for updating software
CN107301070B (en) Upgrading method and terminal
CN111309354A (en) OTA (over the air) upgrading method and device of networking equipment
CN107643898A (en) Terminal staging method and device
CN110716735A (en) System upgrading method and device, intelligent terminal and computer readable storage medium
CN112433769A (en) BMC starting method and device, computer equipment and storage medium
CN112667265A (en) Method and device for updating bootstrap program
CN107071570A (en) A kind of set top box upgrading method and device
WO2022188690A1 (en) Method and apparatus for upgrading electronic device
CN110580167A (en) system upgrading method, intelligent device and server
KR100729525B1 (en) Method and system for updating firmware
CN105677409A (en) System upgrading method and device
CN116909611A (en) Electronic device firmware updating method, cleaning device and storage medium
CN118012475A (en) Dual-CPU dual-system program upgrading method
CN111338661A (en) Method for reversely upgrading BOOT of application program and storage medium
CN115827046A (en) Method and device for realizing OTA (over the air) upgrade of SPL (shortest Path first) partition, terminal equipment and chip
CN110309018B (en) Charging equipment system switching method, charging equipment and readable storage medium
CN115102855A (en) Intelligent water meter embedded software online upgrading method and system
CA2539897C (en) An electronic device having an alterable configuration and methods of manufacturing and configuring the same
CN114124698A (en) Upgrading method, device and system of power distribution automation terminal operation system based on cloud master station

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination