Method, device and equipment for improving terminal firmware upgrading efficiency and medium

By dividing the storage partitions on the MCU and adjusting the data in the information area, the problem of low efficiency in terminal security MCU firmware upgrades was solved, realizing an efficient upgrade method that only upgrades the app, and reducing production costs.

CN121833008APending Publication Date: 2026-04-10FUJIAN MOREFUN ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-07
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In existing technologies, firmware upgrade efficiency of terminal security MCUs is low because the boot+app package upgrade method requires setting up dedicated workstations, which affects production efficiency and increases costs.

Method used

The storage partition on the MCU is divided into an information area, a boot area, and an app area. Through verification and information area update processes, the data in the information area is changed from a boot+app package to only boot partition data. Only boot partition verification is performed, and the upgrade method is changed to only app upgrade.

Benefits of technology

It improved firmware upgrade efficiency, reduced production costs, and enabled efficient firmware upgrades without adjusting the production line.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121833008A_ABST
    Figure CN121833008A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for improving terminal firmware upgrading efficiency, equipment and a medium, and relates to the technical field of equipment upgrading. The method comprises the following steps: a partitioning process: partitioning storage partitions on an MCU (Microprogrammed Control Unit), wherein the storage partitions comprise an information area, a boot area and an app area; a verification and detection process: after the MCU finishes programming the packet data and starts up, verifying the packet data, and skipping to boot after the verification is successful; the boot reads firmware information of the app area to perform app verification, and after verification succeeds, the information area is detected; and an information area updating process: judging whether the length of the packet data of the information area exceeds the size of the BOOT partition, if so, updating the data of the information area, so that the ROM only needs to check the BOOT partition. According to the method, the device, the equipment and the medium for improving the firmware upgrading efficiency of the terminal, on the premise that an original production line is not adjusted, firmware upgrading is adjusted to be only app upgrading from an original package boot + app mode, and the upgrading efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of equipment upgrade technology, and in particular to a method, apparatus, device, and medium for improving the efficiency of terminal firmware upgrades. Background Technology

[0002] The terminal security MCU program adopts a "boot (bootloader) + app (application program)" framework design. During production, to ensure efficiency and control costs, the terminal security MCU program is packaged into a unified program package, combining the "boot" and "app" components. Subsequent production lines only need to flash this package once, achieving the dual goals of increased efficiency and reduced costs. If the bootloader and app were flashed separately, dedicated workstations would be required. This would disrupt the continuity of the existing production process, directly impacting overall efficiency, and would also increase production costs due to the added workstations and steps.

[0003] like Figure 1 As shown, currently, after the terminal security MCU powers on, the ROM program verifies the packaged data. If the verification is successful, it jumps to boot, then boots to verify the app, and if successful, jumps to run the app. However, due to changes in customer requirements and program bugs, the app needs to be upgraded frequently, and each upgrade requires both booting and app repackaging, which severely impacts the terminal's upgrade efficiency. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a method, apparatus, equipment and medium for improving the efficiency of terminal firmware upgrades. Without adjusting the original production line, the firmware upgrade is changed from the original package boot+app method to app-only upgrade, which greatly improves the upgrade efficiency.

[0005] In a first aspect, the present invention provides a method for improving the efficiency of terminal firmware upgrades, comprising: Partitioning process: Divide the storage into partitions on the MCU, including an information area, a boot area, and an app area; Verification and testing process: After the MCU finishes burning the packaged data and powers on, the packaged data is verified. If the verification is successful, the boot process is initiated. The boot process reads the firmware information from the app area and performs app verification. If the verification is successful, the information area is then checked. Information area update process: Determine whether the length of the information area packet data exceeds the size of the BOOT partition. If it does, update the information area data so that the ROM only needs to verify the BOOT partition.

[0006] Furthermore, the adjustment of the information area data specifically includes changing the information area data generated by the boot+app package data to the information area data generated only by the boot partition data.

[0007] Furthermore, the information area update process also includes: after the information area data is successfully updated and the app verification is successful, the user is redirected to the app.

[0008] Furthermore, it also includes: Upgrade process: The upgrade package has been changed from updating the original boot+app package to updating only the app.

[0009] Secondly, the present invention provides an apparatus for improving the efficiency of terminal firmware upgrades, comprising: The partitioning module is used to divide the storage into partitions on the MCU, including an information area, a boot area, and an app area; The verification and detection module is used to verify the packaged data after the MCU has finished burning the packaged data and powered on. If the verification is successful, it will jump to the boot section. The boot section reads the firmware information in the app area to perform app verification. If the verification is successful, it will check the information area. The information area update module is used to determine whether the length of the information area packet data exceeds the size of the BOOT partition. If it does, the information area data is updated so that the ROM only needs to verify the BOOT partition.

[0010] Furthermore, the information area update module specifically includes adjusting the information area data by changing the information area data generated from the boot+app package data to the information area data generated only from the boot partition data.

[0011] Furthermore, the information area update module is also used to: after the information area data is successfully updated and the app verification is successful, redirect to the app.

[0012] Furthermore, it also includes: an upgrade module, where the upgrade package has been changed from the original boot+app package to only update the app.

[0013] Thirdly, the present invention provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described in the first aspect.

[0014] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0015] The technical solutions provided in the embodiments of the present invention have at least the following technical effects: By adjusting the data generation method from boot+app package to only boot package data, subsequent ROMs only need to verify the BOOT partition, without needing to consider the app partition. Firmware upgrades are thus changed from the original boot+app package method to app-only upgrades, significantly improving upgrade efficiency. This has been tested and verified in products, proving its feasibility, reducing production costs, and improving firmware upgrade efficiency.

[0016] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0017] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0018] Figure 1 This is a schematic diagram of the system framework in the prior art; Figure 2 This is a flowchart illustrating the overall process of the method in Embodiment 1 of the present invention. Figure 3 This is a flowchart illustrating the execution of the method in Embodiment 1 of the present invention; Figure 4 This is a schematic diagram of the device in Embodiment 2 of the present invention; Figure 5 This is a schematic diagram of the electronic device in Embodiment 3 of the present invention; Figure 6 This is a schematic diagram of the structure of the medium in Embodiment 4 of the present invention. Detailed Implementation

[0019] This application provides a method, apparatus, device, and medium to improve the efficiency of terminal firmware upgrades, changing the original boot+app package upgrade method to app-only upgrades, thus greatly improving upgrade efficiency.

[0020] The overall concept of the technical solution in this application is as follows: Without setting up separate dedicated workstations, and only performing a one-time flashing of the boot+app combined program package, by adjusting and updating the information area data generated by the boot+app combination package of the terminal security MCU to only generate information area data of the boot package, subsequent ROMs only need to verify the boot partition, without needing to verify the app partition. Thus, firmware upgrades are changed from the original combination package boot+app method to only app upgrades, thereby improving upgrade efficiency. Example 1

[0021] This embodiment provides a method to improve the efficiency of terminal firmware upgrades, such as... Figure 2 As shown, it includes: S1. Partitioning process: Divide the storage into partitions on the MCU, including the information area, boot area and app area; S2. Verification and detection process: After the MCU finishes burning the package data and powers on for the first time, the package data is verified. If the verification is successful, the boot process is initiated. The boot process reads the firmware information in the app area to perform app verification. If the verification is successful, the information area is checked. S3. Information Area Update Process: Determine if the length of the information area packaged data exceeds the size of the BOOT partition. If it does, update the information area data, adjusting the information area data generated from the boot+app packaged data to information area data generated only from the boot partition data, so that the ROM only needs to verify the BOOT partition. After the information area data update is successful and the app verification is successful, jump to the app.

[0022] When upgrading the terminal security MCU via APP, the upgrade process will also be improved by changing the upgrade package from a boot + app package update to an app update only, thus improving upgrade efficiency.

[0023] In one specific embodiment, such as Figure 3 As shown, the implementation process is as follows: 1) Storage partitioning on the terminal security MCU: Information area, boot area, and app area: Information area: Includes information such as packet hash verification value and packet data length, which is written by the flashing tool after the packet data has been flashed; boot area: boot program and reserved space; App section: App firmware information + app program and reserved space.

[0024] 2) After the terminal security MCU is programmed and powered on for the first time, the ROM will verify the data packet. If the verification is successful, it will jump to the boot process.

[0025] 3) The boot process reads the firmware information from the app area for verification. If the verification is successful, the information area is checked.

[0026] 4) If the length of the information area package data exceeds the size of the boot partition, the information area data will be adjusted. The information area data generated by the boot + app package data will be changed to the information area data generated by only the boot partition data. Then, the information area containing only boot data will be written into the information area. In this way, the ROM will only need to verify the BOOT partition and will not need to care about the app partition.

[0027] On the production line, the data downloaded via toolkit will initially exceed the boot partition size in the information area. After the information area is adjusted and updated, it will not exceed the boot partition size, and no further adjustment is needed.

[0028] 5) After the information area is successfully updated and the app is successfully verified, the user will be redirected to the app.

[0029] The firmware upgrade method described above has been changed from the original boot + app package method to support app-only upgrades, greatly improving upgrade efficiency.

[0030] Based on the same inventive concept, this application also provides an apparatus corresponding to the method in Embodiment 1, as detailed in Embodiment 2. Example 2

[0031] This embodiment provides a device for improving the efficiency of terminal firmware upgrades, such as... Figure 4 As shown, it includes: The partitioning module is used to divide the storage into partitions on the MCU, including an information area, a boot area, and an app area; The verification and detection module is used to verify the packaged data after the MCU has finished burning the packaged data and powered on. If the verification is successful, it will jump to the boot section. The boot section reads the firmware information in the app area to perform app verification. If the verification is successful, it will check the information area. The information area update module is used to determine whether the length of the information area packet data exceeds the size of the BOOT partition. If it does, the information area data is updated so that the ROM only needs to verify the BOOT partition.

[0032] Specifically, the information area update module adjusts the information area data by changing the information area data generated from the boot+app package data to information area data generated only from the boot partition data.

[0033] Specifically, the information area update module is also used to: after the information area data is successfully updated and the app verification is successful, redirect to the app.

[0034] Specifically, it also includes: upgrade modules, where the upgrade package has been changed from the original boot+app package to only update the app.

[0035] Since the apparatus described in Embodiment 2 of the present invention is an apparatus used to implement the method of Embodiment 1 of the present invention, those skilled in the art can understand the specific structure and variations of the apparatus based on the method described in Embodiment 1 of the present invention, and therefore will not be described again here. All apparatuses used in the method of Embodiment 1 of the present invention fall within the scope of protection of the present invention.

[0036] Based on the same inventive concept, this application provides an electronic device embodiment corresponding to Embodiment 1, as detailed in Embodiment 3. Example 3

[0037] This embodiment provides an electronic device, such as... Figure 5 As shown, it includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it can implement any of the embodiments in Example 1.

[0038] Since the electronic device described in this embodiment is the device used to implement the method in Embodiment 1 of this application, those skilled in the art can understand the specific implementation method and various variations of the electronic device in this embodiment based on the method described in Embodiment 1 of this application. Therefore, how the electronic device implements the method in the embodiment of this application will not be described in detail here. Any device used by those skilled in the art to implement the method in the embodiment of this application falls within the scope of protection of this application.

[0039] Based on the same inventive concept, this application provides a storage medium corresponding to Embodiment 1, as detailed in Embodiment 4. Example 4

[0040] This embodiment provides a computer-readable storage medium, such as... Figure 6 As shown, a computer program is stored thereon, which, when executed by a processor, can implement any of the embodiments in Example 1.

[0041] Since the computer-readable storage medium described in this embodiment is the same computer-readable storage medium used to implement the method in Embodiment 1 of this application, those skilled in the art can understand the specific implementation methods and various variations of the computer-readable storage medium in this embodiment based on the method described in Embodiment 1 of this application. Therefore, how this computer-readable storage medium implements the method in the embodiments of this application will not be described in detail here. Any computer-readable storage medium used by those skilled in the art to implement the method in the embodiments of this application falls within the scope of protection of this application.

[0042] The technical solutions provided in this application embodiment have at least the following technical effects: By adjusting the data generation method from boot+app package to only boot package data, subsequent ROM updates only require verification of the BOOT partition, eliminating the need to check the app partition. Firmware upgrades are thus changed from the original boot+app package method to app-only upgrades, significantly improving upgrade efficiency. This has been tested and verified in products, proving its feasibility, reducing production costs, and improving firmware upgrade efficiency. Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0043] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0044] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0045] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0046] While specific embodiments of the present invention have been described above, those skilled in the art should understand that the specific embodiments described are merely illustrative and not intended to limit the scope of the present invention. Equivalent modifications and variations made by those skilled in the art in accordance with the spirit of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for improving the efficiency of terminal firmware upgrades, characterized in that, include: Partitioning process: Divide the storage into partitions on the MCU, including an information area, a boot area, and an app area; Verification and testing process: After the MCU finishes burning the packaged data and powers on, the packaged data is verified. If the verification is successful, the boot process is initiated. The boot process reads the firmware information from the app area and performs app verification. If the verification is successful, the information area is then checked. Information area update process: Determine whether the length of the information area packet data exceeds the size of the BOOT partition. If it does, update the information area data so that the ROM only needs to verify the BOOT partition.

2. The method according to claim 1, characterized in that: The specific adjustments to the information area data include changing the information area data generated from the boot+app package data to the information area data generated only from the boot partition data.

3. The method according to claim 1, characterized in that, The information area update process also includes: after the information area data is successfully updated and the app verification is successful, the user is redirected to the app.

4. The method according to claim 1, characterized in that, Also includes: Upgrade process: The upgrade package has been changed from updating the boot + app package together to updating only the app.

5. An apparatus for improving the efficiency of terminal firmware upgrades, characterized in that, include: The partitioning module is used to divide the storage into partitions on the MCU, including an information area, a boot area, and an app area; The verification and detection module is used to verify the packaged data after the MCU has finished burning the packaged data and powered on. If the verification is successful, it will jump to the boot section. The boot section reads the firmware information in the app area to perform app verification. If the verification is successful, it will check the information area. The information area update module is used to determine whether the length of the information area packet data exceeds the size of the BOOT partition. If it does, the information area data is updated so that the ROM only needs to verify the BOOT partition.

6. The apparatus according to claim 5, characterized in that: In the information area update module, the adjustment of information area data specifically includes changing the information area data generated by the boot+app package data to the information area data generated only by the boot partition data.

7. The apparatus according to claim 5, characterized in that, The information area update module is also used to: after the information area data is successfully updated and the app verification is successful, redirect to the app.

8. The apparatus according to claim 5, characterized in that, Also includes: The upgrade module and upgrade package have been changed from a boot + app package to one that only updates the app.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1 to 4.