Dual storage chip startup upgrade system, method, device, medium and product
Through independent connections between the baseboard management controller and two serial peripheral interfaces and complex programmable logic device setting flags, dual memory chips can be upgraded simultaneously, which solves the problem of long traditional upgrade time and improves efficiency.
Patent Information
- Application Number
- CN202410763765.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-13
AI Technical Summary
The traditional dual memory chip upgrade solution requires two upgrades and two restarts, which results in a long upgrade time and takes up too much time.
The baseboard management controller is independently connected to the two serial peripheral interfaces of the main memory chip and the backup memory chip. The complex programmable logic device sets the flag bit to determine the startup position and upgrades respectively through different serial peripheral interfaces. Achieve simultaneous upgrade of two memory chips.
This effectively reduces the time it takes to upgrade dual memory chips, ensuring that the upgrade time is consistent with the upgrade time of a single memory chip.
Smart Images

Figure CN118349290B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of storage servers, and in particular to a startup upgrade system, method, device, medium and product for dual storage chips. Background Art
[0002] Baseboard Management Controller (BMC) is widely used in servers. The firmware of BMC is stored in the storage chip (flash). The traditional BMC flash solution uses a single flash chip and can divide the flash into primary and backup partitions to realize the primary and backup functions, such as Figure 1 The figure shows a schematic diagram of a BMC flash master and backup partition provided by the conventional technology. The storage chip of the baseboard management controller includes a master partition and a backup partition. The master partition and the backup partition have their respective corresponding start addresses and end addresses, such as the master partition start address 0x00, the master partition end address 0x1000; the backup partition start address 0x2000, and the backup partition end address 0x3000. When the storage system is started, it is started from the flash of the master partition by default. When the master partition is damaged or cannot be started normally, it is started from the backup partition.
[0003] When you need to upgrade the BMC flash, you need to upgrade the flash of the primary partition first, and then upgrade the flash of the backup partition. The upgrade time cannot be parallel. If the BMC flash is damaged during the upgrade process, it may be that both partitions cannot be started normally.
[0004] As users' requirements for security increase, storage servers are gradually developing from single BMC flash to dual BMC flash, that is, including independent main flash and backup flash. The dual BMC flash scenario provides a self-remediation solution for upgrade failures, improving system security. However, the dual BMC flash upgrade solution generally upgrades the main flash first, and then upgrades the backup BMC flash after the main flash upgrade is completed and restarted. The entire implementation process requires two upgrades and two restarts, which takes a long time and takes up too much upgrade time.
[0005] It can be seen that how to reduce the time spent on dual memory chip upgrade is a problem that those skilled in the art need to solve. Summary of the invention
[0006] The purpose of the embodiments of the present invention is to provide a dual memory chip startup upgrade system, method, device, medium and product, which can solve the problem that the dual memory chip upgrade takes a long time.
[0007] In order to solve the above technical problems, an embodiment of the present invention provides a dual memory chip startup upgrade system, comprising a baseboard management controller, a complex programmable logic device, a switch component, a main memory chip and a backup memory chip; the baseboard management controller is connected to the main memory chip through a first serial peripheral interface, and the baseboard management controller is connected to the backup memory chip through a second serial peripheral interface; the switch component is connected to the main memory chip and the backup memory chip respectively;
[0008] The complex programmable logic device is connected to the baseboard management controller and the switch component respectively, and is used to set flag bits for the main storage chip and the backup storage chip according to the working states of the main storage chip and the backup storage chip after the system is turned on; wherein the flag bits include a normal startup flag bit and an abnormal startup flag bit;
[0009] The baseboard management controller is used to determine the startup position based on the respective flag bits of the main storage chip and the backup storage chip; when the startup position is to start from the main storage chip, the main storage chip is upgraded through the first serial peripheral interface, and the backup storage chip is upgraded through the second serial peripheral interface; when the startup position is to start from the backup storage chip, the backup storage chip is upgraded through the first serial peripheral interface; and restart after the upgrade is completed.
[0010] On the one hand, the complex programmable logic device is used to determine whether a heartbeat signal transmitted by the baseboard management controller is received within a set time after the system is turned on; if a heartbeat signal transmitted by the baseboard management controller is received within the set time, a normal startup flag is set for the main storage chip.
[0011] On the one hand, the complex programmable logic device is used to set an abnormal startup flag for the main storage chip and control the switch component to switch to the backup storage chip to restart the baseboard management controller and the backup storage chip if the heartbeat signal transmitted by the baseboard management controller is not received within a set time; determine whether the heartbeat signal transmitted by the baseboard management controller is received within a set time; set an abnormal startup flag for the backup storage chip if the heartbeat signal transmitted by the baseboard management controller is not received within a set time; and set a normal startup flag for the backup storage chip if the heartbeat signal transmitted by the baseboard management controller is received within a set time.
[0012] On the one hand, the complex programmable logic device is used to switch the selection signal of the switch component to the backup storage chip through a universal input and output interface, so that the baseboard management controller can be connected to the backup storage chip through the first serial peripheral interface and the switch component.
[0013] On the one hand, the complex programmable logic device is used to transmit a message of replacing spare parts to the baseboard management controller when both the main storage chip and the backup storage chip set abnormal startup flag bits.
[0014] On the one hand, it also includes the central processing unit;
[0015] The central processor is connected to the baseboard management controller and is used to detect the firmware version number of the baseboard management controller when receiving a firmware upgrade instruction from the baseboard management controller; and send the firmware upgrade instruction to the baseboard management controller when the firmware version number is inconsistent with the version number carried in the firmware upgrade instruction;
[0016] The baseboard management controller is used to execute the step of determining the startup position according to the respective flag bits of the main storage chip and the backup storage chip when receiving the firmware upgrade instruction sent by the central processing unit.
[0017] On the one hand, the baseboard management controller is used to detect whether the firmware version number of the main storage chip is consistent with the version number carried in the firmware upgrade instruction and whether the firmware version number of the backup storage chip is consistent with the version number carried in the firmware upgrade instruction, respectively, when the startup position is to start from the main storage chip; when the firmware version number of the main storage chip is consistent with the version number carried in the firmware upgrade instruction, the upgrade operation of the main storage chip is not performed; when the firmware version number of the main storage chip is inconsistent with the version number carried in the firmware upgrade instruction, the main storage chip is upgraded through the first serial peripheral interface; when the firmware version number of the backup storage chip is consistent with the version number carried in the firmware upgrade instruction, the upgrade operation of the backup storage chip is not performed; when the firmware version number of the backup storage chip is inconsistent with the version number carried in the firmware upgrade instruction, the backup storage chip is upgraded through the second serial peripheral interface.
[0018] On the one hand, the baseboard management controller is used to detect whether the firmware version number of the backup storage chip is consistent with the version number carried in the firmware upgrade instruction when the startup position is to start from the backup storage chip; when the firmware version number of the backup storage chip is consistent with the version number carried in the firmware upgrade instruction, not executing the upgrade operation of the backup storage chip; when the firmware version number of the backup storage chip is inconsistent with the version number carried in the firmware upgrade instruction, upgrading the backup storage chip through the first serial peripheral interface.
[0019] On the one hand, the baseboard management controller is used to detect whether the firmware version number of the main storage chip is consistent with the version number carried in the firmware upgrade instruction; when the firmware version number of the main storage chip is consistent with the version number carried in the firmware upgrade instruction, the upgrade operation of the main storage chip is not performed; when the firmware version number of the main storage chip is inconsistent with the version number carried in the firmware upgrade instruction, the main storage chip is upgraded through the first serial peripheral interface.
[0020] On the one hand, the baseboard management controller is used to determine the startup position as starting from the main storage chip when the flag bit of the main storage chip is the normal startup flag bit; and to determine the startup position as starting from the backup storage chip when the flag bit of the main storage chip is the abnormal startup flag bit and the flag bit of the backup storage chip is the normal startup flag bit.
[0021] On the one hand, the baseboard management controller is used to not perform the storage chip upgrade operation when the flag bit of the main storage chip is the abnormal startup flag bit and the flag bit of the backup storage chip is the abnormal startup flag bit.
[0022] The embodiment of the present invention further provides a startup upgrade method of a dual storage chip, which is applicable to a baseboard management controller, and the method includes:
[0023] Determine the startup position according to the respective flags of the main memory chip and the backup memory chip; wherein the respective flags of the main memory chip and the backup memory chip are determined by a complex programmable logic device according to the working states of the main memory chip and the backup memory chip after the system is turned on;
[0024] In the case where the startup position is to start from the main memory chip, the main memory chip is upgraded through a first serial peripheral interface, and the backup memory chip is upgraded through a second serial peripheral interface;
[0025] When the startup position is to start from the standby storage chip, upgrading the standby storage chip through the first serial peripheral interface;
[0026] Reboot after the upgrade is complete.
[0027] The embodiment of the present invention further provides a startup upgrade device of a dual storage chip, comprising:
[0028] Memory for storing computer programs;
[0029] The processor is used to execute the computer program to implement the steps of the startup upgrade method of the dual storage chip as described above.
[0030] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the startup upgrade method of the dual memory chip as described above are implemented.
[0031] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned dual memory chip startup upgrade method when executed by a processor.
[0032] It can be seen from the above technical scheme that the dual memory chip startup upgrade system includes a baseboard management controller, a complex programmable logic device, a switch component, a main memory chip and a backup memory chip; the baseboard management controller is connected to the main memory chip through a first serial peripheral interface, and the baseboard management controller is connected to the backup memory chip through a second serial peripheral interface; the switch component is connected to the main memory chip and the backup memory chip respectively. The complex programmable logic device is connected to the baseboard management controller and the switch component respectively, and is used to set flags for the main memory chip and the backup memory chip according to the working status of the main memory chip and the backup memory chip after the system is turned on; wherein the flags include a normal startup flag and an abnormal startup flag; the baseboard management controller is used to determine the startup position according to the flags of the main memory chip and the backup memory chip; when the startup position is to start from the main memory chip, the main memory chip is upgraded through the first serial peripheral interface, and the backup memory chip is upgraded through the second serial peripheral interface; when the startup position is to start from the backup memory chip, the backup memory chip is upgraded through the first serial peripheral interface; after the upgrade is completed, restart. The beneficial effect of the present invention is that the complex programmable logic device realizes the connection with the main memory chip and the backup memory chip through the switch component, and the switching selection of the main memory chip and the backup memory chip can be realized. By independently connecting the two memory chips through the two serial peripheral interfaces of the baseboard management controller, the two memory chips can be upgraded at the same time, ensuring that the upgrade time is consistent with the upgrade time of a single memory chip. Compared with the traditional dual memory chip upgrade method, this solution effectively reduces the time spent on dual memory chip upgrade. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A schematic diagram of a BMC flash primary and backup partition provided for traditional technology;
[0035] Figure 2 A schematic diagram of the structure of a dual memory chip startup upgrade system provided by an embodiment of the present invention;
[0036] Figure 3 A flowchart of a method for starting and upgrading a dual storage chip provided by an embodiment of the present invention;
[0037] Figure 4 A structural diagram of a dual storage chip startup upgrade device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0040] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0041] In the traditional solution, the dual memory chip upgrade solution generally upgrades the main memory chip first, and then upgrades the backup memory chip after the main memory chip is upgraded and restarted, and restarts after the backup memory chip is upgraded. The entire implementation process requires two upgrades and two restarts, which takes a long time to upgrade and takes up too much upgrade time.
[0042] Therefore, the embodiments of the present invention provide a dual memory chip startup upgrade system, method, device, medium and product, wherein the complex programmable logic device is connected to the main memory chip and the backup memory chip through a switch component, and the switching selection of the main memory chip and the backup memory chip can be realized, and the two memory chips are independently connected through the two serial peripheral interfaces of the baseboard management controller, so that the two memory chips can be upgraded simultaneously, ensuring that the upgrade time is consistent with the upgrade time of a single memory chip, and effectively reducing the time spent on the dual memory chip upgrade.
[0043] Next, a dual memory chip startup upgrade system provided by an embodiment of the present invention is described in detail. Figure 2 A structural schematic diagram of a dual-storage chip startup upgrade system provided for an embodiment of the present invention, the system includes a baseboard management controller 11, a complex programmable logic device 12, a switch component 13, a main storage chip 14 and a backup storage chip 15; the baseboard management controller 11 is connected to the main storage chip 14 through a first serial peripheral interface, and the baseboard management controller 11 is connected to the backup storage chip 15 through a second serial peripheral interface; the switch component 13 is respectively connected to the main storage chip 14 and the backup storage chip 15.
[0044] In the embodiment of the present invention, the baseboard management controller 11 can be connected to different memory chips through different serial peripheral interfaces (SPI). For ease of description, SPI0 can be used to represent the first serial peripheral interface, and SPI1 can be used to represent the second serial peripheral interface.
[0045] The complex programmable logic device 12 is connected to the baseboard management controller 11 and the switch component 13 respectively, and is used to set the flag bits for the main storage chip 14 and the backup storage chip 15 according to the working status of the main storage chip 14 and the backup storage chip 15 after the system is turned on; wherein the flag bits include normal startup flag bits and abnormal startup flag bits.
[0046] In practical applications, the complex programmable logic device 12 can identify whether the storage chip of the baseboard management controller 11 is working normally by detecting the heartbeat signal of the baseboard management controller 11 .
[0047] When the system is powered on, the baseboard management controller 11 starts from the main storage chip 14 by default. Therefore, after the system is powered on, the complex programmable logic device 12 can determine whether it receives the heartbeat signal transmitted by the baseboard management controller 11 within the set time to identify whether the main storage chip 14 is working normally.
[0048] The value of the set time is not limited here, for example, it can be set to 30 seconds.
[0049] In order to understand from which memory chip the baseboard management controller 11 is started, a startup flag bit may be set according to whether each memory chip is working normally.
[0050] When the heartbeat signal transmitted by the baseboard management controller 11 is received within the set time, it indicates that the main storage chip 14 can work normally, and the complex programmable logic device 12 can set a normal startup flag bit for the main storage chip 14 .
[0051] If the complex programmable logic device 12 does not receive the heartbeat signal transmitted by the baseboard management controller 11 within the set time, it indicates that there is an abnormality in the main storage chip 14. At this time, the abnormal start flag can be set for the main storage chip 14, and the switch component 13 can be controlled to switch to the backup storage chip 15 to restart the baseboard management controller 11 and the backup storage chip 15.
[0052] After switching to the backup storage chip 15 and completing the restart, the complex programmable logic device 12 can determine whether the heartbeat signal transmitted by the baseboard management controller 11 is received within the set time; if the heartbeat signal transmitted by the baseboard management controller 11 is not received within the set time, it means that there is an abnormality in the backup storage chip, and at this time, an abnormal startup flag can be set for the backup storage chip 15. If the heartbeat signal transmitted by the baseboard management controller 11 is received within the set time, it means that the backup storage chip 15 can work normally, and at this time, a normal startup flag can be set for the backup storage chip 15.
[0053] In an embodiment of the present invention, when the flag bit of the main storage chip 14 is a normal startup flag bit, the baseboard management controller 11 can determine the startup position as starting from the main storage chip 14; when the flag bit of the main storage chip 14 is an abnormal startup flag bit and the flag bit of the backup storage chip 15 is a normal startup flag bit, the baseboard management controller 11 can determine the startup position as starting from the backup storage chip 15.
[0054] When the flag bit of the main memory chip 14 is the abnormal startup flag bit and the flag bit of the backup memory chip 15 is the abnormal startup flag bit, it indicates that there are problems with both memory chips, and the memory chip upgrade operation may not be performed at this time.
[0055] Considering that the baseboard management controller 11 can only be started through SPI0, when starting up, whether starting up from the main memory chip 14 or starting up from the backup memory chip 15, it is necessary to ensure that the memory chip is connected to the SPI0 channel of the baseboard management controller 11. In the embodiment of the present invention, the purpose of selecting and using the switch component is also to ensure that the backup memory chip 15 can be connected to the SPI0 channel of the baseboard management controller 11 when starting up.
[0056] When switching the backup memory chip 15 , the complex programmable logic device 12 can switch the selection signal of the switch component 13 to the backup memory chip 15 through the general purpose input / output (GPIO) interface, so that the baseboard management controller 11 can be connected with the backup memory chip 15 through the first serial peripheral interface and the switch component 13 . Figure 2 The middle dotted line indicates the path between the baseboard management controller 11 and the backup memory chip 15 .
[0057] The baseboard management controller 11 is used to determine the startup position according to the respective flag bits of the main storage chip 14 and the backup storage chip 15; when the startup position is to start from the main storage chip 14, the main storage chip 14 is upgraded through the first serial peripheral interface, and the backup storage chip 15 is upgraded through the second serial peripheral interface; when the startup position is to start from the backup storage chip 15, the backup storage chip 15 is upgraded through the first serial peripheral interface; and restart is performed after the upgrade is completed.
[0058] When the abnormal start flag is set for both the main storage chip 14 and the backup storage chip 15, it indicates that there are abnormalities in both the main storage chip 14 and the backup storage chip 15. At this time, the complex programmable logic device 12 can transmit a message of replacing spare parts to the baseboard management controller 11, so that the management personnel can repair or replace the main storage chip 14 and the backup storage chip 15 in time.
[0059] In the embodiment of the present invention, the firmware upgrade control of the baseboard management controller 11 can be implemented by the central processing unit. The central processing unit is connected to the baseboard management controller 11, and is used to detect the firmware version number of the baseboard management controller 11 when receiving the firmware upgrade instruction of the baseboard management controller 11; when the firmware version number is inconsistent with the version number carried in the firmware upgrade instruction, the firmware upgrade instruction is issued to the baseboard management controller 11. The firmware upgrade instruction can carry a firmware file.
[0060] The baseboard management controller 11 is used to execute the step of determining the startup position according to the respective flag bits of the main storage chip 14 and the backup storage chip 15 when receiving the firmware upgrade instruction sent by the central processing unit.
[0061] When performing a firmware upgrade, you can first check the firmware version number of each storage chip to confirm whether an upgrade is required.
[0062] In the case where the boot position is to boot from the main memory chip 14, it means that the main memory chip 14 can run normally, and at this time, the main memory chip 14 and the backup memory chip 15 can be upgraded simultaneously. Considering that the firmware versions of the main memory chip 14 and the backup memory chip 15 may be different, the main memory chip 14 and the backup memory chip 15 may not both have a firmware upgrade requirement, so the baseboard management controller 11 can respectively detect whether the firmware version number of the main memory chip 14 is consistent with the version number carried in the firmware upgrade instruction, and whether the firmware version number of the backup memory chip 15 is consistent with the version number carried in the firmware upgrade instruction.
[0063] When the firmware version number of the main storage chip 14 is consistent with the version number carried in the firmware upgrade instruction, it indicates that the main storage chip 14 does not require a firmware upgrade, and the upgrade operation of the main storage chip 14 may not be performed.
[0064] When the firmware version number of the main storage chip 14 is inconsistent with the version number carried in the firmware upgrade instruction, it indicates that the main storage chip 14 has a firmware upgrade requirement, and the baseboard management controller 11 can upgrade the main storage chip 14 through the first serial peripheral interface.
[0065] When the firmware version number of the backup storage chip 15 is consistent with the version number carried in the firmware upgrade instruction, it indicates that the backup storage chip 15 does not require a firmware upgrade, and the upgrade operation of the backup storage chip 15 may not be performed.
[0066] When the firmware version number of the standby storage chip 15 is inconsistent with the version number carried in the firmware upgrade instruction, it indicates that the standby storage chip 15 has a firmware upgrade requirement, and the baseboard management controller 11 can upgrade the standby storage chip 15 through the second serial peripheral interface.
[0067] In the embodiment of the present invention, when the startup position of the baseboard management controller 11 is started from the main storage chip 14, if both the main storage chip 14 and the backup storage chip 15 have firmware upgrade requirements, the firmware upgrade of the main storage chip 14 can be implemented through SPI0, and the firmware upgrade of the backup storage chip 15 can be implemented through SPI1, thereby realizing the simultaneous upgrade of the main storage chip 14 and the backup storage chip 15. Compared with the traditional method in which the firmware of the main storage chip 14 can only be upgraded first, and then the firmware of the backup storage node 15 is upgraded after restarting, this solution effectively saves the time spent on firmware upgrade.
[0068] In the case where the boot position is to boot from the backup storage chip 15, it indicates that there is an abnormality in the main storage chip 14. At this time, the baseboard management controller 11 can only detect whether the firmware version number of the backup storage chip 15 is consistent with the version number carried in the firmware upgrade instruction. In the case where the firmware version number of the backup storage chip 15 is consistent with the version number carried in the firmware upgrade instruction, it indicates that the backup storage chip 15 does not have a need for firmware upgrade, and the upgrade operation of the backup storage chip 15 can be ignored. In the case where the firmware version number of the backup storage chip 15 is inconsistent with the version number carried in the firmware upgrade instruction, it indicates that the backup storage chip 15 has a need for firmware upgrade, and the backup storage chip 15 can be upgraded through the first serial peripheral interface.
[0069] Considering that in actual applications, when an abnormality exists in the main storage chip 14, upgrading its firmware may solve its abnormality. Therefore, when the boot position is to boot from the backup storage chip 15, the baseboard management controller 11 can also detect whether the firmware version number of the main storage chip 14 is consistent with the version number carried in the firmware upgrade instruction. In the case where the firmware version number of the main storage chip 14 is consistent with the version number carried in the firmware upgrade instruction, it means that the main storage chip 14 does not have a firmware upgrade requirement, and the upgrade operation of the main storage chip 14 can be ignored. In the case where the firmware version number of the main storage chip 14 is inconsistent with the version number carried in the firmware upgrade instruction, the main storage chip 14 can be upgraded through the first serial peripheral interface.
[0070] After the upgrade is completed, the working status of the main storage chip 14 can be re-detected. If the main storage chip 14 is still abnormal, the baseboard management controller 11 can report an abnormal alarm message of the main storage chip 14 to the central processor.
[0071] In the embodiment of the present invention, in order to verify whether the firmware of the storage chip is successfully upgraded, the baseboard management controller 11 may verify the firmware content on each storage chip.
[0072] In practical applications, the Message-Digest Algorithm 5 (MD5) can be used to calculate the checksum.
[0073] When the central processing unit transmits a firmware file to the baseboard management controller 11, it can carry the MD5 value corresponding to the firmware file. Taking the firmware upgrade operation of the main storage chip 14 as an example, after completing the firmware upgrade operation of the main storage chip 14, the baseboard management controller 11 can read the firmware file on the main storage chip 14 and calculate the MD5 value of the firmware file. It is determined whether the MD5 value is consistent with the MD5 value transmitted by the central processing unit. If the two are consistent, it means that the firmware upgrade of the main storage chip 14 is successful. Similarly, taking the firmware upgrade operation of the backup storage chip 15 as an example, after completing the firmware upgrade operation of the backup storage chip 15, the baseboard management controller 11 can read the firmware file on the backup storage chip 15 and calculate the MD5 value of the firmware file. It is determined whether the MD5 value is consistent with the MD5 value transmitted by the central processing unit. If the two are consistent, it means that the firmware upgrade of the backup storage chip 15 is successful.
[0074] In the embodiment of the present invention, whether the firmware file on the storage chip has the risk of data loss or tampering can be identified based on the MD5 value of the firmware file, and whether the firmware of the storage chip is successfully upgraded can be accurately identified.
[0075] It can be seen from the above technical scheme that the dual memory chip startup upgrade system includes a baseboard management controller, a complex programmable logic device, a switch component, a main memory chip and a backup memory chip; the baseboard management controller is connected to the main memory chip through a first serial peripheral interface, and the baseboard management controller is connected to the backup memory chip through a second serial peripheral interface; the switch component is connected to the main memory chip and the backup memory chip respectively. The complex programmable logic device is connected to the baseboard management controller and the switch component respectively, and is used to set flags for the main memory chip and the backup memory chip according to the working status of the main memory chip and the backup memory chip after the system is turned on; wherein the flags include a normal startup flag and an abnormal startup flag; the baseboard management controller is used to determine the startup position according to the flags of the main memory chip and the backup memory chip; when the startup position is to start from the main memory chip, the main memory chip is upgraded through the first serial peripheral interface, and the backup memory chip is upgraded through the second serial peripheral interface; when the startup position is to start from the backup memory chip, the backup memory chip is upgraded through the first serial peripheral interface; after the upgrade is completed, restart. The beneficial effect of the present invention is that the complex programmable logic device realizes the connection with the main memory chip and the backup memory chip through the switch component, and the switching selection of the main memory chip and the backup memory chip can be realized. By independently connecting the two memory chips through the two serial peripheral interfaces of the baseboard management controller, the two memory chips can be upgraded at the same time, ensuring that the upgrade time is consistent with the upgrade time of a single memory chip. Compared with the traditional dual memory chip upgrade method, this solution effectively reduces the time spent on dual memory chip upgrade.
[0076] Figure 3 A flowchart of a dual memory chip startup upgrade method provided by an embodiment of the present invention is applicable to a baseboard management controller, and the method includes:
[0077] S301: Determine the startup position according to the respective flag bits of the main storage chip and the backup storage chip.
[0078] The respective flag bits of the main memory chip and the backup memory chip are determined by the complex programmable logic device according to the working states of the main memory chip and the backup memory chip after the system is turned on.
[0079] S302: When the boot position is to boot from the main memory chip, the main memory chip is upgraded through the first serial peripheral interface, and the standby memory chip is upgraded through the second serial peripheral interface.
[0080] S303: When the boot position is to boot from the backup memory chip, the backup memory chip is upgraded through the first serial peripheral interface.
[0081] S304: Restart after the upgrade is completed.
[0082] Figure 3 The description of the features in the corresponding embodiments can be found in Figure 2 The relevant descriptions of the corresponding embodiments will not be repeated here one by one.
[0083] It can be seen from the above technical scheme that the startup position is determined according to the respective flags of the main memory chip and the backup memory chip. Among them, the respective flags of the main memory chip and the backup memory chip can be determined by the complex programmable logic device according to the working status of the main memory chip and the backup memory chip after the system is turned on. In the case where the startup position is to start from the main memory chip, the main memory chip is upgraded through the first serial peripheral interface, and the backup memory chip is upgraded through the second serial peripheral interface. In the case where the startup position is to start from the backup memory chip, the backup memory chip is upgraded through the first serial peripheral interface. Restart after the upgrade is completed. The beneficial effect of the present invention is that the complex programmable logic device can detect the working status of the main memory chip and the backup memory chip, thereby controlling the switching selection of the main memory chip and the backup memory chip. By independently connecting the two memory chips through the two serial peripheral interfaces of the baseboard management controller, the simultaneous upgrade of the two memory chips can be realized, ensuring that the upgrade time is consistent with the upgrade time of a single memory chip. Compared with the traditional dual memory chip upgrade method, this scheme effectively reduces the time spent on the dual memory chip upgrade.
[0084] Figure 4 A structural diagram of a dual memory chip startup upgrade device provided by an embodiment of the present invention, such as Figure 4As shown, the startup upgrade device of the dual memory chip includes: a memory 40 for storing computer programs;
[0085] The processor 41 is used to implement the steps of the dual memory chip startup upgrade method in the above embodiment when executing a computer program.
[0086] The dual memory chip startup upgrade device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0087] Among them, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 41 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 41 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 41 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0088] The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used to store the following computer program 401, wherein, after the computer program is loaded and executed by the processor 41, the relevant steps of the startup upgrade method of the dual storage chip disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 402 may include Windows, Unix, Linux, etc. Data 403 may include but is not limited to flag bits of the main storage chip and the backup storage chip, etc.
[0089] In some embodiments, the boot upgrade device of dual memory chips may further include a display screen 42 , an input / output interface 43 , a communication interface 44 , a power supply 45 , and a communication bus 46 .
[0090] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the boot upgrade device of dual memory chips, and may include more or fewer components than those shown in the figure.
[0091] It is understandable that if the startup upgrade method of the dual storage chip in the above embodiment is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the current technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program codes.
[0092] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the startup upgrade method of the dual storage chip as described above are implemented.
[0093] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned dual memory chip startup upgrade method when executed by a processor.
[0094] The above is a detailed introduction to a dual memory chip startup upgrade system, method, device, medium and product provided by an embodiment of the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0095] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0096] The above is a detailed introduction to the dual memory chip startup upgrade system, method, device, medium and product provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A dual memory chip startup upgrade system, characterized in that: It includes a baseboard management controller, a complex programmable logic device, a switch component, a main memory chip and a backup memory chip; the baseboard management controller is connected to the main memory chip through a first serial peripheral interface, and the baseboard management controller is connected to the backup memory chip through a second serial peripheral interface; the switch component is connected to the main memory chip and the backup memory chip respectively; The complex programmable logic device is connected to the baseboard management controller and the switch component respectively, and is used to set flags for the main storage chip and the backup storage chip according to the working states of the main storage chip and the backup storage chip after the system is turned on; wherein the flags include a normal startup flag and an abnormal startup flag; when the flag of the main storage chip is an abnormal startup flag, the selection signal of the switch component is switched to the backup storage chip through the universal input and output interface, so that the baseboard management controller is connected to the backup storage chip through the first serial peripheral interface and the switch component; The baseboard management controller is used to determine the startup position based on the respective flag bits of the main storage chip and the backup storage chip; when the startup position is to start from the main storage chip, the main storage chip is upgraded through the first serial peripheral interface, and the backup storage chip is upgraded through the second serial peripheral interface; when the startup position is to start from the backup storage chip, the backup storage chip is upgraded through the first serial peripheral interface; and restart after the upgrade is completed.
2. The dual memory chip startup upgrade system according to claim 1, characterized in that: The complex programmable logic device is used to determine whether a heartbeat signal transmitted by the baseboard management controller is received within a set time after the system is turned on; if the heartbeat signal transmitted by the baseboard management controller is received within the set time, a normal startup flag is set for the main storage chip.
3. The dual memory chip startup upgrade system according to claim 2, characterized in that: The complex programmable logic device is used to set an abnormal startup flag for the main storage chip and control the switch component to switch to the backup storage chip to restart the baseboard management controller and the backup storage chip if the heartbeat signal transmitted by the baseboard management controller is not received within a set time; and to determine whether the heartbeat signal transmitted by the baseboard management controller is received within a set time; If the heartbeat signal transmitted by the baseboard management controller is not received within a set time, an abnormal startup flag is set for the backup storage chip; if the heartbeat signal transmitted by the baseboard management controller is received within a set time, a normal startup flag is set for the backup storage chip.
4. The dual memory chip startup upgrade system according to claim 3, characterized in that: The complex programmable logic device is used to transmit a message of replacing spare parts to the baseboard management controller when both the main storage chip and the spare storage chip are set with abnormal startup flag bits.
5. The dual memory chip startup upgrade system according to claim 1, characterized in that: It also includes the central processing unit; The central processor is connected to the baseboard management controller and is used to detect the firmware version number of the baseboard management controller when receiving a firmware upgrade instruction from the baseboard management controller; When the firmware version number is inconsistent with the version number carried in the firmware upgrade instruction, issuing the firmware upgrade instruction to the baseboard management controller; The baseboard management controller is used to execute the step of determining the startup position according to the respective flag bits of the main storage chip and the backup storage chip when receiving the firmware upgrade instruction sent by the central processing unit.
6. The dual memory chip startup upgrade system according to claim 5, characterized in that: The baseboard management controller is used to detect whether the firmware version number of the main storage chip is consistent with the version number carried in the firmware upgrade instruction, and whether the firmware version number of the standby storage chip is consistent with the version number carried in the firmware upgrade instruction when the startup position is to start from the main storage chip; When the firmware version number of the main storage chip is consistent with the version number carried in the firmware upgrade instruction, the upgrade operation of the main storage chip is not performed; When the firmware version number of the main storage chip is inconsistent with the version number carried in the firmware upgrade instruction, upgrading the main storage chip through the first serial peripheral interface; When the firmware version number of the standby storage chip is consistent with the version number carried in the firmware upgrade instruction, the upgrade operation of the standby storage chip is not performed; When the firmware version number of the standby storage chip is inconsistent with the version number carried in the firmware upgrade instruction, the standby storage chip is upgraded through the second serial peripheral interface.
7. The dual memory chip startup upgrade system according to claim 5, characterized in that: The baseboard management controller is used to detect whether the firmware version number of the backup storage chip is consistent with the version number carried in the firmware upgrade instruction when the startup position is to start from the backup storage chip; When the firmware version number of the standby storage chip is consistent with the version number carried in the firmware upgrade instruction, the upgrade operation of the standby storage chip is not performed; When the firmware version number of the standby storage chip is inconsistent with the version number carried in the firmware upgrade instruction, the standby storage chip is upgraded through the first serial peripheral interface.
8. The dual memory chip startup upgrade system according to claim 7, characterized in that: The baseboard management controller is used to detect whether the firmware version number of the main storage chip is consistent with the version number carried in the firmware upgrade instruction; When the firmware version number of the main storage chip is consistent with the version number carried in the firmware upgrade instruction, the upgrade operation of the main storage chip is not performed; When the firmware version number of the main storage chip is inconsistent with the version number carried in the firmware upgrade instruction, the main storage chip is upgraded through the first serial peripheral interface.
9. The dual memory chip startup upgrade system according to any one of claims 1 to 8, characterized in that: The baseboard management controller is used to determine the startup position as starting from the main storage chip when the flag bit of the main storage chip is the normal startup flag bit; and to determine the startup position as starting from the backup storage chip when the flag bit of the main storage chip is the abnormal startup flag bit and the flag bit of the backup storage chip is the normal startup flag bit.
10. The dual memory chip startup upgrade system according to claim 9, characterized in that: The baseboard management controller is used for not executing the storage chip upgrade operation when the flag bit of the main storage chip is the abnormal startup flag bit and the flag bit of the standby storage chip is the abnormal startup flag bit.
11. A startup upgrade method for a dual storage chip, characterized in that: Applicable to a baseboard management controller, the method comprises: The startup position is determined according to the respective flags of the main memory chip and the backup memory chip; wherein the respective flags of the main memory chip and the backup memory chip are determined by a complex programmable logic device according to the working states of the main memory chip and the backup memory chip after the system is turned on; when the flag of the main memory chip is an abnormal startup flag, the complex programmable logic device switches the selection signal of the switch component to the backup memory chip through the universal input and output interface, so that the baseboard management controller is connected with the backup memory chip through the first serial peripheral interface and the switch component; In the case where the startup position is to start from the main memory chip, the main memory chip is upgraded through a first serial peripheral interface, and the backup memory chip is upgraded through a second serial peripheral interface; When the startup position is to start from the standby storage chip, upgrading the standby storage chip through the first serial peripheral interface; Reboot after the upgrade is complete.
12. A startup upgrade device with dual storage chips, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program to implement the steps of the dual memory chip startup upgrade method as claimed in claim 11.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the startup upgrade method of the dual memory chip as claimed in claim 11 are implemented.
14. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the startup upgrade method of the dual memory chip described in claim 11 are implemented.
