Burning file generation method and device, burning equipment and computer storage medium

By automatically generating EMMC burning files during the software compilation process, obtaining and processing partition files and serial numbers, it solves the problem of burning file generation failure caused by manual configuration parameters, realizes automatic configuration of partition configuration tables, and improves production efficiency.

CN112698834BActive Publication Date: 2024-08-27SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011645151.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-08-27
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

In the existing technology, manual configuration of parameters leads to failure in generating burning files. Especially when the size or number of partitions changes, commands need to be manually entered to configure the partition configuration table. This can easily cause data omission or misalignment, resulting in the generation of burning files. fail.

Method used

By automatically generating the EMMC burning file during the software compilation process, the partition file and partition serial number of each partition are obtained, and the target burning file is generated based on this information. A third-party packaging tool is used to package the partition file into the target burning file to ensure Each partition has a corresponding file and serial number, and the partition configuration table is automatically configured.

Benefits of technology

It realizes the automatic generation of burning files for mass production, improves production efficiency, and avoids burning file generation failures caused by manual configuration errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112698834B
    Figure CN112698834B
Patent Text Reader

Abstract

The invention discloses a method and device for generating a burning file, a burning device and a computer storage medium. The burning file generating method comprises the following steps: obtaining a partition file corresponding to each partition; obtaining a partition serial number corresponding to each partition; generating the target burning file according to the partition serial number corresponding to each partition and the partition file, so as to solve the problem that the burning file generation fails due to manual configuration of parameters in the prior art, realize automatic generation of burning files for batch production, and improve production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip burning, and in particular to a burning file generation method and device, burning equipment and computer storage medium. Background Art

[0002] At present, the software of the TV will write the EMMC file into the EMMC chip through a burner before mounting the chip. There are two traditional methods for generating burning files. First, the data of the EMMC file can only be written to the U disk in binary form. After the data is completely written to the U disk, the U disk is connected to the computer, and the binary data in the U disk is exported as a burning file through the tool on the computer; second, it is generated through a third-party packaging tool to conveniently and quickly generate EMMC burning files; however, the traditional method of generating burning files has the following disadvantages: when the size or number of partitions changes, it is necessary to manually enter a command to configure the partition configuration table each time, and the data in the partition configuration table may be missing or misaligned, which leads to the failure of burning file generation.

[0003] Therefore, in order to optimize the disadvantages of manually configuring the partition configuration table, it is crucial to design a method to automatically generate EMMC burning files during the software compilation process. Summary of the invention

[0004] The main purpose of the present invention is to provide a method and device for generating a burning file, a burning device and a computer storage medium, aiming to solve the problem in the prior art that the burning file generation fails due to manual configuration of parameters.

[0005] To achieve the above object, the present invention provides a method for generating a burning file. In one embodiment, the method for generating a burning file comprises the following steps:

[0006] Get the partition file corresponding to each partition;

[0007] Get the partition number corresponding to each partition;

[0008] The target burning file is generated according to the partition serial number and the partition file corresponding to each partition.

[0009] In one embodiment, the step of obtaining the partition file corresponding to each partition includes:

[0010] Get the partition file name;

[0011] When the partition file corresponding to the partition file name does not exist, create a blank partition file;

[0012] The blank partition file is associated with the non-existent partition file name, so that the blank partition file is used as the partition file corresponding to the partition associated with the non-existent partition file name.

[0013] In one embodiment, after the step of creating a blank partition file, the following steps are included:

[0014] When the partition file corresponding to the partition file name exists, obtaining all partition files;

[0015] Determine whether there is a partition file that is not in a preset decompression format among all the partition files;

[0016] If it exists, the file format of the partition file which is not in the preset decompression format is converted into the preset decompression format.

[0017] In one embodiment, before obtaining the partition serial number corresponding to each partition, the method includes: determining the partition serial number corresponding to each partition according to the creation order of each partition.

[0018] The step of generating the target burning file according to the partition serial number and the partition file corresponding to each partition includes:

[0019] Add the partition files corresponding to each partition into the partition configuration table in sequence based on the partition sequence number;

[0020] The partition configuration table is used to synthesize a target burning file.

[0021] In one embodiment, the step of synthesizing a target burning file using the partition configuration table includes:

[0022] Read the partition file in the partition configuration table;

[0023] A third-party packaging tool is used to package the partition files into target burning files.

[0024] To achieve the above object, the present invention further provides a burning file generating device, the burning file generating device comprising:

[0025] Partition file acquisition module: used to obtain the partition file corresponding to each partition;

[0026] Partition serial number acquisition module: used to obtain the partition serial number corresponding to each partition;

[0027] The target burning file generating module is used to generate the target burning file according to the partition serial number and the partition file corresponding to each partition.

[0028] In one embodiment, the partition file acquisition module is further used for:

[0029] Get the partition file name;

[0030] When the partition file corresponding to the partition file name does not exist, create a blank partition file;

[0031] The blank partition file is associated with the non-existent partition file name, so that the blank partition file is used as the partition file corresponding to the partition associated with the non-existent partition file name.

[0032] To achieve the above-mentioned object, the present invention also provides a burning device, which includes a memory, a processor, and a burning file generation program stored in the memory and executable on the processor. When the burning file generation program is executed by the processor, the various steps of the burning file generation method described above are implemented.

[0033] To achieve the above object, the present invention further provides a computer storage medium, wherein the computer storage medium stores a burning file generation program, and when the burning file generation program is executed by a processor, each step of the burning file generation method described above is implemented.

[0034] The method and device for generating a burning file, the burning device and the computer storage medium provided by the present invention have at least the following technical effects:

[0035] By obtaining the partition file corresponding to each partition; obtaining the partition serial number corresponding to each partition; and generating the target burning file according to the partition serial number corresponding to each partition and the partition file, the problem of failure of burning file generation caused by manual configuration of parameters in the prior art is solved, and the burning file for mass production is automatically generated, thereby improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of the burning device architecture involved in an embodiment of the present invention;

[0037] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for generating a burning file according to the present invention;

[0038] Figure 3 This is a detailed flow chart of step S110 in the second embodiment of the method for generating a burning file of the present invention;

[0039] Figure 4 It is a detailed flow chart of step S110 in the third embodiment of the method for generating a burning file of the present invention;

[0040] Figure 5 It is a detailed flow chart of step S130 in the fourth embodiment of the method for generating a burning file of the present invention;

[0041] Figure 6 It is a detailed flow chart of step S132 in the fifth embodiment of the method for generating a burning file of the present invention;

[0042] Figure 7 It is a functional module diagram of the burning file generating device of the present invention;

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] In order to solve the problem of failure in burning file generation caused by manual configuration of parameters in the prior art, the present application adopts a technical solution of obtaining a partition file corresponding to each partition; obtaining a partition serial number corresponding to each partition; and generating the target burning file according to the partition serial number corresponding to each partition and the partition file, thereby improving production efficiency.

[0046] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0047] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention.

[0048] It should be noted that Figure 1 This is a schematic diagram of the architecture of the hardware operating environment of the burning device.

[0049] like Figure 1As shown, the burning device may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and 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 and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0050] Among them, sensors include light sensors, motion sensors, voice sensors and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor can turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the wireless transmission module mainly uses large-capacity transmission methods such as 5G and WiFi6 to realize the transmission of high-definition video streams, pictures, etc. Taking the 4Mbps data transmission of a single-point video stream as an example, the transmission rate of 5G and WiFi6 can theoretically reach 10Gbps, and it can theoretically carry about 2,000 data accesses. Combined with the non-simultaneous transmission of each terminal, large-capacity transmission can meet the data transmission needs; of course, the mobile terminal can also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.

[0051] Those skilled in the art will understand that Figure 1 The structure of the burning device shown does not constitute a limitation on the burning device. The burning device may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0052] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a burning file generation program. Among them, the operating system is a program for managing and controlling the hardware and software resources of the burning device, the burning file generation program and the operation of other software or programs.

[0053] exist Figure 1 In the burning device shown, the user interface 1003 is mainly used to connect to the terminal and communicate data with the terminal; the network interface 1004 is mainly used for the background server and communicates data with the background server; the processor 1001 can be used to call the burning file generation program stored in the memory 1005.

[0054] In this embodiment, the burning device includes: a memory 1005, a processor 1001, and a burning file generation program stored in the memory and executable on the processor, wherein:

[0055] In the embodiment of the present application, the processor 1001 may be used to call the burning file generation program stored in the memory 1005 and perform the following operations:

[0056] Get the partition file corresponding to each partition;

[0057] Get the partition number corresponding to each partition;

[0058] The target burning file is generated according to the partition serial number and the partition file corresponding to each partition.

[0059] In the embodiment of the present application, the processor 1001 may be used to call the burning file generation program stored in the memory 1005 and perform the following operations:

[0060] Get the partition file name;

[0061] When the partition file corresponding to the partition file name does not exist, create a blank partition file;

[0062] The blank partition file is associated with the non-existent partition file name, so that the blank partition file is used as the partition file corresponding to the partition associated with the non-existent partition file name.

[0063] In the embodiment of the present application, the processor 1001 may be used to call the burning file generation program stored in the memory 1005 and perform the following operations:

[0064] When the partition file corresponding to the partition file name exists, obtaining all partition files;

[0065] Determine whether there is a partition file that is not in a preset decompression format among all the partition files;

[0066] If it exists, the file format of the partition file which is not in the preset decompression format is converted into the preset decompression format.

[0067] In the embodiment of the present application, the processor 1001 may be used to call the burning file generation program stored in the memory 1005 and perform the following operations:

[0068] The partition numbers corresponding to the partitions are determined according to the order in which the partitions are created.

[0069] In the embodiment of the present application, the processor 1001 may be used to call the burning file generation program stored in the memory 1005 and perform the following operations:

[0070] Add the partition files corresponding to each partition into the partition configuration table in sequence based on the partition sequence number;

[0071] The partition configuration table is used to synthesize a target burning file.

[0072] In the embodiment of the present application, the processor 1001 may be used to call the burning file generation program stored in the memory 1005 and perform the following operations:

[0073] Read the partition file in the partition configuration table;

[0074] A third-party packaging tool is used to package the partition files into target burning files.

[0075] Since the burning device provided by the embodiment of the present application is the burning device adopted by the method for implementing the embodiment of the present application, based on the method introduced by the embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the burning device, so it is not repeated here. All the burning devices adopted by the method of the embodiment of the present application belong to the scope of protection of the present application. The above-mentioned serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.

[0076] For software implementation, the technology described in the embodiments of the present invention can be implemented by a module (such as a process, function, etc.) that performs the functions described in the embodiments of the present invention. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0077] Based on the above structure, an embodiment of the present invention is proposed.

[0078] Reference Figure 2 , Figure 2 The flowchart of the first embodiment of the method for generating a burning file of the present invention comprises the following steps:

[0079] Step S110, obtaining the partition file corresponding to each partition.

[0080] In this embodiment, during the software compilation process, an upgrade script file will be created, and the created upgrade script file will be copied into the image folder. By executing the upgrade script file, all image files are saved locally. At this time, the image files corresponding to each partition have been generated. At the same time, the script file used for upgrading has also been generated. The image files in the current directory can be viewed through commands, and the permissions of the image files in the current directory can be modified through commands. All image files can also be packaged to generate an upgrade software package. The configuration information is stored in the image file. After the upgrade software is packaged, the configuration information is obtained, and the configuration information in the upgrade software package is processed, thereby automatically generating an EMMC chip burning file for mass production.

[0081] In this embodiment, the upgrade script used in this application includes: a TFTP upgrade script and a USB upgrade script, wherein the TFTP upgrade script uses the TFTP simple file transfer protocol, which is a protocol in the TCP / IP protocol for simple file transfer between a terminal and a server. Any transmission starts from a request to read or write a file. If the server approves this request, the server opens a connection, and the data is transmitted with a fixed length of 512 bytes. Each upgrade package includes a piece of data. The server must obtain confirmation of the previous upgrade package before sending the next upgrade package. If an upgrade package is less than 512 bytes, it indicates that the transmission is over. If the upgrade package is lost during the transmission process, the sender will retransmit the last unconfirmed upgrade package after a timeout. The TFTP upgrade script is equivalent to a boot script, and the TFTP upgrade script is used to determine the size of each partition in the upgrade package and the upgrade order of each partition; in the research and development stage, the upgrade package is burned into the EMMC chip through a USB device. In order to generate a burning file for production batch burning, it is necessary to use a command to load the partition file in the upgrade package, and the USB upgrade script is used to scan the files in the specified directory of the USB device and copy the relevant files to the system specified directory.

[0082] In this embodiment, during the system software compilation process, the configuration information is used to automatically generate a partition configuration table, and the configuration information includes a partition name, a partition size, a partition file, a partition file name, etc.; during the system software compilation process, the number of partitions to be created and the size of the partitions are determined according to actual conditions, wherein multiple partitions can be created, each of which is also called an independent disk, for ease of use and management; each partition has a corresponding partition name, partition size, and partition serial number, and the partition name, partition size, and partition serial number corresponding to each partition are different, which can be configured and generated by the manufacturer during the production process, and can also be re-partitioned according to actual development needs during the research and development process.

[0083] In this embodiment, the partition file refers to storing files in different partitions, which is conducive to the management and maintenance of files. During the software compilation process, a partition file will be generated for each partition, and each partition file corresponds to a partition file name. However, since there are errors in the file format of some partitions or not every partition has a corresponding partition file, these partition files cannot be used directly to generate the target burning file. It is necessary to configure the partition file corresponding to each partition into the format of the partition configuration table. Before configuring the partition configuration table, it is necessary to obtain the partition file name. When the partition file corresponding to the partition file name does not exist, create a blank partition file, associate the blank partition file with the non-existent partition file name, so as to use the blank partition file as the partition file corresponding to the partition associated with the non-existent partition file name, so as to achieve that each partition in the partition configuration table has a corresponding partition file.

[0084] Step S120, obtaining the partition serial number corresponding to each partition.

[0085] In this embodiment, before creating partitions, each partition corresponds to a partition serial number, which indicates the order in which each partition is created. The partitions are created according to the partition names and the partition sizes in order of the partition serial numbers. For example, the first partition of the first disk is called sda1, and the second partition of the first disk is called sda2; the first partition of the second disk is called sdb1, and the second partition of the second disk is called sdb2; common partitions include: communication partition (modem), hardware detection partition (bootloader), root file system partition (boot), recovery partition (recovery), system partition (system), and user data storage partition (userdata). Each partition has different functions, and the specific functions of each partition are not repeated here.

[0086] Step S130, generating the target burning file according to the partition serial number and the partition file corresponding to each partition.

[0087] In this embodiment, the target burning file refers to a burning file that can be used for mass production. According to the creation order of the partitions in the USB upgrade process, the partition serial number of the corresponding partition in the partition configuration table is obtained, and the configuration information, such as the partition size, partition name, and partition file name, is added to the partition configuration table in sequence based on the partition serial number in the order of the partition serial number. After the partition configuration table is formed, the partition files and other configuration information in the partition configuration table are read, and the partition files are packaged into the target burning file using a third-party packaging tool. The third-party packaging tool is the Emmcnize packaging tool, and the path of the partition configuration table is passed as a parameter to the third-party packaging tool. This tool will parse the information of each partition in turn and synthesize the corresponding partition files into the EMMC target burning file as required.

[0088] By adopting the technical solution of obtaining the partition file corresponding to each partition; obtaining the partition serial number corresponding to each partition; and generating the target burning file according to the partition serial number corresponding to each partition and the partition file, the purpose of automatically configuring the partition configuration table and generating the target burning file is achieved, thereby improving production efficiency.

[0089] Reference Figure 3 , Figure 3 Detailed flow chart of step S110 in the second embodiment of the method for generating a burning file of the present invention. In this embodiment, step S110 in the first embodiment includes:

[0090] Step S111, obtaining the partition file name.

[0091] In this embodiment, each partition file corresponds to a partition file name. During the production process of the EMMC burning file, a partition configuration table will be generated. The partition files corresponding to each partition in the partition configuration table will be automatically packaged through a third-party packaging tool to generate a burning file for mass production. In order to automatically generate the partition configuration table, each partition is required to have a partition file in img format. Because not every existing partition has a partition file in img format, at this time, if the required partition file name cannot be detected during the detection of the first partition, it means that the partition file does not exist, and other partitions are traversed in turn to record the non-existent partition file name and the partition where the partition file name is located.

[0092] Step S112: when the partition file corresponding to the partition file name does not exist, create a blank partition file.

[0093] In this embodiment, by detecting whether there is a partition file name, it is determined whether the partition file of the partition exists. If not, a blank file with the same name is created in the partition. The blank file is used to fill the missing partition file of the partition, so that each partition has a corresponding partition file, thereby establishing a one-to-one corresponding partition configuration table, and achieving the purpose of being successfully packaged by a third-party packaging tool. Specifically, by parsing the TFTP upgrade script, the partition file name is obtained, and it is determined whether the partition file corresponding to the partition file name exists. If not, a blank file of the corresponding size needs to be automatically generated.

[0094] Step S113: Associating the blank partition file with the non-existent partition file name, so as to use the blank partition file as the partition file corresponding to the partition associated with the non-existent partition file name.

[0095] In this embodiment, the blank partition file is used to fill in the missing partition file of the partition. The partition configuration table needs to satisfy that each partition has a corresponding partition name, partition file name, partition size, and partition file according to the production requirements of the target burning file. The partition configuration table is equivalent to a "list" and needs to be compared with the data in the "list". When it is detected that the partition file name of a partition does not exist, a corresponding missing blank partition file will be created in the partition. At the same time, the blank partition file will be associated with the non-existent partition file name, and the blank file will be used as the partition file corresponding to the partition associated with the non-existent partition file name, so as to fill in the missing data in the "list".

[0096] By adopting a technical solution of obtaining a partition file name, creating a blank partition file when a partition file corresponding to the partition file name does not exist, and associating the blank partition file with the non-existent partition file name so as to use the blank partition file as the partition file corresponding to the partition associated with the non-existent partition file name, it is achieved that each partition has a corresponding generated partition file.

[0097] Reference Figure 4 , Figure 4 Detailed flow chart of step S110 in the third embodiment of the method for generating a burning file of the present invention. Steps S213 to S215 of this embodiment are steps after step S112 of the second embodiment, and include the following steps:

[0098] Step S211, obtaining the partition file name.

[0099] Step S212: When the partition file corresponding to the partition file name does not exist, create a blank partition file.

[0100] Step S213, when the partition file corresponding to the partition file name exists, obtain all partition files.

[0101] In this embodiment, during the system compilation process, since each partition is not necessarily filled with valid data, especially the system partition (system) and user data storage partition (userdata), there is usually reserved space, and these partitions are particularly large. If compression is not used, directly packaging the partition files into the upgrade package will cause the upgrade package to be too large and affect the upgrade speed. Therefore, the system will compress these partition files in simg format by default. When making the target burning file, the partition data needs to be written one-to-one. If the simg format compression is used, it is not suitable for generating the target burning file. What is needed when making the target burning file is the decompressed img format partition file. Therefore, when the blank partition file is created, it is necessary to obtain all partition files and determine whether the partition file is in img format.

[0102] Step S214, determining whether there is a partition file in a format other than the preset decompression format among all the partition files.

[0103] In this embodiment, the preset decompression format refers to a partition file in img format, that is, the partition file in img format is in a decompressed state, and all partition files in each partition are traversed, and all partition files include partition files generated in the original software compilation process. If a partition file exists in the traversal process and its file format is in the preset decompression format, no format conversion is required. If a partition file exists in the traversal process and its file format is not in the preset decompression format, it is necessary to convert the file format of the partition file into the preset decompression format.

[0104] Step S215: if it exists, convert the file format of the partition file which is not in the preset decompression format into the preset decompression format.

[0105] In this embodiment, after creating a blank partition file, because some partitions need to create blank partition files and some partitions do not need to create blank partition files, the blank partition file must be in img format and does not need to be decompressed. However, similar to user partitions and system partitions, the system will default to simg format when compiled, and similar partition files need to be decompressed. If it is detected that the partition file is not in the preset decompression format, format conversion is required. The partition file in simg format is converted into a one-to-one partition file in img format through the simg2img format conversion tool. At the same time, the partition file name of the converted img format partition file is modified, and the partition file after format conversion is associated with the non-existent partition file name. Because for the compressed partition file, the name may be A.simg, if it is still named A.simg after decompression, the original may be overwritten. In order to avoid confusion, the partition file name of the partition file is changed.

[0106] By adopting a technical solution of obtaining all partition files when the partition file corresponding to the partition file name exists, judging whether there is a partition file that is not in the preset decompression format among all the partition files, and if so, converting the file format of the partition file that is not in the preset decompression format into the preset decompression format, a target burning file that can be burned one-to-one is formed by converting the format.

[0107] Reference Figure 5 , Figure 5 Detailed flow chart of step S130 in the fourth embodiment of the method for generating a burning file of the present invention. In this embodiment, step S130 in the first embodiment includes:

[0108] Step S131, adding the partition files corresponding to the partitions into the partition configuration table in sequence based on the partition serial numbers.

[0109] In this embodiment, the partition configuration table is also called a file configuration table. The partition configuration table can be FAT12, FAT16, or FAT32. This application adopts FAT32. FAT32 refers to a disk file management method in which the file allocation table is managed by 32-bit binary numbers, and is used to support burning files less than 4GB. The partition configuration table includes a partition file name, a partition name, a partition name, and a partition serial number. The basic format of the partition configuration table can be described in the following table:

[0110] Vol_image Vol_id Vol_size Vol_name none 2 0x200000 MPOOL

[0111] Among them, Vol_image is the name of the partition file. The third-party packaging tool fills the partition data into the corresponding partition according to Vol_image. Vol_id is the partition serial number. The third-party packaging tool uses this Vol_id number as the order when creating partitions. Vol_size is the corresponding partition size. Vol_name is the partition name, which is used by the third-party packaging tool to name the partition when creating the partition configuration table. In the partition configuration table, the partition files corresponding to each partition are arranged in sequence according to the partition serial number.

[0112] Step S132, synthesizing a target burning file using the partition configuration table.

[0113] In this embodiment, the information of all partitions is supplemented according to the basic format of the partition configuration table to form a complete partition configuration table, the partition files in the partition configuration table are read, and the partition files are packaged into EMMC target burning files through a third-party packaging tool.

[0114] By adopting a technical solution in which the partition files corresponding to each partition are added into the partition configuration table in sequence based on the partition serial number, and the partition configuration table is used to synthesize the target burning file, the information of all partitions is supplemented and completed according to the basic format of the partition configuration table, thereby achieving the purpose of automatically generating the partition configuration table.

[0115] Reference Figure 6 , Figure 6 Detailed flow diagram of step S132 in the fifth embodiment of the method for generating a burning file of the present invention. In this embodiment, step S132 in the fourth embodiment includes:

[0116] Step S1321, read the partition file in the partition configuration table.

[0117] In this embodiment, the partition configuration table has stored configuration information for generating a target burning file. Because the partition files in the partition configuration table are stored according to the partition serial number, it is necessary to package the partition files to generate a target burning file for mass production. In this process, a third-party packaging tool is required to package the partition files corresponding to each partition. The third-party packaging tool reads the partition files in the partition configuration table in sequence according to the partition serial number and then packages them.

[0118] Step S1322: Use a third-party packaging tool to package the partition files into target burning files.

[0119] In this embodiment, in this application, the third-party packaging tool adopts the Emmcnize tool provided by MTK, which can package all partition files in the partition configuration table one-to-one into target burning files according to the partition serial number. The target burning file is burned into the EMMC chip through the burner to achieve mass production.

[0120] The partition files in the partition configuration table are read, and the partition files corresponding to each partition are packaged with the help of a third-party packaging tool. The third-party packaging tool reads the partition files in the partition configuration table in sequence according to the partition serial number and then packages them into a target burning file. Finally, the target burning file will be burned into the EMMC chip through a burner to achieve mass production.

[0121] Based on the same inventive concept, the present invention also provides a burning file generating device, such as Figure 7 As shown, Figure 7 The functional module diagram of the burning file generating device of the present invention comprises: a partition file obtaining module 10, a partition sequence number obtaining module 20, a target burning file generating module 30, etc., and each module will be described in detail below:

[0122] Partition file acquisition module 10: used to select and obtain the partition file corresponding to each partition; specifically, the partition file acquisition module 10 is also used to obtain the partition file name; when the partition file corresponding to the partition file name does not exist, create a blank partition file; when the partition file corresponding to the partition file name exists, obtain all partition files; determine whether there is a partition file that is not in a preset decompression format among all the partition files; if so, convert the file format of the partition file that is not in the preset decompression format to the preset decompression format.

[0123] The partition serial number acquisition module 20 is used to acquire the partition serial number corresponding to each partition; specifically, the partition serial number corresponding to each partition is determined according to the creation order of each partition.

[0124] The target burning file generation module 30 is used to generate the target burning file according to the partition serial number and the partition file corresponding to each partition; specifically, the target burning file generation module 30 adds the partition files corresponding to each partition into the partition configuration table in sequence based on the partition serial number; and synthesizes the target burning file using the partition configuration table; specifically, synthesizing the target burning file using the partition configuration table includes: reading the partition files in the partition configuration table; and packaging the partition files into the target burning file using a third-party packaging tool.

[0125] By adopting the method of obtaining configuration information, creating the partitions according to the partition names and the partition sizes in sequence according to the partition serial numbers, and obtaining the partition file names; when the partition file corresponding to the partition file name does not exist, creating a blank partition file; when the partition file corresponding to the partition file name exists, obtaining all partition files; judging whether there is a partition file that is not in the preset decompression format among all the partition files; if so, converting the file format of the partition file that is not in the preset decompression format to the preset decompression format; adding the partition files corresponding to each partition into the partition configuration table in sequence based on the partition serial numbers; reading the partition files in the partition configuration table; and using a third-party packaging tool to package the partition files into target burning files, a technical solution is formed, which can automatically configure the partition configuration table to generate burning files that can be used for mass production, thereby improving production efficiency.

[0126] Based on the same inventive concept, an embodiment of the present application further provides a computer storage medium, which stores a burning file generation program. When the burning file generation program is executed by a processor, the various steps of the burning file generation method as described above are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0127] Since the computer storage medium provided in the embodiments of the present application is the computer storage medium used to implement the method of the embodiments of the present application, based on the method introduced in the embodiments of the present application, the person skilled in the art can understand the specific structure and deformation of the computer storage medium, so it is not repeated here. All computer storage media used in the methods of the embodiments of the present application belong to the scope of protection of this application.

[0128] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0129] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable computer storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0130] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0131] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0132] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0133] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0134] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0135] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for generating a burning file, characterized in that: The method comprises: Get the partition file name; When the partition file corresponding to the partition file name does not exist, create a blank partition file; associate the blank partition file with the non-existent partition file name, so that the blank partition file is used as the partition file corresponding to the partition associated with the non-existent partition file name; wherein the blank partition file is used to fill the missing partition file of the partition, so that each partition has a corresponding partition file, after the blank partition file is created, it also includes: when the partition file corresponding to the partition file name exists, obtain all partition files; determine whether there is a partition file that is not in a preset decompression format among all the partition files; if so, convert the file format of the partition file that is not in the preset decompression format to a preset decompression format, wherein the preset decompression format is img format, and the file format of the blank partition file is the preset decompression format, when the file format of the partition file is simg format, convert the partition file in simg format to a partition file in img format, and modify the partition file name of the converted partition file in img format; Get the partition number corresponding to each partition; The partition files corresponding to each partition are sequentially added to the partition configuration table based on the partition serial number, wherein the partition configuration table is a disk file management method using 32-bit binary number record management, and the partition configuration table includes the partition file name, partition serial number, partition size and partition name. The third-party tool fills the partition data into the corresponding partition according to the partition file name, and the third-party tool uses the partition serial number as the order when creating the partition; The partition configuration table is used to synthesize a target burning file, wherein the partition files corresponding to each partition in the partition configuration table are automatically packaged through a third-party packaging tool to generate a burning file for batch generation.

2. The method for generating a burning file as claimed in claim 1, wherein: Before obtaining the partition serial number corresponding to each partition, the method includes: determining the partition serial number corresponding to each partition according to the creation order of each partition.

3. The method for generating a burning file as claimed in claim 1, wherein: The step of synthesizing a target burning file by using the partition configuration table includes: Read the partition file in the partition configuration table; A third-party packaging tool is used to package the partition files into target burning files.

4. A burning file generating device, characterized in that: The device comprises: Partition file acquisition module: used to obtain a partition file name; when the partition file corresponding to the partition file name does not exist, create a blank partition file; associate the blank partition file with the non-existent partition file name, so as to use the blank partition file as the partition file corresponding to the partition associated with the non-existent partition file name; wherein the blank partition file is used to fill the missing partition file of the partition, so that each partition has a corresponding partition file, after creating the blank partition file, it also includes: when the partition file corresponding to the partition file name exists, obtain all partition files; determine whether there is a partition file that is not in a preset decompression format among all the partition files; if so, convert the file format of the partition file that is not in the preset decompression format to the preset decompression format, wherein the preset decompression format is img format, and the file format of the blank partition file is the preset decompression format, when the file format of the partition file is simg format, convert the partition file in simg format to the partition file in img format, and modify the partition file name of the converted partition file in img format; Partition serial number acquisition module: used to obtain the partition serial number corresponding to each partition; Target burning file generation module: used for adding the partition files corresponding to each partition into the partition configuration table in sequence based on the partition serial number, wherein the partition configuration table is a disk file management method using 32-bit binary number record management, the partition configuration table includes the partition file name, partition serial number, partition size and partition name, the third-party tool fills the partition data into the corresponding partition according to the partition file name, and the third-party tool uses the partition serial number as the order when creating the partition; the partition configuration table is used to synthesize the target burning file, wherein the partition files corresponding to each partition in the partition configuration table are automatically packaged through a third-party packaging tool to generate a burning file for batch generation.

5. A burning device, characterized in that: The burning device includes a memory, a processor, and a burning file generation program stored in the memory and executable on the processor. When the burning file generation program is executed by the processor, each step of the burning file generation method according to any one of claims 1 to 3 is implemented.

6. A computer storage medium, characterized in that: The computer storage medium stores a burning file generation program, and when the burning file generation program is executed by the processor, each step of the burning file generation method according to any one of claims 1 to 3 is implemented.