A terminal device upgrade method, storage medium and terminal device

By using the screen parameter file to store the boot partition name in the terminal device and searching for the partition file according to the upgrade instructions, the problem of maintenance cost and high error rate caused by multiple boot partitions is solved, the same release of the boot partition file is realized, and the cost of the terminal device is reduced. maintenance costs.

CN111736858BActive Publication Date: 2024-09-17SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910226078.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-03-25
Publication Date
2024-09-17
Estimated Expiration
2039-03-25

AI Technical Summary

Technical Problem

Due to hardware limitations, existing terminal devices need to configure multiple boot partitions, resulting in increased maintenance costs and high software maintenance error rates.

Method used

By using the screen parameter file to store the boot partition name in the terminal device, and searching for the corresponding partition file according to the upgrade instructions and upgrade types, the unified release of the boot partition files is achieved and maintenance costs are reduced.

Benefits of technology

It realizes the unified release of boot partition files, reducing the maintenance cost of terminal equipment and the error rate of software maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111736858B
    Figure CN111736858B
Patent Text Reader

Abstract

The present invention discloses an upgrade method for terminal equipment, a storage medium and a terminal equipment, the method comprising: when receiving an upgrade instruction, searching for a boot partition name pre-stored according to a screen parameter file according to the upgrade instruction; determining a partition file corresponding to the boot partition name according to the found boot partition name, and burning the partition file to its corresponding address. The present invention realizes the same release of boot partition files by configuring all boot partition files in an upgrade package, and obtaining corresponding boot partition files according to the boot partition name pre-stored according to the screen parameter file during the upgrade, thereby reducing the maintenance cost of the terminal equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent terminals, and in particular to an upgrading method for terminal equipment, a storage medium and a terminal equipment. Background Art

[0002] Currently, due to hardware limitations in terminal devices, GPIO (General Purpose Input Output) pins must be pulled high or low. Furthermore, different terminal functions require different GPIO states, necessitating the configuration of multiple boot partitions. However, when a terminal device has multiple boot partitions, it must also be configured with multiple boot software packages, each of which must be released separately. This increases maintenance costs and the likelihood of software maintenance errors. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to provide a terminal device upgrade method, storage medium and terminal device in view of the deficiencies in the existing technology.

[0004] The technical solutions adopted in the present invention are as follows:

[0005] A method for upgrading a terminal device, comprising:

[0006] When an upgrade instruction is received, searching for the boot partition name pre-stored according to the screen parameter file according to the upgrade instruction, wherein the upgrade package corresponding to the upgrade instruction carries the partition file corresponding to the boot partition name;

[0007] Determine the partition file corresponding to the boot partition name according to the found boot partition name, and burn the partition file to its corresponding address.

[0008] The terminal device upgrade method, wherein when receiving an upgrade instruction, searching for a boot partition name pre-stored according to a screen parameter file according to the upgrade instruction specifically includes:

[0009] When receiving an upgrade instruction, reading the upgrade type of the upgrade instruction;

[0010] The storage path of the boot partition name pre-stored according to the screen parameter file is determined according to the upgrade type, and the boot partition name is searched under the storage path.

[0011] The terminal device upgrade method, wherein determining the storage path of the boot partition name pre-stored according to the screen parameter file according to the upgrade type, and searching for the boot partition name under the storage path specifically includes:

[0012] When the upgrade type is forced upgrade, read the boot environment variable;

[0013] Get the boot partition name carried in the boot environment variable to obtain the boot partition name pre-stored according to the screen parameter file.

[0014] The terminal device upgrade method, wherein determining the storage path of the boot partition name pre-stored according to the screen parameter file according to the upgrade type, and searching for the boot partition name under the storage path further comprises:

[0015] When the upgrade type is local upgrade, reading system environment variables;

[0016] Get the boot partition name carried in the system environment variable to obtain the boot partition name pre-stored according to the screen parameter file.

[0017] The terminal device upgrade method, wherein when receiving the upgrade instruction, searching for the partition name of each boot pre-stored according to the screen parameter file according to the upgrade instruction includes:

[0018] When the terminal device starts, it reads its own configured screen parameter file;

[0019] Extract the boot partition name carried in the screen parameter file, and store the boot partition name in the boot environment variable and the system environment variable respectively.

[0020] The terminal device upgrade method, wherein, when receiving the upgrade instruction, before searching for the partition name of each boot pre-stored according to the screen parameter file according to the upgrade instruction, further comprises:

[0021] When the terminal device configures the screen parameter file, it obtains the preset boot partition name and configures the boot partition name in the screen parameter file.

[0022] The terminal device upgrade method, wherein determining the partition file corresponding to the boot partition name according to the found boot partition name, and burning the partition file to its corresponding address specifically includes:

[0023] Reading the upgrade type of the upgrade instruction;

[0024] When the upgrade type is forced upgrade, search the upgrade package corresponding to the upgrade instruction for a partition file corresponding to the boot partition name;

[0025] When the partition file is found, the partition file is burned to its corresponding chip address.

[0026] The terminal device upgrade method, wherein determining a partition file corresponding to the boot partition name according to the found boot partition name, and burning the partition file to its corresponding address further comprises:

[0027] When the upgrade type is local upgrade, read the upgrade boot partition name corresponding to the upgrade instruction, and search for the upgrade boot partition name in the found boot partition names;

[0028] When the upgrade boot partition name is found, the partition file corresponding to the upgrade boot partition name is searched in the upgrade package corresponding to the upgrade instruction, and the found partition file is burned to its corresponding chip address.

[0029] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in any of the terminal device upgrade methods described above.

[0030] A terminal device comprising: a processor, a memory, and a communication bus; the memory stores a computer-readable program executable by the processor;

[0031] The communication bus realizes the connection and communication between the processor and the memory;

[0032] When the processor executes the computer-readable program, the steps in any of the above-described methods for upgrading the terminal device are implemented.

[0033] Beneficial Effects: Compared to the prior art, the present invention provides a terminal device upgrade method, storage medium, and terminal device. The method comprises: upon receiving an upgrade instruction, searching for a boot partition name pre-stored according to a screen parameter file based on the upgrade instruction; determining a partition file corresponding to the boot partition name based on the found boot partition name, and burning the partition file to its corresponding address. By configuring all boot partition files within the upgrade package and obtaining the corresponding boot partition file based on the boot partition name pre-stored according to the screen parameter file during the upgrade, the present invention achieves uniform release of boot partition files, thereby reducing terminal device maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 The present invention provides a flowchart of an embodiment of a terminal device upgrade method.

[0035] Figure 2 This is a flowchart of step S10 in one embodiment of the terminal device upgrade method provided by the present invention.

[0036] Figure 3 A schematic structural diagram of an embodiment of a terminal device provided by the present invention. DETAILED DESCRIPTION

[0037] The present invention provides a terminal device upgrade method, storage medium, and terminal device. To make the objectives, technical solutions, and effects of the present invention more clear and explicit, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention.

[0038] It will be understood by those skilled in the art that, unless expressly stated otherwise, the singular forms "a", "an", "said" and "the" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the description of the present invention refers to the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, "connected" or "coupled" as used herein may include wireless connections or wireless couplings. The term "and / or" used herein includes all or any units and all combinations of one or more associated listed items.

[0039] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with their meanings in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0040] The invention will be further explained below through description of embodiments in conjunction with the accompanying drawings.

[0041] This embodiment provides a method for upgrading a terminal device, such as Figure 1 As shown, the method includes:

[0042] S10. When an upgrade instruction is received, the boot partition name pre-stored according to the screen parameter file is searched according to the upgrade instruction.

[0043] Specifically, the screen parameter file is stored in the terminal device. The screen parameter file is used to store parameter information of the display screen of the terminal device, and the display screen of the terminal device corresponds to a unique screen parameter file. In this embodiment, the screen parameter file is configured with parameter information and a boot partition name. The boot partition name can be one or more, and the number of boot partition names is equal to the number of boot partitions configured in the terminal device. In other words, the screen parameter file stores the boot partition names of all boot partitions in the terminal device.

[0044] Furthermore, the boot partition name is obtained based on the screen parameter file and stored in a specified path. That is, the terminal device pre-stores the boot partition name carried by the screen parameter file in the specified path. When the terminal device receives the upgrade instruction, it searches for the boot partition name in the specified path according to the upgrade instruction. Accordingly, when the upgrade instruction is received, the process of searching for the boot partition names pre-stored based on the screen parameter file according to the upgrade instruction includes:

[0045] When the terminal device starts, it reads its own configured screen parameter file;

[0046] Extract the boot partition name carried in the screen parameter file, and store the boot partition name in the boot environment variable and the system environment variable respectively.

[0047] Specifically, the terminal device startup refers to the first startup of the terminal device, that is, when the terminal device is started for the first time, it reads the screen parameter file configured by itself and extracts the boot partition name carried in the screen parameter file. The boot partition name in the screen parameter file is obtained when the terminal device configures the screen parameter file, and all the boot partition names obtained are stored in the screen parameter file. That is to say, when the upgrade instruction is received, the partition name of each boot pre-stored according to the screen parameter file is searched according to the upgrade instruction, which also includes: when the terminal device configures the screen parameter file, the preset boot partition name is obtained, and the boot partition name is configured in the screen parameter file. All boot partition names can be stored in the same folder, which makes it easier to find and obtain the boot partition name in the screen parameter file, thereby improving the search speed of the boot partition name.

[0048] Further, in one embodiment of the present invention, Figure 2 As shown, when receiving the upgrade instruction, searching the boot partition name pre-stored according to the screen parameter file according to the upgrade instruction specifically includes:

[0049] S11. When an upgrade instruction is received, reading the upgrade type of the upgrade instruction;

[0050] S12. Determine the storage path of the boot partition name pre-stored according to the screen parameter file according to the upgrade type, and search for the boot partition name under the storage path.

[0051] Specifically, the upgrade types include local upgrade and forced upgrade. The local upgrade is to use a local upgrade package to have the terminal device initiate an upgrade request locally, and the forced upgrade is to force the terminal device to upgrade. Among them, the local upgrade obtains the environment variables under the recovery environment, and the forced upgrade obtains the environment variables under the boot environment. Accordingly, for different types, the storage path for obtaining the boot partition name is different. Accordingly, the storage path of the boot partition name pre-stored according to the screen parameter file is determined according to the upgrade type, and the search for the boot partition name under the storage path specifically includes:

[0052] When the upgrade type is forced upgrade, read the boot environment variable and obtain the boot partition name carried in the boot environment variable to obtain the boot partition name pre-stored according to the screen parameter file;

[0053] When the upgrade type is a local upgrade, the system environment variable is read, and the boot partition name carried in the system environment variable is obtained to obtain the boot partition name pre-stored according to the screen parameter file.

[0054] Specifically, the boot partition names in the boot environment variables and the system environment variables are stored according to the boot partition names stored in the screen parameter file when the terminal device is first started. Furthermore, to prevent the inability to find the boot name due to damage to the boot environment variables and the system environment variables, the terminal device can extract the boot partition names in the boot environment variables and the boot partitions in the system environment variables at preset intervals and compare them. When the boot partition names in the boot environment variables and the boot partitions in the system environment variables are consistent, the boot partition name verification is terminated. When the boot partition names in the boot environment variables and the boot partitions in the system environment variables are different, the boot partition names in the boot environment variables and the boot partitions in the system environment variables are updated using the boot partition names stored in the screen parameter file to ensure their correctness. The boot partition names in the screen parameter file are in a non-writable state, that is, they are in an unmodifiable state. This prevents the boot partition names in the screen parameter file from being modified, which could result in incorrect boot partition names and an inability to upgrade the boot partitions.

[0055] S20. Determine a corresponding partition file according to the found boot partition name, and burn the partition file to its corresponding address.

[0056] Specifically, the partition file is stored in the upgrade package corresponding to the upgrade instruction, and the upgrade package stores the partition files of all boot partitions. Therefore, after obtaining the boot partition name, the corresponding partition file is searched in the upgrade package according to the boot partition name, and the partition file is burned to its corresponding storage address. The address corresponding to the partition file is pre-stored, that is, each boot partition file has a corresponding storage address. When the partition file is obtained, its corresponding storage address can be determined and the partition file is burned to its corresponding address.

[0057] In addition, for different upgrade types, different partition files need to be burned. Therefore, when determining the corresponding partition file based on the found boot partition name, it is necessary to first determine the upgrade type corresponding to the upgrade instruction, and then search for the partition file based on the upgrade type. Accordingly, the process of determining the corresponding partition file based on the found boot partition name and burning the partition file to its corresponding address specifically includes:

[0058] Reading the upgrade type of the upgrade instruction;

[0059] When the upgrade type is forced upgrade, search the upgrade package corresponding to the upgrade instruction for a partition file corresponding to the boot partition name;

[0060] When the partition file is found, the partition file is burned to its corresponding chip address.

[0061] Specifically, if the upgrade type is "Forced Upgrade," it indicates that the system software configured on the terminal device must be forcibly upgraded. This requires upgrading all boot partition software configured on the terminal device. Furthermore, the upgrade package searches for partition files based on the boot partition name. If a partition file is found, each partition file is burned to the chip address corresponding to the partition file. If no partition file is found, the upgrade fails.

[0062] In addition, the upgrade type also includes local upgrade. Accordingly, determining the corresponding partition file according to the found boot partition name and burning the partition file to its corresponding address also includes:

[0063] When the upgrade type is local upgrade, read the upgrade boot partition name corresponding to the upgrade instruction, and search for the upgrade boot partition name in the found boot partition names;

[0064] When the upgrade boot partition name is found, the partition file corresponding to the upgrade boot partition name is burned to its corresponding chip address.

[0065] Specifically, when the upgrade type is a local upgrade, the upgrade instruction carries the boot partition to be upgraded. When the boot partition name is found in the system environment variables, the upgrade boot partition name of the boot partition to be upgraded is compared with the found boot partition name. If the found boot partition name contains the upgrade boot partition name, the upgrade package corresponding to the upgrade instruction searches for the partition file corresponding to the upgrade boot partition name. If the partition file is found, the found partition file is burned to the corresponding chip address. If the partition file is not found or the found boot partition name does not contain the upgrade boot partition name, an upgrade failure message is displayed.

[0066] Based on the above-mentioned terminal device upgrade method, the present invention also provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the terminal device upgrade method described in the above-mentioned embodiment.

[0067] Based on the above-mentioned terminal device upgrade method, the present invention also provides a terminal device, such as Figure 3 As shown, it includes at least one processor 20; a display screen 21; and a memory 22. It may also include a communications interface 23 and a bus 24. The processor 20, display screen 21, memory 22, and communications interface 23 can communicate with each other via bus 24. The display screen 21 is configured to display a preset user guidance interface in the initial setup mode. The communications interface 23 can transmit information. The processor 20 can invoke logic instructions in the memory 22 to execute the method described in the above embodiment.

[0068] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0069] The memory 22, as a computer-readable storage medium, can be configured to store software programs or computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the software programs, instructions, or modules stored in the memory 22 to perform functional applications and data processing, thereby implementing the methods in the above embodiments.

[0070] The memory 22 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 22 may include high-speed random access memory and non-volatile memory. For example, various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.

[0071] In addition, the specific process of loading and executing the multiple instructions in the storage medium and the processor in the terminal device has been described in detail in the above method and will not be described here one by one.

[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for upgrading a terminal device, characterized in that: It includes: When an upgrade instruction is received, the boot partition name pre-stored according to the screen parameter file is searched according to the upgrade instruction, wherein the screen parameter file is configured with parameter information and the boot partition name, the upgrade package corresponding to the upgrade instruction carries the partition file corresponding to the boot partition name, the screen parameter file is stored in the terminal device, the screen parameter file is used to store parameter information of the display screen of the terminal device, and the display screen of the terminal device corresponds to a unique screen parameter file; the boot partition name is obtained according to the screen parameter file and stored in the specified path; Determine the partition file corresponding to the boot partition name according to the found boot partition name, and burn the partition file to its corresponding address.

2. The method for upgrading a terminal device according to claim 1, characterized in that: When receiving the upgrade instruction, searching the boot partition name pre-stored according to the screen parameter file according to the upgrade instruction specifically includes: When receiving an upgrade instruction, reading the upgrade type of the upgrade instruction; The storage path of the boot partition name pre-stored according to the screen parameter file is determined according to the upgrade type, and the boot partition name is searched under the storage path.

3. The method for upgrading the terminal device according to claim 2, characterized in that: Determining the storage path of the boot partition name stored in advance according to the screen parameter file according to the upgrade type, and searching for the boot partition name under the storage path specifically includes: When the upgrade type is a forced upgrade, read the boot environment variable; Get the boot partition name carried in the boot environment variable to obtain the boot partition name pre-stored according to the screen parameter file.

4. The method for upgrading a terminal device according to claim 2, characterized in that: Determining the storage path of the boot partition name pre-stored according to the screen parameter file according to the upgrade type, and searching for the boot partition name under the storage path also includes: When the upgrade type is local upgrade, reading system environment variables; Get the boot partition name carried in the system environment variable to obtain the boot partition name pre-stored according to the screen parameter file.

5. The method for upgrading the terminal device according to claim 1, characterized in that: When receiving the upgrade instruction, searching for the partition names of each boot pre-stored according to the screen parameter file according to the upgrade instruction includes: When the terminal device starts, it reads the screen parameter file configured by itself; Extract the boot partition name carried in the screen parameter file, and store the boot partition name in the boot environment variable and the system environment variable respectively.

6. The method for upgrading the terminal device according to claim 5, characterized in that: When receiving the upgrade instruction, before searching for the partition names of each boot pre-stored according to the screen parameter file according to the upgrade instruction, the method further includes: When the terminal device configures the screen parameter file, the preset boot partition name is obtained, and the boot partition name is configured in the screen parameter file.

7. The method for upgrading a terminal device according to claim 1, characterized in that: Determining the partition file corresponding to the boot partition name according to the found boot partition name, and burning the partition file to its corresponding address specifically includes: Reading the upgrade type of the upgrade instruction; When the upgrade type is a forced upgrade, searching for a partition file corresponding to the boot partition name in the upgrade package corresponding to the upgrade instruction; When the partition file is found, the partition file is burned to its corresponding chip address.

8. The terminal device upgrade method according to claim 7, characterized in that: The step of determining a partition file corresponding to the boot partition name according to the found boot partition name, and burning the partition file to its corresponding address also includes: When the upgrade type is local upgrade, read the upgrade boot partition name corresponding to the upgrade instruction, and search for the upgrade boot partition name in the found boot partition names; When the upgrade boot partition name is found, the partition file corresponding to the upgrade boot partition name is searched in the upgrade package corresponding to the upgrade instruction, and the found partition file is burned to its corresponding chip address.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the terminal device upgrade method according to any one of claims 1 to 8.

10. A terminal device, characterized in that: include: A processor, a memory and a communication bus; the memory stores a computer-readable program that can be executed by the processor; The communication bus realizes the connection and communication between the processor and the memory; When the processor executes the computer-readable program, the steps in the terminal device upgrade method according to any one of claims 1 to 8 are implemented.