EMMC firmware downloading method, chip, equipment and storage medium
By using the methods of segmented downloading and pause downloading, the abnormal problems caused by system I/O access during the eMMC firmware upgrade process are solved, and an efficient and reliable firmware upgrade process is achieved.
Patent Information
- Application Number
- CN202510796611.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-09-05
AI Technical Summary
During the existing eMMC firmware upgrade process, the host operating system's I/O access may cause firmware upgrade exceptions and user data abnormalities, and high-priority operating system I/O may cause I/O timeouts.
Provided is an eMMC firmware download method that determines the download progress by reading the downloaded firmware information, downloads in segments, and pauses the download during system read and write operations. The download is restarted after completion to ensure the continuity and integrity of the download.
It reduces the waiting time for system read and write operations, improves the efficiency of firmware download, avoids download anomalies and I/O timeouts, and ensures the success of firmware upgrades.
Smart Images

Figure CN120602474A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer memory, and in particular to an eMMC firmware download method, chip, device and storage medium. Background Art
[0002] The eMMC protocol currently supports Field Firmware Update (FFU). After the host enables FFU, it can download the new firmware version to the eMMC and then disable FFU. This step requires the firmware download to be completed within the cycle between enabling and disabling the FFU function. However, this download method has the following drawbacks: the eMMC firmware upgrade process is accompanied by other I / O accesses by the host operating system, which can cause firmware upgrade anomalies and user data anomalies. In addition, the eMMC firmware upgrade process involves file verification and temporary flash storage. If there are high-priority operating system I / O operations at this time, it is bound to cause operating system I / O timeouts and other problems. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to overcome the deficiencies in the prior art and provide an eMMC firmware download method, chip, device and storage medium.
[0004] The present invention provides the following technical solutions: In a first aspect, the present application provides an eMMC firmware download method, comprising: Read the firmware information of the downloaded eMMC firmware, determine the downloaded length according to the firmware information, and determine whether the target eMMC firmware has been downloaded according to the downloaded length; If the target eMMC firmware has not been downloaded, enable the firmware download function; Determine the end node of the downloaded eMMC firmware according to the downloaded length; Determine, according to the end node, a starting position for downloading the remaining eMMC firmware, and download the remaining eMMC firmware from the starting position; If a system read / write operation is detected, the firmware download function is disabled, and the firmware download function is reopened after the system read / write operation is completed.
[0005] In one embodiment, reading the firmware information of the downloaded eMMC firmware and determining the downloaded length according to the firmware information includes: The firmware information field of the eMMC register is read, and the downloaded length of the downloaded eMMC firmware information is obtained from the firmware information field.
[0006] In one embodiment, determining whether the target eMMC firmware has been downloaded completely based on the downloaded length includes: Inserting the target length of the target eMMC firmware into the header information of the target eMMC firmware; Determine whether the downloaded length is equal to the target length. If so, the target eMMC firmware has been downloaded completely.
[0007] In one embodiment, determining the downloaded length according to the firmware information includes: Determining whether there is error information in the firmware information; If the error message exists, clear the downloaded eMMC firmware and set the download length to zero; If the error information does not exist, the downloaded length is determined according to the firmware information.
[0008] In one embodiment, before reading the firmware information of the downloaded eMMC firmware, the process includes: Dividing the target eMMC firmware into multiple eMMC firmware fragments; each of the eMMC firmware fragments is stored in a sector; The determining the end node of the downloaded eMMC firmware according to the downloaded length includes: determining the amount of downloaded data based on the downloaded length; Determining the end of the downloaded data based on the amount of downloaded data; The downloaded sector of the tail data is determined, and the downloaded sector is used as the end node.
[0009] In one embodiment, determining the starting position of the remaining eMMC firmware download according to the end node includes: The next sector of the downloaded sector is used as the starting position for downloading the remaining eMMC firmware.
[0010] In one embodiment, reopening the firmware download function after the system read and write operations are completed includes: After the system read and write operations are completed, determining whether the target eMMC firmware is downloaded; If the download is not complete, reopen the firmware download function; If the download is complete, the download process is ended, and the eMMC firmware is upgraded according to the downloaded target eMMC firmware.
[0011] In a second aspect, the present application provides an eMMC chip, including: A reading module is used to read the firmware information of the downloaded eMMC firmware, determine the downloaded length according to the firmware information, and determine whether the target eMMC firmware has been downloaded according to the downloaded length; An opening module is used to open the firmware download function if the target eMMC firmware has not been downloaded completely; A determination module, configured to determine an end node of the downloaded eMMC firmware according to the downloaded length; A download module, configured to determine a starting location for downloading the remaining eMMC firmware according to the end node, and download the remaining eMMC firmware from the starting location; The segmented download module is used to close the firmware download function if a system read / write operation is detected, and reopen the firmware download function after the system read / write operation is completed.
[0012] In a third aspect, the present application provides an electronic device, comprising an eMMC chip, wherein the eMMC chip further comprises a memory and at least one processor, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the eMMC firmware download method as described in the first aspect.
[0013] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, the eMMC firmware download method as described in the first aspect is implemented.
[0014] The embodiments of the present invention have the following beneficial effects: The eMMC firmware download method provided by the present invention can pause the existing download when a system read / write operation is detected, and continue downloading after the system read / write operation is completed, thereby reducing the waiting time of the system read / write operation. Moreover, the eMMC firmware can be downloaded in multiple cycles, and each download can be continued from the breakpoint at the last pause, without having to start downloading from the beginning, thereby improving the efficiency of firmware downloading.
[0015] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without making any creative efforts.
[0017] Figure 1 A schematic diagram of a method for downloading eMMC firmware is shown; Figure 2 A schematic flow chart of a method for determining whether firmware downloading is complete is shown; Figure 3 A schematic flow chart of a method for determining a download end node is shown; Figure 4 A schematic diagram comparing traditional FFU downloading and resumable downloading is shown; Figure 5 A schematic diagram of the eMMC chip framework structure is shown.
[0018] Description of main component symbols: 500, eMMC chip; 501, reading module; 502, opening module; 503, confirmation module; 504, download module; 505, segmented download module. DETAILED DESCRIPTION
[0019] The following describes embodiments of the present invention in detail. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended only to explain the present invention and are not to be construed as limiting the present invention.
[0020] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be an intermediate element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be an intermediate element. Conversely, when an element is referred to as being "directly on" another element, there is no intermediate element. The terms "vertical," "horizontal," "left," "right," and similar expressions used herein are for illustrative purposes only.
[0021] In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "connect," "fixed," etc. should be understood broadly. For example, they may refer to fixed connection, detachable connection, or integration; mechanical connection or electrical connection; direct connection or indirect connection through an intermediate medium; internal communication between two components or interaction between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.
[0022] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature identified as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meanings as commonly understood by one skilled in the art to which this application belongs. The terms used in the template description herein are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0024] Example 1 See also Figure 1 , Figure 1 This embodiment provides an eMMC firmware download method, which can be applied to eMMC firmware upgrades, including: S101. Read firmware information of the downloaded eMMC firmware, determine the downloaded length according to the firmware information, and determine whether the target eMMC firmware has been downloaded completely according to the downloaded length.
[0025] When reading the firmware information of the downloaded eMMC firmware, all the eMMC files stored in the host for this update, that is, the target eMMC firmware, can be divided into multiple eMMC firmware fragments. Each of the eMMC firmware fragments is stored in a sector, and each time the eMMC firmware is downloaded, one or an integer number of sectors are downloaded.
[0026] Since the eMMC download of this application can be downloaded in multiple times, before each download, it is necessary to read the firmware information of the downloaded eMMC firmware to determine whether the target eMMC file has been downloaded. If the download is complete, the eMMC can perform the firmware upgrade according to the downloaded target eMMC file. If the download is not complete, it is necessary to continue downloading according to the preset download rules.
[0027] In one embodiment, reading firmware information of the downloaded eMMC firmware and determining the downloaded length according to the firmware information includes: The firmware information field of the eMMC register is read, and the downloaded length of the downloaded eMMC firmware information is obtained from the firmware information field.
[0028] Specifically, [305:302] of the EXT_CSD register of the eMMC The NUMBER_OF_FW_SECTORS_CORRECTLY_PROGRAMMED field indicates the length of the upgrade file correctly downloaded and written to the current eMMC device. The host can query this field using CMD8 to obtain the downloaded length of the eMMC firmware information.
[0029] See also Figure 2 , step S101 further includes: S1011. Insert a target length of the target eMMC firmware into the header information of the target eMMC firmware.
[0030] Since the eMMC firmware is downloaded sequentially, the file length of the upgraded firmware can be inserted into the header information of the target eMMC firmware. The eMMC can obtain the file length information of the upgraded firmware, that is, the target length, during the first download.
[0031] S1012: Determine whether the downloaded length is equal to the target length. If so, the target eMMC firmware has been downloaded completely.
[0032] Before each download, first check whether the downloaded length is equal to the target length. If it is, it means that the firmware file for this upgrade has been downloaded. If it is not, you need to continue downloading.
[0033] When downloading eMMC firmware, the download may fail or an error may occur due to various reasons. To ensure a successful firmware update, each time the firmware information of the downloaded eMMC firmware is read, it is necessary to determine whether there is error information in the firmware information. If there is error information, the downloaded eMMC firmware is cleared and the download length is set to zero. The downloaded eMMC firmware may also include information such as register contents and system context. Then, during this download, the complete eMMC firmware is re-downloaded. When an error occurs during the firmware download process, the error status will be marked in the relevant registers and written to the system block. Even if a power outage occurs, the status will be retained. Therefore, when an error occurs, the erroneous eMMC firmware, as well as information such as registers and system context, need to be cleared together.
[0034] If the error information does not exist in the firmware information of the downloaded eMMC firmware, the register and system context resources can be maintained, and then the downloaded length is determined based on the firmware information, and the remaining eMMC firmware is continued to be downloaded.
[0035] This embodiment obtains the length of the downloaded eMMC firmware to determine whether the target eMMC firmware has been downloaded completely, and then chooses whether to continue downloading, thereby avoiding incomplete download of the target eMMC firmware, which may lead to firmware upgrade failure.
[0036] S102: If the target eMMC firmware has not been downloaded completely, enable the firmware download function.
[0037] If you determine that the target eMMC firmware has not been downloaded, open the FFU firmware download function and continue downloading the remaining eMMC firmware. If you determine that the target eMMC firmware has been downloaded, you can end the download process and upgrade the firmware based on the downloaded target eMMC firmware.
[0038] This embodiment determines whether to perform a firmware upgrade or continue downloading by judging whether the target eMMC firmware has been downloaded completely, thereby ensuring that the eMMC firmware upgrade is successful.
[0039] S103: Determine an end node of the downloaded eMMC firmware according to the downloaded length.
[0040] Traditional FFUs download eMMC firmware in a single open and close cycle. That is, the FFU is opened to start downloading and closed after the download is complete. If system read and write operations occur during the download process, a waiting period is required, causing the system read and write operations to time out. If system read and write operations are performed simultaneously with the FFU download, the firmware upgrade will fail.
[0041] If you want to complete the eMMC firmware download within multiple power-on and power-off cycles, you need to implement breakpoint resumable downloading. Breakpoint resumable downloading means that if a file transfer is interrupted, the next transfer will continue downloading the file from the breakpoint without having to download the data from the beginning. Therefore, before each download, you need to first determine the breakpoint when the previous download was interrupted.
[0042] See also Figure 3 , step S103 further includes: S1031. Determine the amount of downloaded data according to the downloaded length.
[0043] Since data is downloaded in sectors as the smallest unit, and when the target eMMC data is divided into multiple eMMC data, each eMMC data may occupy multiple sectors, the amount of data downloaded at one time may be a partial sector of an eMMC data. Therefore, it is necessary to determine the specific sector of the downloaded data based on the amount of downloaded data.
[0044] Specifically, the amount of data that has been downloaded can be obtained from the NUMBER_OF_FW_SECTORS_CORRECTLY_PROGRAMMED[305:302] content of the EXT_CSD register of the eMMC chip.
[0045] S1032: Determine the end data of the downloaded data according to the amount of downloaded data.
[0046] After the amount of downloaded data is obtained, the end data of the downloaded data can be determined based on the relationship between the amount of downloaded data and the total amount of data.
[0047] S1033: Determine the downloaded sector of the tail data, and use the downloaded sector as the end node.
[0048] This embodiment determines the end node of the downloaded eMMC firmware, thereby ensuring that the starting position of the next download is consistent with the end position of the downloaded firmware, avoiding repeated downloads or download errors, ensuring the integrity of the downloaded firmware, and saving download time.
[0049] S104: Determine a starting position for downloading the remaining eMMC firmware according to the end node, and download the remaining eMMC firmware from the starting position.
[0050] Specifically, the next sector of the downloaded sector is used as the starting position for downloading the remaining eMMC firmware.
[0051] That is, if the number of sectors downloaded is 0, the new firmware is downloaded from the first sector; if the number of sectors downloaded is greater than 0, the new firmware is downloaded from the next sector. The sector size depends on the DATA_SECTOR_SIZE
[61] of EXT_CSD. The value of 0x00 indicates a 512B sector size, and 0x01 indicates a 4KB sector size.
[0052] S105: If a system read / write operation is detected, the firmware download function is disabled, and the firmware download function is reopened after the system read / write operation is completed.
[0053] Specifically include: After the system read and write operations are completed, determining whether the target eMMC firmware is downloaded; If the download is not complete, reopen the firmware download function; If the download is complete, the download process is ended, and the eMMC firmware is upgraded according to the downloaded target eMMC firmware.
[0054] Since the priority of eMMC firmware download and upgrade is generally low, in order not to affect the normal operation of the system and avoid system read and write operations, that is, the system I / O waiting time is too long, each time there is a new system I / O, the firmware download function can be turned off so that the system I / O is executed first. When the system I / O is completed, the firmware download is performed again, thereby avoiding the system I / O waiting timeout and allowing the eMMC firmware download to be completed in batches during the system's idle time segment, greatly improving the system's work efficiency.
[0055] See also Figure 4 , Figure 4 This is a comparison diagram between traditional FFU download and resumable download.
[0056] Among them, the upper part of the picture shows the traditional FFU download process. It can be seen that when downloading through the traditional FFU, if there is system I / O during the download process, it is necessary to wait until the FFU is completely downloaded before execution, and the waiting time is long.
[0057] The lower half of the picture shows the breakpoint-resume download process of this application. It can be seen that by splitting the eMMC FFU upgrade process through breakpoint-resume, the FFU download I / O can be dispersed to multiple system I / O processes, solving the hidden dangers of system I / O timeout and possible data abnormality risks.
[0058] Assuming that the system I / O waiting execution time in the original solution is Tm, the I / O execution waiting time after the improved solution becomes Tm / N, where N is the number of FFU splits. Obviously, if N is larger, the Tm value will be smaller, and the impact on the operating system I / O will be smaller.
[0059] Example 2 See also Figure 5 , the present application also provides an eMMC chip 500, including: A reading module 501 is configured to read firmware information of the downloaded eMMC firmware, determine a downloaded length based on the firmware information, and determine whether the target eMMC firmware has been downloaded completely based on the downloaded length; An opening module 502 is used to open a firmware download function if the target eMMC firmware has not been downloaded completely; A determination module 503 is configured to determine an end node of the downloaded eMMC firmware according to the downloaded length; A download module 504 is configured to determine a starting location for downloading the remaining eMMC firmware according to the end node, and download the remaining eMMC firmware from the starting location; The segmented download module 505 is configured to disable the firmware download function if a system read / write operation is detected, and reopen the firmware download function after the system read / write operation is completed.
[0060] It can be understood that the implementation of the eMMC firmware downloading method described in the above embodiment 1 is also applicable to this embodiment, so it will not be repeated here.
[0061] Example 3 The present application also provides a computer device. For example, the computer device may be, but is not limited to, a desktop computer or a laptop. Its form is not limited, depending on whether it supports a browser web page interface display function. Exemplarily, the computer device includes a memory and at least one processor. The memory stores a computer program, and the processor is configured to execute the computer program to implement the eMMC firmware download method described in Example 1 above.
[0062] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application.
[0063] The memory may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.
[0064] Furthermore, the memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; and the data storage area may store data (such as iteration data, version data, etc.) created based on the use of the computer device. Furthermore, the memory may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0065] Example 4 An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the eMMC firmware download method described in the above embodiment 1.
[0066] It can be understood that the implementation of the eMMC firmware downloading method described in the above embodiment 1 is also applicable to this embodiment, so it will not be repeated here.
[0067] The computer-readable storage medium may be either a non-volatile storage medium or a volatile storage medium. For example, the computer-readable storage medium may include, but is not limited to, a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, among other media capable of storing program code.
[0068] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or flowchart, and the combination of boxes in the structure diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.
[0069] In addition, the functional modules or units in the various embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0070] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0071] The above is only a specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the scope of protection of the present application.
[0072] In all examples shown and described herein, any specific values should be interpreted as merely exemplary and not limiting, and thus other examples of the exemplary embodiments may have different values.
[0073] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0074] The above-described embodiments merely illustrate several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that variations and modifications are possible without departing from the scope of the present invention, and such variations and modifications are fully within the scope of protection of the present invention.
Claims
1. A method for downloading eMMC firmware, characterized in that: include: Read the firmware information of the downloaded eMMC firmware, determine the downloaded length according to the firmware information, and determine whether the target eMMC firmware has been downloaded according to the downloaded length; If the target eMMC firmware has not been downloaded, enable the firmware download function; Determine the end node of the downloaded eMMC firmware according to the downloaded length; Determine, according to the end node, a starting position for downloading the remaining eMMC firmware, and download the remaining eMMC firmware from the starting position; If a system read / write operation is detected, the firmware download function is disabled, and the firmware download function is reopened after the system read / write operation is completed.
2. The eMMC firmware download method according to claim 1, wherein The reading of firmware information of the downloaded eMMC firmware and determining the downloaded length according to the firmware information includes: The firmware information field of the eMMC register is read, and the downloaded length of the downloaded eMMC firmware information is obtained from the firmware information field.
3. The eMMC firmware download method according to claim 2, wherein The determining, based on the downloaded length, whether the target eMMC firmware has been downloaded completely includes: Inserting the target length of the target eMMC firmware into the header information of the target eMMC firmware; Determine whether the downloaded length is equal to the target length. If so, the target eMMC firmware has been downloaded completely.
4. The eMMC firmware download method according to claim 1, wherein The determining the downloaded length according to the firmware information includes: Determining whether there is error information in the firmware information; If the error message exists, clear the downloaded eMMC firmware and set the download length to zero; If the error information does not exist, the downloaded length is determined according to the firmware information.
5. The eMMC firmware download method according to claim 1, wherein Before reading the firmware information of the downloaded eMMC firmware, the following steps are included: Dividing the target eMMC firmware into multiple eMMC firmware fragments; each of the eMMC firmware fragments is stored in a sector; The determining the end node of the downloaded eMMC firmware according to the downloaded length includes: determining the amount of downloaded data based on the downloaded length; Determining the end of the downloaded data based on the amount of downloaded data; The downloaded sector of the tail data is determined, and the downloaded sector is used as the end node.
6. The eMMC firmware download method according to claim 5, wherein: The step of determining the starting position of the remaining eMMC firmware download according to the end node includes: The next sector of the downloaded sector is used as the starting position for downloading the remaining eMMC firmware.
7. The eMMC firmware download method according to claim 1, wherein: The step of reopening the firmware download function after the system read and write operations are completed includes: After the system read and write operations are completed, determining whether the target eMMC firmware is downloaded; If the download is not complete, reopen the firmware download function; If the download is complete, the download process is ended, and the eMMC firmware is upgraded according to the downloaded target eMMC firmware.
8. An eMMC chip, characterized in that: include: A reading module is used to read the firmware information of the downloaded eMMC firmware, determine the downloaded length according to the firmware information, and determine whether the target eMMC firmware has been downloaded according to the downloaded length; An opening module is used to open the firmware download function if the target eMMC firmware has not been downloaded completely; A determination module, configured to determine an end node of the downloaded eMMC firmware according to the downloaded length; A download module, configured to determine a starting location for downloading the remaining eMMC firmware according to the end node, and download the remaining eMMC firmware from the starting location; The segmented download module is used to close the firmware download function if a system read / write operation is detected, and reopen the firmware download function after the system read / write operation is completed.
9. An electronic device comprising an eMMC chip, characterized in that: The eMMC chip further includes a memory and at least one processor, the memory storing a computer program, and the processor being configured to execute the computer program to implement the eMMC firmware download method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed, the eMMC firmware download method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Firmware upgrading method and device, terminal equipment and computer readable storage medium
CN113094075A
ECU (Electronic Control Unit) non-inductive upgrade flashing method and device, electronic equipment and storage medium
CN116594660A
Distributed file downloading method and system, electronic equipment and storage medium
CN116760821A
Beacon-type automatic division downloading
JP2017215919A
Cited By
Firmware updating method and device for distributed energy storage system
CN121326371A