CN113590388B - UBOOT-based SPL rollback method and device, storage medium and terminal - Google Patents
UBOOT-based SPL rollback method and device, storage medium and terminal Download PDFInfo
- Publication number
- CN113590388B CN113590388B CN202110899519.8A CN202110899519A CN113590388B CN 113590388 B CN113590388 B CN 113590388B CN 202110899519 A CN202110899519 A CN 202110899519A CN 113590388 B CN113590388 B CN 113590388B
- Authority
- CN
- China
- Prior art keywords
- partition
- spl
- slot
- terminal
- ota
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1433—Saving, restoring, recovering or retrying at system level during software upgrading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention provides an SPL rollback method and device based on UBOOT, a storage medium and a terminal, wherein the SPL rollback method comprises the following steps: reading an MISC partition of the terminal, and acquiring OTA (over the air) upgrading information of the terminal; analyzing the obtained OTA upgrading information and judging whether OTA upgrading is finished or not; if the judgment result is that the OTA upgrading fails, replacing the data in the SPL main partition with the data in the SPL standby partition, restarting the terminal and completing the SPL rollback; and if the judgment result is that the OTA is successfully upgraded, the SPL rollback is not required. And detecting whether the mobile terminal can be normally started or not after OTA upgrade by using the identification characteristic of the UBOOT to the A/B partition of the MISC partition, and timely reading and writing the SPL main partition after OTA upgrade failure is detected, replacing data in the SPL main partition by using data in the SPL main partition, and restarting the terminal so as to achieve the aim of rolling back the SPL. The starting failure of the terminal caused by the inconsistency of the SPL main partition and the SPL standby partition is prevented, and the terminal cannot be started due to the incompatibility of the IMG.
Description
Technical Field
The invention relates to the technical field of computers, in particular to an SPL rollback method and device based on UBOOT, a storage medium and a terminal.
Background
After being upgraded by Over-the-Air Technology (OTA), a partition of a VBA (Visual Basic language) architecture may be subjected to an upgrade failure or an error, which may result in a failure to start up normally. After the OTA upgrade fails, all partitions will roll back to the old partition. However, in the prior art, because the loading of the SPL (second-stage application loader) depends on the rom code, the OTA code is not supported in the rom code. The SPL cannot be rolled back by modifying the romcore. Finally, the SPL main partition does not realize rollback, and other partitions successfully rollback, so that terminal startup failure may be caused by inconsistency between the SPL main partition and the SPL standby partition. When the SPL is changed greatly and the OTA is also required to be updated, the terminal may not be bootable due to IMG (a file compression format) incompatibility.
Disclosure of Invention
The invention provides an SPL rollback method and device based on a UBOOT (system boot program), a storage medium and a terminal, which are used for performing SPL rollback in time after OTA upgrading fails, so that starting failure of the terminal due to inconsistency of an SPL main partition and an SPL standby partition is prevented, and the terminal cannot be started due to incompatibility of IMG (inertial navigation group).
In a first aspect, the present invention provides an SPL rollback method based on UBOOT, including: reading an MISC partition (one of six main partitions on an Android system (Android)) of the terminal to acquire OTA upgrade information of the terminal; analyzing the obtained OTA upgrading information and judging whether OTA upgrading is finished or not; if the judgment result is that the OTA upgrading fails, replacing the data in the SPL main partition with the data in the SPL standby partition, restarting the terminal and completing the SPL rollback; and if the judgment result is that the OTA is successfully upgraded, the SPL rollback is not required.
In the scheme, the UBOOT is used for identifying the A/B partition of the MISC partition, whether the MISC partition can be normally started or not is detected in time after OTA upgrade is performed, the reading and writing of the SPL main partition are performed in time after OTA upgrade failure is detected, the data in the SPL main partition is replaced by the data in the SPL standby partition, and the terminal is restarted, so that the purpose of rolling back the SPL is achieved. Therefore, after OTA upgrading fails, SPL rollback is carried out in time, the starting failure of the terminal due to the fact that the SPL main partition and the SPL standby partition are inconsistent is prevented, and the terminal cannot be started due to the fact that IMG is incompatible.
In a specific embodiment, reading the MISC partition of the terminal, and acquiring the OTA upgrade information of the terminal includes: the MISC partition of the terminal is read, and SLOT-A (a peripheral component expansion SLOT type) partition information and SLOT-B (a peripheral component expansion SLOT type) partition information of the terminal are acquired. And the UBOOT analyzes whether OTA upgrading is successful or not by using the identification characteristics of the SLOT-A partition and the SLOT-B partition.
In a specific embodiment, analyzing the obtained OTA upgrade information and determining whether the OTA upgrade is completed includes: analyzing verify _ corrected and three _ remaining attributes (a log representing the state of the SLOT partition) of the SLOT-A partition and the SLOT-B partition, and judging the priority of the SLOT-A partition and the SLOT-B partition; taking the SPL partition corresponding to the SLOT partition with higher priority as an SPL main partition, and taking the SPL partition corresponding to the SLOT partition with lower priority as an SPL standby partition; judging whether the SPL main partition is damaged or not according to verify _ corrected and tries _ remaining attributes of the SLOT-A partition and the SLOT-B partition; if the SPL main partition is damaged, judging that the OTA upgrading fails; and if the SPL main partition is not damaged, judging that the OTA upgrading is successful. In order to determine whether and which SPL partitions need to SPL rollback.
In a specific embodiment, when the OTA upgrade fails as a result of the determination, before the data in the SPL primary partition is replaced with the data in the SPL standby partition, the SPL rollback method further includes: switching the zone bits of the SLOT-A partition and the SLOT-B partition to exchange the priority of the SLOT-A partition and the SLOT-B partition; and storing the flag bits of the switched SLOT-A partition and the switched SLOT-B partition into the MISC partition again. By switching the priority flag bits of the two SLOT partitions, rollback is prevented from being entered again.
In a second aspect, the present invention further provides an SPL rollback apparatus based on UBOOT, including: the device comprises a reading module, an analysis judging module, a read-write replacing module and a restarting module. The reading module is used for reading the MISC partition of the terminal and acquiring OTA upgrading information of the terminal; the analysis judging module is used for analyzing the acquired OTA upgrading information and judging whether the OTA upgrading is finished or not; the read-write replacement module is used for replacing the data in the SPL main partition by using the data in the SPL standby partition when the judgment result of the analysis judgment module is that the OTA upgrade fails; and the restarting module is used for restarting the terminal after the data in the SPL main partition is replaced by the data in the SPL standby partition, and completing the SPL rollback.
In the scheme, the UBOOT is used for identifying the A/B partition of the MISC partition, whether the MISC partition can be normally started or not is detected in time after OTA upgrade is performed, the reading and writing of the SPL main partition are performed in time after OTA upgrade failure is detected, the data in the SPL main partition is replaced by the data in the SPL standby partition, and the terminal is restarted, so that the purpose of rolling back the SPL is achieved. Therefore, after OTA upgrading fails, SPL rollback is carried out in time, starting failure of the terminal due to inconsistency of the SPL main partition and the SPL standby partition is prevented, and the terminal cannot be started due to incompatibility of IMG.
In a specific embodiment, the reading module is configured to read the MISC partition of the terminal, and obtain SLOT-a partition information and SLOT-B partition information of the terminal. And the UBOOT analyzes whether OTA upgrading is successful or not by using the identification characteristics of the SLOT-A partition and the SLOT-B partition.
In a specific embodiment, the parsing and determining module includes: the device comprises an analysis unit, an SPL partition determining unit and a judging unit. The analyzing unit is used for analyzing verify _ corrected and tries _ remaining attributes of the SLOT-A partition and the SLOT-B partition and judging the priority of the SLOT-A partition and the SLOT-B partition. The SPL partition determining unit is configured to use an SPL partition corresponding to the higher-priority SLOT partition as an SPL main partition, and use an SPL partition corresponding to the lower-priority SLOT partition as an SPL standby partition. The judging unit is used for judging whether the SPL main partition is damaged or not according to verify _ corrected and three _ remaining attributes of the SLOT-A partition and the SLOT-B partition; the judging unit is also used for outputting a judging result as OTA upgrading failure when the SPL main partition is damaged; and when the SPL main partition is not damaged, outputting a judgment result that the OTA is successfully upgraded. In order to determine whether and which SPL partitions need to SPL rollback.
In a specific embodiment, the SPL rollback apparatus further includes a switching module. The switching module is used for switching the zone bits of the SLOT-A partition and the SLOT-B partition to exchange the priority of the SLOT-A partition and the SLOT-B partition before replacing the data in the SPL main partition with the data in the SPL standby partition when the judgment result is that the OTA upgrading fails; and the switching module is also used for storing the flag bits of the switched SLOT-A partition and the switched SLOT-B partition into the MISC partition again. The priority flag bits of the two SLOT partitions are switched to prevent the rollback from being entered again.
In a third aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement any of the SPL rollback methods.
In a fourth aspect, the present invention also provides a terminal, which includes the computer-readable storage medium and a processor. Wherein the processor is configured to execute a computer program in a computer readable storage medium to implement any of the above SPL rollback methods.
Drawings
Fig. 1 is a flowchart of an SPL rollback method based on UBOOT according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for rolling back SPL based on UBOOT according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For convenience of understanding the SPL rollback method based on UBOOT provided by the embodiment of the present invention, an application scenario of the SPL rollback method provided by the embodiment of the present invention is first described below, where the SPL rollback method is applied to an OTA upgrade process of an operating system or an application program running on a terminal, where the terminal may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, or the like. The SPL rollback method is described in detail below with reference to the drawings.
Referring to fig. 1, the method for SPL rollback based on UBOOT according to the embodiment of the present invention includes:
step10: reading an MISC partition of the terminal, and acquiring OTA (over the air) upgrading information of the terminal;
step20: analyzing the obtained OTA upgrading information and judging whether OTA upgrading is finished or not;
step30: if the judgment result is that the OTA upgrading fails, replacing the data in the SPL main partition with the data in the SPL standby partition, restarting the terminal and completing the SPL rollback;
step40: and if the judgment result is that the OTA is successfully upgraded, the SPL rollback is not required.
In the scheme, the UBOOT is used for identifying the A/B partition of the MISC partition, whether the MISC partition can be normally started or not is detected in time after OTA upgrade is performed, the reading and writing of the SPL main partition are performed in time after OTA upgrade failure is detected, the data in the SPL main partition is replaced by the data in the SPL standby partition, and the terminal is restarted, so that the purpose of rolling back the SPL is achieved. Therefore, after OTA upgrading fails, SPL rollback is carried out in time, the starting failure of the terminal due to the fact that the SPL main partition and the SPL standby partition are inconsistent is prevented, and the terminal cannot be started due to the fact that IMG is incompatible. The above steps will be described in detail with reference to the accompanying drawings.
First, as shown in fig. 1, the MISC partition of the terminal is read, and OTA upgrade information of the terminal is acquired. The MISC partition of the read terminal can be read by using UBOOT. Referring to fig. 2, the obtained OTA upgrade information of the terminal may be: and acquiring the SLOT-A partition information and the SLOT-B partition information of the terminal by reading the MISC partition of the terminal. And the UBOOT analyzes whether OTA upgrading is successful or not by using the identification characteristics of the SLOT-A partition and the SLOT-B partition.
Next, as shown in fig. 1, the obtained OTA upgrade information is analyzed to determine whether the OTA upgrade is completed, so as to detect whether the OTA can be normally booted after the OTA upgrade. Specifically analyzing OTA upgrading information, judging whether OTA upgrading is completed or not, analyzing the verify _ corrected and the tris _ remaining attributes of the SLOT-A partition and the SLOT-B partition, and judging the priority of the SLOT-A partition and the SLOT-B partition according to the analyzed verify _ corrected and the tris _ remaining attributes. And then, taking the SPL partition corresponding to the SLOT partition with higher priority as an SPL main partition, and taking the SPL partition corresponding to the SLOT partition with lower priority as an SPL standby partition. Referring to fig. 2, whether the SPL main partition is damaged is determined according to the verify _ corrected and tries _ remaining attributes of the SLOT-a partition and the SLOT-B partition. And if the SPL main partition is damaged, judging that the OTA upgrading fails. And if the SPL main partition is not damaged, judging that the OTA upgrading is successful. In order to determine whether and which SPL partitions need to SPL rollback.
Referring to fig. 2, in the specific determination process, according to the analyzed SLOT-a partition information and SLOT-B partition information, it can be obtained whether the SLOT-a partition and the SLOT-B partition are in an Active state (Active) or a deactivated state (inactive), and at the same time, rb _ SLOT can be obtained to analyze different results. As shown in fig. 2, if it is analyzed that neither the SLOT-a partition nor the SLOT-B partition is damaged, it indicates that the SPL rollback is not required, and the normal flow is followed. If one obtained SLOT partition of the SLOT-A partition and the SLOT-B partition is not in an activated state (namely in a deactivated state), the normal flow is also needed. Of course, if it is identified that the SLOT partition in the active state is damaged, it is determined that SPL rollback is required, and at the same time, it is also determined that the SPL main partition corresponding to the SLOT partition with the higher priority in the two SLOT partitions is rolled back, that is, the SPL partition that needs SPL rollback is also determined.
Referring to fig. 1 and 2, if the OTA upgrade fails as a result of the determination, the data in the SPL primary partition is replaced with the data in the SPL secondary partition, that is, the data as the SPL secondary partition (such as SPL _ BAK shown in fig. 2) is read and written into the SPL primary partition. And then restarting the terminal to finish the SPL rollback. Namely, the data in the SPL standby partition is copied into the SPL main partition, and the data in the SPL main partition is replaced. Of course, if the OTA upgrade is successful, the SPL rollback is not required. As shown in fig. 2, if a write failure may occur, an error report needs to be returned to form an error log, so as to facilitate the subsequent checking of the error location and the error reason.
In addition, referring to fig. 2, when the OTA upgrade fails as a result of the determination, before replacing the data in the SPL main partition with the data in the SPL spare partition, the flag bits of the SLOT-a partition and the SLOT-B partition may be switched to exchange the priorities of the SLOT-a partition and the SLOT-B partition, so as to raise the priority of the SLOT partition having a lower priority and lower the priority of the SLOT partition having a higher priority. And then, storing the flag bits of the switched SLOT-A partition and the switched SLOT-B partition into the MISC partition again so as to read the relevant information from the MISC partition and perform SPL rollback when the MISC partition is restarted subsequently. The attributes of the two SLOT partitions are swapped and written into the MISC partition by toggling their priority flags to prevent rollback again.
By using the UBOOT to identify the A/B subarea of the MISC subarea, whether the MISC subarea can be normally started or not is detected in time after OTA upgrading, and after OTA upgrading failure is detected, reading and writing are performed on the SPL main and standby subareas in time, data in the SPL main subarea is replaced by the data in the SPL standby subarea, and the terminal is restarted, so that the purpose of rolling back the SPL is achieved. Therefore, after OTA upgrading fails, SPL rollback is carried out in time, the starting failure of the terminal due to the fact that the SPL main partition and the SPL standby partition are inconsistent is prevented, and the terminal cannot be started due to the fact that IMG is incompatible.
In addition, an embodiment of the present invention further provides an SPL rollback apparatus based on UBOOT, where the SPL rollback apparatus includes: the device comprises a reading module, an analysis judging module, a read-write replacing module and a restarting module. The reading module is used for reading the MISC partition of the terminal and acquiring OTA upgrading information of the terminal; the analysis judging module is used for analyzing the acquired OTA upgrading information and judging whether the OTA upgrading is finished or not; the read-write replacement module is used for replacing the data in the SPL main partition by using the data in the SPL backup partition when the judgment result of the analysis judgment module is that the OTA upgrade fails; and the restarting module is used for restarting the terminal after the data in the SPL main partition is replaced by the data in the SPL standby partition, and completing the SPL rollback.
In the scheme, the UBOOT is used for identifying the A/B partition of the MISC partition, whether the MISC partition can be normally started or not is detected in time after OTA upgrade is performed, the reading and writing of the SPL main partition are performed in time after OTA upgrade failure is detected, the data in the SPL main partition is replaced by the data in the SPL standby partition, and the terminal is restarted, so that the purpose of rolling back the SPL is achieved. Therefore, after OTA upgrading fails, SPL rollback is carried out in time, the starting failure of the terminal due to the fact that the SPL main partition and the SPL standby partition are inconsistent is prevented, and the terminal cannot be started due to the fact that IMG is incompatible.
The reading module can obtain the SLOT-A partition information and the SLOT-B partition information of the terminal by reading the MISC partition of the terminal. And the UBOOT analyzes whether OTA upgrading is successful or not by using the identification characteristics of the SLOT-A partition and the SLOT-B partition.
When the parsing judgment module is set, the parsing judgment module may include: the device comprises an analysis unit, an SPL partition determining unit and a judging unit. The analyzing unit is used for analyzing verify _ corrected and tries _ remaining attributes of the SLOT-A partition and the SLOT-B partition and judging the priority of the SLOT-A partition and the SLOT-B partition. The SPL partition determining unit is configured to use an SPL partition corresponding to the higher-priority SLOT partition as an SPL main partition, and use an SPL partition corresponding to the lower-priority SLOT partition as an SPL standby partition. The judging unit is used for judging whether the SPL main partition is damaged or not according to verify _ corrected and three _ remaining attributes of the SLOT-A partition and the SLOT-B partition; the judging unit is also used for outputting a judging result that OTA upgrading fails when the SPL main partition is damaged; and when the SPL main partition is not damaged, outputting a judgment result that the OTA is successfully upgraded. In order to determine whether and which SPL partitions need to SPL rollback.
In addition, the SPL rollback apparatus further includes a switching module. The switching module is used for switching the zone bits of the SLOT-A partition and the SLOT-B partition to exchange the priority of the SLOT-A partition and the SLOT-B partition before replacing the data in the SPL main partition with the data in the SPL standby partition when the judgment result is that the OTA upgrading fails; and the switching module is also used for storing the flag bits of the switched SLOT-A partition and the switched SLOT-B partition into the MISC partition again. The priority flag bits of the two SLOT partitions are switched to prevent the rollback from being entered again.
It should be additionally noted that each of the functional modules and functional units may be a computer program capable of implementing corresponding functional steps in the UBOOT, and the corresponding functions may be implemented by starting the corresponding computer program.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any of the SPL rollback methods described above. The computer readable storage medium may be a memory such as SRAM, MRAM, DRAM, or the like.
Finally, an embodiment of the present invention further provides a terminal, where the terminal includes the computer-readable storage medium and a processor. Wherein the processor is configured to execute a computer program in a computer readable storage medium to implement any of the SPL rollback methods described above. The processor can be a central processing unit to realize the functions of logical operation and the like of the terminal.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention 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 invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (6)
1. An SPL rollback method based on UBOOT, comprising:
reading an MISC partition of a terminal, and acquiring OTA (over the air) upgrading information of the terminal;
analyzing the obtained OTA upgrading information and judging whether OTA upgrading is finished or not;
if the judgment result is that the OTA upgrading fails, replacing the data in the SPL main partition with the data in the SPL standby partition, and restarting the terminal to complete SPL rollback;
if the judgment result is that the OTA is successfully upgraded, the SPL rollback is not required;
wherein, the reading of the MISC partition of the terminal and the obtaining of the OTA upgrade information of the terminal comprise: reading the MISC partition of the terminal, and acquiring the SLOT-A partition information and the SLOT-B partition information of the terminal;
the analyzing the acquired OTA upgrading information and judging whether the OTA upgrading is finished comprises the following steps:
analyzing the verify _ corrected and the tris _ remaining attributes of the SLOT-A partition and the SLOT-B partition, and judging the priority of the SLOT-A partition and the SLOT-B partition;
taking the SPL partition corresponding to the SLOT partition with higher priority as the SPL main partition, and taking the SPL partition corresponding to the SLOT partition with lower priority as the SPL standby partition;
judging whether the SPL main partition is damaged or not according to verify _ corrected and tries _ remaining attributes of the SLOT-A partition and the SLOT-B partition;
if the SPL main partition is damaged, judging that the OTA upgrading fails;
and if the SPL main partition is not damaged, judging that the OTA upgrading is successful.
2. The SPL rollback method of claim 1, wherein when the OTA upgrade fails as a result of the determination, before the replacing the data in the SPL main partition with the data in the SPL backup partition, the SPL rollback method further comprises:
switching zone bits of the SLOT-A partition and the SLOT-B partition to exchange the priority of the SLOT-A partition and the SLOT-B partition;
and storing the flag bits of the switched SLOT-A partition and SLOT-B partition into the MISC partition again.
3. An apparatus for UBOOT-based SPL rollback, comprising:
the reading module is used for reading the MISC partition of the terminal and acquiring OTA upgrading information of the terminal;
the analysis judging module is used for analyzing the obtained OTA upgrading information and judging whether the OTA upgrading is finished or not;
the read-write replacement module is used for replacing the data in the SPL main partition by using the data in the SPL backup partition when the judgment result of the analysis judgment module is that the OTA upgrade fails;
the restarting module is used for restarting the terminal after the data in the SPL main partition is replaced by the data in the SPL standby partition, and the SPL rollback is completed;
the reading module is used for reading the MISC partition of the terminal and acquiring the SLOT-A partition information and the SLOT-B partition information of the terminal;
the analysis judging module comprises:
the analyzing unit is used for analyzing verify _ corrected and tries _ remaining attributes of the SLOT-A partition and the SLOT-B partition and judging the priority of the SLOT-A partition and the SLOT-B partition;
an SPL partition determining unit, configured to use an SPL partition corresponding to the higher-priority SLOT partition as the SPL primary partition, and use an SPL partition corresponding to the lower-priority SLOT partition as the SPL secondary partition;
the judging unit is used for judging whether the SPL main partition is damaged or not according to verify _ corrected and tries _ remaining attributes of the SLOT-A partition and the SLOT-B partition; the judging unit is also used for outputting a judging result as OTA upgrading failure when the SPL main partition is damaged; and outputting a judgment result that the OTA is successfully upgraded when the SPL main partition is not damaged.
4. The SPL rollback apparatus of claim 3, further comprising:
the switching module is used for switching the zone bits of the SLOT-A partition and the SLOT-B partition to exchange the priority of the SLOT-A partition and the SLOT-B partition before the data in the SPL spare partition is used for replacing the data in the SPL main partition when the judgment result is that the OTA upgrading fails;
and the switching module is also used for storing the flag bits of the SLOT-A partition and the SLOT-B partition after switching to the MISC partition again.
5. A computer-readable storage medium, having a computer program stored thereon, which, when executed by a processor, implements the SPL rollback method of any of claims 1-2.
6. A terminal, comprising:
the computer-readable storage medium of claim 5;
a processor for executing the computer program in the computer readable storage medium to implement the SPL rollback method of any of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110899519.8A CN113590388B (en) | 2021-08-06 | 2021-08-06 | UBOOT-based SPL rollback method and device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110899519.8A CN113590388B (en) | 2021-08-06 | 2021-08-06 | UBOOT-based SPL rollback method and device, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113590388A CN113590388A (en) | 2021-11-02 |
CN113590388B true CN113590388B (en) | 2022-10-28 |
Family
ID=78255672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110899519.8A Active CN113590388B (en) | 2021-08-06 | 2021-08-06 | UBOOT-based SPL rollback method and device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113590388B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106155737A (en) * | 2016-06-28 | 2016-11-23 | 深圳创维-Rgb电子有限公司 | A kind of method and device of upgrading terminals |
US10606605B2 (en) * | 2016-09-29 | 2020-03-31 | Verizon Patent And Licensing, Inc. | Software upgrade and disaster recovery on a computing device |
US11301566B2 (en) * | 2019-07-03 | 2022-04-12 | Ati Technologies Ulc | Firmware anti-rollback |
CN111209141B (en) * | 2019-12-30 | 2023-10-20 | 晶晨半导体(深圳)有限公司 | Dual-system switching method and device applied to system iteration |
CN113157301B (en) * | 2021-05-20 | 2023-04-11 | 厦门紫光展锐科技有限公司 | Terminal version upgrading method, system, storage medium and terminal |
-
2021
- 2021-08-06 CN CN202110899519.8A patent/CN113590388B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113590388A (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8423991B2 (en) | Embedded network device and firmware upgrading method | |
US9471435B2 (en) | Information processing device, information processing method, and computer program | |
US20070074201A1 (en) | Method and system for updating software and computer readable recording medium storing the method | |
CN109710317B (en) | System starting method and device, electronic equipment and storage medium | |
CN106933593B (en) | System switching method and device based on mobile terminal | |
CN111562934A (en) | Software system upgrading method based on hot patch, terminal and storage medium | |
CN117687663B (en) | OTA-based partition dynamic adjustment method, device, equipment and storage medium | |
CN113157303A (en) | Upgrading method, embedded system, terminal and computer storage medium | |
CN104866388B (en) | Data processing method and device | |
CN108733517A (en) | SSD firmware upgrades guard method and device | |
CN115357262A (en) | Method for upgrading driver firmware in batch | |
CN114780019A (en) | Electronic device management method and device, electronic device and storage medium | |
CN113590388B (en) | UBOOT-based SPL rollback method and device, storage medium and terminal | |
CN113032183A (en) | System management method, device, computer equipment and storage medium | |
CN116909607A (en) | Program upgrading method, program upgrading device, computer equipment, storage medium and program product | |
CN115981694A (en) | OTA (over the air) upgrading method and device of terminal equipment, readable storage medium and terminal equipment | |
WO2021012170A1 (en) | Firmware booting method and device, and computer-readable storage medium | |
CN114064343B (en) | Abnormal handling method and device for block chain | |
CN112650513B (en) | Program upgrading method, device, computer equipment and storage medium | |
CN114510375A (en) | Flash chip data area dynamic sharing system and method | |
US20130262804A1 (en) | Data duplication system, data duplication method, and program thereof | |
CN113190244A (en) | Method and device for upgrading wireless module, computer equipment and storage medium | |
CN110795155B (en) | System starting method and device, electronic equipment and storage medium | |
CN113849494A (en) | Data updating method and device | |
CN113778485A (en) | System operation method and device of electronic chip, electronic chip and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |