CN114816491A - System upgrading method and device for multi-system mobile terminal and terminal - Google Patents

System upgrading method and device for multi-system mobile terminal and terminal Download PDF

Info

Publication number
CN114816491A
CN114816491A CN202110084815.2A CN202110084815A CN114816491A CN 114816491 A CN114816491 A CN 114816491A CN 202110084815 A CN202110084815 A CN 202110084815A CN 114816491 A CN114816491 A CN 114816491A
Authority
CN
China
Prior art keywords
partition
information table
mobile terminal
embedded
embedded memory
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.)
Pending
Application number
CN202110084815.2A
Other languages
Chinese (zh)
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 Lan You Technology Co Ltd
Original Assignee
Shenzhen Lan You 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 Lan You Technology Co Ltd filed Critical Shenzhen Lan You Technology Co Ltd
Priority to CN202110084815.2A priority Critical patent/CN114816491A/en
Publication of CN114816491A publication Critical patent/CN114816491A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

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

Abstract

The invention provides a system upgrading method, an upgrading device and a terminal for a multi-system mobile terminal, wherein the system upgrading method for the multi-system mobile terminal comprises the following steps: creating a partition information table corresponding to each embedded memory, and correspondingly storing partition information in the partition table in a structural information mode, wherein the partition information table comprises a partition table name and a partition full name uniquely corresponding to a partition; reading a partition information table, identifying a corresponding embedded memory according to the name of the partition table, and uniformly partitioning one or more embedded memories according to the partition information table; and receiving a partition operation command, inquiring the partition information table according to the partition operation command to identify the embedded memories which are corresponding to the partition information table and need to be operated, and uniformly operating the partitions of the embedded memories. The system upgrading method of the multi-system mobile terminal has the characteristics of simple and efficient flashing upgrading process and the like.

Description

System upgrading method and device for multi-system mobile terminal and terminal
Technical Field
The invention relates to the technical field of communication, and mainly aims to solve the problem that when a single-machine multi-operation system is arranged on a Hypervisor in a direct-through (passthrough) mode, each system has an exclusive piece of eMMC (embedded memory), and a host computer (PC) finishes refreshing a plurality of eMMC through a fastboot mode. And more particularly, to a system upgrade method and apparatus for a multi-system mobile terminal, and a terminal.
Background
With the rapid development of the current technology and application requirements, the requirement for realizing one-machine multi-system operation on an embedded system is increasingly greater, and the embedded system is certainly and widely applied in the future, for example, a solution scheme that one-machine multi-system and multiple-system are required on the current intelligent cockpit (for safety and conformity with vehicle regulations, a meter operates a QNX system, and a central control operates an Android system), the system brings a significant test to the working efficiency of a CPU and an eMMC, the CPU can continuously improve the calculation power according to moore's law, but the eMMC can be operated under a high load to meet the read-write requirements of the operation of the two systems. Therefore, solutions supporting the same SOC multiple eMMC Flash where multiple operating systems each own one eMMC are widely used in the market.
At present, on a product of a Hypervisor system running in a pass-through (passthrough) mode, because a plurality of operating systems run on the same SOC (the invention mainly solves a dual system mode), and each system monopolizes one eMMC Flash for improving efficiency, a fastboot mode cannot be used for realizing the Flash upgrade of a multi-operating system, that is, in the existing scheme of performing the Flash upgrade system by using the fastboot mode, only one eMMC Flash is supported to perform Flash upgrade mirror image, and the unified Flash of a plurality of emmcs is not supported.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a simple system upgrade method, device and terminal for a multi-system mobile terminal, which implement unified partition table establishment, unified batch flash upgrade, independent partition flash upgrade, unified erasure partition and independent erasure partition for a plurality of emmcs through a fastboot flash mode.
In order to solve the above technical problems, the present invention provides a system upgrade method for a multi-system mobile terminal, in the system upgrade method for a multi-system mobile terminal of the present invention, the mobile terminal includes at least two embedded memories, the system is stored in the embedded memories, and the system upgrade method for a multi-system mobile terminal includes:
creating a partition information table corresponding to each embedded memory, and correspondingly storing the partition information in the partition table in a structural information mode, wherein the partition information table comprises a partition table name and a partition full name uniquely corresponding to the partition;
reading the partition information table, identifying the corresponding embedded memories according to the partition table names, and uniformly partitioning one or more embedded memories according to the partition information table;
and receiving a partition operation command, inquiring the partition information table according to the partition operation command to identify the embedded memories needing to be operated corresponding to the partition information table, and uniformly operating the partitions of one or more embedded memories.
In the system upgrading method for the multi-system mobile terminal, the partition information table sequentially comprises the structure information of structure item _ part _ info of all partitions of the embedded memory:
partition names, partition aliases, partition system formats, and partition lengths; the partition full name comprises a partition name and a partition alias.
In the system upgrade method for a multi-system mobile terminal of the present invention, the reading of the partition information table, the identifying of the embedded memory corresponding to the partition information table according to the partition table name, and the partitioning of the embedded memory include:
recognizing the command of the mobile terminal, judging the embedded memory needing to be operated according to the command of the mobile terminal, and storing a judgment result;
and directly partitioning the embedded memory according to the judgment result.
In the system upgrade method for a multi-system mobile terminal of the present invention, the reading of the partition information table, the identifying of the embedded memory corresponding to the partition information table according to the partition table name, and the partitioning of the embedded memory include:
connecting to a USB host, and initializing a fastboot communication protocol of the mobile terminal according to a command of the mobile terminal;
the peripheral entering the data interception state acquires a partition operation command sent by a PC (personal computer) end;
receiving and analyzing the partition operation command, if the partition name is obtained, identifying the embedded memory according to the partition name, partitioning the embedded memory and operating the partition; and if the partition names are not acquired, the process is exited.
In the system upgrading method for a multi-system mobile terminal of the present invention, the receiving a partition operation command, querying the partition information table according to the partition operation command to identify the embedded memory to be operated corresponding to the partition information table, and uniformly operating the partitions of the embedded memory or the embedded memories includes:
receiving the partition names transmitted by the PC terminal bound with the mobile terminal, traversing the partition information table according to the partition names, and identifying the partition information table corresponding to the partition names;
determining and judging the embedded memory needing to be operated according to the partition information table;
and reading the partition table corresponding to the embedded memory and operating the partition table.
The invention also provides a system upgrading device for a multi-system mobile terminal, wherein the mobile terminal comprises at least two embedded memories, and the system is stored in the embedded memories, and the system upgrading device for the multi-system mobile terminal is characterized by comprising:
the partition information table creating unit is used for creating a partition information table corresponding to each embedded memory and correspondingly storing the partition information in the partition table in a structural information mode, and the partition information table comprises a partition table name and a partition full name uniquely corresponding to the partition;
establishing a partition unit for reading the partition information table, identifying the corresponding embedded memories according to the partition table names, and uniformly partitioning one or more embedded memories according to the partition information table;
and the operation partitioning unit is used for receiving a partitioning operation command, inquiring the partitioning information table according to the partitioning operation command so as to identify the embedded memories which are required to be operated and correspond to the partitioning information table, and uniformly operating the partitions of the embedded memories.
In the system upgrading device for the multi-system mobile terminal, the partition information table sequentially comprises structure information of structure item _ part _ info of all partitions of the embedded memory:
partition names, partition aliases, partition system formats, and partition lengths; the partition full name comprises a partition name and a partition alias.
In the system upgrading device for the multi-system mobile terminal, the partition establishing unit is also used for identifying the command of the mobile terminal, judging the embedded memory needing to be operated according to the command of the mobile terminal and storing the judgment result; according to the judgment result, directly partitioning the embedded memory; connecting to a USB host, and initializing a fastboot communication protocol of the mobile terminal according to a command of the mobile terminal; the peripheral entering the data interception state acquires a partition operation command sent by a PC (personal computer) end; receiving and analyzing the partition operation command, if the partition name is obtained, identifying the embedded memory according to the partition name, partitioning the embedded memory and operating the partition; if the partition names are not acquired, the process is exited;
the operation partition unit is also used for receiving the partition names transmitted by the PC end bound with the mobile terminal, traversing the partition information table according to the partition names and identifying the partition information table corresponding to the partition names; determining and judging the embedded memory needing to be operated according to the partition information table; and reading the partition table corresponding to the embedded memory and operating the partition table.
The invention also provides another system upgrading terminal for a multi-system mobile terminal, which comprises a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and the processor executes the computer program to realize the steps of any one of the above system upgrading methods for the multi-system mobile terminal.
The present invention also provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program, when executed by a processor, implements any of the steps of the system upgrade method for a multi-system mobile terminal.
According to the system upgrading method, device and terminal for the multi-system mobile terminal, the partition information table is established in a boot loader (u-boot) of the embedded system, the embedded memory is identified according to the full names of the partitions to be partitioned, and the partition operation instructions input by external equipment are received to uniformly operate the partitions of the embedded memory or the embedded memories, so that the multi-system flash upgrading is realized through a fastboot flash mode, and the operation process is simple and efficient. Meanwhile, the partition of the embedded memory can be independently operated by analyzing the fastboot command parameter, namely, an independent eMMC updating mode is supported, and the requirements of single eMMC updating and multi-eMMC updating of the operation of a novel operating system can be met.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of system upgrade for a multi-system mobile terminal of the present invention;
FIG. 2 is a schematic diagram of an embedded memory partitioning flow;
FIG. 3 is a diagram of a partition information table data format;
FIG. 4 is a schematic view of a u-boot end and PC end communication model of the present invention;
FIG. 5 is a flowchart illustrating a second embodiment of a system upgrade method for a multi-system mobile terminal according to the present invention;
FIG. 6 is a flowchart illustrating a third embodiment of a system upgrade method for a multi-system mobile terminal according to the present invention;
FIG. 7 is a diagram of an embodiment of a system upgrade apparatus for a multi-system mobile terminal of the present invention;
fig. 8 is a schematic diagram of an embodiment of a system upgrade terminal for a multi-system mobile terminal according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. 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, the flowchart of a first embodiment of a system upgrade method for a multi-system mobile terminal is shown, where the system upgrade method for a multi-system mobile terminal is applicable to an intelligent cockpit, the mobile terminal includes at least two embedded memories, the system is stored in the embedded memories, and the system upgrade method for a multi-system mobile terminal includes:
step S11: and creating a partition information table corresponding to each embedded memory, and correspondingly storing the partition information in the partition table in a structural information mode, wherein the partition information table comprises a partition table name and a partition full name uniquely corresponding to the partition.
Further, the partition information table includes structure item _ part _ info structure information of all partitions of the embedded memory in a sequential order: partition names, partition aliases, partition system formats, and partition lengths; the partition full name includes the partition name and the partition alias, and the partition information table fully includes all the partitions of the two emmcs as above.
In the above steps, for example, a mobile terminal that has been able to successfully drive two pieces of eMMC using u-boot is used, the two pieces of eMMC are respectively numbered 0(QNX system) and 1(Android), and for example, when a command "mmc dev 0" or "mmc dev 1" is input, the eMMC can be normally detected. Partition tables are respectively established for eMMC0 and eMMC 1 according to the use requirements of the QNX and the Android system on the eMMC, and are respectively stored in oem _ partition _ table _0 and oem _ partition _ table _1 in a structure information mode of struct item _ partition _ info. For example, the oem _ partition _ table _0 and oem _ partition _ table _1 partition information table specific information is as follows:
table-partition information table
Figure BDA0002909473380000061
It should be noted that, when a partition is unified for eMMC, it is necessary to ensure that all partition full names are unique, where a partition full name indicates a character string composed of a partition name and a partition alias, such as a system _ a partition, and in the partition table, the partition name is "system" and the partition difference name is "_ a", so the partition full name is "system _ a".
Step S12: and reading the partition information table, identifying the corresponding embedded memories according to the partition table names, and uniformly partitioning one or more embedded memories according to the partition information table.
Accordingly, FIG. 2 shows a flow chart of partitioning embedded memory. The mobile terminal comprises two eMMC0 and eMMC 1, a partition information table oem _ partition _ table _0 and oem _ partition _ table _1 is read, according to the whole partition name, the eMMC on which the partition is located is automatically identified, the partition information table is written into the corresponding eMMC, the eMMC is partitioned, and after the partition succeeds, the partition table structures of the eMMC0 and the eMMC 1 are shown in the figure 3.
In the above steps, the method further comprises the steps of identifying the command of the mobile terminal, judging the embedded memory needing to be operated according to the command of the mobile terminal, and storing the judgment result; and directly partitioning the embedded memory according to the judgment result.
In the above step, the method further comprises the step of connecting to a USB host, and initializing a fastboot communication protocol of the mobile terminal according to a command of the mobile terminal; the peripheral entering the data interception state acquires a partition operation command sent by a PC (personal computer) end; receiving and analyzing the partition operation command, if the partition name is obtained, identifying the embedded memory according to the partition name, partitioning the embedded memory and operating the partition; and if the partition names are not acquired, the process is exited.
Step S13: and receiving a partition operation command, inquiring the partition information table according to the partition operation command to identify the embedded memories needing to be operated corresponding to the partition information table, and uniformly operating the partitions of one or more embedded memories.
In the above step, the method further comprises receiving the partition name transmitted by the PC terminal bound to the mobile terminal, traversing the partition information table according to the partition name, and identifying the partition information table corresponding to the partition name; determining and judging the embedded memory needing to be operated according to the partition information table; and reading the partition table corresponding to the embedded memory and operating the partition table.
FIG. 4 is a schematic diagram of a u-boot end and PC end communication model. The software program of the invention can run in various bootloaders meeting the requirements, but the realization of the invention is mainly realized in u-boot, so in the example of the invention, the muti _ fastboot exists as application program software on the u-boot. The invention follows a fastboot protocol, and can manage a plurality of eMMC in multiple dimensions so as to meet the requirement of the operation of a novel operating system. And the fastboot service at the PC end is fully compatible with the conventional fastboot. The program designed by the invention realizes communication with the faceboot service of the PC end by the USB, and the program is used as the USB device end. And when the mobile terminal u-boot end realizes muti _ fastboot communication, a data transmission protocol completely follows a standard fastboot protocol, the PC end fastboot serves as a server end, and the muti _ fastboot at the u-boot end serves as a client end.
During the process of updating the machine, the muti _ fastboot can support independent support for a certain eMMC (for example, only the eMMC0 is operated, and the command: muti _ fastboot mmc 0) and can also support 2 eMMC simultaneously, during the process of updating the machine specifically, the serial number of the corresponding eMMC is automatically found according to the partition name, and then the corresponding eMMC is operated. Taking the u-boot end flush mode including eMMC0 and eMMC 01 as an example, the command is exemplified as follows:
1. single flash eMMC0
(1) u-boot end command:
muti_fastboot mmc 0
(2) PC end command:
brushing the machine according to the subareas:
fastboot flash{partition}{image_file}
an example of a command is as follows:
fastboot flash dos dos.img
fastboot flash qnxdisk qnxdata.img
erasing the subareas:
fastboot erase{partition}
an example of a command is as follows:
fastboot erase dos
fastboot erase qnxdisk
formatting:
formatting a partition:
fastboot format{partition}
an example of a command is as follows:
fastboot format dos
global formatting, reestablishing a partition table:
fastboot oem format
2. single-brush eMMC 1
(1) u-boot end command:
muti_fastboot mmc 1
(2) PC end command:
brushing the machine according to the subareas:
fastboot flash{partition}{image_file}
an example of a command is as follows:
fastboot flash dtb dtb.img
fastboot flash dtbo dtbo.img
fastboot flash boot boot.img
fastboot flash metadata metadata.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash product product.img
erasing the subareas:
fastboot erase{partition}
an example of a command is as follows:
fastboot erase misc
fastboot erase pst
fastboot erase vbmeta
fastboot erase dtb
fastboot erase dtbo
fastboot erase boot
fastboot erase metadata
fastboot erase system
fastboot erase vendor
fastboot erase qnxdisk
fastboot erase product
fastboot erase userdata
formatting:
formatting a partition:
fastboot format{partition}
fastboot format userdata
global formatting, reestablishing a partition table:
fastboot oem format
it should be noted that for a system using a/B partition, because the a/B partition is mainly used for OTA upgrade and the like, the muti _ fastboot is flushed only for a certain partition in the a/B, and this option may select a setting in the implementation of the muti _ fastboot. That is, assuming that the a partition has been set for system boot, when the PC executes the command: img when a fastboot flash system is flushed, only system _ a partition is flushed, and system _ b partition is ignored.
3. Automatic brushing machine according to subareas
1) u-boot end command:
muti_fastboot mmc
(2) PC end command:
the command of the PC end is completely the same as the commands in 1 and 2, after the command is executed, the u-boot end automatically installs the transmitted partition names to search the serial number of the eMMC, and then the corresponding eMMC partition is operated.
PC terminal fastboot common instruction
Loading kernel operation according to u-boot parameters:
fastboot boot
and (4) restarting:
fastboot reboot
fastboot reboot bootloader
reading version information:
fastboot getver:version
as can be known from the above description about the cooperative communication flashing upgrade of the fastboot at the PC end and the muti _ fastboot at the u-boot end, the embodiment completely follows the fastboot protocol standard, and mainly performs synchronous unified management on the eMMC0 and the eMMC 1, so as to reduce the difference in use to the maximum extent, and make the use of the user simpler and more convenient.
As shown in fig. 5, it is a second embodiment of the system upgrade method for a multi-system mobile terminal according to the present invention, and it should be noted that the precondition of the second embodiment includes:
(1) the system used by the mobile terminal in this embodiment can already normally operate multiple systems, and each system exclusively uses one eMMC;
(2) the u-boot used in this embodiment has successfully driven two pieces of eMMC (embedded memory); the eMMC is normally detected by respectively numbering two emmcs as 0(QNX system) and 1(Android), and inputting a command such as "mmc dev 0" or "mmc dev 1".
(3) The u-boot used in this embodiment already supports the USB OTG functionality.
(4) The u-boot used by the method already supports the upgrade of the Android system of the eMMC 1.
The steps of the continuous operation flow after the eMMC is partitioned are as follows:
(1) acquiring the transferred partition name Temp-name from the peripheral equipment;
(2) traversing the partition information tables oem _ partition _ table _0 and oem _ partition _ table _1, judging the partition information table corresponding to the partition names, and if the partition information table corresponding to the partition names is not found, ending the traversal;
(3) identifying a partition information table, and automatically identifying which eMMC the partition is on according to the name of the partition table;
(4) and reading the partition information table in the corresponding eMMC, and then managing/operating the corresponding eMMC partition.
As shown in fig. 6, it is a third embodiment of the system upgrade method for a multi-system mobile terminal of the present invention, and it should be noted that the precondition of the third embodiment includes:
(1) the system used by the mobile terminal can normally operate multiple systems, and each system exclusively uses one eMMC;
(2) the u-boot used has successfully driven two pieces of eMMC (embedded memory); the eMMC is normally detected by respectively numbering two emmcs as 0(QNX system) and 1(Android), and inputting a command such as "mmc dev 0" or "mmc dev 1".
(3) The u-boot used already supports USB OTG functionality.
(4) The used u-boot already supports the upgrade of the Android system of the eMMC 1.
The steps of performing eMMC machine-flushing upgrading based on muti _ fastboot are as follows:
(1) identifying muti _ fastboot command parameters input at a u-boot end, judging the eMMC number needing to be operated or automatically searching the eMMC according to the partition name during operation, and storing the result in a flash _ type variable.
(2) And selecting and binding the USB OTG peripheral equipment required to be used, and initializing a fastboot protocol.
(3) The USB enters a data interception state, generates an interrupt when data exists, and acquires the data sent from the USB host.
(4) And resolving the PC side fastboot command parameters, such as flash/erase/getvar/boot/rebot/oem and the like.
(5) And selecting the eMMC to be operated according to the value of the flash _ type. When the flash _ type is equal to 0, directly and independently operating the eMMC 0; when the flash _ type is 1, directly and independently operating the eMMC 1; if the flash _ type is 2 or other values, the eMMC is distinguished according to the partition name carried in the received PC terminal fastboot parameter, then the corresponding eMMC is operated, and if the command parameter without the partition name is, for example, oem, formatting operation is directly carried out on the two eMMC.
(6) Performing corresponding functional operation on the eMMC according to the function of a PC (personal computer) terminal fastboot command parameter flash/erase/getvar/boot/rebot/oem, for example, flash represents to write a mirror image into the eMMC; erase refers to erasing a certain partition or all partitions of the eMMC.
The invention provides a corresponding system upgrading device for a multi-system mobile terminal, which is applied to the mobile terminal, wherein the mobile terminal comprises at least two embedded memories, an operating system is stored in the embedded memories, the upgrading device is a functional module of a u-boot, the design of a muti _ fastboot program is mainly completed on the u-boot, and the operation of the muti _ fastboot program is also performed on the u-boot. As shown in fig. 7, the upgrade apparatus includes a create partition information table unit 71, a create partition unit 72, an operate partition unit 73:
a partition information table creating unit 71, configured to create a partition information table corresponding to each embedded memory, and store the partition information in the partition table in a corresponding manner in a manner of structure information, where the partition information table includes a partition table name and a partition full name uniquely corresponding to the partition;
a partition establishing unit 72 configured to read the partition information table, identify the corresponding embedded memory according to the partition table name, and partition one or more embedded memories in a unified manner according to the partition information table;
and the operation partitioning unit 73 is configured to receive a partitioning operation command, query the partitioning information table according to the partitioning operation command, identify the embedded memory that needs to be operated and corresponds to the partitioning information table, and perform operation on one or more partitions of the embedded memory in a unified manner.
Particularly, the partition establishing unit 72 is further configured to identify a command of the mobile terminal, determine the embedded memory to be operated according to the command of the mobile terminal, and store a determination result; according to the judgment result, directly partitioning the embedded memory; connecting to a USB host, and initializing a fastboot communication protocol of the mobile terminal according to a command of the mobile terminal; the peripheral entering the data interception state acquires a partition operation command sent by a PC (personal computer) end; receiving and analyzing the partition operation command, if the partition name is obtained, identifying the embedded memory according to the partition name, partitioning the embedded memory and operating the partition; if the partition full name is not acquired, the process is exited;
particularly, the operation partition unit 73 is further configured to receive the partition name transmitted by the PC terminal bound to the mobile terminal, traverse the partition information table according to the partition name, and identify the partition information table corresponding to the partition name; determining and judging the embedded memory needing to be operated according to the partition information table; and reading the partition table corresponding to the embedded memory and operating the partition table.
The present invention provides a corresponding system upgrade terminal for a multi-system mobile terminal, as shown in fig. 8, including a memory 801 and a processor 802, where the memory 801 stores therein a computer program operable on the processor 802, and the processor 802 executes the computer program to implement the steps of the first embodiment of the system upgrade method for a multi-system mobile terminal.
The present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the first embodiment of the system upgrade method for a multi-system mobile terminal.
The mobile terminal partitions the embedded memory in the mobile terminal and performs read-write operation on the partitions by identifying the partition operation instruction sent by the peripheral equipment (PC end), so that the unified partitioning and flashing of multiple operating systems of the mobile terminal are realized, and the flashing process is simple and efficient. Meanwhile, the partition of the embedded memory can be independently operated by analyzing the fastboot command parameter, namely, an independent updating mode of a certain embedded memory is supported, and the requirements of single eMMC updating and multi-eMMC updating of the operation of a novel operating system can be met.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (10)

1. A system upgrading method for a multi-system mobile terminal, the mobile terminal comprising at least two embedded memories, the system being stored in the embedded memories, the system upgrading method for a multi-system mobile terminal comprising:
creating a partition information table corresponding to each embedded memory, and correspondingly storing the partition information in the partition table in a structural information mode, wherein the partition information table comprises a partition table name and a partition full name uniquely corresponding to the partition;
reading the partition information table, identifying the corresponding embedded memories according to the partition table names, and uniformly partitioning one or more embedded memories according to the partition information table;
and receiving a partition operation command, inquiring the partition information table according to the partition operation command to identify the embedded memories needing to be operated corresponding to the partition information table, and uniformly operating the partitions of one or more embedded memories.
2. The system upgrade method for a multi-system mobile terminal according to claim 1, wherein the partition information table includes structure item _ part _ info structure information of all partitions of the embedded memory in a sequential order:
partition names, partition aliases, partition system formats, and partition lengths; the partition full name comprises a partition name and a partition alias.
3. The system upgrading method for multi-system mobile terminals according to claim 1, wherein the reading the partition information table, identifying the embedded memory corresponding to the partition information table according to the partition table name, and partitioning the embedded memory comprises:
recognizing the command of the mobile terminal, judging the embedded memory needing to be operated according to the command of the mobile terminal, and storing a judgment result;
and directly partitioning the embedded memory according to the judgment result.
4. The system upgrading method for multi-system mobile terminals according to claim 3, wherein the reading the partition information table, identifying the embedded memory corresponding to the partition information table according to the partition table name, and partitioning the embedded memory comprises:
connecting to a USB host, and initializing a fastboot communication protocol of the mobile terminal according to a command of the mobile terminal;
the peripheral entering the data interception state acquires a partition operation command sent by a PC (personal computer) end;
receiving and analyzing the partition operation command, if the partition name is obtained, identifying the embedded memory according to the partition name, partitioning the embedded memory and operating the partition; and if the partition names are not acquired, the process is exited.
5. The system upgrading method for the multi-system mobile terminal according to claim 4, wherein the receiving a partition operation command, querying the partition information table according to the partition operation command to identify the embedded memories which correspond to the partition information table and need to be operated, and uniformly operating one or more partitions of the embedded memories comprises:
receiving the partition names transmitted by the PC terminal bound with the mobile terminal, traversing the partition information table according to the partition names, and identifying the partition information table corresponding to the partition names;
determining and judging the embedded memory needing to be operated according to the partition information table;
and reading the partition table corresponding to the embedded memory and operating the partition table.
6. A system upgrade apparatus for a multi-system mobile terminal, the mobile terminal including at least two embedded memories in which the systems are stored, the system upgrade apparatus comprising:
the partition information table creating unit is used for creating a partition information table corresponding to each embedded memory and correspondingly storing the partition information in the partition table in a structural information mode, and the partition information table comprises a partition table name and a partition full name uniquely corresponding to the partition;
establishing a partition unit for reading the partition information table, identifying the corresponding embedded memories according to the partition table names, and uniformly partitioning one or more embedded memories according to the partition information table;
and the operation partitioning unit is used for receiving a partitioning operation command, inquiring the partitioning information table according to the partitioning operation command so as to identify the embedded memories which are required to be operated and correspond to the partitioning information table, and uniformly operating the partitions of the embedded memories.
7. The system upgrade apparatus for a multi-system mobile terminal according to claim 6, wherein the partition information table includes structure item _ part _ info structure information of all partitions of the embedded memory in a sequential order:
partition names, partition aliases, partition system formats, and partition lengths; the partition full name comprises a partition name and a partition alias.
8. The system upgrading device for multi-system mobile terminals according to claim 6, wherein the partition establishing unit is further configured to identify a command of the mobile terminal, determine the embedded memory to be operated according to the command of the mobile terminal, and store the determination result; according to the judgment result, directly partitioning the embedded memory; connecting to a USB host, and initializing a fastboot communication protocol of the mobile terminal according to a command of the mobile terminal; the peripheral entering the data interception state acquires a partition operation command sent by a PC (personal computer) end; receiving and analyzing the partition operation command, if the partition name is obtained, identifying the embedded memory according to the partition name, partitioning the embedded memory and operating the partition; if the partition names are not acquired, the process is exited;
the operation partition unit is also used for receiving the partition names transmitted by the PC end bound with the mobile terminal, traversing the partition information table according to the partition names and identifying the partition information table corresponding to the partition names; determining and judging the embedded memory needing to be operated according to the partition information table; and reading the partition table corresponding to the embedded memory and operating the partition table.
9. A system upgrade terminal for a multi-system mobile terminal, comprising a memory and a processor, the memory having stored therein a computer program operable on the processor, the processor when executing the computer program implementing the steps of the system upgrade method for a multi-system mobile terminal according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of a system upgrade method for a multi-system mobile terminal according to any one of claims 1 to 5.
CN202110084815.2A 2021-01-21 2021-01-21 System upgrading method and device for multi-system mobile terminal and terminal Pending CN114816491A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110084815.2A CN114816491A (en) 2021-01-21 2021-01-21 System upgrading method and device for multi-system mobile terminal and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110084815.2A CN114816491A (en) 2021-01-21 2021-01-21 System upgrading method and device for multi-system mobile terminal and terminal

Publications (1)

Publication Number Publication Date
CN114816491A true CN114816491A (en) 2022-07-29

Family

ID=82524721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110084815.2A Pending CN114816491A (en) 2021-01-21 2021-01-21 System upgrading method and device for multi-system mobile terminal and terminal

Country Status (1)

Country Link
CN (1) CN114816491A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450184A (en) * 2023-06-09 2023-07-18 联宝(合肥)电子科技有限公司 System upgrading method and device, electronic equipment and storage medium
CN116679946A (en) * 2022-11-22 2023-09-01 荣耀终端有限公司 Firmware upgrading method and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116679946A (en) * 2022-11-22 2023-09-01 荣耀终端有限公司 Firmware upgrading method and terminal
CN116450184A (en) * 2023-06-09 2023-07-18 联宝(合肥)电子科技有限公司 System upgrading method and device, electronic equipment and storage medium
CN116450184B (en) * 2023-06-09 2023-10-13 联宝(合肥)电子科技有限公司 System upgrading method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9301164B2 (en) Method, system, and terminal for performing system update between mobile communication terminals
US8296521B2 (en) Method of configuring non-volatile memory for a hybrid disk drive
CN113835644B (en) Complete machine migration method, device, equipment and storage medium
US9329959B2 (en) Device and method for performing regression testing on bios boot information
EP3007062A1 (en) Firmware upgrade method and apparatus, and communication device
CN104881314A (en) Method for installing driver and driver installation device
US8677084B2 (en) Method of configuring non-volatile memory for a hybrid disk drive
US20090006831A1 (en) Methods and apparatuses for configuring add-on hardware to a computing platform
CN103514015A (en) Method and device for booting operation system from storage medium
CN114816491A (en) System upgrading method and device for multi-system mobile terminal and terminal
CN101169729A (en) Embedded type system and method for renewing application program
CN105824678A (en) Method and device for installing operating system
CN106909351B (en) UEFI (unified extensible firmware interface) firmware-based EXT (extensible firmware interface) file system implementation method
CN106484719B (en) Method and terminal for expanding mobile phone storage
CN107220085B (en) Method for automatically upgrading RAID card firmware
CN115408013A (en) Firmware and file automatic programming method of Zynq UltraScale + MPSoC platform
CN102043638A (en) Computer system and computer startup setting method
CN113900693A (en) Firmware upgrading method, device and system, electronic equipment and storage medium
US20040221024A1 (en) Apparatus and method for setting environment of client in client / server system, and program recording medium therefor
JP2013513874A (en) Data card upgrade method and device
KR20150072963A (en) Multisystem, and method of booting the same
CN115766429A (en) Matching method and device of system and edge computing gateway
JP2002366501A (en) Peripheral device, computer system and installer program
JP4141409B2 (en) External peripherals
CN115357355A (en) Method, device and equipment for software cross-system migration and readable 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