SPL rollback method and device based on UBOOT, storage medium and terminal

A terminal and main partition technology, applied in the computer field, can solve the problems of inability to roll back SPL, no support for OTA code, and no rollback of SPL main partition.

Active Publication Date: 2021-11-02
XIAMEN UNISOC TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the prior art, since the loading of SPL (Secondary program loader, the second-stage application loader) relies on ROMCODE (chip internal startup code), ROMCODE does not support OTA code
Therefore, the SPL cannot be rolled back by modifying the ROMCODE
In the end, the SPL primary partition did not implement the rollback, and oth...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • SPL rollback method and device based on UBOOT, storage medium and terminal
  • SPL rollback method and device based on UBOOT, storage medium and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0019] In order to facilitate the understanding of the UBOOT-based SPL rollback method provided by the embodiment of the present invention, the application scenario of the SPL rollback method provided by the embodiment of the present invention is firstly explained below. The SPL rollback method is applied to the operating system running on the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an SPL rollback method and device based on UBOOT, a storage medium and a terminal. The SPL rollback method comprises the steps that: an MISC partition of the terminal is read, and OTA upgrading information of the terminal is obtained; the obtained OTA upgrading information is analyzed, and whether OTA upgrading is completed or not is judged; if the judgment result is that the OTA upgrade fails, the data in the SPL main partition is replaced with the data in the SPL standby partition, and the terminal is restarted to complete SPL rollback; and if the judgment result is that OTA upgrading is successful, SPL rollback does not need to be carried out. Whether normal startup can be carried out or not is detected in time after OTA upgrade by using the recognition characteristic of UBOOT on an A/B partition of an MISC partition, and after OTA upgrade failure is detected, the SPL main partition and the SPL standby partition are read and written in time, the data in the SPL main partition is replaced with the data in the SPL standby partition, and a terminal is restarted, so that the purpose of rollback of the SPL is achieved. The situation that the terminal fails to start due to the fact that the SPL main partition and the SPL standby partition are inconsistent is prevented, and then the situation that the terminal cannot be started due to the fact that the IMG is incompatible is prevented.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a UBOOT-based SPL rollback method and device, a storage medium, and a terminal. Background technique [0002] After the partition of VBA (Visual Basic macro language) architecture is upgraded through OTA (Over-the-Air Technology, over-the-air technology), it may encounter the phenomenon that the upgrade fails or errors cause it to fail to start normally. After the OTA upgrade fails, all partitions will be rolled back to the old partition. However, in the prior art, since the loading of the SPL (Secondary program loader, the second-stage application loader) depends on the ROMCODE (startup code inside the chip), the OTA code is not supported in the ROMCODE. Therefore, the SPL cannot be rolled back by modifying the ROMCODE. In the end, the SPL primary partition did not implement the rollback, and the other partitions were successfully rolled back. As a result, the terminal may f...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/14
CPCG06F11/1433G06F11/1448
Inventor 王哲
Owner XIAMEN UNISOC TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products