CN108121556B - eMMC compatible upgrading method, intelligent terminal and readable storage medium - Google Patents

eMMC compatible upgrading method, intelligent terminal and readable storage medium Download PDF

Info

Publication number
CN108121556B
CN108121556B CN201711438541.2A CN201711438541A CN108121556B CN 108121556 B CN108121556 B CN 108121556B CN 201711438541 A CN201711438541 A CN 201711438541A CN 108121556 B CN108121556 B CN 108121556B
Authority
CN
China
Prior art keywords
emmc
upgrade
upgrading
compatible
capacity
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
CN201711438541.2A
Other languages
Chinese (zh)
Other versions
CN108121556A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201711438541.2A priority Critical patent/CN108121556B/en
Publication of CN108121556A publication Critical patent/CN108121556A/en
Application granted granted Critical
Publication of CN108121556B publication Critical patent/CN108121556B/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

Landscapes

  • Engineering & Computer Science (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 invention discloses an eMMC (enhanced multimedia card) compatibility upgrading method, an intelligent terminal and a readable storage medium, wherein the eMMC compatibility upgrading method comprises the following steps: acquiring an environment variable of the eMMC in the current system according to a configuration file stored in the system parameter partition; acquiring a capacity parameter of the eMMC in the current system according to the environment variable and the parameter set in the configuration file; and selecting a corresponding upgrade package according to the capacity parameter, and upgrading the eMMC through the upgrade package. The invention provides a method for compatibility of eMMC with different capacities, aiming at the condition that the eMMC with different capacities cannot be compatible. The method and the system have the advantages that the number of branches of the codes is reduced under the condition of ensuring the performance of the intelligent terminal, and the manpower and resource investment for maintaining and upgrading the codes is greatly reduced. The problem of maintenance cost of numerous code branches is too high due to the fact that the demand of the eMMC with different capacities is too much is solved, development and maintenance cost is reduced, and development period is shortened.

Description

eMMC compatible upgrading method, intelligent terminal and readable storage medium
Technical Field
The invention relates to the technical field of terminals, in particular to an eMMC (enhanced multimedia card) compatibility upgrading method, an intelligent terminal and a readable storage medium.
Background
With the development of the android platform, more and more intelligent terminals carrying the android platform are provided, and the eMMC technology (Embedded Multi Media Card) is a standard specification of an Embedded memory widely applied to the android platform. At present, a set of source codes must be correspondingly developed for each capacity of eMMC, so the source codes among the emmcs with different capacities are different, and all the emmcs need to be maintained during maintenance, so the number of code branches for supporting the eMMC upgrade is greatly increased along with the increase of the number of the emmcs with different capacities, and the cost of the eMMC development and maintenance is also greatly increased.
Disclosure of Invention
The invention mainly aims to provide an eMMC compatibility upgrading method, and aims to solve the technical problem that eMMC with different capacities cannot be compatibly upgraded.
In order to achieve the above object, the present invention provides an eMMC compatibility upgrade method, including the steps of:
acquiring an environment variable of the eMMC in the current system according to a configuration file stored in the system parameter partition;
acquiring a capacity parameter of the eMMC in the current system according to the environment variable and the parameter set in the configuration file;
and selecting a corresponding upgrade package according to the capacity parameter, and upgrading the eMMC through the upgrade package.
Optionally, the step of obtaining the environment variable of the eMMC in the current system according to the configuration file stored in the system parameter partition includes:
and detecting system parameters for setting the environment variables in the configuration file, and obtaining the environment variables of the eMMC according to the detected system parameters.
Optionally, the step of obtaining the capacity parameter of the eMMC in the current system according to the environment variable and the parameter set in the configuration file includes
And detecting system parameters of the capacity parameters set in the configuration file, and obtaining the capacity parameters of the eMMC partition according to the obtained environment variables and the system parameters.
Optionally, the step of selecting a corresponding upgrade package according to the capacity parameter and upgrading the eMMC through the upgrade package includes
Detecting a preset upgrading mode in system setting, and if the preset upgrading mode is image file upgrading, acquiring an upgrading packet through an image file for upgrading;
and if the upgrading mode is the upgrading of the compressed file, obtaining an upgrading package through the compressed file for upgrading.
Optionally, if the preset upgrade mode is image file upgrade, the step of obtaining an upgrade package through the image file to upgrade includes:
and acquiring a mirror image file corresponding to the capacity parameter according to the capacity parameter, and upgrading the mirror image file, wherein the capacity parameter is acquired according to the environment variable and the system setting.
Optionally, if the upgrade mode is compressed file upgrade, the step of obtaining the upgrade package through the compressed file to perform upgrade includes
And acquiring a compressed file corresponding to the capacity parameter according to the capacity parameter, and upgrading the compressed file, wherein the capacity parameter is acquired according to the environment variable and the system setting.
Optionally, the step of obtaining the compressed file corresponding to the capacity parameter according to the capacity parameter includes:
and acquiring a partition table corresponding to the eMMC, partitioning the eMMC, decompressing the compressed file and acquiring an upgrade package with corresponding capacity.
Optionally, the step of selecting a corresponding upgrade package according to the capacity parameter and upgrading the eMMC through the upgrade package includes:
and outputting the prompt information of finishing the upgrade through an information output device.
In addition, to achieve the above object, the present invention also provides an intelligent terminal, including: the memory, the processor and the eMMC compatible upgrading method program stored on the memory and capable of running on the processor, wherein the steps of the eMMC compatible upgrading method are realized when the eMMC compatible upgrading method program is executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, where an eMMC-compatible upgrade method program is stored, and when executed by a processor, the eMMC-compatible upgrade method program implements the steps of the eMMC-compatible upgrade method described above.
The eMMC compatible upgrading method provided by the invention integrates upgrading packages required by upgrading of eMMC with different capacities to obtain a compatible upgrading package, and when the eMMC is upgraded, the upgrading package is upgraded by acquiring the environment variable and the capacity parameter corresponding to the eMMC and according to the opening mode set in the system.
Drawings
FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an eMMC compatibility upgrade method according to an embodiment of the present invention;
fig. 3 is a detailed flowchart illustrating a step of S30 in another embodiment of the eMMC compatibility upgrade method according to the present invention;
fig. 4 is a schematic view of partition in an image file upgrading mode of an eMMC compatible upgrading method according to the present invention;
fig. 5 is a schematic view of partitioning in a compressed file upgrading method according to the eMMC compatibility upgrading method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be an intelligent television, and can also be a mobile terminal device with a display function, such as an intelligent mobile phone, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and an eMMC-compatible upgrade program therein.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke an eMMC-compatible upgrade program stored in the memory 1005 and perform the following operations:
acquiring an environment variable of the eMMC in the current system according to a configuration file stored in the system parameter partition;
acquiring a capacity parameter of the eMMC in the current system according to the environment variable and the parameter set in the configuration file;
and selecting a corresponding upgrade package according to the capacity parameter, and upgrading the eMMC through the upgrade package.
Further, the processor 1001 may call the eMMC-compatible upgrade program stored in the memory 1005, and also perform the following operations:
and detecting system parameters for setting the environment variables in the configuration file, and obtaining the environment variables of the eMMC according to the detected system parameters.
The step of obtaining the capacity parameter of the eMMC in the current system according to the environment variable and the parameter set in the configuration file comprises the following steps
And detecting system parameters of the capacity parameters set in the configuration file, and obtaining the capacity parameters of the eMMC partition according to the obtained environment variables and the system parameters.
Further, the processor 1001 may call the eMMC-compatible upgrade program stored in the memory 1005, and also perform the following operations:
detecting a preset upgrading mode in system setting, and if the preset upgrading mode is image file upgrading, acquiring an upgrading packet through an image file for upgrading;
and if the upgrading mode is the upgrading of the compressed file, obtaining an upgrading package through the compressed file for upgrading.
If the preset upgrading mode is image file upgrading, the step of obtaining the upgrading package through the image file to upgrade comprises the following steps:
and acquiring a mirror image file corresponding to the capacity parameter according to the capacity parameter, and upgrading the mirror image file, wherein the capacity parameter is acquired according to the environment variable and the system setting.
If the upgrading mode is the upgrading of the compressed file, the step of obtaining the upgrading package through the compressed file to upgrade comprises
And acquiring a compressed file corresponding to the capacity parameter according to the capacity parameter, and upgrading the compressed file, wherein the capacity parameter is acquired according to the environment variable and the system setting.
The step of obtaining the compressed file corresponding to the capacity parameter according to the capacity parameter comprises the following steps:
and acquiring a partition table corresponding to the eMMC, partitioning the eMMC, decompressing the compressed file and acquiring an upgrade package with corresponding capacity.
Further, the processor 1001 may call the eMMC-compatible upgrade program stored in the memory 1005, and also perform the following operations:
the step of obtaining the corresponding upgrade package according to the capacity parameter for upgrading comprises the following steps:
and outputting the prompt information of finishing the upgrade through an information output device.
Referring to fig. 2, a first embodiment of the present invention provides an eMMC compatibility upgrade method, where the eMMC compatibility upgrade method includes:
step S10, acquiring environmental variables of eMMC in the current system according to the configuration files stored in the system parameter partition;
specifically, in partition setting of the eMMC, a boot partition is designed for better starting the system of the eMMC, and after power is turned on, contents in the boot can be read out through a simple protocol, so that some system settings, including environment variables, are often stored in the boot.
Step S20, acquiring the capacity parameter of the eMMC in the current system according to the environment variable and the parameter set in the configuration file;
specifically, after obtaining the environment variable through the system file in the boot, the total capacity of the storage space set by the eMMC is obtained, and the capacity parameter of the eMMC, that is, the allocation scheme of the storage space to the capacity allocation, is obtained through the configuration file in the system.
And step S30, selecting a corresponding upgrade package according to the capacity parameter, and upgrading the eMMC through the upgrade package.
Specifically, a corresponding upgrade package is selected from upgrade packages of different eMMC capacities according to the acquired capacity parameters, and the eMMC is upgraded.
At present, memory standards used by most intelligent terminals (such as smart phones, smart televisions and the like) are eMMC (Embedded Multi Media Card, which is established by the MMC Association and mainly aims at the Embedded memory standard specification of products such as mobile phones or tablet computers and the like, and can also refer to a memory using the eMMC technology), the eMMC integrates a controller in packaging, a standard interface is provided, and the memory is managed, so that the memories of different brands can be used universally on the intelligent terminals, intelligent terminal manufacturers do not need to specially research and develop the general problem of the memory, the use of the memory of the intelligent terminals is greatly simplified, the manufacturers can use the memory conveniently, and the use rate of the eMMC in the intelligent terminals is very high at present. However, in actual use, because eMMC has different partition partitions when the capacities are different (i.e., the sizes of the storages are different), and different partition partitions cannot be compatible in software at present, it is necessary to perform maintenance by using more source code branches at the software level.
Therefore, in order to reduce the maintenance cost of the manufacturer and the communication efficiency during development, a method for making emmcs of different capacities compatible is required. In order to meet market demands, an eMMC needs to be partitioned to facilitate use of the eMMC, and codes installed in different partitions can interfere with each other to be reduced. The capacity of the eMMC may be partitioned according to different requirements, but different partition partitions need to be supported by corresponding upgrade software, for example, the eMMC capacity of an existing terminal 1 is 8G, and the partition partitions are divided into 1G, 2G, and 4G; the eMMC capacity of the terminal 2 is 16G, and the partition is divided into 1G, 2G and 12G; the capacity of the eMMC of the terminal 3 is also 8G, the partitions are divided into 2G, 2G and 4G, a manufacturer needs to develop separate software for each partition to enable the eMMC partition to be normally used and maintained, and three terminals have more than ten partition types, so that the manufacturer needs to correspondingly develop a large amount of upgraded software to ensure the eMMC to be normally used, in actual situations, the number of products issued by the manufacturer is far more than 3, the required number of corresponding eMMC software is very large, and the manufacturer needs to spend a large amount of manpower and material resources to maintain the development and maintenance of the eMMC software. Manpower and resources required for development of upgrade software corresponding to the eMMC are greatly increased, and the cost input by an intelligent terminal manufacturer is increased accordingly.
In the eMMC compatible method, upgrading software of eMMC with different capacities is compatible, the compatible mode is that upgrading packet contents with different capacities are compatible in one upgrading software, then when the eMMC is partitioned, upgrading is carried out by opening the upgrading packet with corresponding capacity in the upgrading software according to the partitioned capacity, different upgrading schemes can be selected according to different software writing modes, wherein the different upgrading schemes comprise a boot upgrading scheme and a recovery upgrading scheme (boot and recovery are part of a fixed partition), the two schemes can lead the eMMC to complete upgrading of corresponding capacities, only the upgrading modes are different, and the actual contents are completely the same as the upgrading effects. In both types of upgrading schemes, the upgrading file is stored in a data partition in a specific form (the data partition is an area where a user can read and write the file, the capacity proportion in the eMMC partition is the largest, and the proportion of data in the total capacity generally exceeds 93%), and then the upgrading file corresponding to the required upgrading capacity is taken out in different forms and is upgraded. The boot-type upgrade scheme (a boot is a partition set by a manufacturer and used for storing configuration parameters, and the partition has high performance such as stability, reliability, erasing times and the like) is to upgrade in the boot, and since the boot cannot perform file-based operation, upgrade files need to be packaged in img types, and then corresponding img upgrade files are obtained for upgrading during upgrading. The upgrade modes in the recovery form are different, and the recovery can support file operation, so that the upgrade package is compressed and stored in a collection in the form of a compressed file without being packaged into an img file, and the corresponding upgrade file is decompressed and then upgraded when the upgrade is performed. Therefore, the upgrading files with a plurality of capacities are compatible in one set of upgrading files, and compatibility of different capacities is achieved.
According to the method and the device, the problem that excessive upgrade software is needed due to the fact that different-capacity eMMC cannot be compatible is solved by adding the partition judgment process and adding the corresponding upgrade software, and finally the cost of manpower and material resources for maintaining the multi-capacity eMMC is high is solved, the communication efficiency is improved, and the development difficulty and period are reduced.
Further, step S10 is to acquire an environment variable, and the method for acquiring the environment variable according to the system setting of boot includes:
and step S11, detecting the system parameters for setting the environment variables in the configuration file, and obtaining the environment variables of the eMMC according to the detected system parameters.
Specifically, the boot is a partition used for storing system configuration in eMMC partition division, and the boot stores a configuration file, in which various system parameters are recorded, and system parameters related to environment variables are obtained, and the environment variables can be known through the obtained system parameters.
When the compatibility of the eMMC with different capacities is required, firstly, environment variables of the eMMC, namely the total capacity of the storage space of the eMMC, are required to be confirmed, the environment variables of the eMMC refer to the total amount of the storage space which can be used by the intelligent terminal, then partition division is carried out on the basis of the total capacity to obtain the eMMC with different capacities, and different environment variables and required upgrading software are different, so that the environment variables are firstly determined, and the upgrading software can be conveniently determined.
Further, step S20 includes obtaining, according to the configuration file stored in the system parameter partition, environment variables of the eMMC in the current system, where the environment variables include
And step S21, detecting the system parameters for setting the environment variables in the configuration file, and obtaining the environment variables of the eMMC according to the detected system parameters.
Specifically, the system settings related to partitioning in the configuration file are detected, and then a capacity parameter capable of acquiring the eMMC settings is obtained according to the acquired environment variable, namely the total capacity of the eMMC, and the settings related to partitioning of the system.
The eMMC can be partitioned according to parameters set in a system configuration file, the eMMC is changed into zero and changed into a plurality of small-capacity storage spaces for use, when the capacity parameters of the eMMC are different, required upgrading software is different, therefore, the upgrading of all the eMMC needs to be completed correctly, the capacity parameter of each eMMC needs to be obtained, then the upgrading steps of the eMMC with different capacities are completed through the upgrading software corresponding to each capacity, and a user can normally use the eMMC.
Further, referring to fig. 3, the step S30 selects a corresponding upgrade package according to the capacity parameter, and upgrading the eMMC by the upgrade package includes
Step S31, detecting a preset upgrading mode in the system setting, and if the preset upgrading mode is image file upgrading, acquiring an upgrading packet through an image file for upgrading;
specifically, the eMMC upgrading mode in the invention has multiple modes, and whether the upgrading mode needs to be supported or not is set when a chip is produced by a chip manufacturer in different upgrading modes, so that what upgrading mode the eMMC supports needs to be detected during upgrading, and then upgrading is carried out according to the corresponding upgrading mode. The upgrading of the mirror image file is one of the preset upgrading modes available to the eMMC, the upgrading file is taken out from the boot and is finished, and the corresponding upgrading file is installed to the corresponding partition in the upgrading process to finish upgrading.
And step S32, if the upgrading mode is the upgrading of the compressed file, the upgrading package is obtained through the compressed file for upgrading.
Specifically, the upgrading mode is also compression file upgrading, and the compression file upgrading mode is to compress an upgrading packet to obtain a compression file, decompress the compression file when upgrading is needed, and then obtain a corresponding upgrading packet for upgrading.
The system needs to upgrade to enable the eMMC to normally operate on hardware, in order to achieve the purpose of being compatible with eMMC with different capacities, the content of eMMC upgrade packages with different capacities is integrated into one data packet, and in the process of eMMC upgrading, the upgrade packages corresponding to the capacities are taken out from the integrated upgrade packages to complete upgrading. Therefore, when upgrading and maintaining are carried out, the number of codes required to be maintained by technicians is greatly reduced. The upgrading mode of the invention also has a plurality of upgrading of image files, upgrading of compressed files and the like, the upgrading mode is selected mainly for facilitating hardware manufacturers, because all upgrading modes are not supported during the production of the hardware manufacturers, the upgrading modes supported by various manufacturers may be different, and the diversified upgrading modes can embody the advantage of compatibility, so that the method can be compatible with more hardware types, and the practicability is better.
In the upgrade method for upgrading the image file, boot partitions in partition partitioning are used for upgrading operations, and since boot partitions cannot be operated based on files, upgrade packages with multiple capacities are integrated into compatible upgrade packages in the form of image files (img files), and corresponding image files (i.e., upgrade packages corresponding to capacities) are selected according to capacities during upgrading (a partition diagram is shown in fig. 4). The upgrade method of the compressed file upgrade is to use a recovery area to perform upgrade operation, and unlike boot, the recovery supports file operation, so that the image file of the upgrade package does not need to be packaged, the upgrade package can be compressed and packaged into an aggregate compression package, the compression package is decompressed during upgrade, and then the upgrade package with corresponding capacity is obtained according to the capacity parameter, so that the purpose of multi-capacity compatibility can be achieved (a partition diagram is shown in fig. 5). The specific upgrading mode is determined according to hardware, the preset upgrading mode of the hardware is judged by detecting the setting of the eMMC, then the upgrading is carried out in the preset upgrading mode, and the diversity of the upgrading mode enables the method to be better applied to different hardware.
Further, if the preset upgrade mode is image file upgrade, acquiring an upgrade package through the image file to perform upgrade in step S31 includes:
step S311, obtaining the image file corresponding to the capacity parameter according to the capacity parameter, upgrading through the image file, and obtaining the capacity parameter according to the environment variable and the system setting.
Specifically, when the image file is used for upgrading, firstly, the capacity parameter of the eMMC needs to be acquired, and the corresponding image file is acquired and selected according to the capacity parameter to package data into the corresponding partition, so that upgrading is completed.
The image file upgrading mode is that an upgrading package is manufactured into an image file form (the file suffix is img), then upgrading package image files with multiple capacities are packaged into a compatible upgrading package, and because the upgrading package comprises upgrading image files with multiple capacities, upgrading of eMMC with multiple capacities can be compatible. When upgrading, the upgrading process of the eMMC is completed in the boot area, firstly, a boot environment variable is obtained, the environment variable can be obtained through relevant parameters in a system configuration file, the environment variable determines the type of the used upgrading packet, and if the environment variable is 16G, the used upgrading packet is also corresponding 16G. After the environment variables are acquired, the capacity parameter of the eMMC needs to be further acquired, the capacity parameter is a rough composition structure after the eMMC is partitioned, for example, a 16-capacity eMMC can be partitioned by 1G, 2G and 12G, the capacity parameter of the eMMC is 1-1-2-12, and when an eMMC upgrade package is selected, the capacity parameter is needed to determine the corresponding upgrade package. After the capacity parameter of the eMMC is obtained, the corresponding upgrade package image file (i.e., the upgrade file in the img format) may be taken out from the packaged compatible upgrade package, and then the upgrade may be performed in the corresponding data partition through the upgrade package image file. Because the upgrade package image files with a plurality of capacities can be packaged in one compatible upgrade package, the compatibility of the multi-capacity eMMC can be realized.
Further, if the upgrade mode is compressed file upgrade, acquiring an upgrade package through the compressed file to perform upgrade in step S32 includes
Step S321, obtaining a compressed file corresponding to the capacity parameter according to the capacity parameter, and upgrading the compressed file, wherein the capacity parameter is obtained according to the environment variable and the system setting.
Specifically, when the compressed file is used for upgrading, the capacity parameter of the eMMC also needs to be acquired, and the corresponding upgrade package is selected from the corresponding decompressed file according to the capacity parameter, so that the upgrading is completed.
The compressed file upgrading mode is that the upgrading packet is compressed to be in a compressed file form (the suffix of the file is rar), then the upgrading packets with a plurality of capacities are compressed to be a collective compressed packet, and compatibility of eMMC with different capacities is achieved by totaling the upgrading packets with different capacities contained in the compressed packet. The upgrading step is to obtain the boot environment variable through the relevant parameters in the system configuration file, and after obtaining the environment variable, the capacity parameter of the eMMC needs to be obtained. After the required parameters are obtained, the aggregate compressed packets are decompressed from the recovery area, all the upgrade packets can be obtained, and the eMMC can be upgraded by selecting the corresponding upgrade packets according to the environment variables and the capacity parameters. And because the aggregation compression package comprises the eMMC upgrade packages with a plurality of capacities, the compatibility of the multi-capacity eMMC can be realized.
Further, the step S321 of obtaining the compressed file corresponding to the capacity parameter according to the capacity parameter includes:
step S322, obtaining a partition table corresponding to the eMMC, partitioning the eMMC, decompressing the compressed file and obtaining an upgrade package with corresponding capacity.
Specifically, a partition table corresponding to the current eMMC capacity parameter is obtained, the eMMC is partitioned according to the partition table, then the set compression packet is decompressed, and a corresponding upgrading packet in the compression packet is opened for upgrading.
Generally speaking, an application program only reads the file without writing the file, and can also be used for automatically mounting the file, so that the system can conveniently and automatically mount storage equipment such as a hard disk and the like.
Further, step S30 selects a corresponding upgrade package according to the capacity parameter, and after the eMMC is upgraded by the upgrade package, the method includes:
and step S40, outputting the prompt information of the upgrade completion through the information output device.
Specifically, after the eMMC is upgraded, an output device such as a display outputs prompt information indicating that the upgrade is successful, and the user is reminded of the completion of the upgrade (including success or failure of the upgrade).
After the eMMC is upgraded successfully or fails, the system outputs prompt information of the eMMC which is upgraded successfully or fails through the display, when the eMMC is upgraded unsuccessfully, a user can debug conveniently according to the reason of simultaneously outputting upgrading failure, when the eMMC is upgraded successfully, the prompt information of the eMMC which is upgraded is output, the user can master the related information of the eMMC upgrading more conveniently through the prompt information, and the use of the user is facilitated.
The invention also provides an intelligent terminal with the eMMC compatible upgrading method.
The intelligent terminal based on the eMMC compatible upgrading method comprises the following steps: the eMMC compatible upgrading method comprises a memory, a processor and an eMMC compatible upgrading program which is stored on the memory and can run on the processor, wherein the steps of the eMMC compatible upgrading method are realized when the eMMC compatible upgrading program is executed by the processor.
The method implemented when the eMMC-compatible upgrade program running on the processor is executed may refer to various embodiments of the eMMC-compatible upgrade method of the present invention, and details thereof are not described herein.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The invention relates to a computer readable storage medium, which stores an eMMC compatible upgrade program, and the steps of the eMMC compatible upgrade method are realized when the eMMC compatible upgrade program is executed by a processor.
The method implemented when the eMMC-compatible upgrade program running on the processor is executed may refer to various embodiments of the eMMC-compatible upgrade method of the present invention, and details thereof are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An eMMC compatibility upgrading method is characterized by comprising the following steps:
acquiring an environment variable of the eMMC in the current system according to a configuration file stored in a system parameter partition, wherein the environment variable refers to the total capacity of a storage space of the eMMC;
acquiring a capacity parameter of the eMMC in the current system according to the environment variable and the parameter set in the configuration file, wherein the capacity parameter refers to a composition structure after the eMMC is partitioned;
selecting a corresponding upgrade package according to the capacity parameter, and upgrading the eMMC through the upgrade package;
and the step of selecting the corresponding upgrade package according to the capacity parameter comprises the steps of integrating the upgrade packages required by the upgrade of different capacities of eMMC to obtain compatible upgrade packages, and taking out the corresponding upgrade packages from the compatible upgrade packages according to the capacity parameter during the upgrade.
2. The eMMC-compatible upgrade method of claim 1, wherein the obtaining environmental variables of the eMMC in the current system according to the configuration file stored in the system parameter partition includes:
and detecting system parameters for setting the environment variables in the configuration file, and obtaining the environment variables of the eMMC according to the detected system parameters.
3. The eMMC-compatible upgrade method of claim 1, wherein the obtaining the capacity parameter of the eMMC in the current system based on the environment variable and the parameter set in the configuration file comprises
And detecting system parameters of the capacity parameters set in the configuration file, and obtaining the capacity parameters of the eMMC partition according to the obtained environment variables and the system parameters.
4. The eMMC-compatible upgrade method of claim 1, wherein the selecting the corresponding upgrade package according to the capacity parameter and upgrading the eMMC via the upgrade package includes detecting a preset upgrade manner in a system setting, and if the preset upgrade manner is an image file upgrade, obtaining the upgrade package via the image file for upgrade;
and if the upgrading mode is the upgrading of the compressed file, obtaining an upgrading package through the compressed file for upgrading.
5. The eMMC-compatible upgrade method of claim 4, wherein if the preset upgrade manner is image file upgrade, the step of obtaining an upgrade package through the image file to upgrade includes:
and acquiring a mirror image file corresponding to the capacity parameter according to the capacity parameter, and upgrading the mirror image file, wherein the capacity parameter is acquired according to the environment variable and the system setting.
6. The eMMC compatibility upgrade method of claim 4, wherein if the upgrade is a compressed file upgrade, obtaining an upgrade package via the compressed file for upgrade includes
And acquiring a compressed file corresponding to the capacity parameter according to the capacity parameter, and upgrading the compressed file, wherein the capacity parameter is acquired according to the environment variable and the system setting.
7. The eMMC-compatible upgrade method of claim 6, wherein the step of obtaining the compressed file corresponding to the capacity parameter based on the capacity parameter is followed by:
and acquiring a partition table corresponding to the eMMC, partitioning the eMMC, decompressing the compressed file and acquiring an upgrade package with corresponding capacity.
8. The eMMC-compatible upgrade method of claim 1, wherein the step of selecting the corresponding upgrade package according to the capacity parameter and upgrading the eMMC via the upgrade package comprises, after:
and outputting the prompt information of finishing the upgrade through an information output device.
9. An intelligent terminal, characterized in that, intelligent terminal includes: a memory, a processor, and an eMMC-compatible upgrade program stored on the memory and executable on the processor, the eMMC-compatible upgrade program when executed by the processor implementing the steps of the eMMC-compatible upgrade method as recited in any one of claims 1 to 8.
10. A computer readable storage medium having stored thereon an eMMC-compatible upgrade program that, when executed by a processor, performs the steps of the eMMC-compatible upgrade method of any one of claims 1-8.
CN201711438541.2A 2017-12-26 2017-12-26 eMMC compatible upgrading method, intelligent terminal and readable storage medium Active CN108121556B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711438541.2A CN108121556B (en) 2017-12-26 2017-12-26 eMMC compatible upgrading method, intelligent terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711438541.2A CN108121556B (en) 2017-12-26 2017-12-26 eMMC compatible upgrading method, intelligent terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN108121556A CN108121556A (en) 2018-06-05
CN108121556B true CN108121556B (en) 2022-01-04

Family

ID=62231952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711438541.2A Active CN108121556B (en) 2017-12-26 2017-12-26 eMMC compatible upgrading method, intelligent terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN108121556B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989891A (en) * 2018-06-29 2018-12-11 广州视源电子科技股份有限公司 System for TV set update method, device, readable storage medium storing program for executing and television set
CN109947450B (en) * 2019-03-19 2023-03-17 深圳创维-Rgb电子有限公司 System file upgrading method and device, mobile terminal and readable storage medium
CN111736858A (en) * 2019-03-25 2020-10-02 深圳Tcl新技术有限公司 Terminal equipment upgrading method, storage medium and terminal equipment
CN110032390B (en) * 2019-03-29 2022-09-27 深圳创维-Rgb电子有限公司 Method for realizing multi-model co-upgrade package, storage medium and intelligent terminal
CN110993016B (en) * 2019-12-24 2022-09-02 深圳Tcl数字技术有限公司 Chip pre-copying detection method and device and computer readable storage medium
CN111930397A (en) * 2020-07-15 2020-11-13 深圳市瑞驰信息技术有限公司 EXT4 file system firmware upgrading method based on eMMC

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303684A (en) * 2007-05-08 2008-11-12 中兴通讯股份有限公司 Method for upgrading software edition of a plurality of mobile terminal
CN105045671A (en) * 2015-08-17 2015-11-11 广东欧珀移动通信有限公司 Method and device for upgrading systems of intelligent terminals
CN105446769A (en) * 2015-11-03 2016-03-30 广东欧珀移动通信有限公司 Mirror image file update processing method and apparatus and terminal device
CN105955781A (en) * 2016-05-09 2016-09-21 京东方科技集团股份有限公司 EMMC (embedded multi-media card) upgrade method and upgrade device and terminal
CN107172493A (en) * 2017-04-26 2017-09-15 贵州省广播电视信息网络股份有限公司 A kind of OTA upgrade methods of the compatible different subregions type of energy

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5683911B2 (en) * 2010-11-11 2015-03-11 株式会社ザクティ Program processing device
CN107193593B (en) * 2017-05-17 2020-08-21 深圳创维数字技术有限公司 Upgrading method of upgradable file, set top box and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303684A (en) * 2007-05-08 2008-11-12 中兴通讯股份有限公司 Method for upgrading software edition of a plurality of mobile terminal
CN105045671A (en) * 2015-08-17 2015-11-11 广东欧珀移动通信有限公司 Method and device for upgrading systems of intelligent terminals
CN105446769A (en) * 2015-11-03 2016-03-30 广东欧珀移动通信有限公司 Mirror image file update processing method and apparatus and terminal device
CN105955781A (en) * 2016-05-09 2016-09-21 京东方科技集团股份有限公司 EMMC (embedded multi-media card) upgrade method and upgrade device and terminal
CN107172493A (en) * 2017-04-26 2017-09-15 贵州省广播电视信息网络股份有限公司 A kind of OTA upgrade methods of the compatible different subregions type of energy

Also Published As

Publication number Publication date
CN108121556A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
CN108121556B (en) eMMC compatible upgrading method, intelligent terminal and readable storage medium
CN107291497B (en) Multi-firmware upgrading method and system and readable storage medium
US9152480B2 (en) Method for storing application data and terminal device
KR101467515B1 (en) Apparatus and method for booting based on a snapshot image
CN109358882B (en) Method and device for upgrading firmware of television terminal
EP2076834A1 (en) Program upgrade system and method for ota-capable mobile terminal
CN105867947A (en) Data processing method and device after upgrades of preset applications
CN104199706A (en) Firmware upgrade method and device for eMMC
US20150277934A1 (en) One time dual boot mobile phone device
US20220100490A1 (en) Firmware updating method, and electronic apparatus and storage media for same
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
CN103309709A (en) Firmware upgrading method, device and communication equipment
CN109947450B (en) System file upgrading method and device, mobile terminal and readable storage medium
CN106469071B (en) Application theme changing method and device
CN110597542A (en) Automatic OTA (over the air) software upgrading method and device and electronic equipment
CN111290773B (en) System upgrade method, device and readable storage medium
CN105677421A (en) Customizing method and system of launchers of mobile terminal
CN111796853A (en) Firmware upgrading method, system, equipment and computer storage medium
CN107688456B (en) File generation method, device and computer readable storage medium
CN111694585A (en) Method, system, terminal and storage medium for replacing system partition file
CN103092648A (en) Method and system of mirror image upgrade and user device and personal computer
CN108268261B (en) UI (user interface) customization method of intelligent terminal, storage medium and intelligent terminal
CN107179918B (en) Software processing method, device and system
US20160019040A1 (en) Method for automatically converting android application to tizen installable package
CN104572485A (en) Allocation method and device of memory shared by two systems

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