Nothing Special   »   [go: up one dir, main page]

CN119376751A - External firmware upgrade method, chip, test equipment and storage medium - Google Patents

External firmware upgrade method, chip, test equipment and storage medium Download PDF

Info

Publication number
CN119376751A
CN119376751A CN202310922872.2A CN202310922872A CN119376751A CN 119376751 A CN119376751 A CN 119376751A CN 202310922872 A CN202310922872 A CN 202310922872A CN 119376751 A CN119376751 A CN 119376751A
Authority
CN
China
Prior art keywords
firmware
memory
controller
read
external
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310922872.2A
Other languages
Chinese (zh)
Inventor
严冲喜
魏益新
陈晓东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Longsys Electronics Co Ltd
Original Assignee
Shenzhen Longsys Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Longsys Electronics Co Ltd filed Critical Shenzhen Longsys Electronics Co Ltd
Priority to CN202310922872.2A priority Critical patent/CN119376751A/en
Publication of CN119376751A publication Critical patent/CN119376751A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

本申请提供一种外置固件的升级方法、芯片、测试设备及存储介质,应用于控制器,所述控制器连接第一存储器与第二存储器,所述方法包括:响应上电操作,从所述第一存储器中读取第一固件;当检测到所述第二存储器中存储有第二固件时,读取所述第二固件;若所述第一固件与所述第二固件不同,将所述第二固件写入所述第一存储器,以使所述第一存储进行固件升级。上述方法能够提高外置固件的升级效率。

The present application provides an external firmware upgrade method, chip, test equipment and storage medium, which are applied to a controller, wherein the controller is connected to a first memory and a second memory, and the method comprises: in response to a power-on operation, reading a first firmware from the first memory; when detecting that a second firmware is stored in the second memory, reading the second firmware; if the first firmware is different from the second firmware, writing the second firmware to the first memory, so that the first memory performs a firmware upgrade. The above method can improve the upgrade efficiency of the external firmware.

Description

Upgrading method of external firmware, chip, testing equipment and storage medium
Technical Field
The present application relates to the field of firmware upgrade, and in particular, to an external firmware upgrade method, a chip, a test device, and a storage medium.
Background
External firmware is typically stored in an external memory, such as a memory (SPI flash) that communicates based on a serial peripheral interface (SERIAL PERIPHERAL INTERFACE, SPI) communication protocol. When external firmware needs to be updated, a special SPI (serial peripheral interface) burner is generally adopted to burn new firmware into the SPI flash, but when the firmware is burnt each time, a user is often required to manually connect one SPI burner with one SPI flash, so that a large amount of labor cost and time cost are consumed. In addition, in the burning process, the upper computer is required to control the burning, so that the operation load of the upper computer is increased, and the upgrading efficiency of the external firmware is low.
Disclosure of Invention
The embodiment of the application discloses an external firmware upgrading method, a chip, test equipment and a storage medium, which solve the technical problem of low external firmware upgrading efficiency.
The application provides an upgrading method of external firmware, which is applied to a controller, wherein the controller is connected with a first memory and a second memory; when the second firmware is detected to be stored in the second memory, the second firmware is read; and if the first firmware is different from the second firmware, writing the second firmware into the first memory so as to upgrade the first memory.
In some optional embodiments, after the second firmware is read, the method further includes calculating a check code of the second firmware, and if the check code is the same as a preset check code, determining that the second firmware is successfully checked.
In some alternative embodiments, after determining that the second firmware verification is successful, the method further includes obtaining a version number of the first firmware and a version number of the second firmware, and determining that the first firmware is different from the second firmware if the version number of the first firmware is different from the version number of the second firmware.
In some alternative embodiments, after writing the second firmware into the first memory, the method further comprises reading the second firmware in the first memory, and triggering the first memory to execute a firmware upgrade if the second firmware read from the first memory is the same as the second firmware read from the second memory.
In some alternative embodiments, the second firmware read from the first memory is the same as the second firmware read from the second memory, including calculating a check code of the second firmware read from the first memory, obtaining a version number of the second firmware read from the first memory, and if the version number of the second firmware read from the first memory is the same as the version number of the second firmware read from the second memory, and the check code calculated when the second firmware is read from the first memory is the same as the check code calculated when the second firmware is read from the second memory, determining that the second firmware read from the first memory is the same as the second firmware read from the second memory.
In some alternative embodiments, the method further comprises performing a test procedure on the second memory using the first firmware when a second firmware cannot be detected from the second memory.
In some optional embodiments, the controller is connected to an upper computer, and the method further includes receiving a prompt message that the upgrade of the first memory is completed, and sending an indication message to the upper computer, where the indication message is used to instruct the upper computer to remove the second memory.
The application further provides a chip, which comprises a processor and a memory, wherein the processor is connected with the memory, the memory is used for storing program instructions, and the processor is used for reading the program instructions stored in the memory so as to realize an upgrading method of external firmware.
The application also provides test equipment, which comprises a chip and a memory.
The application also provides a computer readable storage medium, wherein the computer readable storage medium is stored with a computer program, and the upgrading method of the external firmware is realized when the computer program is executed by a chip.
The application also provides a test device, which comprises a chip and a computer readable storage medium, wherein the chip is used for executing a computer program stored in the computer readable storage medium so as to realize an upgrading method of external firmware.
In the method for upgrading the external firmware, the controller responds to the power-on operation of the controller, the second firmware in the second memory is utilized to upgrade the first firmware of the first memory, an external device (such as an SPI (serial peripheral interface) burner) is not required to be controlled by the upper computer to perform testing, the operation pressure of the upper computer is reduced to a certain extent, and the upgrading efficiency of the external firmware is improved.
Drawings
Fig. 1 is an application scenario schematic diagram of an upgrade method of external firmware provided in an embodiment of the present application.
Fig. 2 is a flowchart of an upgrade method of external firmware according to an embodiment of the present application.
Fig. 3 is an installation schematic diagram of a second memory according to an embodiment of the present application.
Fig. 4 is a flowchart of an upgrade method of external firmware according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a controller according to an embodiment of the present application.
Detailed Description
For ease of understanding, a description of some of the concepts related to the embodiments of the application are given by way of example for reference.
In the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or" describes an association relationship of associated objects, meaning that there may be three relationships, e.g., A and/or B may mean that A alone exists, while A and B together exist, and B alone exists, where A, B may be singular or plural. The terms "first," "second," "third," "fourth" and the like in the description and in the claims and drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
External firmware is typically stored in an external memory, such as a memory (SPI flash) that communicates based on a serial peripheral interface (SERIAL PERIPHERAL INTERFACE, SPI) communication protocol. When external firmware needs to be updated, a special SPI (serial peripheral interface) burner is generally adopted to burn new firmware into the SPI flash, but when the firmware is burnt each time, a user is often required to manually connect one SPI burner with one SPI flash, so that a large amount of labor cost and time cost are consumed. In addition, in the burning process, the upper computer is required to control the burning, so that the operation load of the upper computer is increased, and the upgrading efficiency of the external firmware is low.
In order to improve the upgrading efficiency of the external firmware, the embodiment of the application provides an upgrading method, a chip, a test device and a storage medium of the external firmware, and an application scenario of the upgrading method of the external firmware is described below.
Fig. 1 is an application scenario schematic diagram of an upgrade method of external firmware provided in an embodiment of the present application. The method for upgrading the external firmware provided in the embodiment of the application is applied to the controller 101, the controller 101 may be a main control chip in the test device 10 for controlling other chips in the test device 10, wherein the other chips may be a first memory 102 and a second memory 103, the controller 101 is respectively connected with the first memory 102 and the second memory 103, and after the controller 101 is powered on (power-on operation is executed), the controller 101 reads the firmware in the first memory 102 and the second memory 103.
The test device 10 is connected with the upper computer 20, and when the test device 10 finishes upgrading, an instruction message can be sent to the upper computer 20 to instruct the upper computer 20 to remove the second memory 103.
The test apparatus 10 may include a plurality of test boards, each of which includes a controller 101, a first memory 102, and a second memory 103. A test socket (e.g., a chip slot) is provided on each test base for mounting the second memory 103, and the second memory 103 is a detachable chip. The test equipment 10 may be a test rack for performing test upgrades to the first memory 102.
The upper computer 20 may be a party that can actively initiate a command, or may be a party that receives an instruction, for example, the upper computer 20 receives instruction information sent after the controller 101 of the test device 10 is upgraded, and the upper computer 20 sends instruction information for removing the second memory 103 to a device such as a manipulator after receiving the instruction information. The host computer 20 may include, but is not limited to, a personal computer (Personal Computer, PC), a central processing unit (Central Processing Unit, CPU), etc., which is not limited to the present application.
The controller 101 may be a micro controller unit (Microcontroller Unit, MCU) chip, which is also called a single chip Microcomputer (SINGLE CHIP microcomputers) or a single chip Microcomputer, and is configured to properly reduce the frequency and specification of the cpu, integrate peripheral interfaces such as a memory, a counter, a USB, etc. on a single chip, and form a chip-level computer for different applications. The controller 101 may also be a digital signal processing technology (Digital SignalProcessing) chip, i.e., a DSP chip that can implement digital signal processing technology. The controller 101 may also be a Field programmable gate array (Field-ProgrammableGate Array) chip, which may be implemented as a semi-custom circuit in the Application Specific Integrated Circuit (ASIC) Field, which overcomes the disadvantages of custom circuits and the limited number of gates in the original programmable device.
The first memory 102 may be a serial peripheral interface memory (SPI flash).
The second Memory 103 may be a Flash Memory (Flash Memory).
In order to solve the above-mentioned problems, referring to fig. 2, fig. 2 is a flowchart of an upgrade method of external firmware provided in an embodiment of the present application, which is applied to a controller (e.g. the controller 101 of fig. 1). The order of the steps in the flowchart may be changed and some steps may be omitted according to various needs.
In step S201, in response to the power-on operation, the first firmware is read from the first memory.
In some embodiments of the present application, a trigger program may be provided within the controller that is responsive to a power-up operation, such as when the controller is powered up (is performing a power-up operation), to trigger the controller to perform a read operation that reads the first firmware within the first memory. The controller is mounted on the same test backplane as the first memory, and when the controller is powered up, the controller reads Firmware (Firmware) from the first memory, for example, reads the first Firmware from the first memory. Firmware refers to a set of programs or software that are cured in a non-volatile memory.
In step S202, when it is detected that the second firmware is stored in the second memory, the second firmware is read.
In some embodiments of the application, the test apparatus includes a plurality of test boards, each of which is provided with a first memory to be tested or upgraded, a controller, and a chip slot in which a second memory may be placed. To upgrade the first firmware, a second memory may be installed on a chip slot of a test chassis on which the first firmware is installed.
Fig. 3 is an installation schematic diagram of a second memory according to an embodiment of the present application. As shown in fig. 3, an external firmware (such as a first firmware) is disposed in the first memory, and in order to upgrade the external firmware (such as the first firmware) of the first memory by using the firmware (such as the second firmware) of the second memory, the second memory may be installed on a chip slot of the test board, and as shown in fig. 3, the test board is further installed with a controller and the first memory.
In some embodiments of the present application, as shown in fig. 3, the upper computer writes the second firmware in batches into the plurality of second memories through the Nand controller before the second memories are mounted to the chip slots of the test backplane, wherein the Nand controller and the controller on the test backplane may be the same type of chip controller. In order to burn the second firmware into the second memories in batches, a plurality of second memories can be placed on a circuit board, and the circuit board can be a circuit board built in an upper computer or a circuit board externally connected with the upper computer, so that the application is not limited. After the upper computer burns the second firmware to the second memory, the upper computer can control the manipulator to install the second memory on the test bottom plate of the test equipment, or can install the second memory on the test bottom plate in a manual mode, and the application is not limited to the above.
In some embodiments of the present application, after the controller is powered on, on the one hand, the first firmware in the first memory is read, on the other hand, whether the second memory has the first firmware, for example, the second firmware is detected, and if the controller detects that the second memory has the second firmware, the second firmware is read out, so that the upgrade operation is performed later, for example, the step S203 is further performed.
In some embodiments of the present application, after the second firmware is read from the second memory, the controller may perform a cyclic redundancy check (Cyclic Redundancy Check, CRC) on the second firmware in order to verify the integrity and correctness of the read second firmware. CRC (cyclic redundancy check) is a data transmission error detection technology, and is implemented by calculating a check code according to a preset algorithm on data at a transmitting end, attaching the obtained check code to the back of a data frame and transmitting the data frame to a receiving end together. The receiving end verifies the received data and the check code according to the same algorithm so as to judge whether the received data is correct and complete. The preset algorithm can be a polynomial division algorithm, a binary division algorithm, a Hamming code algorithm and a hash algorithm.
In an example, taking a preset algorithm as a polynomial division algorithm as an example, the polynomial division algorithm is performed on the second firmware, and a remainder is obtained as the check code. After the check code is obtained, comparing the check code with a preset check code, and if the check code is the same as the preset check code, determining that the second firmware is successfully checked, wherein the second firmware read by the controller is complete and correct. The preset check code may be a check code stored in the second memory in advance, as shown in fig. 3, before the second firmware is burned into the second memory, the Nand controller calculates the preset check code of the second firmware, and the second firmware carrying the preset check code is burned into the Nand controller. The way the check code is calculated by the Nand controller is the same as the way the check code is calculated by the controller.
In another example, taking a preset algorithm as a hash algorithm as an example, hash operation is performed on the second firmware, and data in the second firmware is mapped to an output value with a fixed length to obtain a hash value of the second firmware. After the check code is obtained, comparing the check code with a preset check code, and if the check code is the same as the preset check code, determining that the second firmware is successfully checked, wherein the second firmware read by the controller is complete and correct.
In other embodiments of the present application, the second firmware may not be burned into the second memory before the second memory is mounted to the chip slot of the test floor. After the controller is powered on, if the controller does not detect that the second memory contains the second firmware, determining that the second memory does not execute firmware burning. When the controller cannot detect the second firmware from the second memory, the read first firmware can be utilized to execute a test procedure on the second memory.
In an example, after the controller is powered up and the second memory is mounted on the test backplane, when the controller cannot read the second firmware from the second memory, the test procedure may be performed on the second memory using the first firmware read from the first memory. The test flow may include, but is not limited to, testing a write operation to the second memory, testing a read operation to the second memory, and testing an erase operation to the second memory. The specific test flow can be set according to the model of the memory or the practical application, and the application is not limited.
In step S203, if the first firmware is different from the second firmware, the second firmware is written into the first memory to upgrade the first memory.
In some embodiments of the present application, after the controller reads the first firmware and the second firmware, the controller may compare whether the first firmware and the second firmware are identical, for example, whether the version number of the first firmware is identical to the version number of the second firmware, and if the version number of the first firmware is different from the version number of the second firmware, determine that the first firmware is different from the second firmware. If the first firmware is different from the second firmware, the first firmware is old firmware, and the upgrade operation needs to be performed. The upper computer is connected with the testing equipment, if the first firmware is the same as the second firmware, the upper computer can be instructed to execute the testing process on the second memory and remove the second memory after the testing process is finished, or the upper computer is instructed to directly remove the second memory, and the application is not limited to the above.
In some embodiments of the present application, after the controller determines that the first firmware is different from the second firmware, the second firmware is written into the first memory, so that the first memory is subjected to firmware upgrade. After the second firmware is written into the first memory, in order to verify whether the written second firmware is complete and correct, the written second firmware may be read from the first memory, a check code of the second firmware read from the first memory may be calculated, and a version number of the second firmware may be obtained, so as to perform verification. If the version number of the second firmware read from the first memory is the same as the version number of the second firmware read from the second memory, and the check code calculated when the second firmware is read from the first memory is the same as the check code calculated when the second firmware is read from the second memory, it is determined that the second firmware read from the first memory is the same as the second firmware read from the second memory.
In an example, for convenience of description, a version number carried when the controller reads the second firmware from the second memory is taken as the first version number, and a version number carried when the controller reads the second firmware from the first memory is taken as the second version number. The first version number is used to check the second version number. The check code of the second firmware read by the controller from the second memory is used as a first check code, and the first check code can be a preset check code carried when the second firmware is written into the second memory, or can be a check code calculated when the controller reads the second firmware from the second memory. And taking the check code calculated when the controller reads the second firmware from the first memory as a second check code. The first check code is used for checking the second check code.
If the first version number is different from the second version number, it means that the controller may write the wrong version into the first memory, or may be the case that the firmware writing abnormality causes the version number to be disordered, etc. If the first version number is different from the second version number, the controller can send prompt information to the upper computer to prompt the upper computer to issue an upgrade instruction again, or prompt the upper computer to remove the second memory and replace other memories storing the second firmware, for example, when the upper computer receives an instruction that the upgrade is unsuccessful, the current second memory is removed by using the manipulator, a new second memory is installed, and after the installation is completed, the upgrade instruction is issued again.
If the first version number is the same as the second version number, the first check code and the second check code can be compared to be the same, if the first check code and the second check code are different, the situation that the second firmware is lost in the writing process is indicated, a new second memory can be installed through the upper computer, and the power-on operation is executed on the controller again to execute the upgrading program. If the first check code is the same as the second check code, the first memory is triggered to be upgraded by the second firmware, and the controller sends prompt information of upgrading completion to the upper computer after the upgrading is finished. The above is merely an example, and the verification code may be verified a priori to verify the version number, or the verification code and the version number may be verified simultaneously, which is not limited by the comparison of the present application.
In an example, as shown in fig. 3, the test device may be a test cabinet, and includes a plurality of test boards, for example, there are 100 test boards, which means that there are 100 first storage devices to be upgraded, and assuming that there are 10 second memories in which the second firmware has been burned, the host computer may control the manipulator to install the 10 second memories on the chip slots of the 10 test boards, and when the host computer receives the prompt information of the upgrade completion, the host computer may control the manipulator to detach the 10 second memories and install the same on the chip slots of another 10 test boards, for example, the first time of installation on the test boards A1 to a10, the second time of installation on the test boards a11 to a20, which is just an example, and the practical application is not limited thereto.
In the embodiment of the application, the controller can respond to the power-on operation, directly execute the upgrade operation without the participation of the upper computer in the upgrade process, and the upper computer can remove the second memory when receiving the indication information of the controller, so that the operation pressure of the upper computer can be reduced to a certain extent. In the embodiment, the verification work is executed in the controller, so that the calculated amount of the upper computer can be reduced. For example, in the related art, the upper computer needs to control the SPI burner one by one to upgrade the firmware of each first memory to be upgraded, so that not only is more control programs needed to be executed, but also verification calculation is needed to be considered. Assuming that 100 first storage devices need to be upgraded, such methods require the host computer to control and execute 100 times, and each time a check calculation needs to be performed. In the present embodiment, assuming that 100 first storage devices need to be upgraded, after 10 second memories are configured, the controller controls to execute 10 times, and the upper computer controls the installation/removal of the second memories 10 times. In addition, when the second firmware in the second memory is not detected, the embodiment of the application can start the test flow of the second memory, and can reduce the test cost and the test time to a certain extent.
In the embodiment of the application, the controller responds to the power-on operation of the controller, the second firmware in the second memory is utilized to upgrade the first firmware of the first memory, and an external device (such as an SPI (serial peripheral interface) burner) is not required to be controlled by an upper computer to carry out a test, so that the operation pressure of the upper computer is reduced to a certain extent, and the upgrade efficiency of the external firmware is improved.
Fig. 4 is a flowchart of an upgrade method of external firmware provided in an embodiment of the present application, as shown in fig. 4, including the following steps:
in step S401, the controller reads the first firmware from the first memory in response to the power-on operation.
In step S402, the controller detects whether there is a second firmware in the second memory.
In some embodiments of the present application, if the second firmware in the second memory cannot be detected, step S403 is performed, and if the second firmware in the second memory is detected, step S404 is performed continuously.
In step S403, the controller executes the test procedure on the second memory by using the first firmware until the test procedure is finished, and sends a prompt message of finishing the test to the upper computer.
In step S404, the controller determines whether the first firmware and the second firmware are the same.
In some embodiments of the present application, if the first firmware is the same as the second firmware, the step S403 is executed, and if the first firmware is different from the second firmware, the step S405 is executed continuously.
In step S405, the controller writes the second firmware into the first memory, and upgrades the firmware of the first memory.
In step S406, the controller determines whether the upgrade is completed.
In some embodiments of the present application, if the upgrade is not completed, step S406 may be performed continuously, and if the upgrade is completed, step S407 may be performed continuously.
In step S407, the controller sends prompt information of the upgrade completion to the upper computer.
In step S408, the upper computer controls the manipulator to remove and install the second firmware on the other test base plate until all the first memories in the test equipment are upgraded.
In some embodiments of the present application, the specific descriptions of step S401 to step S408 may refer to the embodiment shown in fig. 2, and the descriptions are not repeated here.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a controller according to an embodiment of the application. The controller 101 includes, but is not limited to, a memory 11 and a processor 12. In this embodiment, the memory 11 may be an internal memory of the controller 101, that is, a memory built in the controller 101. In other embodiments, the memory 11 may also be an external memory of the host computer 20, i.e. a memory external to the controller 101.
In some embodiments, the memory 11 is used to store program codes and various data, and to implement high-speed, automatic access to programs or data during operation of the controller 101.
The memory 11 may include random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart memory card (SMART MEDIA CARD, SMC), secure Digital (SD) card, flash memory card (FLASH CARD), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
In one embodiment, the Processor 12 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), field-Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any other conventional processor or the like.
The program code and various data in said memory 11 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as a separate product. Based on such understanding, the present application may implement all or part of the procedures in the methods of the embodiments, for example, the upgrading method of the external firmware, or may be implemented by instructing related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of the embodiments of the methods when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), or the like.
It will be appreciated that the above-described division of modules into a logical function division may be implemented in other ways. In addition, each functional module in the embodiments of the present application may be integrated in the same processing unit, or each module may exist alone physically, or two or more modules may be integrated in the same unit. The integrated modules may be implemented in hardware or in hardware plus software functional modules.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present application without departing from the spirit and scope of the technical solution of the present application.

Claims (10)

1.一种外置固件的升级方法,应用于控制器,其特征在于,所述控制器连接第一存储器与第二存储器,所述方法包括:1. A method for upgrading an external firmware, applied to a controller, characterized in that the controller is connected to a first memory and a second memory, and the method comprises: 响应上电操作,从所述第一存储器中读取第一固件;In response to a power-on operation, reading a first firmware from the first memory; 当检测到所述第二存储器中存储有第二固件时,读取所述第二固件;When it is detected that the second firmware is stored in the second memory, reading the second firmware; 若所述第一固件与所述第二固件不同,将所述第二固件写入所述第一存储器,以使所述第一存储进行固件升级。If the first firmware is different from the second firmware, the second firmware is written into the first memory so that the first memory is upgraded. 2.根据权利要求1所述的外置固件的升级方法,其特征在于,所述读取所述第二固件之后,所述方法还包括:2. The external firmware upgrade method according to claim 1, characterized in that after reading the second firmware, the method further comprises: 计算所述第二固件的校验码;Calculating a check code of the second firmware; 若所述校验码与预设的校验码相同,确定所述第二固件校验成功。If the verification code is the same as the preset verification code, it is determined that the second firmware verification is successful. 3.根据权利要求2所述的外置固件的升级方法,其特征在于,在确定所述第二固件校验成功之后,所述方法还包括:3. The external firmware upgrade method according to claim 2, characterized in that after determining that the second firmware is successfully verified, the method further comprises: 获取所述第一固件的版本号以及所述第二固件的版本号;Obtaining a version number of the first firmware and a version number of the second firmware; 若所述第一固件的版本号与所述第二固件的版本号不同,确定所述第一固件与所述第二固件不同。If the version number of the first firmware is different from the version number of the second firmware, it is determined that the first firmware is different from the second firmware. 4.根据权利要求1所述的外置固件的升级方法,其特征在于,在将所述第二固件写入所述第一存储器之后,所述方法还包括:4. The external firmware upgrade method according to claim 1, characterized in that after writing the second firmware into the first memory, the method further comprises: 读取所述第一存储器中的第二固件;Reading the second firmware in the first memory; 若从所述第一存储器中读取的第二固件与从所述第二存储器中读取的第二固件相同,触发所述第一存储器执行固件升级。If the second firmware read from the first memory is the same as the second firmware read from the second memory, the first memory is triggered to perform firmware upgrade. 5.根据权利要求4所述的外置固件的升级方法,其特征在于,所述从所述第一存储器中读取的第二固件与从所述第二存储器中读取的第二固件相同,包括:5. The external firmware upgrade method according to claim 4, wherein the second firmware read from the first memory is the same as the second firmware read from the second memory, comprising: 计算从所述第一存储器中读取的第二固件的校验码;Calculating a check code of the second firmware read from the first memory; 获取从所述第一存储器中读取的第二固件的版本号;Obtaining a version number of the second firmware read from the first memory; 若从所述第一存储器中读取的第二固件的版本号与从所述第二存储器中读取的第二固件的版本号相同,且从所述第一存储器中读取第二固件时计算的校验码与从所述第二存储器中读取第二固件时计算的校验码相同,确定从所述第一存储器中读取的第二固件与从所述第二存储器中读取的第二固件相同。If the version number of the second firmware read from the first memory is the same as the version number of the second firmware read from the second memory, and the check code calculated when reading the second firmware from the first memory is the same as the check code calculated when reading the second firmware from the second memory, it is determined that the second firmware read from the first memory is the same as the second firmware read from the second memory. 6.根据权利要求1所述的外置固件的升级方法,其特征在于,所述方法还包括:6. The external firmware upgrade method according to claim 1, characterized in that the method further comprises: 当无法从所述第二存储器中检测到第二固件时,利用所述第一固件对所述第二存储器执行测试流程。When the second firmware cannot be detected from the second memory, a test process is performed on the second memory using the first firmware. 7.根据权利要求1所述的外置固件的升级方法,其特征在于,所述控制器与上位机连接,所述方法还包括:7. The external firmware upgrade method according to claim 1, characterized in that the controller is connected to a host computer, and the method further comprises: 接收所述第一存储器升级完成的提示信息,向所述上位机发出指示信息,用于指示所述上位机将所述第二存储器移除。Receive prompt information that the upgrade of the first memory is completed, and send instruction information to the host computer to instruct the host computer to remove the second memory. 8.一种芯片,其特征在于,包括处理器、存储器;其中所述处理器与所述存储器相连接;8. A chip, comprising a processor and a memory; wherein the processor is connected to the memory; 所述存储器,用于存储程序指令;The memory is used to store program instructions; 所述处理器,用于读取所述存储器中存储的所述程序指令,以实现如权利要求1至7中任一项所述的外置固件的升级方法。The processor is used to read the program instructions stored in the memory to implement the external firmware upgrade method according to any one of claims 1 to 7. 9.一种测试设备,其特征在于,所述测试设备包括如权利要求8所述的芯片以及存储器。9. A testing device, characterized in that the testing device comprises the chip and the memory according to claim 8. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有至少一个指令,所述至少一个指令被控制器执行时实现如权利要求1至7中任意一项所述的外置固件的升级方法。10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a controller, the external firmware upgrade method according to any one of claims 1 to 7 is implemented.
CN202310922872.2A 2023-07-25 2023-07-25 External firmware upgrade method, chip, test equipment and storage medium Pending CN119376751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310922872.2A CN119376751A (en) 2023-07-25 2023-07-25 External firmware upgrade method, chip, test equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310922872.2A CN119376751A (en) 2023-07-25 2023-07-25 External firmware upgrade method, chip, test equipment and storage medium

Publications (1)

Publication Number Publication Date
CN119376751A true CN119376751A (en) 2025-01-28

Family

ID=94338367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310922872.2A Pending CN119376751A (en) 2023-07-25 2023-07-25 External firmware upgrade method, chip, test equipment and storage medium

Country Status (1)

Country Link
CN (1) CN119376751A (en)

Similar Documents

Publication Publication Date Title
CN100451967C (en) Method for switching basic input output system file and controller capable of supporting switching
CN107885510B (en) Burning tool and burning method capable of simultaneously burning double DSPs
WO2020062887A1 (en) Firmware upgrading method and system based on flash micro-controller, and flash micro-controller
CN112732310B (en) Firmware upgrade method, system, device and medium based on embedded boot partition
US7360137B2 (en) Flash programmer for programming NAND flash and NOR/NAND combined flash
CN102467401A (en) Firmware update method and system for micro-controller unit in power supply unit
CN111897685B (en) Method and device for checking data during power failure, storage medium and electronic equipment
JP2012038305A (en) Data processing system having error detection of set information of peripheral device
TW201508472A (en) System and method of performing firmware update test
CN110865830A (en) Firmware update method and computer system
CN112099597A (en) Board adapting method, device, equipment and machine readable storage medium
CN104731678A (en) RAID storage mode test system and method and electronic device
CN108073738B (en) GPIO (general purpose input/output) verification system and method
CN112181459B (en) CPLD upgrade optimization method and system
CN112148317A (en) Online upgrading device of laser radar system and laser radar system
CN109933374B (en) Computer starting method
CN114895845A (en) EMmC data storage control method and embedded mainboard
CN119376751A (en) External firmware upgrade method, chip, test equipment and storage medium
CN112612500A (en) Method and device for upgrading BMC, electronic equipment and storage medium
CN114579163A (en) Disk firmware upgrading method, computing device and system
CN213211012U (en) An online upgrade device for a laser radar system and a laser radar system
CN113918199B (en) Updating method of bottom firmware program, storage medium and electronic equipment
CN116755735A (en) Online upgrading method and device for embedded software, peritoneal dialysis instrument and storage medium
TWI327710B (en) Method for burning bios online
CN118276985B (en) RISC-V chip starting method, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication