Partition addition and partition mapping burning implementation method, device, equipment and medium

By building an upgrade package and adding a command configuration file and update script file to the package, and using the FOTA Engine to parse and execute partition addition and mapping burning, the cost and user experience issues in vehicle firmware upgrades are solved, and efficient partition management in A/B mode is achieved.

CN120469712BActive Publication Date: 2025-09-26SIENGINE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510959737.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-11
Publication Date
2025-09-26
Estimated Expiration
2045-07-11

AI Technical Summary

Technical Problem

In the existing technology of vehicle firmware upgrade, OTA-based partition change and firmware upgrade solutions have the problem of increasing product costs or poor user experience, especially when the backup boot program and the main program coexist, additional storage media is required, or the two upgrade solutions waste time.

Method used

By building an upgrade package and adding a command configuration file and an update script file to the package, parsing and executing partition addition and partition mapping burning, using the FOTA Engine for legality verification and command parsing, and calling the corresponding tools to implement partition addition and mapping burning.

Benefits of technology

It realizes the addition of new partitions and their functional images in A/B mode, saves product costs, improves user experience, and is suitable for product promotion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120469712B_ABST
    Figure CN120469712B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, apparatus, device, and medium for implementing partition addition and partition mapping burning, relating to the technical field of OTA upgrades. The method comprises constructing an upgrade package and adding a command configuration file for organizing functions to the upgrade package, as well as an update script file for parsing the command configuration file to implement the target function; parsing the upgrade package to obtain an update script file and a command configuration file, and the update script file implements partition addition and partition mapping burning according to the command configuration file. This application solves the problem of adding new partitions and their functional images in A / B mode based on OTA upgrades, thereby saving product costs without affecting user experience, while also reducing costs and increasing efficiency, and promoting product promotion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of OTA (Over-the-Air Technology) upgrade technology, and specifically to a method, device, equipment, and medium for implementing partition addition and partition mapping burning. Background Art

[0002] Currently, there are generally two solutions for OTA-based vehicle firmware upgrade operations. The first solution is to complete the firmware upgrade including partition table changes through the backup boot program. The second solution is to complete the partition change and firmware upgrade through two upgrades. The first upgrade is used to create the partition, and the second upgrade is used for the firmware upgrade.

[0003] For the first solution, a backup-based boot program is used to complete partition changes and firmware upgrades. The backup boot program can always be started, which can prevent the chip from becoming bricked. A prerequisite for implementing this solution is that the backup boot program and the main program cannot be stored in a storage medium that shares a partition table. They need to be stored in an independent storage medium, adding an additional storage medium, thereby increasing the cost of the product; for the second solution, two upgrades are used to complete partition changes and firmware upgrades. The first upgrade completes the creation of the partition, and the second upgrade completes the firmware upgrade. This solution is more time-consuming, has poor user response, and is not suitable for product promotion. Summary of the Invention

[0004] The present application provides a method, apparatus, device and medium for implementing partition addition and partition mapping burning, which solves the problem of adding new partitions and their functional images in A / B mode based on OTA upgrade, thereby saving product costs without affecting user experience, and at the same time playing the role of reducing costs and increasing efficiency, and is conducive to product promotion.

[0005] In a first aspect, an embodiment of the present application provides a method for implementing partition addition and partition mapping burning, the method for implementing partition addition and partition mapping burning comprising:

[0006] Build an upgrade package and add an instruction configuration file for organizing functions and an update script file for parsing the instruction configuration file to implement the target function in the upgrade package;

[0007] The upgrade package is parsed to obtain an update script file and an instruction configuration file. The update script file implements partition addition and partition mapping burning according to the instruction configuration file.

[0008] In conjunction with the first aspect, in one embodiment,

[0009] The command configuration file is used to organize functions in a fixed format for parsing and executing shell scripts. The command configuration file includes command number settings, command content, command result storage location, and dependencies during command execution;

[0010] The update script file is implemented in shell or python language, and is used to parse the instruction configuration file and call the corresponding tool to achieve the target function.

[0011] In conjunction with the first aspect, in one embodiment, parsing the upgrade package to obtain an update script file and an instruction configuration file specifically includes:

[0012] FOTA Engine obtains the upgrade package and verifies its legitimacy and integrity;

[0013] Based on the verification results and after the verification passes, the FOTA Engine parses the upgrade package to obtain the update script file and instruction configuration file.

[0014] In conjunction with the first aspect, in one embodiment, the update script file implements partition addition and partition mapping burning according to the instruction configuration file, specifically including:

[0015] The FOTA Engine determines whether the update script file exists in the upgrade package:

[0016] If yes, the FOTA Engine calls the update script file, which parses the instruction configuration file to implement partition addition and partition mapping burning.

[0017] If not, the default OTA process is executed.

[0018] In conjunction with the first aspect, in one embodiment, the update script file parses the content of the instruction configuration file to implement partition addition and partition mapping burning, wherein the partition addition specifically includes:

[0019] Update the script file to parse the command configuration file, and judge whether the command has been successfully executed based on the log of the command content:

[0020] If so, skip the current instruction;

[0021] If not, based on the instruction content, the script file add_partition.sh set for execution is called to add a partition, and after the partition is successfully added, the Linux system is notified to reload the partition information.

[0022] In conjunction with the first aspect, in one embodiment,

[0023] When the command is successfully executed, characters in a specific format are added to the command content log to indicate that the current command has been successfully executed;

[0024] When calling the add_partition.sh script file to add a partition, you need to check whether the Linux system environment is normal.

[0025] In conjunction with the first aspect, in one embodiment, the update script file parses the content of the instruction configuration file to implement partition addition and partition map burning, wherein the partition map burning specifically includes:

[0026] According to the command content of the command configuration file, call the script file add_partition.sh to execute the settings. The script file add_partition.sh calls the dd tool to write the image to the newly added partition and checks the size of the burned file to ensure that the image size is legal;

[0027] In order to adapt to the different slot states of Image loading, both slots A and B of the Image are burned.

[0028] In a second aspect, an embodiment of the present application provides a device for implementing partition addition and partition mapping burning, the device for implementing partition addition and partition mapping burning comprising:

[0029] A construction module is used to construct an upgrade package and add an instruction configuration file for organizing functions into the upgrade package, as well as an update script file for parsing the instruction configuration file to implement target functions;

[0030] The execution module is used to parse the upgrade package to obtain an update script file and an instruction configuration file. The update script file implements partition addition and partition mapping burning according to the instruction configuration file.

[0031] In a third aspect, an embodiment of the present application provides a device for implementing partition addition and partition mapping burning, wherein the device includes a processor, a memory, and a partition addition and partition mapping burning implementation program stored in the memory and executable by the processor, wherein when the partition addition and partition mapping burning implementation program is executed by the processor, the steps of the above-mentioned partition addition and partition mapping burning implementation method are implemented.

[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a partition addition and partition mapping burning implementation program is stored. When the partition addition and partition mapping burning implementation program is executed by a processor, the steps of the above-mentioned partition addition and partition mapping burning implementation method are implemented.

[0033] The beneficial effects of the technical solutions provided in the embodiments of the present application include:

[0034] By constructing an upgrade package and adding an instruction configuration file for organizing functions and an update script file for parsing the instruction configuration file to achieve the target function in the upgrade package, and then parsing the upgrade package to obtain the update script file and the instruction configuration file, the update script file realizes the addition of partitions and the burning of partition mapping according to the instruction configuration file. By adding the instruction configuration file and the update script file in the upgrade package, the addition of partitions and the burning of partition mapping are realized, and the problem of adding new partitions and their functional images in the A / B mode is solved based on OTA upgrade, which can save product costs without affecting user experience. At the same time, it can play a role in reducing costs and increasing efficiency, and is conducive to product promotion. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a flowchart of the method for implementing partition addition and partition mapping burning in this application;

[0036] Figure 2 Schematic diagram of the functional modules of the device for implementing partition addition and partition mapping burning in this application;

[0037] Figure 3 Schematic diagram of the hardware structure of the device for adding partitions and burning partition mapping for this application. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0040] In the first aspect, an embodiment of the present application provides a method for implementing partition addition and partition mapping burning, which is used to solve the problem of adding new partitions and their functional images in A / B mode through OTA upgrade.

[0041] In one embodiment, referring to Figure 1 , Figure 1 This is a flowchart of the partition addition and partition mapping burning implementation method for this application. Figure 1 As shown, the methods for adding partitions and burning partition mappings include:

[0042] S1: Build an upgrade package and add a command configuration file for organizing functions and an update script file for parsing the command configuration file to implement the target functions. That is, the upgrade package is made based on the common upgrade package, and the update script file and the command configuration file are added to the upgrade package.

[0043] S2: Parse the upgrade package to obtain an update script file and an instruction configuration file. The update script file implements partition addition and partition mapping burning according to the instruction configuration file.

[0044] It should be noted that upgrade packages are primarily used to fix bugs or add new features. They are generally divided into full upgrade packages and differential upgrade packages. Full upgrade packages are generally BSP packages; differential upgrade packages are incremental packages generated by differential tools. They are characterized by their smaller size and reduced download bandwidth.

[0045] In this application, the instruction configuration file is used to organize functions in a fixed format for parsing and executing shell scripts. The instruction configuration file includes instruction number settings, instruction content, instruction result storage location, and dependencies during instruction execution.

[0046] Specifically, command configuration files are used to organize functions into groups according to a specific format, facilitating the parsing and execution of shell scripts. Shell scripts are programs written to utilize the power of the shell. They are plain text files containing shell syntax and commands. These files then utilize features such as regular expressions, pipelining, and data flow redirection to achieve their intended functions.

[0047] For the instruction number, such as add_partition_1; the instruction content is the script to be executed, including the script path; the instruction result storage location is the location where the result is recorded when the instruction is executed; the dependency during the instruction execution process, specifically, if there are multiple instructions, and the subsequent instructions depend on the successful execution of the previous instructions.

[0048] The update script file is implemented using shell (a command language) or Python. It parses the command configuration file and calls the corresponding tools to achieve the desired function. Specifically, the update script is responsible for parsing the command configuration file and calling third-party tools to implement the desired functions, such as adding partitions (which requires calling the sgdisk tool) and burning images (which requires calling the dd tool). The sgdisk tool is a command-line tool. The image represents the firmware file. The dd tool is a burning tool.

[0049] Furthermore, in one embodiment, parsing the upgrade package to obtain an update script file and an instruction configuration file specifically includes:

[0050] S101: The FOTA Engine obtains the upgrade package and verifies its legitimacy and integrity. The FOTA Engine obtains the constructed upgrade package and verifies its legitimacy and integrity.

[0051] S102: Based on the verification result and after the verification is passed, the FOTA Engine parses the upgrade package to obtain the update script file and the instruction configuration file. The FOTA Engine is an embedded software system used to implement the remote upgrade function of the vehicle firmware.

[0052] Furthermore, in one embodiment, the update script file implements partition addition and partition mapping burning according to the instruction configuration file, specifically including:

[0053] The FOTA Engine determines whether the update script file exists in the upgrade package:

[0054] If yes, the FOTA Engine calls the update script file, which parses the instruction configuration file to implement partition addition and partition mapping burning.

[0055] If not, the default OTA process is executed.

[0056] Specifically, the FOTA Engine first checks whether there is an update script file in the upgrade package. If not, it performs relevant operations on the upgrade package according to the default OTA process. If the update script file exists, the FOTA Engine calls the update script file, and the update script file is responsible for parsing the instruction configuration file and executing the contents of the instruction configuration file to realize the addition of partitions and the burning of partition mapping.

[0057] Furthermore, in one embodiment, the update script file parses the instruction configuration file content to implement partition addition and partition mapping burning, wherein the partition addition specifically includes:

[0058] Update the script file to parse the command configuration file, and judge whether the command has been successfully executed based on the log of the command content:

[0059] If so, skip the current instruction;

[0060] If not, based on the instruction content, the script file add_partition.sh set for execution is called to add a partition, and after the partition is successfully added, the Linux system is notified to reload the partition information.

[0061] It should be noted that when a command is successfully executed, a special format character is added to the command log to indicate successful execution. When calling the add_partition.sh script to add a partition, it is necessary to check whether the Linux system environment is normal. The add_partition.sh script is an execution script.

[0062] Specifically, when parsing the instruction configuration file, the update script file first checks the log of the instruction content of the instruction configuration file to determine whether the current instruction has been successfully executed, so as to avoid repeated execution in situations such as abnormal system reset. In order to simplify the processing logic of the update script file, after an instruction is successfully executed, characters in the format of "Command_index: success" are added to the log of its instruction content, such as "add_partiton_1: success". When the update script file detects such characters, it is considered that the current instruction has been executed successfully and the instruction will be skipped; when it is determined that the instruction has not been executed, the execution setting script file add_partition.sh is called according to the instruction content item in the instruction configuration file to implement the partition addition operation.

[0063] The script file add_partition.sh is mainly implemented by calling the sgdisk tool, for example:

[0064] partition_size = 100k

[0065] IMAGE_NAME = lun0.img

[0066] sgdisk -n 1:100K:+${partition_size} -c 1:bl31 ${IMAGE_NAME}.

[0067] When calling the add_partition.sh script, consider the possibility of unexpected operating conditions, such as system crashes or reboots, during script execution. When adding a partition, first check whether the partition has already been added. If so, return a success message and discontinue execution to avoid false positives. After successfully adding a partition, notify the Linux system to reload the partition information. This can be handled in the script for adding new partitions.

[0068] Furthermore, in one embodiment, the update script file parses the instruction configuration file content to implement partition addition and partition map burning, wherein the partition map burning specifically includes:

[0069] According to the instructions in the command configuration file, the add_partition.sh script file is called and executed. The add_partition.sh script file calls the dd tool to write the image to the newly added partition and checks the size of the burned file to ensure that the image size is legal. In order to adapt to the different slot states of image loading, both slots A and B of the image are burned.

[0070] Specifically, after a partition is successfully added, the image needs to be written to the corresponding partition. Since it is a newly added partition, to adapt to the different slot states of the current image loading, and to simplify the processing logic, both slots A and B of the image are burned (OTA upgrade A / B mode is a common method for system updates without restarting the device. In this mode, the system is divided into two independent partitions, for example, partition A and partition B, each containing a complete system image). Image writing can be implemented using a command similar to the one used for adding new partitions (dd) or through the Update Engine logic.

[0071] The add_partition.sh script, configured according to the command content in the command configuration file, is executed. This script uses the dd tool to write the image to the partition and checks the size of the burned file to ensure that the image size is legal. After the image of the newly added partition is burned using the command, it may be burned again in a certain slot (depending on the current slot) when the Update Engine updates the image of other partitions. Since the Update Engine does not require special processing for the newly added partition when updating the image, this is acceptable.

[0072] In this application, the upgrade package contains an update script file and an instruction configuration file; the Fota engine supports parsing the update script file in the upgrade package; the update script file completes the new partition function according to the instructions in the instruction configuration file; the update script file completes the burning of the partition image according to the instructions in the instruction configuration file; the instruction configuration file can also define other functions and complete other functions by executing the script.

[0073] The method for implementing partition addition and partition mapping burning in the embodiment of the present application is to construct an upgrade package and add an instruction configuration file for organizing functions and an update script file for parsing the instruction configuration file to implement the target function in the upgrade package, and then parse the upgrade package to obtain the update script file and the instruction configuration file. The update script file implements partition addition and partition mapping burning according to the instruction configuration file. By adding the instruction configuration file and the update script file in the upgrade package, partition addition and partition mapping burning are implemented, and the problem of adding new partitions and their functional images in the A / B mode is solved based on OTA upgrade, which can save product costs without affecting user experience, and at the same time can play a role in reducing costs and increasing efficiency, and is conducive to product promotion.

[0074] In a second aspect, an embodiment of the present application also provides a device for implementing partition addition and partition mapping burning.

[0075] In one embodiment, referring to Figure 2 , Figure 2 This is a functional module diagram of the device for implementing partition addition and partition mapping burning in this application. Figure 2 As shown, the device for implementing partition addition and partition mapping burning includes: a construction module and an execution module.

[0076] The construction module is used to build an upgrade package and add an instruction configuration file for organizing functions to the upgrade package, as well as an update script file for parsing the instruction configuration file to implement the target function; the execution module is used to parse the upgrade package to obtain the update script file and the instruction configuration file, and the update script file implements partition addition and partition mapping burning according to the instruction configuration file.

[0077] In a third aspect, an embodiment of the present application provides a device for implementing partition addition and partition mapping burning. The device for implementing partition addition and partition mapping burning can be a personal computer (PC), laptop, server, or other device with data processing capabilities.

[0078] Reference Figure 3 , Figure 3 Schematic diagram of the hardware structure of the device for implementing partition addition and partition mapping burning involved in the embodiment of the present application. In the embodiment of the present application, the device for implementing partition addition and partition mapping burning may include a processor, a memory, a communication interface and a communication bus.

[0079] The communication bus may be of any type and is used to interconnect the processor, memory, and communication interface.

[0080] Communication interfaces include input / output (I / O), physical, and logical interfaces. These interfaces are used to add new partitions, program partition maps, and interconnect internal devices. They are also used to add new partitions, program partition maps, and program partitions to interconnect with other devices (such as other computing devices or user devices). Physical interfaces can include Ethernet, fiber, or ATM interfaces. User devices can include displays and keyboards.

[0081] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0082] The processor can be a general-purpose processor that can call a partition adding and partition mapping burning implementation program stored in a memory and execute the partition adding and partition mapping burning implementation method provided in the embodiments of the present application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the partition adding and partition mapping burning implementation program is called can be referred to in the various embodiments of the partition adding and partition mapping burning implementation method of the present application and will not be further described here.

[0083] Those skilled in the art will understand that Figure 3 The hardware structure shown in the figure does not constitute a limitation to the present application and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0084] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.

[0085] The computer-readable storage medium of the present application stores a partition adding and partition mapping burning implementation program, wherein when the partition adding and partition mapping burning implementation program is executed by the processor, the steps of the partition adding and partition mapping burning implementation method as described above are implemented.

[0086] Among them, the method implemented when the partition addition and partition mapping burning implementation program is executed can refer to the various embodiments of the partition addition and partition mapping burning implementation method of this application, and will not be repeated here.

[0087] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit the "first", "second" and "third" to different types.

[0088] In the description of the embodiments of this application, the words "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.

[0089] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0090] In some processes described in the embodiments of the present application, multiple operations or steps are included that appear in a specific order. However, it should be understood that these operations or steps may not be performed in the order in which they appear in the embodiments of the present application or may be performed in parallel. The sequence numbers of the operations are only used to distinguish between different operations, and the sequence numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations or steps may be performed in sequence or in parallel, and these operations or steps may be combined.

[0091] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, or the part that contributes to the existing technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes a number of instructions for enabling a terminal device to execute the methods described in each embodiment of this application.

[0092] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for implementing partition addition and partition mapping burning, characterized in that: The partition adding and partition mapping burning implementation method includes: Build an upgrade package and add an instruction configuration file for organizing functions and an update script file for parsing the instruction configuration file to implement the target function in the upgrade package; Parsing the upgrade package to obtain an update script file and an instruction configuration file, wherein the update script file implements partition addition and partition mapping burning according to the instruction configuration file; The update script file implements partition addition and partition mapping burning according to the instruction configuration file, specifically including: The FOTA Engine determines whether the update script file exists in the upgrade package: If yes, the FOTA Engine calls the update script file, which parses the instruction configuration file to implement partition addition and partition mapping burning. If not, the default OTA process is executed; The update script file parses the instruction configuration file content to implement partition addition and partition mapping burning, wherein the partition addition specifically includes: Update the script file to parse the command configuration file, and judge whether the command has been successfully executed based on the log of the command content: If so, skip the current instruction; If not, based on the instruction content, the script file add_partition.sh set for execution is called to add a partition, and after the partition is successfully added, the Linux system is notified to reload the partition information.

2. A partition adding and partition mapping burning implementation method as claimed in claim 1, characterized in that: The command configuration file is used to organize functions in a fixed format for parsing and executing shell scripts. The command configuration file includes command number settings, command content, command result storage location, and dependencies during command execution; The update script file is implemented in shell or python language, and is used to parse the instruction configuration file and call the corresponding tool to achieve the target function.

3. A partition adding and partition mapping burning implementation method as claimed in claim 1, characterized in that: The step of parsing the upgrade package to obtain an update script file and an instruction configuration file specifically includes: FOTA Engine obtains the upgrade package and verifies its legitimacy and integrity; Based on the verification results and after the verification passes, the FOTA Engine parses the upgrade package to obtain the update script file and instruction configuration file.

4. A partition adding and partition mapping burning implementation method as claimed in claim 1, characterized in that: When the command is successfully executed, characters in a specific format are added to the command content log to indicate that the current command has been successfully executed; When calling the add_partition.sh script file to add a partition, you need to check whether the Linux system environment is normal.

5. A partition adding and partition mapping burning implementation method as claimed in claim 1, characterized in that: The update script file parses the instruction configuration file content to implement partition addition and partition map burning, wherein the partition map burning specifically includes: According to the command content of the command configuration file, call the script file add_partition.sh to execute the settings. The script file add_partition.sh calls the dd tool to write the image to the newly added partition and checks the size of the burned file to ensure that the image size is legal; In order to adapt to the different slot states of Image loading, both slots A and B of the Image are burned.

6. A device for implementing partition addition and partition mapping burning, characterized in that: The partition adding and partition mapping burning implementation device includes: A construction module is used to construct an upgrade package and add an instruction configuration file for organizing functions into the upgrade package, as well as an update script file for parsing the instruction configuration file to implement target functions; An execution module is used to parse the upgrade package to obtain an update script file and an instruction configuration file, and the update script file implements partition addition and partition mapping burning according to the instruction configuration file; The update script file implements partition addition and partition mapping burning according to the instruction configuration file, specifically including: The FOTA Engine determines whether the update script file exists in the upgrade package: If yes, the FOTA Engine calls the update script file, which parses the instruction configuration file to implement partition addition and partition mapping burning. If not, the default OTA process is executed; The update script file parses the instruction configuration file content to implement partition addition and partition mapping burning, wherein the partition addition specifically includes: Update the script file to parse the command configuration file, and judge whether the command has been successfully executed based on the log of the command content: If so, skip the current instruction; If not, based on the instruction content, the script file add_partition.sh set for execution is called to add a partition, and after the partition is successfully added, the Linux system is notified to reload the partition information.

7. A device for implementing partition addition and partition mapping burning, characterized in that: The partition addition and partition mapping burning implementation device includes a processor, a memory, and a partition addition and partition mapping burning implementation program stored on the memory and executable by the processor, wherein when the partition addition and partition mapping burning implementation program is executed by the processor, the steps of the partition addition and partition mapping burning implementation method as described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a partition adding and partition mapping burning implementation program, wherein when the partition adding and partition mapping burning implementation program is executed by the processor, the steps of the partition adding and partition mapping burning implementation method as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Production method of INAND / NAND-based multi-partition storage device

    CN102520981A