Firmware refreshing method and device of basic input and output system and storage medium
By using the link controller in the server to refresh the BIOS firmware in the target memory not occupied by the processor, and completing the refresh of the reference memory after the processor is powered on, the problem of low BIOS firmware refresh efficiency is solved and faster firmware refresh process.
Patent Information
- Application Number
- CN202410865950.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-18
AI Technical Summary
The BIOS firmware refresh efficiency is low, resulting in a long refresh time for the storage server firmware and affecting serviceability.
Deploy the processor, firmware controller and multiple memories in the server, detect and establish the target link through the link controller, first refresh the firmware in the target memory not occupied by the processor, monitor the processor status, and wait for it to be powered on Then refresh the firmware in the reference memory to complete the firmware refresh of the entire system.
The BIOS firmware refresh efficiency is improved, the firmware refresh time is shortened, and the serviceability of the storage server is improved.
Smart Images

Figure CN118796239A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and in particular, to a method, device and storage medium for refreshing firmware of a basic input / output system. Background Art
[0002] BIOS (Basic Input Output System) firmware is an important core component of the motherboard. Online refresh of BIOS firmware is one of the core functions in server firmware management. At present, BMC (Baseboard Manager Controller) needs to shut down the CPU (Central Processing Unit) first and then trigger the refresh to refresh the BIOS firmware out of band. However, due to the limitations of BIOS firmware size and SPI (Serial Peripheral Interface) Flash erase efficiency, BIOS firmware refresh always faces the problem of long refresh time. This problem is further magnified in the dual-chip Flash redundant design of the storage server, resulting in the problem of long refresh time and poor serviceability of the firmware refresh of the entire storage server.
[0003] In view of the problems in the related art such as low firmware refresh efficiency of the basic input and output system, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method, device and storage medium for refreshing firmware of a basic input / output system, so as to at least solve the problem of low refreshing efficiency of firmware of a basic input / output system in the related art.
[0005] According to an embodiment of the present application, a method for refreshing firmware of a basic input / output system is provided. A processor, a firmware controller, a link controller, and multiple memories are deployed on a server. The processor, the firmware controller, and the multiple memories are all connected to the link controller. The multiple memories are all used to store system firmware of the basic input / output system of the server. The method is applied to the link controller, and includes:
[0006] In the case where it is detected that the firmware controller is to refresh the system firmware, controlling the target link between the firmware controller and a target memory among the multiple memories to be connected, wherein the target memory is a memory among the multiple memories except a reference memory currently occupied by the processor, and the firmware controller is used to refresh the system firmware stored in the target memory to a target firmware version through the target link;
[0007] monitoring the operating state of the processor when the system firmware stored in the target memory has been refreshed to the target firmware version;
[0008] In a case where the running state indicates that the processor is to be powered on again, controlling the processor to be in a waiting state for power on, and refreshing the system firmware stored in the reference memory to the target firmware version according to the target firmware version stored in the target memory;
[0009] In a case where the system firmware stored in the reference memory has been updated to the target firmware version, the processor is controlled to end the waiting for power-on state.
[0010] In an exemplary embodiment, a first non-volatile memory is deployed on the link controller; the controlling the processor to be in a state of waiting for power-on and refreshing the system firmware stored in the reference memory to the target firmware version according to the target firmware version stored in the target memory includes: reading first refresh information stored on the first non-volatile memory, wherein the first refresh information is stored in the first non-volatile memory after the firmware controller refreshes the system firmware stored in the target memory to the target firmware version through the target link, and the first refresh information is used to indicate that the system firmware stored in the reference memory has not been refreshed; in response to the first refresh information, controlling the processor to be in a state of waiting for power-on and writing the firmware data of the target firmware version stored in the target memory into the reference memory.
[0011] In an exemplary embodiment, writing the firmware data of the target firmware version stored in the target memory into the reference memory includes: performing data verification on the firmware data of the target firmware version stored in the target memory; if the firmware data of the target firmware version stored in the target memory passes the verification, reading the firmware data on the current sector from the target memory according to the sector; erasing the data on the reference sector corresponding to the current sector on the reference memory, and writing the firmware data on the current sector read into the reference sector until the firmware data of all sectors are written; modifying the first refresh information stored on the first non-volatile memory to second refresh information, wherein the second refresh information is used to indicate that the system firmware stored on the multiple memories have been refreshed.
[0012] In an exemplary embodiment, when the system firmware stored in the reference memory has been refreshed to the target firmware version, controlling the processor to end the waiting power-on state includes: performing data verification on the firmware data of the target firmware version stored in the reference memory; when the firmware data of the target firmware version stored in the reference memory passes the verification, determining that the system firmware stored in the reference memory has been refreshed to the target firmware version; restoring the processor's link access to the multiple memories, wherein the processor's link access to the multiple memories is closed when the processor is in the waiting power-on state; and starting the power-on process of the processor.
[0013] In an exemplary embodiment, when it is detected that the firmware controller is about to refresh the system firmware, controlling the target link connectivity between the firmware controller and the target memory among the multiple memories includes: receiving an access request initiated by the firmware controller, wherein the access request is used to request access to the memory information of the memory among the multiple memories that allows refreshing the system firmware; in response to the access request, sending to the firmware controller the target memory information of the target memory among the multiple memories that is not occupied by the processor, wherein the firmware controller is used to detect the matching degree between the target memory and the firmware refresh condition according to the target memory information; receiving a refresh instruction initiated by the firmware controller when the matching degree is higher than a matching degree threshold, and determining that it is detected that the firmware controller is about to refresh the system firmware, wherein the refresh instruction is used to instruct to open a refresh channel for the system firmware; and in response to the refresh instruction, enabling the target link to an access allowed state.
[0014] In an exemplary embodiment, a second non-volatile memory is deployed on the link controller, and the firmware controller is connected to the second non-volatile memory through a serial bus; the receiving of an access request initiated by the firmware controller includes: receiving the access request initiated by the firmware controller from the serial bus through the second non-volatile memory; the responding to the access request, sending target memory information of the target memory among the multiple memories that is not occupied by the processor to the firmware controller, including: reading the access request from the second non-volatile memory; responding to the access request, detecting the occupation status of the multiple memories by the processor; determining the memory whose occupation status is unoccupied as the target memory; acquiring the target memory information of the target memory; sending the target memory information from the serial bus through the second non-volatile memory; the receiving of a refresh instruction initiated by the firmware controller when the matching degree is higher than the matching degree threshold includes: receiving the refresh instruction initiated by the firmware controller from the serial bus through the second non-volatile memory.
[0015] In an exemplary embodiment, the multiple memories include a first memory and a second memory, the link controller includes a first chip select module and a second chip select module, the processor is connected to the first chip select module, the firmware controller is connected to the second chip select module, the first chip select module is connected to the first memory through a first link, the first chip select module is connected to the second memory through a second link, the second chip select module is connected to the first memory through a third link, and the second chip select module is connected to the second memory through a fourth link; controlling the firmware controller to connect a target link between target memories in the multiple memories, comprises: detecting a first occupancy state of the processor for the first memory and a second occupancy state of the processor for the second memory; when the first occupancy state is occupied and the second occupancy state is unoccupied, controlling the first link to remain connected, the second link to remain disconnected, the third link to remain disconnected, and the fourth link to be connected.
[0016] According to another embodiment of the present application, a basic input / output system firmware refresh device is provided, wherein a processor, a firmware controller, a link controller, and a plurality of memories are deployed on a server, wherein the processor, the firmware controller, and the plurality of memories are all connected to the link controller, and the plurality of memories are all used to store the system firmware of the basic input / output system of the server, and the device is applied to the link controller, and the device comprises:
[0017] A first control module is configured to control the target link between the firmware controller and a target memory among the multiple memories to be connected when it is detected that the firmware controller is to refresh the system firmware, wherein the target memory is a memory among the multiple memories except a reference memory currently occupied by the processor, and the firmware controller is configured to refresh the system firmware stored in the target memory to a target firmware version through the target link;
[0018] a monitoring module, configured to monitor the operating state of the processor when the system firmware stored in the target memory has been refreshed to the target firmware version;
[0019] a processing module, configured to control the processor to be in a waiting state for power-on when the operating state indicates that the processor is to be powered on again, and to refresh the system firmware stored in the reference memory to the target firmware version according to the target firmware version stored in the target memory;
[0020] The second control module is used to control the processor to end the waiting for power-on state when the system firmware stored in the reference memory has been refreshed to the target firmware version.
[0021] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0022] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0023] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0024] Through the present application, when it is detected that the firmware controller is to refresh the system firmware, the target link between the firmware controller and the target memory among the multiple memories is controlled to be connected; when the system firmware stored in the target memory has been refreshed to the target firmware version, the operating state of the processor is monitored; when the operating state is used to indicate that the processor is to be powered on again, the processor is controlled to be in a waiting state for power-on, and the system firmware stored in the reference memory is refreshed to the target firmware version according to the target firmware version stored in the target memory; when the system firmware stored in the reference memory has been refreshed to the target firmware version, the processor is controlled to end the waiting state for power-on. That is to say, the system firmware stored in the target memory other than the reference memory currently occupied by the processor is refreshed first, and since the target memory is a memory not occupied by the processor, the restart process of the processor can be temporarily suspended, and when the processor is to be powered on again, the system firmware of the other reference memory is refreshed, and the processor is powered on, and the firmware refresh process is completed, and the system firmware of all memories is refreshed through a power-on process. Therefore, the problem of low firmware refresh efficiency of the basic input and output system can be solved, and the effect of improving the firmware refresh efficiency of the basic input and output system is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a hardware structure block diagram of a server device of a basic input and output system firmware refresh method according to an embodiment of the present application;
[0026] Figure 2 is a flowchart of a firmware refresh method for a basic input / output system according to an embodiment of the present application;
[0027] Figure 3 is a schematic diagram of the structure of a link controller according to an embodiment of the present application;
[0028] Figure 4 is a schematic diagram of a dual BIOS hardware structure according to an embodiment of the present application;
[0029] Figure 5 is a flowchart of a process of refreshing the firmware of Flash1 according to an embodiment of the present application;
[0030] Figure 6 is a flowchart of a process of refreshing the firmware of Flash2 according to an embodiment of the present application;
[0031] Figure 7 is a structural block diagram of a firmware refresh device for a basic input / output system according to an embodiment of the present application;
[0032] Figure 8 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0033] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0035] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a basic input / output system firmware refresh method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0036] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the firmware refresh method of the basic input and output system in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0037] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0038] In this embodiment, a method for refreshing the firmware of a basic input / output system is provided. A processor, a firmware controller, a link controller and multiple memories are deployed on a server. The processor, the firmware controller and the multiple memories are all connected to the link controller. The multiple memories are all used to store the system firmware of the basic input / output system of the server. The method is applied to the link controller. Figure 2 is a flowchart of a firmware refresh method for a basic input / output system according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:
[0039] Step S202, when it is detected that the firmware controller is to refresh the system firmware, controlling the target link between the firmware controller and a target memory among the multiple memories to be connected, wherein the target memory is a memory among the multiple memories except a reference memory currently occupied by the processor, and the firmware controller is used to refresh the system firmware stored in the target memory to a target firmware version through the target link;
[0040] Step S204, monitoring the operating state of the processor when the system firmware stored in the target memory has been updated to the target firmware version;
[0041] Step S206, when the running state indicates that the processor is to be powered on again, controlling the processor to be in a power-on waiting state, and refreshing the system firmware stored in the reference memory to the target firmware version according to the target firmware version stored in the target memory;
[0042] Step S208 : When the system firmware stored in the reference memory has been updated to the target firmware version, control the processor to end the waiting state for power-on.
[0043] Through the above steps, when it is detected that the firmware controller is to refresh the system firmware, the target link between the firmware controller and the target memory among the multiple memories is controlled to be connected; when the system firmware stored in the target memory has been refreshed to the target firmware version, the operating state of the processor is monitored; when the operating state is used to indicate that the processor is to be powered on again, the processor is controlled to be in a waiting state for power-on, and the system firmware stored in the reference memory is refreshed to the target firmware version according to the target firmware version stored in the target memory; when the system firmware stored in the reference memory has been refreshed to the target firmware version, the processor is controlled to end the waiting state for power-on. That is to say, the system firmware stored in the target memory other than the reference memory currently occupied by the processor is refreshed first, and since the target memory is a memory not occupied by the processor, the restart process of the processor can be temporarily suspended, and when the processor is to be powered on again, the system firmware of the other reference memory is refreshed, and the processor is powered on, the firmware refresh process is completed, and the system firmware of all memories is refreshed through a power-on process. Therefore, the problem of low firmware refresh efficiency of the basic input and output system can be solved, and the effect of improving the firmware refresh efficiency of the basic input and output system is achieved.
[0044] Optionally, in this embodiment, a processor, a firmware controller, a link controller and multiple memories are deployed on the server, and the above-mentioned processor can be used, but not limited to, to guide the BIOS firmware startup to ensure that the server can start normally. The above-mentioned firmware controller can include, but is not limited to: BMC, and other devices that allow erase and write operations on the memory, write the BIOS firmware data cached in the memory into the memory, and complete the refresh of the BIOS firmware of the memory. The above-mentioned link controller can include, but is not limited to: FPGA (Field Programmable Gate Array), and other devices for implementing channel switching logic between multiple memories and processors and firmware controllers, allowing the processor or firmware controller to access any memory through the SPI (Serial Peripheral Interface) interface to implement channel control at the hardware level.
[0045] In the technical solution provided in the above step S202, during the normal power-on process of the processor, the BIOS is used to boot the server's operating system, so that the storage software on the processor side deployed on the server can work normally, and the firmware controller, link controller and internal programs of multiple memories in the server motherboard can work normally.
[0046] Optionally, in this embodiment, the firmware controller can be triggered to refresh the system firmware in a variety of ways, but not limited to: the user initiates a BIOS firmware refresh action and loads a new firmware version through the storage software chassis management interface, and calls the system's out-of-band BIOS firmware refresh system tool to notify the firmware controller to start the refresh process. Alternatively, when the storage software receives a new firmware version, a BIOS firmware refresh action is initiated, and the storage software calls the system's out-of-band BIOS firmware refresh system tool to notify the firmware controller to start the refresh process, etc.
[0047] Optionally, in the present embodiment, during the power-on phase of the processor, the BIOS firmware is still in the Runtime state, and the BIOS or OS program can still read and write access to the BIOS Flash through the interface. Therefore, refreshing the BIOS firmware during the power-on phase may result in serious consequences such as processor downtime. Therefore, in the method proposed in the present application, a memory not occupied by the processor is screened from multiple memories as the target memory, and a refresh operation of the BIOS system firmware is allowed to be performed on the target memory not occupied by the processor. Since the target memory is not occupied by the processor, the refresh operation of the BIOS system firmware performed on the target memory will not affect the operation process of the processor.
[0048] In an exemplary embodiment, when it is detected that the firmware controller is to refresh the system firmware, the target link connectivity between the firmware controller and the target memory among the multiple memories can be controlled in the following manner, but is not limited to: receiving an access request initiated by the firmware controller, wherein the access request is used to request access to the memory information of the memory among the multiple memories that allows refreshing the system firmware; in response to the access request, sending the target memory information of the target memory among the multiple memories that is not occupied by the processor to the firmware controller, wherein the firmware controller is used to detect the matching degree between the target memory and the firmware refresh condition according to the target memory information; receiving a refresh instruction initiated by the firmware controller when the matching degree is higher than a matching degree threshold, and determining that it is detected that the firmware controller is to refresh the system firmware, wherein the refresh instruction is used to instruct to open a refresh channel for the system firmware; in response to the refresh instruction, enabling the target link to an access allowed state.
[0049] Optionally, in this embodiment, one or more memories in the memory that are not occupied by the processor can be determined as target memories, but is not limited to, and target memory information of the target memory is obtained. The matching degree between the target memory and the firmware refresh condition is detected according to the target memory information. When the matching degree is greater than the matching degree threshold, the firmware refresh process is executed. The firmware refresh condition can include but is not limited to: the hardware of the memory is normal, the access link of the memory is not occupied, the network connection of the memory is normal, etc.
[0050] The degree of match between the target memory and the firmware refresh condition can be determined based on, but not limited to, whether the target memory reaches the firmware refresh condition. For example, taking the firmware refresh condition including the hardware of the memory being normal and the access link of the memory being unoccupied as an example, when the hardware of the target memory is normal, it is considered that the degree of match between the target memory and the firmware refresh condition is 50%, or, when the access link of the target memory is not occupied, it is considered that the degree of match between the target memory and the firmware refresh condition is 50%. Only when the hardware of the target memory is normal and the access link of the target memory is not occupied, it is considered that the degree of match between the target memory and the firmware refresh condition is 100%.
[0051] It should be noted that the matching degree corresponding to the normal hardware of the above-mentioned memory and the matching degree corresponding to the unoccupied access link of the memory may be the same, or may be different. For example, when the hardware of the target memory is normal, the matching degree between the target memory and the firmware refresh condition is considered to be 30%, or, when the access link of the target memory is not occupied, the matching degree between the target memory and the firmware refresh condition is considered to be 70%. Only when the hardware of the target memory is normal and the access link of the target memory is not occupied, the matching degree between the target memory and the firmware refresh condition is considered to be 100%.
[0052] Optionally, in this embodiment, the above-mentioned matching threshold can be but is not limited to a fixed parameter value, for example: setting the matching threshold to 100%, that is, when the matching degree between the target memory and the firmware refresh condition is 100%, the firmware controller initiates a refresh instruction.
[0053] Alternatively, the above-mentioned matching degree threshold may also allow variable conditional values, for example: when the target memory satisfies both the condition that the hardware of the target memory is normal and the condition that the normal access link is not occupied, the matching degree is considered to be higher than the matching degree threshold, and the firmware controller initiates a refresh instruction.
[0054] It should be noted that the number of the above conditions can be one or more, and the matching degree threshold is considered to be higher than the matching degree threshold only when the target memory satisfies the number of conditions indicated by the above matching degree threshold, and the firmware controller initiates a refresh instruction.
[0055] In an exemplary embodiment, a second non-volatile memory is deployed on the link controller, and the firmware controller is connected to the second non-volatile memory through a serial bus; an access request initiated by the firmware controller may be received in the following manner, but not limited to: receiving the access request initiated by the firmware controller from the serial bus through the second non-volatile memory; responding to the access request in the following manner, and sending target memory information of the target memory among the multiple memories that is not occupied by the processor to the firmware controller: reading the access request from the second non-volatile memory; responding to the access request, detecting the occupation status of the multiple memories by the processor; determining the memory whose occupation status is unoccupied as the target memory; acquiring the target memory information of the target memory; sending the target memory information from the serial bus through the second non-volatile memory; receiving a refresh instruction initiated by the firmware controller when the matching degree is higher than the matching degree threshold in the following manner, but not limited to: receiving the refresh instruction initiated by the firmware controller from the serial bus through the second non-volatile memory.
[0056] Optionally, in this embodiment, a serial bus is used to connect the second non-volatile memory deployed on the firmware controller and the link controller. The above-mentioned serial bus can be but is not limited to an I2C (Inter-Integrated Circuit) bus or other buses that allow connection between the firmware controller and the second non-volatile memory deployed on the link controller.
[0057] Optionally, in this embodiment, the firmware controller initiates an access request to the second non-volatile memory in the link controller through the serial bus, the second non-volatile memory receives and stores the access request, the link controller reads the access request from the second non-volatile memory, and responds to the access request to detect the occupancy status of each memory by the processor, and determines the memory with an occupancy status of unoccupied as the target memory, the link controller can, but is not limited to, detect whether the hardware of the target memory is normal to obtain the hardware status of the target memory and store it in the second non-volatile memory, the second non-volatile memory sends the hardware status and the current occupancy status of the target memory as the target memory information to the firmware controller through the serial bus. The firmware controller initiates a refresh instruction when the matching degree of the target memory information is higher than the matching degree threshold, and the second non-volatile memory receives the refresh instruction initiated by the firmware controller from the serial bus.
[0058] In an exemplary embodiment, the multiple memories include a first memory and a second memory, the link controller includes a first chip select module and a second chip select module, the processor is connected to the first chip select module, the firmware controller is connected to the second chip select module, the first chip select module is connected to the first memory through a first link, the first chip select module is connected to the second memory through a second link, the second chip select module is connected to the first memory through a third link, and the second chip select module is connected to the second memory through a fourth link; the target link connectivity between the firmware controller and the target memories among the multiple memories may be controlled in the following manner but is not limited to: detecting a first occupancy state of the processor for the first memory and a second occupancy state of the processor for the second memory; when the first occupancy state is occupied and the second occupancy state is unoccupied, controlling the first link to remain connected, the second link to remain disconnected, the third link to remain disconnected, and the fourth link to be connected.
[0059] Optionally, in this embodiment, taking the firmware controller as BMC as an example, Figure 3 is a schematic diagram of the structure of a link controller according to an embodiment of the present application, such as Figure 3As shown, the link controller includes a non-volatile storage area (including a first non-volatile memory and a second non-volatile memory) and two chip selection logic modules: a first chip selection module connected to the CPU, and a second chip selection module connected to the BMC. The first chip selection module and the CPU may include, but are not limited to, a chip selection (ChipSelect, CS) signal line, a clock signal line (Serial Clock, SCLK), a MOSI (Master Out Slave In, master device output slave device input) signal line, and a MISO (Master In Slave Out, slave device output master device input) signal line. The second chip selection module and the BMC may include, but are not limited to, a chip selection signal line, a clock signal line, a MOSI signal line, and a MISO signal line.
[0060] The first chip select module is connected to the first memory through a first link, the first link may include but is not limited to an SPI IP core for implementing the SPI protocol, the first chip select module may communicate with the SPI IP core through but is not limited to a chip select signal line, a clock signal line, a MOSI signal line, and a MISO signal line, and the SPI IP core then communicates with the first memory through the SPI protocol. The second chip select module may be connected to the first link but is not limited to communicating using the SPI IP core included in the first link, or a third link between the second chip select module and the first memory may be newly created.
[0061] The second chip select module is connected to the second memory via a fourth link, the fourth link may include but is not limited to an SPI IP core for implementing the SPI protocol, the second chip select module may communicate with the SPI IP core via but is not limited to a chip select signal line, a clock signal line, a MOSI signal line, and a MISO signal line, and the SPI IP core then communicates with the second memory via the SPI protocol. The first chip select module may be connected to the fourth link, and the SPI IP core included in the fourth link may be used for communication, or a second link between the first chip select module and the second memory may be newly created.
[0062] That is, the link controller may be used, but is not limited to, to transmit a signal sent by the CPU to the first memory or the second memory via the first link or the second link, and to transmit a signal sent by the BMC to the first memory or the second memory via the third link or the fourth link.
[0063] When the link controller transmits the signal sent by the CPU to the first memory through the first link or transmits it to the first memory, it is considered that the first memory is occupied by the CPU, that is, the first occupancy state of the first memory is occupied; or, when the link controller does not transmit the signal sent by the CPU to the first memory through the first link or transmits it to the first memory, it is considered that the first memory is not occupied by the CPU, that is, the first occupancy state of the first memory is not occupied.
[0064] When the first occupation state of the processor for the first memory is occupied, and the second occupation state of the processor for the second memory is unoccupied, control the first link to remain connected, the second link to remain disconnected, the third link to remain disconnected, and the fourth link to remain connected;
[0065] That is to say, when the first occupancy state of the processor for the first memory is occupied and the second occupancy state of the processor for the second memory is unoccupied, the CPU keeps using the first memory and transmits the signal sent by the BMC to the second memory to refresh the BIOS system firmware for the second memory.
[0066] While the server business between the CPU and the first memory remains running, when the BIOS firmware refresh action is initiated, the CPU-side SPI bus will occupy a data access channel from the CPU to the link controller to the first memory. Therefore, the BMC out-of-band BIOS refresh can choose to use the spare channel from the BMC to the link controller to the second memory to complete the firmware refresh action. The entire process of using the out-of-band BMC to refresh the BIOS system firmware of the second memory will not affect the business operation of the CPU due to the physical isolation of the channels and the non-interference.
[0067] In the technical solution provided in the above step S204, the operating status of the processor may be, but is not limited to, used to indicate whether the processor is restarted.
[0068] Optionally, in this embodiment, the processor may, but is not limited to, need to be restarted in a variety of situations, such as: when a server or computer system is turned on, the CPU will initialize and load the startup firmware (such as BIOS); due to a software command or hardware event (such as a watchdog timer trigger), the system performs a hard reset, causing the CPU to restart; the CPU is powered on again due to unstable or interrupted power supply; the CPU is powered on again after the BIOS or UEFI firmware is refreshed to make the new firmware effective; when the system wakes up from a suspended (Suspend) or hibernated (Hibernate) state, the CPU is powered on again and resumes working status; when the CPU temperature exceeds a safety threshold, the system automatically shuts down or reduces the CPU power supply, and then powers it on again after the temperature drops; when a critical hardware failure is detected, the system automatically restarts and attempts to recover to a stable state; the operating system or system management software may command the CPU to power on again due to the need for refresh, maintenance or error recovery; the system administrator remotely triggers the system to power on again through a remote management tool; periodic restarts for maintenance purposes to clean up temporary files or refresh system services, etc.
[0069] In the technical solution provided in the above step S206, when the running state is used to indicate that the processor is to be powered on again, the link controller controls the processor to be in a state of waiting for power on.
[0070] Optionally, in this embodiment, the link controller refreshes the system firmware stored in the reference memory to the target firmware version according to the target firmware version stored in the target memory, so as to complete the BIOS firmware refresh of all memories.
[0071] In an exemplary embodiment, a first non-volatile memory is deployed on the link controller; the processor can be controlled to be in a waiting state for power-on, and the system firmware stored in the reference memory is refreshed to the target firmware version according to the target firmware version stored in the target memory in the following manner, but not limited to: reading first refresh information stored on the first non-volatile memory, wherein the first refresh information is stored in the first non-volatile memory after the firmware controller refreshes the system firmware stored in the target memory to the target firmware version through the target link, and the first refresh information is used to indicate that the system firmware stored in the reference memory has not been refreshed; in response to the first refresh information, the processor is controlled to be in a waiting state for power-on, and the firmware data of the target firmware version stored in the target memory is written into the reference memory.
[0072] Optionally, in this embodiment, after the target memory completes the BIOS firmware refresh, the firmware controller may, but is not limited to, record the memory information of the reference memory that has not performed the firmware refresh in the first non-volatile memory. The link controller determines the reference memory that has not performed the firmware refresh by reading the information stored in the first non-volatile memory, and performs the firmware refresh operation on the reference memory.
[0073] In an exemplary embodiment, the firmware data of the target firmware version stored in the target memory can be written into the reference memory in the following manner, but is not limited to: performing data verification on the firmware data of the target firmware version stored in the target memory; if the firmware data of the target firmware version stored in the target memory passes the verification, reading the firmware data on the current sector from the target memory according to the sector; erasing the data on the reference sector corresponding to the current sector on the reference memory, and writing the firmware data on the current sector read into the reference sector until the firmware data of all sectors are written; modifying the first refresh information stored on the first non-volatile memory to the second refresh information, wherein the second refresh information is used to indicate that the system firmware stored on the multiple memories have been refreshed.
[0074] Optionally, in this embodiment, integrity check and partition hardware check can be performed on the firmware data of the target firmware version stored in the target memory to ensure the integrity of the firmware data. If the firmware data of the target firmware version stored in the target memory fails the check, the boot Flash data in the boot area can be modified, but is not limited to, the refresh synchronization process can be skipped, and the damage information of the firmware data of the target firmware version can be recorded in the first non-volatile memory.
[0075] In the technical solution provided in the above step S208, when the system firmware stored in the reference memory has been refreshed to the target firmware version, the processor may be controlled to end the waiting state for power-on and execute the power-on process, but is not limited to.
[0076] In an exemplary embodiment, the processor can be controlled to end the waiting power-on state in the case where the system firmware stored in the reference memory has been refreshed to the target firmware version in the following manner, but is not limited to: performing data verification on the firmware data of the target firmware version stored in the reference memory; determining that the system firmware stored in the reference memory has been refreshed to the target firmware version if the firmware data of the target firmware version stored in the reference memory passes the verification; restoring the processor's link access to the multiple memories, wherein the processor's link access to the multiple memories is closed when the processor is in the waiting power-on state; and starting the power-on process of the processor.
[0077] Optionally, in this embodiment, a data integrity check may be performed on the firmware data of the target firmware version stored in the reference memory, but is not limited to the above.
[0078] In an exemplary embodiment, an example of a dual BIOS hardware structure is provided. Taking the link controller as FPGA and the firmware controller as BMC as an example, Figure 4 is a schematic diagram of a dual BIOS hardware structure according to an embodiment of the present application, such as Figure 4 As shown, the storage server motherboard includes a CPU, a BMC, an FPGA, and two redundant BIOS Flashes. The CPU and the BMC are connected to the FPGA Pins through their own SPI Controller pins, wherein the CS chip select signal in the SPI bus is connected to the FPGA. The CPU or the BMC can control the FPGA to switch the SPI Flash data channel by the high or low level of the chip select signal. At the same time, the dual-chip Flash channel switching logic and the SPI bus data line transmission logic are implemented in the FPGA logic module, so that the BMC / FPGA can access any Flash through their respective SPI interfaces.
[0079] It should be noted that the server included in this application may be, but is not limited to, a storage server, and may also be other servers that allow the deployment of multiple storage devices. Figure 4The dual BIOS refresh function of the storage server is realized under the hardware structure shown. When the storage server service remains running, when the user initiates the BIOS firmware refresh action, the CPU-side SPI bus will occupy the data access channel between the CPU to the FPGA to the Flash0. Therefore, the BMC out-of-band BIOS refresh can choose to use the BMC to the FPGA to the Flash1 standby channel to complete the firmware refresh action. During the entire process of refreshing the standby BIOS Flash1 using the out-of-band BMC, the BIOS firmware refresh process will not affect the CPU service operation due to the physical channel isolation and no interference. Secondly, after the BIOS firmware refresh is completed, during the period when the server power-off restart takes effect, the data mirror logic core inside the FPGA detects that the dual-chip redundant BIOS Flash firmware image has been refreshed, and actively reads the data in the Flash that has completed the firmware refresh, and synchronizes the data to the other Flash, thereby realizing the function of refreshing the two redundant BIOS Flash firmware at the same time when the device is restarted once. The entire BIOS firmware refresh process avoids the problem of burning the two Flash firmware twice and restarting twice, saving the refresh time, thereby realizing the safe, efficient and reliable refresh of the dual BIOS firmware of the storage server.
[0080] Optionally, in this embodiment, in order to better understand the process of firmware refresh of the basic input / output system in the firmware refresh method of the basic input / output system proposed in this application, the above process is described in conjunction with an optional embodiment below, but is not used to limit the technical solution of the embodiment of this application.
[0081] In an exemplary embodiment, an example of a process of flashing firmware of a basic input output system is provided. Figure 5 is a flowchart of a process of refreshing the firmware of Flash1 according to an embodiment of the present application, such as Figure 5 As shown, the firmware controller deployed on the server is a BMC, the link controller is an FPGA, the multiple memories include Flash1 and Flash2, and the refresh tool sends a request to the BMC to refresh the system firmware. The processor, BMC, Flash1 and Flash2 are all connected to the FPGA. Flash1 and Flash2 are both used to store the system firmware of the basic input and output system of the server. The process of refreshing the firmware of the basic input and output system can be performed by, but not limited to, the following steps:
[0082] Step S502: the BMC receives a request from the refresh tool, and the BMC enters a firmware refresh mode;
[0083] Step S504: the BMC accesses the FPGA device through the I2C link to obtain the occupancy status of Flash1 and Flash2, and determines Flash1 as the target memory;
[0084] Step S506: The BMC notifies the FPGA to open the BIOS firmware refresh channel through the I2C link, and enables the target link between the BMC and Flash1;
[0085] Step S508: The BMC receives the BIOS firmware data sent by the refresh tool, and caches the BIOS firmware data in the BMC memory;
[0086] Step S510: The BMC uses the SPI interface to erase the data in the corresponding area of Flash1, and writes the BIOS firmware data cached in the memory into Flash1;
[0087] Step S512: After the writing is completed, the BMC writes the system firmware of Flash1 to the non-volatile memory of the FPGA and indicates that it has been refreshed;
[0088] At this point, the firmware refresh process of the BIOS in Flash1 is completed, and the processor is detected to be powered on again. If the processor is powered on again, Figure 6 is a flowchart of a process of refreshing the firmware of Flash2 according to an embodiment of the present application, such as Figure 6 As shown, the process of updating the firmware of Flash2 is performed through the following steps:
[0089] Step S602: Control the processor to be in a state of waiting for power on;
[0090] Step S604: FPAG reads the first non-volatile memory and selects Flash2 whose BIOS system firmware needs to be refreshed;
[0091] Step S606: FPGA verifies the BIOS system firmware stored in Flash1;
[0092] Step S608: If the BIOS system firmware stored in Flash1 fails to pass the verification, the FPGA skips the refresh synchronization process and records the damage information of Flash1 in the non-volatile memory;
[0093] Step S610: When the BIOS system firmware stored in Flash1 passes the verification, the FPGA first erases the data in the Sector corresponding to Flash2, and then reads the BIOS system firmware in Flash1 according to the Sector through the SPI interface and writes it into Flash2;
[0094] Step S612: After completing the data synchronization between Flash1 and Flash2, the FPGA performs a data integrity check;
[0095] Step S614: after the verification is successful, FPAG refreshes the non-volatile memory to record the Flash2 information, marking that the Flash1 and Flash2 have been synchronously refreshed;
[0096] Step S616: restoring the processor's link access to Flash1 and Flash2;
[0097] Step S618: FPGA enables the processor power-on signal, starts the processor power-on process, and the processor boots the BIOS firmware from the BIOSFlash normally.
[0098] The firmware refresh method of the basic input and output system proposed in the present application is based on the hardware architecture of the storage server, by mounting multiple BIOS Flashes on the FPAG SPI interface of the mainboard, and realizing the multi-Flash hardware channel switching and multi-Flash data mirror synchronization functions in the FPGA logic, while improving the BIOS firmware refresh process. Under the multi-Flash hardware structure, a method of first refreshing the target Flash and then using the firmware effective idle time or hardware startup time to use FPGA to synchronously refresh other Flashes is adopted. Overall, the firmware refresh and burning time of multiple Flashes is saved, and the difficulty of managing multiple BIOSFlash firmware is reduced, which is of great significance to the improvement of the hardware redundancy reliability of the storage server and the serviceability of firmware management.
[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0100] In this embodiment, a firmware refresh device for a basic input / output system is also provided. A processor, a firmware controller, a link controller and multiple memories are deployed on a server. The processor, the firmware controller and the multiple memories are all connected to the link controller. The multiple memories are all used to store the system firmware of the basic input / output system of the server. The device is applied to the link controller. The device is used to implement the above-mentioned embodiments and preferred implementation modes. Those that have been explained will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0101] Figure 7 is a structural block diagram of a firmware refresh device for a basic input / output system according to an embodiment of the present application, such as Figure 7 As shown, the device comprises:
[0102] A first control module 72 is configured to control the target link between the firmware controller and a target memory among the multiple memories to be connected when it is detected that the firmware controller is to refresh the system firmware, wherein the target memory is a memory among the multiple memories except for a reference memory currently occupied by the processor, and the firmware controller is configured to refresh the system firmware stored in the target memory to a target firmware version through the target link;
[0103] A monitoring module 74, configured to monitor the operating status of the processor when the system firmware stored in the target memory has been refreshed to the target firmware version;
[0104] a processing module 76, configured to control the processor to be in a waiting state for power-on when the operating state indicates that the processor is to be powered on again, and to refresh the system firmware stored in the reference memory to the target firmware version according to the target firmware version stored in the target memory;
[0105] The second control module 78 is used to control the processor to end the waiting for power-on state when the system firmware stored in the reference memory has been updated to the target firmware version.
[0106] Through the above device, when it is detected that the firmware controller is to refresh the system firmware, the target link between the firmware controller and the target memory among the multiple memories is controlled to be connected; when the system firmware stored in the target memory has been refreshed to the target firmware version, the operating state of the processor is monitored; when the operating state is used to indicate that the processor is to be powered on again, the processor is controlled to be in a waiting state for power-on, and the system firmware stored in the reference memory is refreshed to the target firmware version according to the target firmware version stored in the target memory; when the system firmware stored in the reference memory has been refreshed to the target firmware version, the processor is controlled to end the waiting state for power-on. That is to say, the system firmware stored in the target memory other than the reference memory currently occupied by the processor is refreshed first, and since the target memory is a memory not occupied by the processor, the restart process of the processor can be temporarily suspended, and when the processor is to be powered on again, the system firmware of the other reference memory is refreshed, and the processor is powered on, the firmware refresh process is completed, and the system firmware of all memories is refreshed through a power-on process. Therefore, the problem of low firmware refresh efficiency of the basic input and output system can be solved, and the effect of improving the firmware refresh efficiency of the basic input and output system is achieved.
[0107] In an exemplary embodiment, a first non-volatile memory is deployed on the link controller, and the processing module includes:
[0108] a reading unit, configured to read first refresh information stored in the first non-volatile memory, wherein the first refresh information is stored in the first non-volatile memory after the firmware controller refreshes the system firmware stored in the target memory to the target firmware version through the target link, and the first refresh information is used to indicate that the system firmware stored in the reference memory is not refreshed;
[0109] The processing unit is used to respond to the first refresh information, control the processor to be in a power-on waiting state, and write the firmware data of the target firmware version stored in the target memory into the reference memory.
[0110] In an exemplary embodiment, the processing unit is also used to: perform data verification on the firmware data of the target firmware version stored in the target memory; if the firmware data of the target firmware version stored in the target memory passes the verification, read the firmware data on the current sector from the target memory according to the sector; erase the data on the reference sector corresponding to the current sector on the reference memory, and write the firmware data read on the current sector to the reference sector until the firmware data of all sectors is written; modify the first refresh information stored on the first non-volatile memory to second refresh information, wherein the second refresh information is used to indicate that the system firmware stored on the multiple memories have been refreshed.
[0111] In an exemplary embodiment, the second control module comprises:
[0112] a verification unit, configured to perform data verification on the firmware data of the target firmware version stored in the reference memory;
[0113] a determining unit, configured to determine that the system firmware stored in the reference memory has been refreshed to the target firmware version if the firmware data of the target firmware version stored in the reference memory passes verification;
[0114] A recovery unit, configured to recover the link access of the processor to the multiple memories, wherein the link access of the processor to the multiple memories is closed when the processor is in a state of waiting for power on;
[0115] A startup unit is used to start the power-on process of the processor.
[0116] In an exemplary embodiment, the first control module includes:
[0117] A first receiving unit, configured to receive an access request initiated by the firmware controller, wherein the access request is used to request access to memory information of a memory that allows refreshing of the system firmware among the multiple memories;
[0118] a sending unit, configured to respond to the access request and send target memory information of the target memory that is not occupied by the processor among the multiple memories to the firmware controller, wherein the firmware controller is configured to detect a matching degree between the target memory and the firmware refresh condition according to the target memory information;
[0119] A second receiving unit is configured to receive a refresh instruction initiated by the firmware controller when the matching degree is higher than a matching degree threshold, and determine that it is detected that the firmware controller is to refresh the system firmware, wherein the refresh instruction is used to instruct to open a refresh channel of the system firmware;
[0120] The enabling unit is used to respond to the refresh instruction and enable the target link to an access-allowed state.
[0121] In an exemplary embodiment, a second non-volatile memory is deployed on the link controller, the firmware controller is connected to the second non-volatile memory via a serial bus, and the first receiving unit is used to: receive the access request initiated by the firmware controller from the serial bus via the second non-volatile memory;
[0122] The sending unit is used to: read the access request from the second non-volatile memory; in response to the access request, detect the occupation status of the processor for the multiple memories; determine the memory whose occupation status is unoccupied as the target memory; obtain the target memory information of the target memory; and send the target memory information from the serial bus through the second non-volatile memory;
[0123] The second receiving unit is used to receive the refresh instruction initiated by the firmware controller from the serial bus through the second non-volatile memory.
[0124] In an exemplary embodiment, the multiple memories include a first memory and a second memory, the link controller includes a first chip select module and a second chip select module, the processor is connected to the first chip select module, the firmware controller is connected to the second chip select module, the first chip select module is connected to the first memory through a first link, the first chip select module is connected to the second memory through a second link, the second chip select module is connected to the first memory through a third link, the second chip select module is connected to the second memory through a fourth link, and the first control module includes:
[0125] a detection unit, configured to detect a first occupation state of the first memory and a second occupation state of the second memory by the processor;
[0126] A control unit is used to control the first link to remain connected, the second link to remain disconnected, the third link to remain disconnected, and the fourth link to remain connected when the first occupancy state is occupied and the second occupancy state is unoccupied.
[0127] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0128] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0129] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0130] An embodiment of the present application further provides an electronic device, Figure 8 is a structural block diagram of an electronic device according to an embodiment of the present application, such as Figure 8 As shown, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the method embodiments described above.
[0131] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0132] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0133] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0134] The embodiments of the present application also provide a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.
[0135] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0136] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0137] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for updating firmware of a basic input / output system, characterized in that: A processor, a firmware controller, a link controller and multiple memories are deployed on the server. The processor, the firmware controller and the multiple memories are all connected to the link controller. The multiple memories are all used to store the system firmware of the basic input and output system of the server. The method is applied to the link controller, and the method includes: In the case where it is detected that the firmware controller is to refresh the system firmware, controlling the target link between the firmware controller and a target memory among the multiple memories to be connected, wherein the target memory is a memory among the multiple memories except a reference memory currently occupied by the processor, and the firmware controller is used to refresh the system firmware stored in the target memory to a target firmware version through the target link; monitoring the operating state of the processor when the system firmware stored in the target memory has been refreshed to the target firmware version; In a case where the running state indicates that the processor is to be powered on again, controlling the processor to be in a waiting state for power on, and refreshing the system firmware stored in the reference memory to the target firmware version according to the target firmware version stored in the target memory; In a case where the system firmware stored in the reference memory has been updated to the target firmware version, the processor is controlled to end the waiting for power-on state.
2. The method according to claim 1, characterized in that The link controller is provided with a first non-volatile memory; the controlling the processor is in a waiting state for power-on, and refreshing the system firmware stored in the reference memory to the target firmware version according to the target firmware version stored in the target memory, including: Reading first refresh information stored in the first non-volatile memory, wherein the first refresh information is stored in the first non-volatile memory after the firmware controller refreshes the system firmware stored in the target memory to the target firmware version through the target link, and the first refresh information is used to indicate that the system firmware stored in the reference memory has not been refreshed; In response to the first refresh information, the processor is controlled to be in a power-on waiting state, and the firmware data of the target firmware version stored in the target memory is written into the reference memory.
3. The method according to claim 2, characterized in that Writing the firmware data of the target firmware version stored in the target memory into the reference memory comprises: Performing data verification on the firmware data of the target firmware version stored in the target memory; When the firmware data of the target firmware version stored in the target memory passes verification, reading the firmware data on the current sector from the target memory according to the sector; Erasing the data on the reference sector corresponding to the current sector on the reference memory, and writing the firmware data read from the current sector into the reference sector until the firmware data of all sectors are written; The first refresh information stored in the first non-volatile memory is modified into second refresh information, wherein the second refresh information is used to indicate that the system firmware stored in the multiple memories have all been refreshed.
4. The method according to claim 1, characterized in that: When the system firmware stored in the reference memory has been refreshed to the target firmware version, controlling the processor to end the waiting for power-on state comprises: Performing data verification on the firmware data of the target firmware version stored in the reference memory; In a case where the firmware data of the target firmware version stored in the reference memory passes verification, determining that the system firmware stored in the reference memory has been refreshed to the target firmware version; Restoring the link access of the processor to the multiple memories, wherein the link access of the processor to the multiple memories is closed when the processor is in a state of waiting for power on; A power-on process of the processor is started.
5. The method according to claim 1, characterized in that When it is detected that the firmware controller is to refresh the system firmware, controlling the target link between the firmware controller and the target memory among the multiple memories to be connected comprises: receiving an access request initiated by the firmware controller, wherein the access request is used to request access to memory information of a memory among the multiple memories that allows refreshing of the system firmware; In response to the access request, sending target memory information of the target memory that is not occupied by the processor among the multiple memories to the firmware controller, wherein the firmware controller is used to detect a matching degree between the target memory and the firmware refresh condition according to the target memory information; receiving a refresh instruction initiated by the firmware controller when the matching degree is higher than a matching degree threshold, and determining that it is detected that the firmware controller is to refresh the system firmware, wherein the refresh instruction is used to instruct to open a refresh channel of the system firmware; In response to the refresh instruction, the target link is enabled to an access-allowed state.
6. The method according to claim 5, characterized in that A second non-volatile memory is disposed on the link controller, and the firmware controller is connected to the second non-volatile memory via a serial bus; The receiving the access request initiated by the firmware controller comprises: receiving the access request initiated by the firmware controller from the serial bus through the second non-volatile memory; The step of responding to the access request and sending the target memory information of the target memory among the multiple memories that is not occupied by the processor to the firmware controller comprises: reading the access request from the second non-volatile memory; responding to the access request, detecting the occupation status of the multiple memories by the processor; determining the memory whose occupation status is unoccupied as the target memory; acquiring the target memory information of the target memory; and sending the target memory information from the serial bus through the second non-volatile memory; The receiving a refresh instruction initiated by the firmware controller when the matching degree is higher than a matching degree threshold includes: receiving the refresh instruction initiated by the firmware controller from the serial bus through the second non-volatile memory.
7. The method according to claim 1, characterized in that The multiple memories include a first memory and a second memory, the link controller includes a first chip selection module and a second chip selection module, the processor is connected to the first chip selection module, the firmware controller is connected to the second chip selection module, the first chip selection module is connected to the first memory through a first link, the first chip selection module is connected to the second memory through a second link, the second chip selection module is connected to the first memory through a third link, and the second chip selection module is connected to the second memory through a fourth link; The controlling the target link connectivity between the firmware controller and the target memory among the multiple memories comprises: detecting a first occupation state of the first memory and a second occupation state of the second memory by the processor; When the first occupation state is occupied and the second occupation state is unoccupied, the first link is controlled to remain connected, the second link is controlled to remain disconnected, the third link is controlled to remain disconnected, and the fourth link is controlled to remain connected.
8. A firmware updating device for a basic input / output system, characterized in that: A processor, a firmware controller, a link controller and multiple memories are deployed on the server. The processor, the firmware controller and the multiple memories are all connected to the link controller. The multiple memories are all used to store the system firmware of the basic input and output system of the server. The device is applied to the link controller, and the device includes: a first control module, configured to control the target link between the firmware controller and a target memory among the multiple memories to be connected when it is detected that the firmware controller is to refresh the system firmware, wherein the target memory is a memory among the multiple memories except for a reference memory currently occupied by the processor, and the firmware controller is configured to refresh the system firmware stored in the target memory to a target firmware version through the target link; and a monitoring module, configured to monitor the operating status of the processor when the system firmware stored in the target memory has been refreshed to the target firmware version; a processing module, configured to control the processor to be in a waiting state for power-on when the operating state indicates that the processor is to be powered on again, and to refresh the system firmware stored in the reference memory to the target firmware version according to the target firmware version stored in the target memory; The second control module is used to control the processor to end the waiting for power-on state when the system firmware stored in the reference memory has been refreshed to the target firmware version.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Firmware refreshing method and device, readable storage medium and program product
CN119536773A
Firmware refresh method, device, readable storage medium and program product
CN119536773B
Refreshing method and device for double basic input and output systems, electronic equipment and medium
CN120234027A
Dual basic input and output system refresh method, device, electronic equipment and medium
CN120234027B
Electronic device and signal processing method
CN120336235A
