CN113791811A - Firmware upgrading method and storage device - Google Patents

Firmware upgrading method and storage device Download PDF

Info

Publication number
CN113791811A
CN113791811A CN202110880594.XA CN202110880594A CN113791811A CN 113791811 A CN113791811 A CN 113791811A CN 202110880594 A CN202110880594 A CN 202110880594A CN 113791811 A CN113791811 A CN 113791811A
Authority
CN
China
Prior art keywords
partition
upgrading
firmware
upgrade
reserved
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110880594.XA
Other languages
Chinese (zh)
Other versions
CN113791811B (en
Inventor
纪大峣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rockchip Electronics Co Ltd
Original Assignee
Rockchip Electronics 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 Rockchip Electronics Co Ltd filed Critical Rockchip Electronics Co Ltd
Priority to CN202110880594.XA priority Critical patent/CN113791811B/en
Publication of CN113791811A publication Critical patent/CN113791811A/en
Application granted granted Critical
Publication of CN113791811B publication Critical patent/CN113791811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to the field of firmware upgrading technologies, and in particular, to a firmware upgrading method and a storage device. The firmware upgrading method comprises the following steps: acquiring a firmware upgrading package for first upgrading; executing first upgrading, and adding a new partition at a preset position of the current equipment, wherein the new partition comprises: a reserved packet partition and a virtual partition, the reserved packet partition to: storing the firmware upgrade package of the second upgrade; and executing second upgrade, upgrading the new platform firmware to the virtual partition, and upgrading the virtual partition through the firmware upgrade package of the second upgrade. According to the method, the whole storage medium of the equipment is changed and upgraded through two times of firmware upgrading without the help of an external storage medium, the partition table is supported to be changed randomly, the dependence on the external storage medium is overcome, and therefore the firmware upgrading requirements of certain special scenes are met.

Description

Firmware upgrading method and storage device
Technical Field
The present invention relates to the field of firmware upgrading technologies, and in particular, to a firmware upgrading method and a storage device.
Background
The Firmware upgrading technology is realized by using an FOTA (Firmware Over-the-Air) Firmware upgrading engine and taking a Firmware upgrading package as input.
The existing FOTA firmware upgrading schemes can be mainly divided into the following categories:
1. the FOTA upgrade of the equipment physical partition table is not supported;
2. in the technical scheme supporting FOTA upgrade of the device physical partition table, the following two categories exist:
a. the first type of scheme supports partial partition table changes or supports some specific manner of change, such as the actual physical partition associated with the boot program cannot be changed or only the size of an existing partition can be adjusted. Most of the schemes need to use an external storage medium (SD/TF card or U disk), and some schemes which do not need to use the external storage medium only support partition adjustment in a specific mode, namely, the partition where the firmware upgrade package is located is not changed.
b. The second category supports substantially any partition table change. In such a scheme, generally, the whole device flash storage medium needs to be upgraded, so that the whole flash storage medium is invalid in the upgrading process and cannot store any form of firmware upgrade package in the device flash, and therefore, the firmware upgrade package needs to be stored by means of an external storage medium.
In some specific scenarios, it is desirable to upgrade firmware in a device to firmware of a completely new platform in a FOTA manner, in this process, any change and upgrade need to be performed on a physical partition table of the device, and in some scenarios, the device is not configured with external storage.
With the rapid development and evolution of AIoT (intelligent internet of things) devices, flash storage media and memories (device memories) collocated in the devices have larger and stronger functions, for example, the device memories of AIoT devices based on an Android system are usually more than 2 GB. However, the FOTA firmware upgrade engine cannot directly use these device memories to store data such as a firmware upgrade package, because in the FOTA upgrade process, it is usually necessary to restart the device to enter an upgrade mode (e.g., a recovery mode of android) to perform firmware upgrade, and in the restart process of the device, various DDR memories (device memories) are normally initialized, so that all data in the device memories are invalid.
Meanwhile, the capacity of the Flash storage medium carried by the device is also getting larger and larger, and usually comprises 8GB, 16GB, 32GB, 64GB, 128GB, 512GB and above, but in the FOTA upgrading process of arbitrarily changing the partition table of the whole Flash storage medium, because the whole Flash storage medium is invalid in the upgrading process, the firmware upgrading package in any form can not be stored in the Flash of the device.
Therefore, how to upgrade the firmware in one device to the firmware of a brand new platform in an FOTA manner without configuring external storage becomes an urgent problem to be solved in the process of arbitrarily changing and upgrading the physical partition table of the device.
Disclosure of Invention
Therefore, a firmware upgrading method needs to be provided to solve the technical problem that in the FOTA upgrading process of supporting any change of the partition table when any change needs to be performed on the whole device flash storage medium, the whole device flash storage medium is invalid in the upgrading process and cannot store any form of firmware upgrading package in the device flash, so that the firmware upgrading package needs to be stored by means of an external storage medium. The specific technical scheme is as follows:
the firmware upgrading method comprises the following steps:
acquiring a firmware upgrading package for first upgrading;
executing first upgrading, and adding a new partition at a preset position of the current equipment, wherein the new partition comprises: a reserved packet partition and a virtual partition, the reserved packet partition to: storing the firmware upgrade package of the second upgrade;
and executing second upgrade, upgrading the new platform firmware to the virtual partition, and upgrading the virtual partition through the firmware upgrade package of the second upgrade.
Further, before acquiring the firmware upgrade package for the first upgrade, the method further includes the steps of:
making a first-time upgraded firmware upgrade package, wherein the content of the first-time upgraded firmware upgrade package comprises: a new upgrade mode complete mirror image file and a partition table configuration file;
the new complete image file of the upgrade mode comprises a new instruction: before exiting the upgrading mode, checking whether a partition table change marking file exists in a reserved position, if so, reformatting a last user data partition of a partition table and rebuilding a file system, and meanwhile, checking whether an equipment partition node has a reserved packet partition node, and if so, formatting the reserved packet partition to build a readable and writable file system;
the partition table configuration file comprises: when the virtual partition mark is configured to be empty, adding a reserved packet partition and a virtual partition before the last user data partition of the current old firmware partition table, wherein the length of the virtual partition needs to be larger than the maximum value of the size of a storage space occupied by all partitions before the last user data partition in the new platform firmware partition table to be upgraded and the size of a storage space occupied by all partitions before the last user data partition of the current old firmware partition table, the reserved packet partition is positioned behind the virtual partition, the starting address of the reserved packet partition is the length of the virtual partition, and the length of the reserved packet partition is larger than the size of a firmware upgrade packet upgraded for the second time;
or when the virtual partition marker is not empty, the virtual partition marker comprises: a first parameter, a second parameter, and a third parameter, the first parameter representing a virtual partition mode including, but not limited to: in the mode 1 and the mode 2, the second parameter represents the size of the firmware upgrade package upgraded for the second time, and the third parameter represents the size of the storage space occupied by all partitions before the last user data area in the new platform firmware partition table to be upgraded.
Further, when the virtual partition flag is configured to be null, the old partition table is provided with a reserved position, the reserved position is an unencrypted readable and writable user data area, and the size of the reserved position is not smaller than that of the difference packet;
a boot communication partition is arranged in the old partition table and used for communication among the firmware in different stages;
the last partition of the old partition table is a user data partition;
if the firmware upgrade package upgraded for the first time is a complete package, the firmware upgrade package upgraded for the first time comprises: if the firmware upgrade package upgraded for the first time is a difference package, the firmware upgrade package upgraded for the first time comprises: the difference file of the firmware existing in the equipment for the firmware upgrade comprises the following contents: and after entering the system, mounting the instruction of the reserved packet partition.
Further, before the "performing the first upgrade", the method specifically includes the following steps:
judging whether the size of the firmware upgrading packet upgraded for the first time is larger than the available size of a reserved position of equipment, if so, exiting the upgrading process, if not, backing up the content of a user data area in the last subarea of a current equipment subarea table to a network server according to the requirement, storing the firmware upgrading packet upgraded for the first time in the reserved position of the current equipment, issuing a first upgrading instruction, writing the first upgrading instruction and the firmware upgrading packet upgraded for the first time in a position 1 of a guide communication subarea, and entering an upgrading mode.
Further, the "performing the first upgrade" adds a new partition at a preset location of the current device, where the new partition includes: a reserved packet partition ", further comprising:
step S1: upgrading the new upgrade mode complete image file of the firmware upgrade package upgraded for the first time;
step S2: reading the content of the position 2 of the boot communication partition, judging whether a success mark exists or not, if so, jumping to step S3, and if not, upgrading the new partition table of the device according to the partition table configuration file in the firmware upgrade package of the first upgrade, wherein the upgrading process of the new partition table of the upgrade device is as follows:
step S201: analyzing the partition table configuration file, checking whether a virtual partition mark exists or not, and if the virtual partition mark does not exist or the virtual partition mark is empty, updating an old partition table in the equipment according to a new partition table in the partition table configuration file;
step S202: if the virtual partition mark is not empty, further analyzing 3 parameters in the virtual partition mark, checking whether the first parameter value is a mode 1 or a mode 2, and if the first parameter value is not the mode 1 or the mode 2, updating an old partition table in the equipment according to a new partition table in the partition table configuration file;
when the first parameter is mode 1, checking whether a new partition table in a partition table configuration file has a specific reserved packet partition, if so, directly updating an old partition table in the equipment according to the new partition table in the partition table configuration file, if not, reading the old partition table in the current equipment to obtain the initial address and the length of the last partition of the old partition table, if the sum of the initial address of the last partition and the size of the second parameter is larger than the size of the flash space available for the equipment, exiting upgrading, if the sum of the initial address of the last partition and the size of the second parameter is not larger than the size of the flash space available for the equipment, inserting a reserved packet partition before the last partition of the partition table to be upgraded, wherein the initial address of the reserved packet partition is the initial address of the last partition of the previously obtained old partition table, the length of the reserved packet partition is greater than a second parameter, and the starting address and the length of the last partition are updated at the same time, wherein the new starting address is as follows: the starting address of the reserved packet partition + the length of the reserved packet partition, the new length being: the size of the flash space available to the device- (the starting address of the reserved packet partition + the length of the reserved packet partition);
when the first parameter is mode 2, checking whether a new partition table in the partition table configuration file has a specific virtual partition and a reserved packet partition, and if both the two partitions exist, directly updating an old partition table in the equipment according to the new partition table in the partition table configuration file; if the sum of the size of the third parameter and the second parameter is smaller than the size of the available flash space of the device, firstly reading an old partition table in the current device, obtaining the starting address and the length of the last partition of the old partition table, then inserting two new partitions, namely a virtual partition and a reserved packet partition, before the last partition of the partition table to be upgraded, wherein the starting address of the virtual partition is 0, and the length of the virtual partition is larger than the maximum value between the third parameter and the starting address of the last partition of the old partition table obtained previously; the starting address of the reserved packet partition is the starting address of the virtual partition plus the length of the virtual partition, and the length of the reserved packet partition needs to be greater than a second parameter; and simultaneously updating the starting address and the length of the last partition, wherein the new starting address is as follows: the starting address of the reserved packet partition + the length of the reserved packet partition, the new length being: the size of the flash space available to the device-the new starting address of the last partition;
if the third parameter + the second parameter > is the size of the available flash space of the equipment, reading an old partition table in the current equipment, acquiring the initial address and the length of the last partition of the old partition table, and if the initial address of the last partition + the second parameter > the size of the available flash space of the equipment, exiting upgrading; otherwise, before the last partition of the partition table to be upgraded, inserting a reserved packet partition, wherein the starting address of the reserved packet partition is the previously acquired starting address of the last partition of the old partition table, the partition length needs to be larger than a second parameter, and the starting address and the length of the last partition are updated at the same time, and the new starting address is: the starting address of the reserved packet partition plus the length of the reserved packet partition, the new length is: the size of the flash space available to the device- ("starting address of reserved packet partition +" length of reserved packet partition ");
step S203: after the partition table is upgraded, creating a specified path from the partition table change mark file to the reserved position, setting a success mark to the position 2 of the guide communication partition, restarting the device, reentering the upgrade mode, and executing the step S1 and the step S2 again, wherein the step S3 is directly executed because the success mark exists in the position 2 of the guide communication partition;
step S3: executing other upgrading operations in the upgrading packet, and updating the system partition;
step S4: before exiting the upgrade mode, executing a new instruction of the upgraded complete image file of the new upgrade mode in step S1;
step S5: and clearing the content of the position 1 of the boot communication partition and the position 2 of the communication partition, and restarting the system after the firmware upgrade package which enters the first upgrade is upgraded.
Further, before the "performing the second upgrade", the method specifically includes the following steps:
mounting the newly added reserved packet partition;
judging whether a reserved partition success marking file exists in the appointed path of the reserved position, if not, exiting the program, and if so, acquiring a firmware upgrade package of the second upgrade and storing the firmware upgrade package into the reserved package partition;
and deleting the partition table change mark file and the reserved partition success mark file under the reserved position appointed path, writing a second upgrading instruction and a second upgraded firmware upgrading packet path in the position 1 of the guide communication partition, and entering the second upgrading.
Further, the "performing second upgrade, upgrading a new platform firmware to the virtual partition, and performing upgrade operation on the virtual partition through the firmware upgrade package of the second upgrade" specifically includes the following steps:
upgrading a part of flash storage media represented by the virtual partition according to a firmware upgrading package upgraded for the second time in the reserved package partition, wherein the upgrading process comprises the following steps: and after all the new firmware is upgraded, extracting the partition table in the firmware upgrading package upgraded for the second time again, and directly upgrading the formal partition table without modifying the extracted partition table to finish the complete upgrading of the equipment firmware.
Further, the first upgrade includes: a first FOTA upgrade, the second upgrade comprising: and (5) upgrading the FOTA for the second time.
In order to solve the technical problem, the storage device is further provided, and the specific technical scheme is as follows:
a storage device having stored therein a set of instructions for performing: any of the steps in the above mentioned firmware upgrade method.
The invention has the beneficial effects that: the firmware upgrading method comprises the following steps: acquiring a firmware upgrading package for first upgrading; executing first upgrading, and adding a new partition at a preset position of the current equipment, wherein the new partition comprises: a reserved packet partition and a virtual partition, the reserved packet partition to: storing the firmware upgrade package of the second upgrade; and executing second upgrade, upgrading the new platform firmware to the virtual partition, and upgrading the virtual partition through the firmware upgrade package of the second upgrade. According to the method, the whole storage medium of the equipment is changed and upgraded through two times of firmware upgrading without the help of an external storage medium, the partition table is supported to be changed randomly, the dependence on the external storage medium is overcome, and therefore the firmware upgrading requirements of certain special scenes are met.
Drawings
FIG. 1 is a flowchart of a firmware upgrade method according to an embodiment;
fig. 2 is a schematic overall flowchart of a firmware upgrading method according to an embodiment;
FIG. 3 is a flowchart illustrating a new partition table process of an upgrade device according to a partition table configuration file in a firmware upgrade package according to a first upgrade, in accordance with an exemplary embodiment;
fig. 4 is a block diagram of a storage device according to an embodiment.
Description of reference numerals:
400. a storage device.
Detailed Description
To explain technical contents, structural features, and objects and effects of the technical solutions in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Referring to fig. 1 to fig. 3, in the present embodiment, the firmware upgrading method may be applied to a storage device, including but not limited to an intelligent internet of things device.
The core technical idea of the application is as follows: the mode of FOTA twice can support the change and upgrade of the whole storage medium of the equipment without the help of an external storage medium (SD/TF card or U disk), and supports the arbitrary change of the partition table. The firmware upgrading method comprises the steps that after all firmware partitions of a partition table of current equipment and before the last user data partition, 2 new partitions (a virtual partition and a reserved packet partition) are added for the first time, wherein the reserved packet partition is used for storing a firmware upgrading packet of the second time. And then upgrading the firmware of the new platform to the virtual partition after the FOTA enters the upgrading mode for the second time, carrying out FOTA upgrading with any partition table change on the flash space represented by the virtual partition based on the upgrading packet in the reserved packet partition, and realizing the upgrading of the final firmware by two partition table upgrading modes. The following is a detailed description:
step S101: and acquiring a firmware upgrading package for first upgrading.
Step S102: executing first upgrading, and adding a new partition at a preset position of the current equipment, wherein the new partition comprises: a reserved packet partition to: and storing the firmware upgrading package upgraded for the second time.
Step S103: a second upgrade is performed.
Step S104: and upgrading the new platform firmware to the virtual partition.
Step S105: and upgrading the virtual partition by the firmware upgrading package upgraded for the second time.
In this embodiment, both the first upgrade and the second upgrade may be specifically FOTA upgrades.
In the present embodiment, the firmware upgrade package for the first upgrade is made by itself, and how to make the firmware upgrade package for the first upgrade (also called a temporary firmware package) is explained as follows:
before the firmware upgrade package for the first upgrade is acquired, the method further comprises the following steps:
making a first-time upgraded firmware upgrade package, wherein the content of the first-time upgraded firmware upgrade package comprises: and the new upgrade mode complete image file and the partition table configuration file. The firmware upgrade package of the first upgrade may be a complete package or a differential package, and if the firmware upgrade package of the first upgrade is a complete package, the firmware upgrade package of the first upgrade includes: if the firmware upgrade package upgraded for the first time is a difference package, the firmware upgrade package upgraded for the first time comprises: the difference file of the firmware existing in the equipment for the firmware upgrade comprises the following contents: and after entering the system, mounting the instruction of the reserved packet partition.
The new complete image file of the upgrade mode comprises a new instruction: before exiting the upgrade mode, checking whether a reserved position (also called a temporary packet partition) has a partition table change marking file (such as last _ parameter _ update), if so, reformatting a last user data partition of the partition table and rebuilding a file system, and simultaneously checking whether a device partition node has the reserved packet partition node, and if so, formatting the reserved packet partition to establish a readable and writable file system;
the partition table configuration file comprises: there are two possible configuration methods, partition table information and virtual partition marking, and one of them can be selected optionally.
The configuration method 1: the virtual partition flag is configured to be null. There are two specific partitioning methods at this time:
the partition method 1: when the virtual partition mark is configured to be empty, adding a reserved packet partition in a partition table of the current old firmware, wherein the reserved packet partition is positioned behind all firmware partitions of the current partition table and in front of the last user data partition, the size of the reserved packet partition needs to be larger than the size of a firmware upgrading packet (also called as a final firmware packet) upgraded for the second time, the old partition table is provided with a reserved position, the reserved position is an unencrypted readable and writable user data area, such as a cache partition of Android, and the size of the reserved position is not smaller than the size of the difference packet; an original partition is arranged in the old partition table and is called a boot communication partition, the boot communication partition is used for communication among firmware in different stages, and the last partition of the old partition table is a user data partition;
the partition method 2 comprises the following steps: or when the virtual partition mark is configured to be empty, adding a reserved packet partition and a virtual partition before the last user data partition of the current old firmware partition table, wherein the length of the virtual partition needs to be larger than the maximum value of the size of the storage space occupied by all partitions before the last user data partition in the new platform firmware partition table to be upgraded and the size of the storage space occupied by all partitions before the last user data partition of the current old firmware partition table, the reserved packet partition is located behind the virtual partition, the starting address of the reserved packet partition is the length of the virtual partition, and the length of the reserved packet partition is larger than the size of the firmware upgrade packet upgraded for the second time. The method specifically comprises the following steps:
the starting address of the virtual partition is 0x 0; the length is the size of the storage space occupied by all the partitions before the last user data partition in the new platform firmware partition table to be upgraded, and if the length is smaller than the size of the storage space occupied by all the partitions before the last user data partition in the current old firmware partition table, the length is set to be the size of the storage space occupied by all the partitions before the last user data partition in the current old firmware partition table. That is, the length of the virtual partition needs to be greater than the maximum of: the size of the storage space occupied by all the partitions before the last user data partition in the new platform firmware partition table to be upgraded and the size of the storage space occupied by all the partitions before the last user data partition in the current old firmware partition table.
The reserved packet partition is located behind the virtual partition, the starting address of the reserved packet partition is the length of the virtual partition, and the length of the reserved packet partition needs to be the size of the firmware upgrade packet to be upgraded for the second time, namely the size of the aforementioned final firmware packet.
In the same partition method 1, it is also required that the old partition table has an unencrypted readable and writable user data area, such as an Android cache partition, and the available size of the partition needs to be stored in the area where the FOTA is first updated at least: the differential packet version of the temporary firmware packet, hereinafter referred to as the partition, is the temporary packet partition. Meanwhile, an original partition, called a boot communication partition, is required in the old partition table and is used for communication between firmware in different stages of the system, and the last partition of the old partition table is a user data partition.
The configuration method 2 comprises the following steps:
or when the virtual partition marker is not empty, the virtual partition marker comprises: a first parameter, a second parameter, and a third parameter, the first parameter representing a virtual partition mode including, but not limited to: in the mode 1 and the mode 2, the second parameter represents the size of the firmware upgrade package (i.e., the final firmware package) upgraded for the second time, and the third parameter represents the size of the storage space occupied by all partitions before the last user data area in the new platform firmware partition table to be upgraded.
After the firmware upgrade package for the first upgrade is manufactured and before the first upgrade is executed, the method specifically comprises the following steps:
judging whether the size of the firmware upgrading packet upgraded for the first time is larger than the available size of a reserved position of equipment, if so, exiting the upgrading process, if not, backing up the content of a user data area in the last subarea of a current equipment subarea table to a network server according to the requirement, storing the firmware upgrading packet upgraded for the first time in the reserved position of the current equipment, issuing a first upgrading instruction, writing the first upgrading instruction and the firmware upgrading packet upgraded for the first time in a position 1 of a guide communication subarea, and entering an upgrading mode. The method specifically comprises the following steps:
and the upgrading client interacts with the upgrading server to obtain a first-time upgraded firmware upgrading packet to be upgraded, and if the size of the first-time upgraded firmware upgrading packet is larger than the available size of the reserved position of the equipment, the upgrading process is exited. Otherwise, backing up the content of the user data area in the last partition of the current equipment partition table to a network server according to the requirement, storing the firmware upgrade package of the first upgrade in a reserved position in the current equipment, issuing a common FOTA upgrade instruction, writing the upgrade instruction and the firmware upgrade package path of the first upgrade into a position 1 of a guide communication partition, and restarting to enter an upgrade mode (recovery under Android).
When the first-time upgrading condition is met, executing first-time upgrading, wherein the step of executing first-time upgrading is to add a new partition at a preset position of the current equipment, and the new partition comprises the following steps: a reserved packet partition ", further comprising:
step S1: upgrading a new upgrade mode complete image file (recovery.img under Android) in the firmware upgrade package of the first upgrade;
step S2: reading the content of the position 2 of the boot communication partition, judging whether a success mark exists or not, if so, jumping to step S3, and if not, upgrading the new partition table of the device according to the partition table configuration file in the firmware upgrade package of the first upgrade, wherein the upgrading process of the new partition table of the upgrade device is as follows:
step S201: analyzing the partition table configuration file, checking whether a virtual partition mark exists or not, and if the virtual partition mark does not exist or the virtual partition mark is empty, updating an old partition table in the equipment according to a new partition table in the partition table configuration file;
step S202: if the virtual partition mark is not empty, further analyzing 3 parameters in the virtual partition mark, checking whether the first parameter value is a mode 1 or a mode 2, and if the first parameter value is not the mode 1 or the mode 2, updating an old partition table in the equipment according to a new partition table in the partition table configuration file;
step S2021: when the first parameter is mode 1, checking whether a new partition table in a partition table configuration file has a specific reserved packet partition, if so, directly updating an old partition table in the equipment according to the new partition table in the partition table configuration file, if not, reading the old partition table in the current equipment to obtain the initial address and the length of the last partition of the old partition table, if the sum of the initial address of the last partition and the size of the second parameter is larger than the size of the flash space available for the equipment, exiting upgrading, if the sum of the initial address of the last partition and the size of the second parameter is not larger than the size of the flash space available for the equipment, inserting a reserved packet partition before the last partition of the partition table to be upgraded, wherein the initial address of the reserved packet partition is the initial address of the last partition of the previously obtained old partition table, the length of the reserved packet partition is greater than a second parameter, and the starting address and the length of the last partition are updated at the same time, wherein the new starting address is as follows: the starting address of the reserved packet partition + the length of the reserved packet partition, the new length being: the size of the flash space available to the device- (the starting address of the reserved packet partition + the length of the reserved packet partition);
step S2022: when the first parameter is mode 2, checking whether a new partition table in the partition table configuration file has a specific virtual partition and a reserved packet partition, and if both the two partitions exist, directly updating an old partition table in the equipment according to the new partition table in the partition table configuration file; otherwise:
if the sum of the size of the third parameter and the size of the second parameter is smaller than the size of the available flash space of the device, firstly reading an old partition table in the current device, obtaining the starting address and the length of the last partition of the old partition table, then inserting two new partitions, namely a virtual partition and a reserved packet partition, before the last partition of the partition table to be upgraded, wherein the starting address of the virtual partition is 0, and the length of the virtual partition is larger than the maximum value between the third parameter and the starting address of the last partition of the old partition table obtained previously; the starting address of the reserved packet partition is the starting address of the virtual partition plus the length of the virtual partition, and the length of the reserved packet partition needs to be greater than a second parameter; and simultaneously updating the starting address and the length of the last partition, wherein the new starting address is as follows: the starting address of the reserved packet partition + the length of the reserved packet partition, the new length being: the size of the flash space available to the device-the new starting address of the last partition;
if the third parameter + the second parameter > is the size of the available flash space of the equipment, reading an old partition table in the current equipment, acquiring the initial address and the length of the last partition of the old partition table, and if the initial address of the last partition + the second parameter > the size of the available flash space of the equipment, exiting upgrading; otherwise, before the last partition of the partition table to be upgraded, a reserved packet partition is inserted, the starting address of the reserved packet partition is the starting address of the last partition of the old partition table obtained previously, and the partition length needs to be larger than the second parameter. And simultaneously updating the starting address and the length of the last partition, wherein the new starting address is as follows: the starting address of the reserved packet partition plus the length of the reserved packet partition, the new length is: the size of the flash space available to the device- ("starting address of reserved packet partition +" length of reserved packet partition ");
step S203: after the partition table is upgraded, creating a specified path from the partition table change mark file to the reserved position, setting a success mark to the position 2 of the guide communication partition, restarting the device, re-entering the upgrade mode (the upgrade mode runs an instruction in a new upgrade mode complete image file), and re-executing the step S1 and the step S2, wherein the step S3 is directly executed because the success mark exists in the position 2 of the guide communication partition at this time;
step S3: executing other upgrading operations in the upgrading packet, and updating the system partition;
step S4: before exiting the upgrade mode, a new instruction of the upgraded complete image file of the new upgrade mode in step S1 is executed, that is, whether a "partition table change mark file" (for example, last _ parameter _ update) exists in the specified path of the reserved location is checked, if so, the last user data partition of the partition table is reformatted, the file system is reestablished, and meanwhile, whether a "reserved packet partition" node exists in the device partition node is checked, if so, the "reserved packet partition" is formatted, a readable and writable file system is established, and finally, a "reserved partition success mark file" is established in the specified path of the "temporary packet partition".
Step S5: and clearing the content of the position 1 of the boot communication partition and the position 2 of the communication partition, and restarting the system after the firmware upgrade package which enters the first upgrade is upgraded.
After the first upgrade is finished and before the second upgrade is started, the method specifically comprises the following steps:
mounting the newly added reserved packet partition;
judging whether a reserved partition success marking file exists in the appointed path of the reserved position, if not, exiting the program, and if so, acquiring a firmware upgrade package of the second upgrade and storing the firmware upgrade package into the reserved package partition;
and deleting the partition table change mark file and the reserved partition success mark file under the reserved position appointed path, writing a second upgrading instruction and a second upgraded firmware upgrading packet path in the position 1 of the guide communication partition, and entering the second upgrading. The method specifically comprises the following steps:
and entering a system after the upgrade of the temporary firmware package, and mounting the newly added reserved package partition.
The upgrading client checks whether a reserved partition success marking file exists in a designated path of a reserved position, if yes, the upgrading client interacts with an upgrading server to obtain a new platform firmware complete package to be upgraded, which is finally used for upgrading, namely a firmware upgrading package for second upgrading, the name, the size, the partition number and the like of each partition in a partition table of the firmware upgrading package for second upgrading can be completely different from those of a partition table of current equipment, but the last partition of the partition table is required to be a user data partition, and a guiding communication partition exists. And the upgrading client stores the acquired firmware upgrading packet for the second upgrading into a reserved packet partition, deletes the partition table change marking file and the reserved partition success marking file under the appointed path of the reserved position, finally writes a cross-platform complete upgrading instruction and the path of the firmware upgrading packet for the second upgrading into the position 1 of the guide communication partition, and restarts to enter an upgrading mode.
The second upgrade process is as follows:
the "performing the second upgrade, reading the firmware upgrade package of the second upgrade, storing the firmware upgrade package of the second upgrade in the device Memory, and performing the upgrade operation based on the firmware upgrade package of the second upgrade in the device Memory" specifically includes the following steps:
in the upgrading mode, the upgrading program reads the content of the position 1 of the guide communication partition, and triggers the second upgrading according to the second upgrading instruction, namely, triggers the cross-platform complete upgrading process according to the cross-platform complete upgrading instruction stored in the second upgrading instruction:
mounting a reserved packet partition, judging whether a firmware upgrading packet upgraded for the second time in the reserved packet partition exists, if not, exiting the upgrading process, and if so, judging whether a virtual partition exists through an equipment partition node;
if the virtual partition does not exist, calculating the size of the firmware upgrading packet upgraded for the second time, judging whether the size of the firmware upgrading packet upgraded for the second time is larger than the available Memory of the current equipment, if so, exiting, otherwise, newly building a temporary file in the Memory, copying the content of the firmware upgrading packet upgraded for the second time to the temporary file, finally pointing the path of the firmware upgrading packet upgraded for the second time to the newly-built temporary file in the Memory, upgrading a new partition table in a flash storage medium of the equipment according to the content of the firmware upgrading packet upgraded for the second time in the Memory, upgrading all new firmware according to a firmware image in the firmware upgrading packet upgraded for the second time, and completing the complete upgrading of the firmware of the equipment;
if the virtual partition exists, upgrading the new platform firmware to the virtual partition, and performing upgrading operation on the virtual partition through the second upgraded firmware upgrading package, specifically comprising the following steps:
if the virtual partition exists, upgrading a part of flash storage media represented by the virtual partition according to a firmware upgrading package upgraded for the second time in the reserved package partition, wherein the upgrading process comprises the following steps: and after all the new firmware is upgraded, extracting the partition table in the firmware upgrading package upgraded for the second time again, and directly upgrading the formal partition table without modifying the extracted partition table to finish the complete upgrading of the equipment firmware.
And after the upgrade is finished, entering a new system contained in the firmware upgrade package of the second upgrade, and restoring the data backed up in the network to a user data area corresponding to the equipment by the client according to the requirement.
The whole flow chart of the implementation of the above method is shown in fig. 2, wherein the flow chart of the new partition table of the device upgraded according to the partition table configuration file in the firmware upgrade package of the first upgrade is shown in fig. 3.
The method realizes the change and upgrade of the whole storage medium of the equipment by two times of FOTA without the help of an external storage medium (SD/TF card or U disk), supports the arbitrary change of the partition table, overcomes the dependence on the external storage medium, and meets the FOTA firmware upgrade requirements of certain special scenes. The method solves the problem that in the FOTA upgrading process supporting the arbitrary change of the partition table when the whole device flash storage medium needs to be changed arbitrarily, the firmware upgrading package needs to be stored by means of an external storage medium because the whole flash storage medium is invalid in the upgrading process and the firmware upgrading package in any form cannot be stored in the device flash.
Referring to fig. 4, in the present embodiment, a memory device 400 is implemented as follows:
a storage device 400 having stored therein a set of instructions for performing: any of the steps in the above mentioned firmware upgrade method.
It should be noted that, although the above embodiments have been described herein, the invention is not limited thereto. Therefore, based on the innovative concepts of the present invention, the technical solutions of the present invention can be directly or indirectly applied to other related technical fields by making changes and modifications to the embodiments described herein, or by using equivalent structures or equivalent processes performed in the content of the present specification and the attached drawings, which are included in the scope of the present invention.

Claims (9)

1. The firmware upgrading method is characterized by comprising the following steps:
acquiring a firmware upgrading package for first upgrading;
executing first upgrading, and adding a new partition at a preset position of the current equipment, wherein the new partition comprises: a reserved packet partition and a virtual partition, the reserved packet partition to: storing the firmware upgrade package of the second upgrade;
and executing second upgrade, upgrading the new platform firmware to the virtual partition, and upgrading the virtual partition through the firmware upgrade package of the second upgrade.
2. The firmware upgrading method according to claim 1, before acquiring the firmware upgrading package for the first upgrading, further comprising the steps of:
making a first-time upgraded firmware upgrade package, wherein the content of the first-time upgraded firmware upgrade package comprises: a new upgrade mode complete mirror image file and a partition table configuration file;
the new complete image file of the upgrade mode comprises a new instruction: before exiting the upgrading mode, checking whether a partition table change marking file exists in a reserved position, if so, reformatting a last user data partition of a partition table and rebuilding a file system, and meanwhile, checking whether an equipment partition node has a reserved packet partition node, and if so, formatting the reserved packet partition to build a readable and writable file system;
the partition table configuration file comprises: when the virtual partition mark is configured to be empty, adding a reserved packet partition and a virtual partition before the last user data partition of the current old firmware partition table, wherein the length of the virtual partition needs to be larger than the maximum value of the size of a storage space occupied by all partitions before the last user data partition in the new platform firmware partition table to be upgraded and the size of a storage space occupied by all partitions before the last user data partition of the current old firmware partition table, the reserved packet partition is positioned behind the virtual partition, the starting address of the reserved packet partition is the length of the virtual partition, and the length of the reserved packet partition is larger than the size of a firmware upgrade packet upgraded for the second time;
or when the virtual partition marker is not empty, the virtual partition marker comprises: a first parameter, a second parameter, and a third parameter, the first parameter representing a virtual partition mode including, but not limited to: in the mode 1 and the mode 2, the second parameter represents the size of the firmware upgrade package upgraded for the second time, and the third parameter represents the size of the storage space occupied by all partitions before the last user data area in the new platform firmware partition table to be upgraded.
3. The firmware upgrading method according to claim 2, wherein when the virtual partition flag is configured to be null, the old partition table is provided with a reserved location, the reserved location is an unencrypted readable and writable user data area, and the size of the reserved location is not smaller than the size of the difference packet;
a boot communication partition is arranged in the old partition table and used for communication among the firmware in different stages;
the last partition of the old partition table is a user data partition;
if the firmware upgrade package upgraded for the first time is a complete package, the firmware upgrade package upgraded for the first time comprises: if the firmware upgrade package upgraded for the first time is a difference package, the firmware upgrade package upgraded for the first time comprises: the difference file of the firmware existing in the equipment for the firmware upgrade comprises the following contents: and after entering the system, mounting the instruction of the reserved packet partition.
4. A firmware upgrade method according to any one of claims 1 to 3, wherein before "performing the first upgrade", the method specifically comprises the further steps of:
judging whether the size of the firmware upgrading packet upgraded for the first time is larger than the available size of a reserved position of equipment, if so, exiting the upgrading process, if not, backing up the content of a user data area in the last subarea of a current equipment subarea table to a network server according to the requirement, storing the firmware upgrading packet upgraded for the first time in the reserved position of the current equipment, issuing a first upgrading instruction, writing the first upgrading instruction and the firmware upgrading packet upgraded for the first time in a position 1 of a guide communication subarea, and entering an upgrading mode.
5. The firmware upgrade method according to claim 3, wherein the "performing of the first upgrade, adding a new partition at a preset location of the current device, the new partition comprising: a reserved packet partition ", further comprising:
step S1: upgrading the new upgrade mode complete image file of the firmware upgrade package upgraded for the first time;
step S2: reading the content of the position 2 of the boot communication partition, judging whether a success mark exists or not, if so, jumping to step S3, and if not, upgrading the new partition table of the device according to the partition table configuration file in the firmware upgrade package of the first upgrade, wherein the upgrading process of the new partition table of the upgrade device is as follows:
step S201: analyzing the partition table configuration file, checking whether a virtual partition mark exists or not, and if the virtual partition mark does not exist or the virtual partition mark is empty, updating an old partition table in the equipment according to a new partition table in the partition table configuration file;
step S202: if the virtual partition mark is not empty, further analyzing 3 parameters in the virtual partition mark, checking whether the first parameter value is a mode 1 or a mode 2, and if the first parameter value is not the mode 1 or the mode 2, updating an old partition table in the equipment according to a new partition table in the partition table configuration file;
when the first parameter is mode 1, checking whether a new partition table in a partition table configuration file has a specific reserved packet partition, if so, directly updating an old partition table in the equipment according to the new partition table in the partition table configuration file, if not, reading the old partition table in the current equipment to obtain the initial address and the length of the last partition of the old partition table, if the sum of the initial address of the last partition and the size of the second parameter is larger than the size of the flash space available for the equipment, exiting upgrading, if the sum of the initial address of the last partition and the size of the second parameter is not larger than the size of the flash space available for the equipment, inserting a reserved packet partition before the last partition of the partition table to be upgraded, wherein the initial address of the reserved packet partition is the initial address of the last partition of the previously obtained old partition table, the length of the reserved packet partition is greater than a second parameter, and the starting address and the length of the last partition are updated at the same time, wherein the new starting address is as follows: the starting address of the reserved packet partition + the length of the reserved packet partition, the new length being: the size of the flash space available to the device- (the starting address of the reserved packet partition + the length of the reserved packet partition);
when the first parameter is mode 2, checking whether a new partition table in the partition table configuration file has a specific virtual partition and a reserved packet partition, and if both the two partitions exist, directly updating an old partition table in the equipment according to the new partition table in the partition table configuration file; if the sum of the size of the third parameter and the second parameter is smaller than the size of the available flash space of the device, firstly reading an old partition table in the current device, obtaining the starting address and the length of the last partition of the old partition table, then inserting two new partitions, namely a virtual partition and a reserved packet partition, before the last partition of the partition table to be upgraded, wherein the starting address of the virtual partition is 0, and the length of the virtual partition is larger than the maximum value between the third parameter and the starting address of the last partition of the old partition table obtained previously; the starting address of the reserved packet partition is the starting address of the virtual partition plus the length of the virtual partition, and the length of the reserved packet partition needs to be greater than a second parameter; and simultaneously updating the starting address and the length of the last partition, wherein the new starting address is as follows: the starting address of the reserved packet partition + the length of the reserved packet partition, the new length being: the size of the flash space available to the device-the new starting address of the last partition;
if the third parameter + the second parameter > is the size of the available flash space of the equipment, reading an old partition table in the current equipment, acquiring the initial address and the length of the last partition of the old partition table, and if the initial address of the last partition + the second parameter > the size of the available flash space of the equipment, exiting upgrading; otherwise, before the last partition of the partition table to be upgraded, inserting a reserved packet partition, wherein the starting address of the reserved packet partition is the previously acquired starting address of the last partition of the old partition table, the partition length needs to be larger than a second parameter, and the starting address and the length of the last partition are updated at the same time, and the new starting address is: the starting address of the reserved packet partition plus the length of the reserved packet partition, the new length is: the size of the flash space available to the device- ("starting address of reserved packet partition +" length of reserved packet partition ");
step S203: after the partition table is upgraded, creating a specified path from the partition table change mark file to the reserved position, setting a success mark to the position 2 of the guide communication partition, restarting the device, reentering the upgrade mode, and executing the step S1 and the step S2 again, wherein the step S3 is directly executed because the success mark exists in the position 2 of the guide communication partition;
step S3: executing other upgrading operations in the upgrading packet, and updating the system partition;
step S4: before exiting the upgrade mode, executing a new instruction of the upgraded complete image file of the new upgrade mode in step S1;
step S5: and clearing the content of the position 1 of the boot communication partition and the position 2 of the communication partition, and restarting the system after the firmware upgrade package which enters the first upgrade is upgraded.
6. The firmware upgrade method according to claim 5, wherein before the "performing the second upgrade", the method further comprises:
mounting the newly added reserved packet partition;
judging whether a reserved partition success marking file exists in the appointed path of the reserved position, if not, exiting the program, and if so, acquiring a firmware upgrade package of the second upgrade and storing the firmware upgrade package into the reserved package partition;
and deleting the partition table change mark file and the reserved partition success mark file under the reserved position appointed path, writing a second upgrading instruction and a second upgraded firmware upgrading packet path in the position 1 of the guide communication partition, and entering the second upgrading.
7. The firmware upgrade method according to claim 6, wherein the "performing a second upgrade, upgrading a new platform firmware to the virtual partition, and performing an upgrade operation on the virtual partition through the firmware upgrade package of the second upgrade" further includes:
upgrading a part of flash storage media represented by the virtual partition according to a firmware upgrading package upgraded for the second time in the reserved package partition, wherein the upgrading process comprises the following steps: and after all the new firmware is upgraded, extracting the partition table in the firmware upgrading package upgraded for the second time again, and directly upgrading the formal partition table without modifying the extracted partition table to finish the complete upgrading of the equipment firmware.
8. The firmware upgrade method according to any one of claims 1 to 7, wherein the first upgrade includes: a first FOTA upgrade, the second upgrade comprising: and (5) upgrading the FOTA for the second time.
9. A storage device having a set of instructions stored therein, the set of instructions being operable to perform: a firmware upgrade method as claimed in any one of claims 1 to 8.
CN202110880594.XA 2021-08-02 2021-08-02 Firmware upgrading method and storage device Active CN113791811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110880594.XA CN113791811B (en) 2021-08-02 2021-08-02 Firmware upgrading method and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110880594.XA CN113791811B (en) 2021-08-02 2021-08-02 Firmware upgrading method and storage device

Publications (2)

Publication Number Publication Date
CN113791811A true CN113791811A (en) 2021-12-14
CN113791811B CN113791811B (en) 2024-06-21

Family

ID=78877076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110880594.XA Active CN113791811B (en) 2021-08-02 2021-08-02 Firmware upgrading method and storage device

Country Status (1)

Country Link
CN (1) CN113791811B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100175062A1 (en) * 2009-01-07 2010-07-08 Samsung Electronics Co., Ltd. Method and system for firmware over the air (fota) service
CN103677884A (en) * 2012-09-21 2014-03-26 华为技术有限公司 Flash partition table file generating and data updating method and device
CN103853565A (en) * 2012-11-28 2014-06-11 京信通信系统(中国)有限公司 Method and device for firmware upgrading based on ARM
CN106484448A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device
US20170090902A1 (en) * 2015-09-30 2017-03-30 Apple Inc. Software Updating
CN106802813A (en) * 2016-12-06 2017-06-06 智车优行科技(北京)有限公司 Method, device and vehicle for aerial firmware upgrade
CN107229501A (en) * 2017-06-30 2017-10-03 深圳市九洲电器有限公司 Set top box subregion changes upgrade method and system
US20180067751A1 (en) * 2016-09-08 2018-03-08 Hewlett-Packard Development Company, L.P. Mass storage medium having an operating system but not a partition table pre-installed
CN107784233A (en) * 2016-08-25 2018-03-09 中兴通讯股份有限公司 The method and device of AKU is read in a kind of user data subregion from encryption
CN107957878A (en) * 2017-12-06 2018-04-24 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) A kind of embedded device on-line software updating method reallocated based on storage resource
CN108984198A (en) * 2018-07-16 2018-12-11 深圳市茁壮网络股份有限公司 A kind of upgrade method and device of android system
CN109032649A (en) * 2018-07-23 2018-12-18 青岛海信移动通信技术股份有限公司 OTA upgrade method, device, equipment and storage medium
CN109358864A (en) * 2018-12-13 2019-02-19 晶晨半导体(上海)股份有限公司 Method for upgrading system and device
US20190146776A1 (en) * 2016-04-27 2019-05-16 Huawei Technologies Co., Ltd. Patch-Upgrade-Based File Processing Method and Apparatus, Terminal, and Storage Medium
CN113010195A (en) * 2019-12-19 2021-06-22 深圳Tcl数字技术有限公司 System upgrading method, storage medium and terminal equipment

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100175062A1 (en) * 2009-01-07 2010-07-08 Samsung Electronics Co., Ltd. Method and system for firmware over the air (fota) service
CN103677884A (en) * 2012-09-21 2014-03-26 华为技术有限公司 Flash partition table file generating and data updating method and device
CN103853565A (en) * 2012-11-28 2014-06-11 京信通信系统(中国)有限公司 Method and device for firmware upgrading based on ARM
CN106484448A (en) * 2015-08-28 2017-03-08 青岛海信移动通信技术股份有限公司 A kind of method for upgrading software and device
US20170090902A1 (en) * 2015-09-30 2017-03-30 Apple Inc. Software Updating
US20190146776A1 (en) * 2016-04-27 2019-05-16 Huawei Technologies Co., Ltd. Patch-Upgrade-Based File Processing Method and Apparatus, Terminal, and Storage Medium
CN107784233A (en) * 2016-08-25 2018-03-09 中兴通讯股份有限公司 The method and device of AKU is read in a kind of user data subregion from encryption
US20180067751A1 (en) * 2016-09-08 2018-03-08 Hewlett-Packard Development Company, L.P. Mass storage medium having an operating system but not a partition table pre-installed
CN106802813A (en) * 2016-12-06 2017-06-06 智车优行科技(北京)有限公司 Method, device and vehicle for aerial firmware upgrade
CN107229501A (en) * 2017-06-30 2017-10-03 深圳市九洲电器有限公司 Set top box subregion changes upgrade method and system
CN107957878A (en) * 2017-12-06 2018-04-24 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) A kind of embedded device on-line software updating method reallocated based on storage resource
CN108984198A (en) * 2018-07-16 2018-12-11 深圳市茁壮网络股份有限公司 A kind of upgrade method and device of android system
CN109032649A (en) * 2018-07-23 2018-12-18 青岛海信移动通信技术股份有限公司 OTA upgrade method, device, equipment and storage medium
CN109358864A (en) * 2018-12-13 2019-02-19 晶晨半导体(上海)股份有限公司 Method for upgrading system and device
CN113010195A (en) * 2019-12-19 2021-06-22 深圳Tcl数字技术有限公司 System upgrading method, storage medium and terminal equipment

Also Published As

Publication number Publication date
CN113791811B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
CN107506221B (en) Application program upgrading method, device and equipment
CN113064604B (en) Firmware upgrading method and device
US20240220225A1 (en) Operating system upgrade method, device, storage medium, and computer program product
CN106708543B (en) OTA (over the air) upgrading method and device of operating system
JP2004212273A (en) Map data processor, and center system
CN113821235B (en) Operating system data updating method, device, storage medium and program product
CN113238771B (en) Android system-based FOTA firmware upgrading method and device
US10120791B2 (en) Data read apparatus, data read method, and storage medium storing data read program
CN112667265B (en) Method and device for updating bootstrap program
CN113791812B (en) Firmware upgrading method and storage device
CN116360831A (en) Application program upgrading method and device, electronic equipment and storage medium
US20240231789A1 (en) Operating System Management Method, Device, Storage Medium, and Computer Program Product
CN106201584B (en) Version upgrading method and terminal device
CN114461257B (en) Operating system data configuration method, operating system data configuration device, storage medium and program product
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
US9588884B2 (en) Systems and methods for in-place reorganization of device storage
CN113805956B (en) Configuration method and device of operating system and storage medium
CN113791811B (en) Firmware upgrading method and storage device
CN109298953B (en) Device and method for reading and writing shared memory data
US7861114B2 (en) System and method for recovery of memory transactions
CN114706608A (en) Method for upgrading firmware and electronic equipment
CN115688698A (en) Text code editing method and system
JP4903391B2 (en) Database replication method and apparatus and control program therefor
CN117369847A (en) Method for upgrading firmware, electronic device and storage medium
CN113419756A (en) File upgrading method and device and electronic equipment

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