CN117632162A - Software upgrading system and method - Google Patents

Software upgrading system and method Download PDF

Info

Publication number
CN117632162A
CN117632162A CN202311675414.XA CN202311675414A CN117632162A CN 117632162 A CN117632162 A CN 117632162A CN 202311675414 A CN202311675414 A CN 202311675414A CN 117632162 A CN117632162 A CN 117632162A
Authority
CN
China
Prior art keywords
software
image file
app
loaderupdate
online
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
CN202311675414.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.)
Beijing Runke General Technology Co Ltd
Original Assignee
Beijing Runke General 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 Beijing Runke General Technology Co Ltd filed Critical Beijing Runke General Technology Co Ltd
Priority to CN202311675414.XA priority Critical patent/CN117632162A/en
Publication of CN117632162A publication Critical patent/CN117632162A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

A software upgrading system and method relates to the technical field of online upgrading of embedded processor programs. The system comprises: online upgrade software, loaderUpdate software and App software; the online upgrade software is used for programming the LoaderUpdate software to the position of the App software; loaderUpdate software for upgrading the online upgrade software; and the online upgrade software is used for re-writing the App software according to the upgrade result. Therefore, when programming errors or abnormal power failure occurs in the process of upgrading the online upgrading software by the LoaderUpdate, the online upgrading software is still continuously programmed after the controller is restarted, so that the problem of power failure in the upgrading process of the online upgrading software is solved, and the reliability of the upgrading process of the online upgrading software is improved.

Description

Software upgrading system and method
Technical Field
The application relates to the technical field of online upgrading of embedded processor programs, in particular to a software upgrading system and method.
Background
In order to improve the field maintainability, the embedded chip needs to support the upgrading and loading functions of the internal online upgrading software and the application software.
Currently, a method for upgrading Bootloader software by an embedded processor through a serial bus or a CAN bus interface may be to install a Bootloader software upgrading module in Application software (App), wait for power-on to enter an Application program, and then upgrade the Bootloader software by using the Application software.
However, the method of upgrading the Bootloader software by using the Bootloader software upgrading module built in the application software increases complexity of the application software, and if the power is off before the Bootloader is written, there is a risk that the software cannot be started or is started abnormally due to fluctuation of an external power supply.
Disclosure of Invention
The application provides a software upgrading system and a method, which can improve the reliability of online upgrading software.
The application discloses the following technical scheme:
in a first aspect, the present application discloses a software upgrade system, the system comprising: online upgrade software, loaderUpdate software and App software;
the online upgrade software is used for programming the LoaderUpdate software to the position of the App software;
the LoaderUpdate software is used for upgrading the online upgrade software;
and the online upgrade software is used for re-writing the App software according to an upgrade result.
Optionally, the online upgrade software is specifically configured to:
acquiring a first image file, wherein the first image file is an image file of the LoaderUpdate software;
performing file image verification and configuration item coding verification on the first image file;
and if the verification is passed, erasing a second image file, and writing the first image file to the position of the second image file, wherein the second image file is an image file of the App software.
Optionally, the LoaderUpdate software is specifically configured to:
acquiring a third image file, wherein the third image file is an image file of the online upgrade software;
performing file image verification and configuration item coding verification on the third image file;
and if the verification is passed, the third image file is burnt to the position of the existing image file.
Optionally, the online upgrade software is specifically configured to:
acquiring the second image file;
performing file image verification and configuration item coding verification on the second image file;
and if the verification is passed, the first image file is erased, and the second image file is burnt to the position of the first image file.
Optionally, the system further comprises: a boot software;
the guiding software is used for judging whether the first effective mark is effective or not;
if yes, jumping to the App software;
if not, jumping to the online upgrading software;
and the App software is used for jumping to the online upgrading software after the first effective mark is erased.
Optionally, the online upgrade software, the LoaderUpdate software and the App software set configuration item code; the online upgrade software is specifically used for:
judging whether the configuration item code of the LoaderUpdate software is consistent with the configuration item code of the App software;
if yes, programming LoaderUpdate software to the position of the App software;
judging whether the configuration item codes of the online upgrade software and the configuration item codes of the App software in the upgrade result are inconsistent;
if yes, re-programming the App software.
In a second aspect, the present application provides a software upgrading method, applied to online upgrading of software, the method including:
programming LoaderUpdate software to the position of App software;
and re-programming the App software in response to the upgrading result of the LoaderUpdate software on the online upgrading software.
Optionally, the programming the LoaderUpdate software to the location of the App software includes:
acquiring a first image file, wherein the first image file is an image file of the LoaderUpdate software;
performing file image verification and configuration item coding verification on the first image file;
and if the verification is passed, erasing a second image file, and writing the first image file to the position of the second image file, wherein the second image file is an image file of the App software.
Optionally, the re-programming the App software includes:
acquiring the second image file;
performing file image verification and configuration item coding verification on the second image file;
and if the verification is passed, the first image file is erased, and the second image file is burnt to the position of the first image file.
Optionally, the online upgrade software, the LoaderUpdate software and the App software set configuration item code;
the programming the LoaderUpdate software to the position of the App software includes:
judging whether the configuration item code of the LoaderUpdate software is consistent with the configuration item code of the App software;
if yes, programming LoaderUpdate software to the position of the App software;
the re-programming of the App software includes:
judging whether the configuration item codes of the online upgrade software and the configuration item codes of the App software in the upgrade result are inconsistent;
if yes, re-programming the App software.
Compared with the prior art, the application has the following beneficial effects:
the application provides a software upgrading system and a method, wherein the system comprises the following steps: online upgrade software, loaderUpdate software and App software; the online upgrade software is used for programming the LoaderUpdate software to the position of the App software; loaderUpdate software for upgrading the online upgrade software; and the online upgrade software is used for re-writing the App software according to the upgrade result. Therefore, when programming errors or abnormal power failure occurs in the process of upgrading the online upgrading software by the LoaderUpdate, the online upgrading software is still continuously programmed after the controller is restarted, so that the problem of power failure in the upgrading process of the online upgrading software is solved, and the reliability of the upgrading process of the online upgrading software is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a signaling diagram of a software upgrade system provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of memory address division of Bootloader and App software according to an embodiment of the present application;
fig. 3 is a flowchart of a software upgrading method according to an embodiment of the present application.
Detailed Description
Technical terms related to the present application are described first.
Bootloader is the first code segment executed by the embedded system after power-up, after it completes initialization of the CPU and related hardware, the operating system image or the cured embedded application program is loaded into the memory and then jumps to the space where the operating system is located, and the operating system is started to run. In an embedded operating system, bootloader runs before the kernel of the operating system runs, and can initialize hardware devices and establish a memory space map, so that the software and hardware environment of the system is brought into a proper state, and the correct environment is prepared for finally calling the kernel of the operating system.
Currently, two main methods for upgrading Bootloader software by an embedded processor through a serial bus or a CAN bus interface exist.
The first is to use a multistage Bootloader software program and use the primary Bootloader software to complete the upgrade of the secondary Bootloader software. However, the method of upgrading Bootloader software using the multistage Bootloader software program mainly has the following problems: first, there may be a situation that the primary Bootloader software cannot be upgraded, for example, after a requirement or a technical scheme is changed, the risk of upgrading the primary Bootloader software is high and the primary Bootloader software cannot be upgraded; secondly, the two-level Bootloader software and the application program are required to be delivered as software in the product, so that the management and maintenance cost of the software is increased; thirdly, for the embedded software platform, the Flash storage space is smaller, and a plurality of Bootloader software increases the Flash usage amount, so that the further expansion of functions is not facilitated.
And the second is to build a Bootloader software upgrading module in the application software, and upgrade the Bootloader software by using the application software after waiting for powering on to enter the application program. However, the method for upgrading the Bootloader software by utilizing the Bootloader software upgrading module built in the application software increases the complexity of the application software, and simultaneously introduces the risk that the software cannot be started or is abnormally started due to fluctuation of an external power supply when the Bootloader is powered off before writing is completed.
In view of the above drawbacks, the present application provides a system and method for upgrading software. The system comprises: online upgrade software, loaderUpdate software and App software; the online upgrade software is used for programming the LoaderUpdate software to the position of the App software; loaderUpdate software for upgrading the online upgrade software; and the online upgrade software is used for re-writing the App software according to the upgrade result. Therefore, when programming errors or abnormal power failure occurs in the process of upgrading the online upgrading software by the LoaderUpdate, the online upgrading software is still continuously programmed after the controller is restarted, so that the problem of power failure in the upgrading process of the online upgrading software is solved, and the reliability of the upgrading process of the online upgrading software is improved. It should be noted that, the Bootloader's boot software only performs flag checking and jumping, that is, it is guaranteed that no upgrade or change exists basically in the whole life cycle. If the Bootloader's boot software needs to be upgraded under very special conditions, the Bootloader can still be upgraded by the LoaderUpdate software with reference to the way of upgrading the online upgrade software.
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, the diagram is a signaling diagram of a software upgrade system provided in an embodiment of the present application. The software upgrade system 100 includes: bootloader software 101, loaderUpdate software 102, app software 103.
The Bootloader software 101 includes Bootloader boot software 104 and Bootloader online upgrade software 105. The boot software 104 mainly realizes App valid flag checking, online upgrade software skip function and App skip function, and the online upgrade software 105 mainly realizes App validity checking and App upgrade function.
Referring to fig. 2, the diagram is a schematic diagram of memory address division of Bootloader and App software provided in the embodiments of the present application. Bootloader software 101 as a configuration item, by setting a functional partition, boot software 104 and online upgrade software 105 are stored in two independent flash sectors, namely FlashSector1 and FlashSector3 in fig. 2, respectively.
As a configuration item, app software 103 can use a plurality of sectors continuously on the program storage space, namely, flashSector5/6/7 in fig. 2.
The LoaderUpdate software 102, as an upgrade software for the online upgrade software 105, shares the same space as the App software 102, i.e., in FlashSector5/6/7 in fig. 2.
In some examples, bootloader software 101 and App software 103 are programmed in the device in a normal state; when the online upgrade software 105 is updated, bootloader software 101 and LoaderUpdate software 102 are programmed in the device.
S101: bootloader's boot software determines if the App valid flag (i.e., the first valid flag) is valid. If yes, the step of S102 is executed, and if not, the step of S103 is executed.
After the device is powered up and the DSP processor (Digital Signal Processor) is started, bootloader software 101 is first started and Bootloader boot software 104 is entered. In particular, a DSP processor is a processor that is very good at implementing various digital signal processing operations (e.g., digital filtering, spectral analysis, etc.) at high speeds.
Then, in Bootloader software 101, bootloader software 104 checks the App valid flag to determine whether the App valid flag is valid. If the App valid flag is valid, executing the step S102; if the App valid flag is not valid, step S103 is performed.
S102: the Bootloader's boot software jumps to App software.
When the App software valid flag is valid, the Bootloader boot software 104 jumps to the App software 103 to complete the start of the App software 103. Subsequently, the operations of step S104 and thereafter are performed.
S103: the boot software of the Bootloader jumps to the online upgrade software of the Bootloader.
When the App software valid flag is invalid, the Bootloader boot software 104 jumps to the Bootloader online upgrade software 105 to prepare for completing programming and upgrading of the App software.
S104: the App software erases the App valid flag.
When the online upgrade software 105 of the Bootloader needs to be upgraded, the loader update software 102 can be used to disguise as the App software 103 so as to replace the App software 103 in the device, and the online upgrade software is upgraded according to the instruction of the upper computer.
Therefore, after the Bootloader boot software 104 jumps to the App software 103, the App software 103 erases the App valid flag according to the upper computer instruction, and then the App valid flag at this time is invalid. Specifically, the upper computer is a computer that can directly issue a control command, and the lower computer is a computer that directly controls the equipment to acquire the equipment status.
In some specific implementations, after the App valid flag is erased, the reset operation may also be automatically performed, that is, after the embedded chip is restarted, the operation of determining whether the App valid flag is valid is performed again, where the App valid flag is invalid. Then the Bootloader's boot software 104 will jump to the Bootloader's online upgrade software 105 to await the upgrade of the software.
S105: and the online upgrading software of the Bootloader writes the LoaderUpdate software to the position of the App software.
LoaderUpdate software 102 is the corresponding upgrade software of Bootloader's online upgrade software 105. In some specific implementations, first, the Bootloader online upgrade software 105 receives an image file (i.e., a first image file) of the LoaderUpdate software 102 from the host computer according to a contracted communication protocol. The image file of LoaderUpdate software 102 will then perform a file image checksum configuration item encoding check. After the image file passes the verification, the online upgrade software 105 erases the App image file (i.e., the second image file) in Flash, and writes the image file of the LoaderUpdate software 102 to a corresponding location.
In some specific implementations, the Bootloader online upgrade software 105 may also perform read-back verification on the programmed LoaderUpdate image file. When the read-back check is passed, the App valid flag needs to be set to be valid. That is, after the LoaderUpdate software 102 is programmed to the location of the App software 103, the App valid flag is displayed valid.
S106: the LoaderUpdate software upgrades the online upgrade software of the Bootloader.
In some specific implementations, after the device is powered up again, first, the LoaderUpdate software 102 receives an image file (i.e., a third image file) of the Bootloader's online upgrade software 105 from the host computer according to the agreed communication protocol. The image file of the online upgrade software 105 will then undergo a file image checksum configuration item code check. After the image file passes the verification, the LoaderUpdate software 102 firstly erases the valid flag (i.e. the second valid flag) of the online upgrade software, then erases the existing online upgrade software image in Flash, and finally burns the received image file of the online upgrade software 105 to a corresponding position.
In some specific implementations, after the LoaderUpdate software 102 upgrades the online upgrade software 105, the LoaderUpdate software 102 may also perform read-back verification on the image file of the programmed online upgrade software 105. When the read-back check is passed, the valid flag of the online upgrade software needs to be set to be valid. That is, after the LoaderUpdate software 102 upgrades the online upgrade software 105, the online upgrade software valid flag is displayed valid.
S107: the LoaderUpdate software erases the App valid flag and jumps to the online upgrade software of the Bootloader.
The upper computer sends an App valid flag clearing instruction to the LoaderUpdate software 102 according to the agreed communication protocol. When the LoaderUpdate software 102 receives the instruction to clear the App valid flag, the LoaderUpdate software 102 checks the online upgrade software valid flag.
When the online upgrade software validity flag is valid, the LoaderUpdate software 102 clears the App valid flag, and after performing reset, jumps into the online upgrade software 105.
When the online upgrade software validity flag is invalid, the LoaderUpdate software 102 does not respond to the App valid flag instruction, and feeds back an online upgrade software validity flag invalid state.
S108: the online upgrade software of Bootloader rewrites the App software.
After the LoaderUpdate software 102 successfully jumps to the Bootloader online upgrade software 105, the Bootloader online upgrade software 105 first receives an image file of the App software from the host computer according to the agreed communication protocol. Then, the App image file will perform file image check and configuration item code check. After the image file passes the verification, the online upgrade software 105 of the Bootloader erases the LoaderUpdate image file in Flash, and writes the image file of the App software 103 to a corresponding position.
In some specific implementations, after the App software 103 is rewritten, the Bootloader online upgrade software 105 may perform read-back verification on the image file of the rewritten App software 103. When the read-back check passes, the App valid flag is displayed valid.
It should be noted that, to prevent the writing of an error file or the writing of a file to an error location, configuration item codes may be added to specific locations of the Bootloader online upgrade software 105, loaderUpdate software 102, and App software 103. The LoaderUpdate software 102 is consistent with the configuration item code of the App software 103, and is inconsistent with the configuration item code of the Bootloader online upgrade software 105.
When upgrading the LoaderUpdate software 102 or the App software 103, the online upgrade software 105 of the Bootloader needs to check whether the value of the configuration item code of the programming file is consistent with the configuration item code of the LoaderUpdate software 102 or the App software 103. When the configuration item codes are consistent, the upgrade file is allowed to be programmed to the flash; and when the configuration item codes are inconsistent, the upgrade file is forbidden to be programmed to the flash, and the abnormal fault of the configuration item codes of the image file is reported.
Similarly, when the loader update software 102 upgrades the online upgrade software 105 of the Bootloader, the software code needs to be checked, and the specific checking process is similar to the step of upgrading the App software 103 by the online upgrade software 105 of the Bootloader, which is not repeated here.
In summary, the present application discloses a LoaderUpdate software upgrade system, which includes: online upgrade software, loaderUpdate software and App software; the online upgrade software is used for programming the LoaderUpdate software to the position of the App software; loaderUpdate software for upgrading the online upgrade software; and the online upgrade software is used for re-writing the App software according to the upgrade result. When the loader updates the online upgrade software of the Bootloader, a programming error or abnormal power failure occurs, so that after the controller is restarted, the boot software of the Bootloader can still normally jump to the loader update software to continue programming the online upgrade software, thereby solving the problem of power failure in the upgrade process of the online upgrade software and improving the reliability of the upgrade process of the online upgrade software. In addition, the LoaderUpdate software does not need to be delivered to clients, so that development and maintenance costs are reduced.
It should be noted that, the Bootloader's boot software only performs flag checking and jumping, that is, it is guaranteed that no upgrade or change exists basically in the whole life cycle. If the Bootloader's boot software needs to be upgraded under very special conditions, the Bootloader can still be upgraded by the LoaderUpdate software with reference to the way of upgrading the online upgrade software.
Referring to fig. 3, the schematic diagram of a software upgrading method according to an embodiment of the present application is provided, and the method is applied to online upgrading of software. The method comprises the following steps:
s301: and programming the LoaderUpdate software to the position of the App software.
In some specific implementations, the programming the LoaderUpdate software to the location of the App software includes: acquiring a first image file, wherein the first image file is an image file of LoaderUpdate software; performing file image verification and configuration item coding verification on the first image file; and if the verification is passed, the second image file is erased, the first image file is burnt to the position of the second image file, and the second image file is an image file of App software.
S302: and re-writing the App software in response to the upgrading result of the LoaderUpdate software on the online upgrading software.
In some specific implementations, the re-programming App software includes: acquiring a second image file; performing file image verification and configuration item coding verification on the second image file; and if the verification is passed, the first image file is erased, and the second image file is burnt to the position of the first image file.
It should be noted that, the online upgrade software, loaderUpdate software, and App software set configuration item code. Then, the loader update software is programmed to the location of the App software, including: judging whether the configuration item code of the LoaderUpdate software is consistent with the configuration item code of the App software; if yes, the LoaderUpdate software is programmed to the position of the App software. Re-programming App software, comprising: judging whether the configuration item codes of the online upgrade software in the upgrade result are inconsistent with the configuration item codes of the App software; if yes, re-programming the App software.
In summary, the application discloses a LoaderUpdate software upgrading method applied to online upgrading software. Programming LoaderUpdate software to the position of App software; and re-writing the App software in response to the upgrading result of the LoaderUpdate software on the online upgrading software. Therefore, when the loader updates the online upgrading software of the Bootloader, programming errors or abnormal power failure occur, so that after the controller is restarted, the boot software of the Bootloader can still normally jump to the loader updates software and continue programming the online upgrading software, the problem of power failure in the upgrading process of the online upgrading software is solved, and the reliability of the upgrading process of the online upgrading software is improved. In addition, the LoaderUpdate software does not need to be delivered to clients, so that development and maintenance costs are reduced.
It should be noted that, the Bootloader's boot software only performs flag checking and jumping, that is, it is guaranteed that no upgrade or change exists basically in the whole life cycle. If the Bootloader's boot software needs to be upgraded under very special conditions, the Bootloader can still be upgraded by the LoaderUpdate software with reference to the way of upgrading the online upgrade software.
It should be noted that although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment is mainly described in a different point from other embodiments. In particular, for the method embodiments, since they are substantially similar to the system embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in sections. The method embodiments described above are merely illustrative, wherein elements illustrated as separate elements may or may not be physically separate, and elements illustrated as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing is merely one specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A software upgrade system, said system comprising: online upgrade software, loaderUpdate software and App software;
the online upgrade software is used for programming the LoaderUpdate software to the position of the App software;
the LoaderUpdate software is used for upgrading the online upgrade software;
and the online upgrade software is used for re-writing the App software according to an upgrade result.
2. The system of claim 1, wherein the online upgrade software is specifically configured to:
acquiring a first image file, wherein the first image file is an image file of the LoaderUpdate software;
performing file image verification and configuration item coding verification on the first image file;
and if the verification is passed, erasing a second image file, and writing the first image file to the position of the second image file, wherein the second image file is an image file of the App software.
3. The system of claim 1, wherein the LoaderUpdate software is specifically configured to:
acquiring a third image file, wherein the third image file is an image file of the online upgrade software;
performing file image verification and configuration item coding verification on the third image file;
and if the verification is passed, the third image file is burnt to the position of the existing image file.
4. The system of claim 1, wherein the online upgrade software is specifically configured to:
acquiring the second image file;
performing file image verification and configuration item coding verification on the second image file;
and if the verification is passed, the first image file is erased, and the second image file is burnt to the position of the first image file.
5. The system of claim 1, wherein the system further comprises: a boot software;
the guiding software is used for judging whether the first effective mark is effective or not;
if yes, jumping to the App software;
if not, jumping to the online upgrading software;
and the App software is used for jumping to the online upgrading software after the first effective mark is erased.
6. The system of claim 1, wherein the online upgrade software, the LoaderUpdate software, and the App software setup configuration item code; the online upgrade software is specifically used for:
judging whether the configuration item code of the LoaderUpdate software is consistent with the configuration item code of the App software;
if yes, programming LoaderUpdate software to the position of the App software;
judging whether the configuration item codes of the online upgrade software and the configuration item codes of the App software in the upgrade result are inconsistent;
if yes, re-programming the App software.
7. A method for upgrading software on-line, the method comprising:
programming LoaderUpdate software to the position of App software;
and re-programming the App software in response to the upgrading result of the LoaderUpdate software on the online upgrading software.
8. The method of claim 7, wherein programming LoaderUpdate software to the App software location comprises:
acquiring a first image file, wherein the first image file is an image file of the LoaderUpdate software;
performing file image verification and configuration item coding verification on the first image file;
and if the verification is passed, erasing a second image file, and writing the first image file to the position of the second image file, wherein the second image file is an image file of the App software.
9. The method of claim 8, wherein the re-programming the App software comprises:
acquiring the second image file;
performing file image verification and configuration item coding verification on the second image file;
and if the verification is passed, the first image file is erased, and the second image file is burnt to the position of the first image file.
10. The method of claim 7, wherein the online upgrade software, the LoaderUpdate software, and the App software setup configuration item are encoded;
the programming the LoaderUpdate software to the position of the App software includes:
judging whether the configuration item code of the LoaderUpdate software is consistent with the configuration item code of the App software;
if yes, programming LoaderUpdate software to the position of the App software;
the re-programming of the App software includes:
judging whether the configuration item codes of the online upgrade software and the configuration item codes of the App software in the upgrade result are inconsistent;
if yes, re-programming the App software.
CN202311675414.XA 2023-12-07 2023-12-07 Software upgrading system and method Pending CN117632162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311675414.XA CN117632162A (en) 2023-12-07 2023-12-07 Software upgrading system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311675414.XA CN117632162A (en) 2023-12-07 2023-12-07 Software upgrading system and method

Publications (1)

Publication Number Publication Date
CN117632162A true CN117632162A (en) 2024-03-01

Family

ID=90028650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311675414.XA Pending CN117632162A (en) 2023-12-07 2023-12-07 Software upgrading system and method

Country Status (1)

Country Link
CN (1) CN117632162A (en)

Similar Documents

Publication Publication Date Title
CN110231952B (en) ECU program backup and cyclic upgrade control method and device
US6615404B1 (en) Method and apparatus for downloading software into an embedded-system
US5864698A (en) Disk based bios
US8136108B2 (en) Updating firmware with multiple processors
KR100584338B1 (en) Method and system for updating software
ES2371995T3 (en) UPDATE OF THE FIRMWARE OF AN ELECTRONIC DEVICE.
CN109358887B (en) On-line upgrading method, device and system for single chip microcomputer program
CN111796848A (en) Bootloader software updating method and device, embedded controller and storage medium
WO2021115477A1 (en) Program upgrade method and apparatus, electronic device and storage medium
EP1591893A1 (en) Method and system for fail-safe updating of boot code
CN101815988A (en) Firmware image update and management
CN104572206A (en) Application program self updating and backup recovery method
CN101826027A (en) Embedded system and updating method thereof
US20120260244A1 (en) Failsafe firmware updates
CN111240720A (en) Boot program upgrading method and device and storage medium
CN111813428A (en) Method and device for upgrading terminal firmware, electronic equipment and storage medium
WO2012071852A1 (en) Method and apparatus for upgrading bootstrap program
CN105354063A (en) Online program upgrading method and system
CN107566169A (en) A kind of firmware upgrade method and router based on openwrt
CN101807152A (en) Basic output and input system for self verification of selection read only memory and verification method thereof
US20020095619A1 (en) Fault tolerant/redundant boot ROM reprogramming
CN109634781A (en) One kind is based on embedded program two-region Backup Images system and starting method
CN112433769A (en) BMC starting method and device, computer equipment and storage medium
CN103092659A (en) Digital signal processor (DSP) software upgrading system and upgrading method separated from support environment of emulator
CN111736882B (en) Remote upgrading method of DSP program

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