CN111694608B - System upgrading method and device of terminal equipment, electronic equipment and terminal equipment - Google Patents

System upgrading method and device of terminal equipment, electronic equipment and terminal equipment Download PDF

Info

Publication number
CN111694608B
CN111694608B CN202010511218.9A CN202010511218A CN111694608B CN 111694608 B CN111694608 B CN 111694608B CN 202010511218 A CN202010511218 A CN 202010511218A CN 111694608 B CN111694608 B CN 111694608B
Authority
CN
China
Prior art keywords
partition
upgrade
data
upgrading
terminal equipment
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
Application number
CN202010511218.9A
Other languages
Chinese (zh)
Other versions
CN111694608A (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.)
Apollo Intelligent Connectivity Beijing Technology Co Ltd
Original Assignee
Apollo Zhilian Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apollo Zhilian Beijing Technology Co Ltd filed Critical Apollo Zhilian Beijing Technology Co Ltd
Priority to CN202010511218.9A priority Critical patent/CN111694608B/en
Publication of CN111694608A publication Critical patent/CN111694608A/en
Application granted granted Critical
Publication of CN111694608B publication Critical patent/CN111694608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a system upgrading method and device of terminal equipment, electronic equipment, a storage medium and the terminal equipment, and relates to the technical fields of computers, internet of vehicles and cloud platforms. Comprising the following steps: at least one system upgrade package of the terminal equipment is obtained, the guide partition is upgraded according to the guide partition data in the system upgrade package, the system partition is upgraded according to the system partition data in the system upgrade package, the terminal equipment is restarted, the upgrade execution partition is upgraded according to the upgrade execution partition data in the system upgrade package, and the upgrade of the upgrade execution partition is executed in the restarting process of the terminal equipment, so that the defects that the terminal equipment cannot be started normally due to damage to the upgrade execution partition data caused by abnormal conditions such as power failure and the like when the terminal equipment is upgraded can be avoided, the stability and the reliability of the upgrade execution partition are realized, and the maintenance cost of the upgrade execution partition is saved.

Description

System upgrading method and device of terminal equipment, electronic equipment and terminal equipment
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the technical field of terminal equipment, and specifically relates to a system upgrading method and device of the terminal equipment, electronic equipment, a storage medium and the terminal equipment.
Background
With the rapid development of mobile internet technology, the performance of terminal devices, such as car control terminals and other terminal devices, can be improved by upgrading the terminal devices.
In general, the terminal device may include a boot area, an upgrade execution area, a system area, and the like. In the prior art, a system upgrade package comprises upgrade files corresponding to the partitions, and the system upgrade package is adopted to upgrade the guide area, the upgrade execution partition and the system partition respectively, so that the upgrade of the terminal equipment is realized.
However, in the process of implementing the present application, the inventors found that at least the following problems exist: in the upgrading process, if abnormal conditions such as power failure or system breakdown of the terminal equipment occur, the upgrading is interrupted, and data in each partition in the terminal equipment can be damaged, so that the terminal equipment cannot be started normally.
Disclosure of Invention
Provided are a system upgrade method and apparatus for a terminal device, an electronic device, a storage medium, and a terminal device for improving the reliability of the start-up of the terminal device.
According to a first aspect, there is provided a system upgrade method of a terminal device, the method comprising:
acquiring at least one system upgrade package of the terminal equipment;
upgrading the guide partition according to the guide partition data in the system upgrading packet, and upgrading the system partition according to the system partition data in the system upgrading packet;
restarting the terminal equipment, and upgrading the upgrade execution partition according to the upgrade execution partition data in the system upgrade package.
In the embodiment of the application, the upgrade of the upgrade execution partition is executed in the restarting process of the terminal equipment, rather than directly upgrading the upgrade execution partition based on the acquired system upgrade package, so that the defect that the upgrade execution partition cannot be normally started due to damage to upgrade execution partition data caused by abnormal conditions such as power failure when the terminal equipment is upgraded, and the terminal equipment cannot be normally started is overcome, the stability and reliability of the upgrade execution partition are ensured, and the technical effect of saving the maintenance cost of the upgrade execution partition is realized.
According to a second aspect, an embodiment of the present application provides a system upgrade apparatus of a terminal device, where the apparatus includes:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring at least one system upgrade package of terminal equipment;
the upgrade module is used for upgrading the guide partition according to the guide partition data in the system upgrade package and upgrading the system partition according to the system partition data in the system upgrade package;
and the starting module is used for restarting the terminal equipment and upgrading the upgrade execution partition according to the upgrade execution partition data in the system upgrade package.
According to a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described in any one of the embodiments above.
According to a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a method as in any of the embodiments above.
According to a fifth aspect of the present application, there is provided a computer program product comprising: a computer program stored in a readable storage medium, from which it can be read by at least one processor of an electronic device, the at least one processor executing the computer program causing the electronic device to perform the method of the first aspect.
According to the method and the device for upgrading the upgrade execution partition, the upgrade of the upgrade execution partition is executed in the restarting process of the terminal equipment, and the upgrade execution partition is not directly upgraded based on the acquired system upgrade package, so that the defect that the upgrade execution partition cannot be started normally due to damage to upgrade execution partition data caused by abnormal conditions such as power failure when the terminal equipment is upgraded, and the terminal equipment cannot be started normally is overcome, stability and reliability of the upgrade execution partition are ensured, and the technical effect of saving maintenance cost of the upgrade execution partition is achieved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
fig. 1 is an application scenario schematic diagram of a system upgrade method of a terminal device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a system of a vehicle-end device according to an embodiment of the present application;
fig. 3 is a flow chart of a system upgrade method of a terminal device according to an embodiment of the present application;
fig. 4 is a flowchart of a system upgrade method of a terminal device according to another embodiment of the present application;
fig. 5 is a flowchart of a system upgrade method of a terminal device according to another embodiment of the present application;
fig. 6 is a flowchart of a system upgrade method of a terminal device according to another embodiment of the present application;
fig. 7 is a schematic diagram of a system upgrade apparatus of a terminal device according to an embodiment of the present application;
fig. 8 is a schematic diagram of a system upgrade apparatus of a terminal device according to another embodiment of the present application
Fig. 9 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the embodiments of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The system upgrading method of the terminal device in the embodiment of the present application may be applied to an application scenario shown in fig. 1.
In the application scenario shown in fig. 1, the terminal device may include a vehicle end device (not shown in the figure) disposed in the vehicle 100, and may further include a desktop computer 200, a notebook computer 300, and a mobile phone 400.
It will be appreciated that fig. 1 is only exemplary of a few terminal devices and is not to be construed as limiting the terminal devices. For example, the terminal device may also include an iPad, a smart band, and the like, which are not listed here.
The server 500 may establish a communication link with each terminal device and transmit a system upgrade packet for upgrading a system of the terminal device to each terminal device through the communication link, so that each terminal device upgrades the system of the terminal device based on the system upgrade packet.
Specifically, when the terminal device is a vehicle-end device, the system of the vehicle-end device can refer to fig. 2 specifically.
As shown in fig. 2, the system of the vehicle-side device may include a boot partition (uboot partition), an upgrade execution partition (recovery partition), a boot partition (boot partition), a system partition (system partition), a vendor upgrade execution partition (vendor partition), a boot control partition (risc partition), a data partition (userdata partition), and a cache partition (cache partition), and the above partitions are respectively disposed in a read-only memory ROM of the vehicle-side device.
In the related art, if the terminal device includes a plurality of partitions, based on a preset upgrade order, each partition is upgraded in turn based on data corresponding to each partition in the system upgrade package, for example, upgrading a boot partition, a system partition, an upgrade execution partition, and the like.
However, in the upgrading process of the system of the terminal device, abnormal conditions such as power failure may be encountered, and if the power failure and the like occur during upgrading of the upgrade execution partition, the data of the upgrade execution partition may be damaged, so that the upgrade execution partition cannot be started normally, and the terminal device cannot be started normally.
The inventors of the present application, after having performed inventive work, conceived the inventive concept of the present proposal: the upgrade execution partition is not directly upgraded in the upgrade process.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 3, fig. 3 is a flow chart of a system upgrade method of a terminal device according to an embodiment of the present application.
As shown in fig. 3, the method includes:
s101: at least one system upgrade package of the terminal equipment is obtained.
The execution body of the embodiment of the application may be a system upgrade device of the terminal device, and the device may be a processor, and the processor may be disposed in the terminal device.
For example, in the application scenario shown in fig. 1, if the terminal device is a desktop computer, the system upgrade device of the terminal device may be a central processing unit CPU disposed in the desktop computer. If the terminal device is a vehicle-end device arranged on the vehicle, the upgrading device of the terminal device can be a processing chip arranged in the vehicle-end device.
The terminal device may be an electronic device capable of establishing a communication link with the server and performing data transmission with the server through the communication link.
For example, when the method of the embodiment of the present application is applied to the application scenario shown in fig. 1, the terminal device includes a desktop computer, a notebook computer, and a mobile phone as shown in fig. 1, and a vehicle end device disposed in a vehicle.
The system upgrade package is used for upgrading the system of the terminal equipment.
The cloud server may be a local server or a cloud server.
Illustratively, the method of the embodiment of the present application is particularly applicable to Over-the-Air Technology (OTA) upgrade, and the corresponding system upgrade package may be referred to as an OTA system upgrade package.
For example, in the application scenario shown in fig. 1, the server is specifically a cloud server, and the vehicle-end device obtains an OTA system upgrade package sent from the cloud server based on a communication link between the server and the cloud server, so as to upgrade a system of the vehicle-end device through the OTA system upgrade package.
S102: and upgrading the guide partition according to the guide partition data in the system upgrading packet, and upgrading the system partition according to the system partition data in the system upgrading packet.
It may be understood that the number of partitions in the system of different terminal devices, and the names of the partitions are not necessarily the same, and in this embodiment of the present application, three partitions of a terminal device are mainly described in detail by taking an example of three partitions, which are a boot partition (uboot partition), a system partition (system partition), and an upgrade execution partition (Recovery partition), respectively.
However, it should be noted that the number of partitions and names of the partitions in the embodiments of the present application are only used for exemplary illustration, so that readers can deeply understand the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the embodiments of the present application, and should not be construed as limiting the number and names of the partitions.
In order to upgrade each partition of the terminal device, the system upgrade package may include data for upgrading each partition, for example, the system upgrade package includes data for upgrading a boot partition of the terminal device, and also includes data for upgrading a system partition of the terminal device, and so on.
In the embodiment of the application, the boot partition is updated by adopting the boot partition data in the system upgrade package, and the system partition is updated according to the system partition data in the system upgrade package.
The specific process of upgrading can be understood as replacing the original data in each partition with the data corresponding to the partition in the system upgrade package.
S103: restarting the terminal equipment, and upgrading the upgrade execution partition according to the upgrade execution partition data in the system upgrade package.
It can be understood that if the upgrade execution partition encounters abnormal situations such as power failure in the upgrade process, the upgrade execution partition data may be damaged, so that the upgrade execution partition cannot be started normally.
In the embodiment of the application, in order to avoid the damage to the data of the upgrade execution partition due to the abnormal conditions such as power failure in the upgrade process, after the upgrade is performed on the other partitions except the upgrade execution partition, the terminal device is restarted, and when the terminal device is restarted, the upgrade of the upgrade execution partition is completed.
For example, based on the above example, if the terminal device includes a boot partition, a system partition, and an upgrade execution partition, the terminal device may be restarted after the upgrade of the boot partition and the system partition is completed, and the upgrade execution partition may be upgraded after the terminal device is restarted.
After restarting the terminal device, various methods may be used to upgrade the upgrade execution partition, for example, upgrade execution partition data in the system upgrade package is stored in advance, and when restarting the terminal device, the upgrade execution partition is upgraded by the stored upgrade execution partition data, where the upgrade execution partition data may be stored in the terminal device, or may be stored in an external device that performs data transmission with the terminal device, such as a memory, and so on.
As can be seen from the foregoing examples, the embodiments of the present application provide a system upgrade method for a terminal device, where the method includes: at least one system upgrade package of the terminal equipment is obtained, the guide partition is upgraded according to the guide partition data in the system upgrade package, the system partition is upgraded according to the system partition data in the system upgrade package, the terminal equipment is restarted, the upgrade execution partition is upgraded according to the upgrade execution partition data in the system upgrade package, the upgrade of the upgrade execution partition is executed in the restarting process of the terminal equipment instead of the upgrade execution partition directly based on the obtained system upgrade package, the defect that the upgrade execution partition is damaged due to abnormal conditions such as power failure when the terminal equipment is upgraded, so that the upgrade execution partition cannot be started normally is avoided, the stability and the reliability of the upgrade execution partition are ensured, and the technical effect of saving the maintenance cost of the upgrade execution partition is realized.
In order to make the reader more deeply understand the technical method and technical effect of the embodiments of the present application, the method of the embodiments of the present application will now be described in more detail with reference to fig. 4. Fig. 4 is a flow chart of a system upgrade method of a terminal device according to another embodiment of the present application.
As shown in fig. 4, the method includes:
s201: at least one system upgrade package of the terminal equipment is obtained.
The description of S201 may refer to S101, and will not be repeated here.
S202: and upgrading the guide partition according to the guide partition data in the system upgrading packet, and upgrading the system partition according to the system partition data in the system upgrading packet.
The description of S202 may refer to S102, and will not be repeated here.
S203: upgrade execution partition data in the system upgrade package is stored in other partitions (hereinafter referred to as other partitions) than the upgrade execution partition.
In the embodiment of the present application, the order between S202 and S203 is not limited.
In this step, the upgrade execution partition data may be stored in the boot partition, or may be stored in the system partition, or may be stored in another partition if the terminal device further includes another partition.
By storing the data of the upgrade execution partition into other partitions, the upgrade execution partition does not need to be directly upgraded in the stage of upgrading the terminal equipment, so that the problem that the upgrade execution partition cannot be started due to abnormal conditions such as power failure is avoided, normal starting of the upgrade execution partition is ensured, and maintenance of the upgrade execution partition is reduced.
S204: restarting the terminal equipment, and upgrading the upgrade execution partition according to the upgrade execution partition data stored in the other partitions.
In this step, since the upgrade execution partition data is stored in the other partition, when the terminal device is restarted, the upgrade execution partition data may be acquired from the other partition, and the upgrade execution partition may be upgraded by the acquired upgrade execution partition data, for example, the acquired upgrade execution partition data may be substituted for the original data of the upgrade execution partition.
In order to make the reader more deeply understand the technical method and technical effect of the embodiments of the present application, the method of the embodiments of the present application will now be described in more detail with reference to fig. 5. Fig. 5 is a flow chart of a system upgrade method of a terminal device according to another embodiment of the present application.
As shown in fig. 5, the method includes:
s301: at least one system upgrade package of the terminal equipment is obtained.
The description of S301 may refer to S101, and will not be repeated here.
In some embodiments, the system upgrade package includes a boot partition file and a system partition file, where the boot partition file includes boot partition data, and the system partition file includes system partition data and upgrade execution partition data.
That is, the system upgrade package includes a boot partition file including boot partition data for upgrading the boot partition; the system upgrade package also comprises a system partition file, wherein the system partition file comprises system partition data for upgrading the system partition and upgrade execution partition data for upgrading the upgrade execution partition.
It should be noted that, in the embodiment of the present application, the system partition data and the upgrade execution partition data are integrated into the system partition file, and in the system partition file, the system partition data and the upgrade execution partition data remain independent, that is, the system partition data and the upgrade execution partition data are two independent individual data respectively, so that when the terminal device is restarted, the upgrade execution partition is reliably upgraded while the system partition is reliably upgraded.
S302: and upgrading the guide partition according to the guide partition data in the system upgrade package.
For the upgrade of the boot partition, reference may be made to the above example, and will not be repeated here.
S303: and upgrading the system partition according to the system partition data in the system partition file, and storing upgrading execution partition data in the system partition file in the system partition.
For a description of upgrading the system partition according to the system partition data, reference may be made to the above example, and the description thereof will not be repeated here.
That is, in the embodiment of the present application, the system partition data and the upgrade execution partition data are both stored in the system partition file, and when the system partition is upgraded by using the system partition file, the system partition is actually upgraded by the system partition data in the system partition file, but after the upgrade of the system partition is completed, the upgrade execution partition data in the system partition file may be stored in the system partition, so that in the restarting process of the terminal device, the upgrade execution partition is upgraded by the upgrade execution partition data stored in the system partition.
In the process of upgrading the system partition, if abnormal conditions such as power failure are met, the original system partition data in the system partition cannot be damaged, so that the system partition can be started based on the original system partition data of the system partition, and the restarting of the terminal equipment is realized. Therefore, if the upgrade fails, the upgrade execution partition can be started based on the original upgrade execution partition data, and if the upgrade is successful, the upgrade execution partition can be started based on the upgrade execution partition data stored in the system partition, so that the safety and reliability of upgrade of the upgrade execution partition are realized, and the technical effect of ensuring normal use of the terminal equipment is further realized.
S304: restarting the terminal equipment, and replacing the original data of the upgrade execution partition with the upgrade execution partition data stored in the system partition.
In some embodiments, this step may specifically include: when restarting the terminal equipment, judging whether upgrade execution partition data is included in the system partition, if so, calling the upgrade execution partition data from the system partition, and replacing the original data of the upgrade execution partition by the upgrade execution partition data, thereby realizing the upgrade of the upgrade execution partition.
In some embodiments, if the terminal device includes a boot partition, a system partition, and an upgrade execution partition, the terminal device may be restarted by, for example, preferentially starting the boot partition, then starting the system partition, and finally starting the upgrade execution partition. After the boot partition and the system partition are successfully started, whether the system partition comprises upgrade execution partition data or not can be judged, if so, the upgrade execution partition data can be called from the system partition through a preset calling instruction, and the original data of the upgrade execution partition is replaced by the upgrade execution partition data.
To further ensure a proper start-up of the terminal device, the method of the embodiment of the present application will now be described in detail in connection with fig. 6. Fig. 6 is a flow chart of a system upgrade method of a terminal device according to another embodiment of the present application.
As shown in fig. 6, the method includes:
s401: at least one system upgrade package of the terminal equipment is obtained.
The description of S401 may refer to S301, and will not be repeated here.
S402: and upgrading at least one of the boot partition and the backup partition according to the boot partition data in the system upgrade package, wherein the terminal equipment further comprises at least one backup partition of the boot partition.
That is, in the embodiment of the present application, before upgrading the terminal device, the backup processing is performed on the boot partition in the terminal device, for example, a backup partition of at least one boot partition is generated by mirroring.
In the upgrading process, only one boot partition may be upgraded, or multiple boot partitions may be upgraded, which is not limited in this application. In the embodiment of the application, an upgrade of one boot partition is exemplarily described.
It can be understood that the upgrading process is a progressive process, if abnormal conditions such as power failure are encountered during upgrading the boot partition, the boot partition may fail to be upgraded, and original data in the boot partition is damaged, so that the terminal device cannot be started normally during the starting process because the boot partition cannot be started normally.
In the embodiment of the application, by backing up the boot partition, if the original data in the boot partition is damaged, when the terminal device is restarted, the restarting of the terminal device can be realized by starting the backup partition. Therefore, by the scheme for backing up the guide partition, the problem that the terminal equipment cannot be started normally due to abnormal conditions such as power failure in the upgrading process can be avoided, so that the maintenance cost of the terminal equipment is reduced, and the stability and reliability of normal starting of the terminal equipment are improved.
S403: and upgrading the system partition according to the system partition data in the system partition file, and storing upgrading execution partition data in the system partition file in the system partition.
The description of S403 may refer to S303, and will not be repeated here.
S404: when the terminal device is restarted, it is determined whether the upgraded boot partition data is damaged, if so, S405 is executed, and if not, S406 is executed.
S405: and executing starting operation on the boot partition which is not updated in the terminal equipment.
In this step, if the boot partition data of the boot partition (hereinafter referred to as a first boot partition) on which the upgrade was performed is damaged, it is indicated that the upgrade was unsuccessful, and the first boot partition cannot be started normally, so that the terminal device cannot be started normally either. Therefore, the starting operation is performed on other boot partitions (hereinafter referred to as a second boot partition) that are not updated, and since the boot partition data in the second boot partition is the original data of the second boot partition and is not damaged, the second boot partition can be started normally, so that the normal starting of the terminal device can be realized.
It can be understood that, since the upgrade process is a sequential process, if abnormal situations such as power failure are encountered during upgrading the boot partition, it is indicated that the upgrade has not been performed on the system partition and the upgrade execution partition, and in the process of restarting the terminal device, the system partition and the upgrade execution partition may be directly started.
S406: and when the terminal equipment is restarted, starting the first guide partition.
It should be noted that, if the upgrade of the first boot partition is successful, the first boot partition may be directly started in the process of restarting the terminal device.
S407: and replacing the original data of the upgrade execution partition with the upgrade execution partition data stored in the system partition.
The description of S407 may refer to S303, and is not repeated here.
That is, in this embodiment of the present application, if the upgrade of the terminal device is successful, that is, the upgrade of the first boot partition and the system partition is completed, when the terminal device is restarted, the first boot partition may be started first, then the system partition is started, and the upgrade execution partition data stored in the system partition replaces the original data of the upgrade execution partition, thereby implementing the upgrade of the upgrade execution partition, implementing the normal start of the upgrade execution partition, and finally implementing the restart of the terminal device.
According to another aspect of the embodiments of the present application, the embodiments of the present application further provide a system upgrade apparatus of a terminal device corresponding to the embodiments of the method, where the apparatus is configured to implement the method described in any one of the embodiments of the present application, and implement the method shown in fig. 3 to 6.
Referring to fig. 7, fig. 7 is a schematic diagram of a system upgrade apparatus of a terminal device according to an embodiment of the present application.
As shown in fig. 7, the apparatus includes:
an acquiring module 11, configured to acquire at least one system upgrade package of a terminal device;
the upgrade module 12 is configured to upgrade a boot partition according to the boot partition data in the system upgrade package, and upgrade a system partition according to the system partition data in the system upgrade package;
and the starting module 13 is used for restarting the terminal equipment and upgrading the upgrade execution partition according to the upgrade execution partition data in the system upgrade package.
As can be seen in conjunction with fig. 8, in some embodiments, the apparatus further comprises:
and a storage module 14, configured to store upgrade execution partition data in the system upgrade package in other partitions except the upgrade execution partition.
In some embodiments, the system upgrade package includes: the system partition file comprises the system partition data and the upgrade execution partition data.
In some embodiments, the upgrade module 12 is configured to upgrade the system partition according to the system partition data in the system partition file, and store upgrade execution partition data in the system partition file in the system partition.
In some embodiments, the terminal device further comprises at least one backup partition of the boot partition; the upgrade module 12 is configured to upgrade at least one of the boot partition and the backup partition according to the boot partition data in the system upgrade package.
In some embodiments, the starting module 13 is configured to, when the terminal device is restarted, perform a starting operation on a boot partition that is not updated in the terminal device if the boot partition data that is updated in the terminal device is damaged.
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
According to an embodiment of the present application, there is also provided a computer program product comprising: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any one of the embodiments described above.
Referring to fig. 9, fig. 9 is a block diagram of an electronic device according to an embodiment of the present application.
Wherein the electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the embodiments of the present application described and/or claimed herein.
As shown in fig. 9, the electronic device includes: one or more processors 101, memory 102, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). In fig. 9, a processor 101 is taken as an example.
Memory 102 is a non-transitory computer readable storage medium provided by embodiments of the present application. The memory stores instructions executable by the at least one processor, so that the at least one processor executes the system upgrading method of the terminal equipment provided by the embodiment of the application. The non-transitory computer-readable storage medium of the embodiment of the present application stores computer instructions for causing a computer to execute the system upgrade method of the terminal device provided by the embodiment of the present application.
The memory 102 serves as a non-transitory computer readable storage medium that may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules in embodiments of the present application. The processor 101 executes various functional applications of the server and data processing, that is, implements the system upgrade method of the terminal device in the above-described method embodiment, by running non-transitory software programs, instructions, and modules stored in the memory 102.
The memory 102 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the electronic device, etc. In addition, the memory 102 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 102 may optionally include memory located remotely from processor 101, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, blockchain-Based Service Network (BSN), mobile communication networks, and combinations thereof.
The electronic device may further include: an input device 103 and an output device 104. The processor 101, memory 102, input device 103, and output device 104 may be connected by a bus or otherwise, for example in fig. 9.
The input device 103 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointer stick, one or more mouse buttons, trackball, joystick, and like input devices. The output device 104 may include a display apparatus, auxiliary lighting devices (e.g., LEDs), haptic feedback devices (e.g., vibration motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), blockchain-service networks (BSNs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to another aspect of the embodiments of the present application, there is further provided a terminal device, where the terminal device includes an apparatus as described in any one of the embodiments above, or an electronic device as described in the embodiment above.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solutions of the present application are achieved, and the present application is not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (11)

1. A system upgrade method for a terminal device, the method comprising:
acquiring at least one system upgrade package of the terminal equipment;
upgrading the guide partition according to the guide partition data in the system upgrading packet, and upgrading the system partition according to the system partition data in the system upgrading packet;
storing upgrade execution partition data in the system upgrade package in other partitions except the upgrade execution partition;
restarting the terminal equipment, and upgrading the upgrade execution partition according to the upgrade execution partition data stored in the other partitions;
and when the terminal equipment is restarted, if the data of the guide partition which is updated in the terminal equipment is damaged, executing starting operation on the guide partition which is not updated in the terminal equipment.
2. The method of claim 1, wherein the system upgrade package comprises: the system partition file comprises the system partition data and the upgrade execution partition data.
3. The method of claim 2, wherein the upgrading the system partition according to the system partition data in the system upgrade package comprises:
upgrading the system partition according to the system partition data in the system partition file;
the storing the upgrade execution partition data in the system upgrade package in other partitions except the upgrade execution partition includes:
and storing the upgrade execution partition data in the system partition file in the system partition.
4. The method of any of claims 1-3, wherein the terminal device further comprises at least one backup partition of the boot partition; the upgrading of the boot partition according to the boot partition data in the system upgrade package includes:
and upgrading at least one of the guide partition and the backup partition according to the guide partition data in the system upgrade package.
5. A system upgrade apparatus for a terminal device, the apparatus comprising:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring at least one system upgrade package of terminal equipment;
the upgrade module is used for upgrading the guide partition according to the guide partition data in the system upgrade package and upgrading the system partition according to the system partition data in the system upgrade package;
the storage module is used for storing the upgrade execution partition data in the system upgrade package in other partitions except the upgrade execution partition;
the starting module is used for restarting the terminal equipment and upgrading the upgrading execution partition according to the upgrading execution partition data stored in the other partitions;
and the starting module is also used for executing starting operation on the boot partition which is not upgraded in the terminal equipment if the data of the boot partition which is upgraded in the terminal equipment is damaged when the terminal equipment is restarted.
6. The apparatus of claim 5, wherein the system upgrade package comprises: the system partition file comprises the system partition data and the upgrade execution partition data.
7. The apparatus of claim 6, wherein the upgrade module is configured to upgrade the system partition according to system partition data in the system partition file;
and the storage module is used for storing the upgrade execution partition data in the system partition file in the system partition.
8. The apparatus of any of claims 5-7, wherein the terminal device further comprises at least one backup partition of the boot partition; the upgrade module is used for upgrading at least one of the guide partition and the backup partition according to the guide partition data in the system upgrade package.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-4.
11. A terminal device, characterized in that it comprises an apparatus according to any one of claims 5 to 8, or an electronic device according to claim 9.
CN202010511218.9A 2020-06-08 2020-06-08 System upgrading method and device of terminal equipment, electronic equipment and terminal equipment Active CN111694608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010511218.9A CN111694608B (en) 2020-06-08 2020-06-08 System upgrading method and device of terminal equipment, electronic equipment and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010511218.9A CN111694608B (en) 2020-06-08 2020-06-08 System upgrading method and device of terminal equipment, electronic equipment and terminal equipment

Publications (2)

Publication Number Publication Date
CN111694608A CN111694608A (en) 2020-09-22
CN111694608B true CN111694608B (en) 2023-06-20

Family

ID=72479717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010511218.9A Active CN111694608B (en) 2020-06-08 2020-06-08 System upgrading method and device of terminal equipment, electronic equipment and terminal equipment

Country Status (1)

Country Link
CN (1) CN111694608B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115729586B (en) * 2021-06-15 2023-10-20 荣耀终端有限公司 Operating system upgrade method, device, storage medium and computer program product

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569058A (en) * 2019-09-09 2019-12-13 Oppo(重庆)智能科技有限公司 System upgrading method, device, terminal and computer readable storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708543B (en) * 2015-07-22 2019-12-13 Tcl集团股份有限公司 OTA (over the air) upgrading method and device of operating system
CN105446772B (en) * 2015-11-16 2019-01-04 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of system upgrade
CN105573780B (en) * 2015-12-08 2019-05-14 北京元心科技有限公司 A kind of mobile terminal operating system upgrade method and device based on container
CN109240720B (en) * 2018-08-23 2021-11-26 瑞芯微电子股份有限公司 Firmware upgrading method of android system and storage device
CN109542480A (en) * 2018-11-16 2019-03-29 深圳市邻友通科技发展有限公司 The operating system update method, apparatus and medium of nail print apparatus
CN109766119B (en) * 2019-01-24 2023-10-17 努比亚技术有限公司 Recovery partition upgrade method, terminal and computer readable storage medium
CN110175039A (en) * 2019-04-26 2019-08-27 潍坊歌尔电子有限公司 Online upgrading method, equipment, readable storage medium storing program for executing and electronic equipment
CN110399153B (en) * 2019-07-25 2023-11-03 Oppo广东移动通信有限公司 System upgrading method, device, terminal and computer readable storage medium
CN111045712A (en) * 2019-12-17 2020-04-21 杭州涂鸦信息技术有限公司 Single system upgrading method and system with backup function

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569058A (en) * 2019-09-09 2019-12-13 Oppo(重庆)智能科技有限公司 System upgrading method, device, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111694608A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN110780890B (en) System upgrading method, device, electronic equipment and medium
CN111770169B (en) Method, device, equipment and storage medium for upgrading equipment firmware
EP3813339A1 (en) Acquisition method, apparatus, device and storage medium for applet data
EP3869336A1 (en) Method and apparatus for processing development machine operation task, device and storage medium
CN112328296B (en) Method, device, equipment and medium for updating software aiming at cross-platform application
CN115794257B (en) System starting method, device, electronic equipment and storage medium
CN111694608B (en) System upgrading method and device of terminal equipment, electronic equipment and terminal equipment
CN114721686A (en) Configuration data updating method and device, electronic equipment and storage medium
CN112965806B (en) Method and device for determining resources
CN108932134B (en) Remote updating method for server BIOS
CN111399888B (en) Audio processing chip processing method and device and electronic equipment
CN113377487A (en) Method, apparatus and computer program product for managing virtual machine upgrades
CN114327673B (en) Task starting method and device, electronic equipment and storage medium
CN112925675B (en) Recovery method and device for applet
CN113747423B (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN113051122B (en) Performance data acquisition method, device, electronic equipment and medium
CN113515291A (en) Equipment online upgrading method and device
CN112000354A (en) Version information updating method, version information updating device, version information updating equipment and storage medium
CN117111991A (en) System upgrading method and device, electronic equipment and storage medium
JP5317182B2 (en) POS terminal, module update method and module update program
CN113596129B (en) Restarting method, restarting device, restarting equipment and restarting storage medium of cloud mobile phone
CN111258954B (en) Data migration method, device, equipment and storage medium
CN116089163A (en) Data processing method and device and electronic equipment
CN111694688B (en) Vehicle-mounted system recovery processing method and device and electronic equipment
CN117112002A (en) Drive upgrading method and device, electronic equipment 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211022

Address after: 100176 101, floor 1, building 1, yard 7, Ruihe West 2nd Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd.

Address before: 2 / F, baidu building, 10 Shangdi 10th Street, Haidian District, Beijing 100085

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant