Device and method for repairing basic input and output system and medium

By entering emergency startup mode when dual BIOS fails and using the rescue mode of the second server to complete the BIOS repair, the server startup problem caused by dual BIOS failure is solved, and rapid repair and high-reliability system operation is achieved.

CN119576620AActive Publication Date: 2025-03-07INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411622335.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-03-07
Estimated Expiration
2044-11-14

AI Technical Summary

Technical Problem

In the prior art, when there is a problem with dual BIOS at the same time, the BIOS cannot work properly, affecting the server startup.

Method used

Provides a repair device and method for a basic input and output system. By entering emergency startup mode when a dual BIOS failure is detected, and through the rescue mode of the second server, the firmware flashing tool in the operating system is used to complete the repair of the backup BIOS, and then repair the main BIOS.

Benefits of technology

It realizes rapid repair in the event of dual BIOS failures, reduces system downtime, improves system reliability and stability, and reduces the impact on business.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576620A_ABST
    Figure CN119576620A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a device and method for repairing a basic input and output system (BIOS) and a medium, and the device comprises the steps that when a first server detects that a first main BISO and a first standby BIOS fail, the first server enters an emergency starting mode; the second server controls itself to enter a rescue mode; after the first server controls the first mainboard to successfully enter the operating system through the second standby BIOS, repairing operation on the first standby BIOS is completed through a firmware flashing tool in the operating system; disconnecting the connection between the first server and the second server after the repair operation is completed; after restarting operation of the first server is completed through the first standby BIOS, the first mainboard is controlled to enter an operation system; and finishing a repair operation on the first main BIOS by utilizing a firmware flashing tool in the operating system. According to the method, the BIOS is not disassembled, so that the requirement on workers does not need to be too high, and the application range is wider.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a basic input and output system repair device, method and medium. Background Art

[0002] The Basic Input Output System (BIOS) of Read-Only Memory (ROM) is a set of programs fixed on a ROM chip on the computer's motherboard. It stores the most important basic input and output programs of the computer, system setting information, power-on self-test program and system boot program. Its main function is to provide the lowest-level and most direct hardware settings and control for the computer.

[0003] In modern servers, two BIOS chips are usually configured for backup and redundancy. When the main BIOS chip fails, the backup BIOS can be used to boot. During server maintenance, BIOS upgrade is a common operation to optimize system performance or fix known problems. However, if the BIOS upgrade process encounters unexpected interruptions or upgrade file corruption, etc. Dual BIOS redundancy can theoretically provide protection against abnormal BIOS failures, but human operations often cause problems in both BIOS at the same time. This causes the BIOS to fail to work properly, affecting the startup of the server. Summary of the invention

[0004] In view of this, the present invention provides a basic input and output system repair device, method and medium to solve the problem in the prior art that when problems occur in both BIOS, the BIOS cannot work normally, affecting the startup of the server.

[0005] In a first aspect, the present invention provides a basic input and output system repair device, the device comprising:

[0006] The first server is configured to enter an emergency startup mode when detecting that both a first main basic input-output system and a first standby basic input-output system included in the first server have failed: the first main basic input-output system is disconnected from a communication connection with a first mainboard included in the first server, and the first standby basic input-output system maintains a communication connection with the first mainboard; and a notification message is sent to the second server, where the notification message is used to indicate that both the first main basic input-output system and the first standby basic input-output system in the first server have failed;

[0007] The second server is configured to control itself to enter a rescue mode according to the notification message: a second main basic input / output system in the second server maintains a communication connection with the second mainboard, a communication connection between the second standby basic input / output system and the second mainboard is disconnected, and the second standby basic input / output system establishes a communication connection with the first mainboard through a preconfigured first interface pair;

[0008] The first server is also used to control the first mainboard to successfully enter the operating system through the second backup basic input and output system, and then use the firmware flashing tool in the operating system to complete the repair operation of the first backup basic input and output system; when it is determined that the repair operation of the first backup basic input and output system is completed, disconnect the connection between the first server and the second server; after using the first backup basic input and output system to complete the restart operation of the first server, control the first mainboard to enter the operating system; use the firmware flashing tool in the operating system to complete the repair operation of the first main basic input and output system.

[0009] The basic input and output system repair device provided by the present invention has the following advantages:

[0010] When the first server detects that both its first main BIOS and first standby BIOS fail, it means that the first server cannot perform fault recovery normally, so it needs to enter the emergency startup mode. Then, a notification message is sent to the second server, and the second server enters the rescue mode according to the notification message. In this way, the first server can control the first mainboard to enter the operating system through the second standby BIOS, and then use the firmware flashing tool in the operating system to complete the repair operation of the first standby BIOS. When the first standby BIOS is successfully repaired, the subsequent first mainboard can enter the operating system after the emergency startup of the first standby BIOS, and then complete the repair operation of the first main BIOS through the operating system. Therefore, after the first standby BIOS is successfully repaired, the connection between the first server and the second server can be disconnected. In this way, although two servers of the same type are used to implement the fault repair operation, during the entire working process, because the connection between the mainboard of the second server and the second main BIOS is never disconnected, when the first server is repaired, the business processing work of the second server is not affected at all. Moreover, in the whole process, because the first main BIOS and the first standby BIOS in the first server are not disassembled, the requirements for the staff do not need to be too high. This solution has a wider scope of application, especially when the BIOS chip in some servers is directly soldered on the motherboard. Furthermore, the firmware flashing tool under the operating system is used in this application document, which has a higher success rate than the firmware flashing tool built into the BMC.

[0011] In an optional implementation, the device further comprises: a basic input and output system burning device;

[0012] The first server is further configured to disconnect the first server from the second server and enter a flash mode when the control of the first mainboard to enter the operating system via the second standby basic input and output system fails, wherein the flash mode includes: the first main basic input and output system establishing a communication connection with the first interface pair;

[0013] Controlling the burning device to complete the flashing operation on the first main basic input and output system;

[0014] After the flashing operation on the first main basic input and output system is completed, the first server enters the rescue mode;

[0015] The burning device is controlled to complete the flashing operation on the first standby basic input and output system.

[0016] Specifically, when the second backup BIOS fails to control the first BIOS to enter the operating system, it is no longer necessary to consider implementing the fault repair work of the BIOS in the first server through the second server. At this time, the connection between the first server and the second server can be disconnected, and the flashing mode can be entered. Then, a communication connection is established between the first mainboard and the BIOS burning device, and the fault repair work of the first main BIOS and the first backup BIOS is completed through the BIOS burning device in the BIOS repair device. Reduce the system downtime caused by BIOS failure, improve the reliability and stability of the system, and reduce the impact on the business.

[0017] In an optional implementation, the target server further includes a management board network card, the target server includes a first server and a second server; the first interface pair includes a first communication interface in the first server, and a second communication interface in the second server;

[0018] Establishing a communication connection between a main basic input and output system in the target server and a first port of a mainboard in the target server via a first switch;

[0019] Establishing a communication connection between the first port and the communication interface in the target server via the second switch;

[0020] Establishing a communication connection between the main basic input and output system in the target server and the communication interface in the target server via a third switch;

[0021] A communication connection is established between the management board network card in the target server and the communication interface in the target server via a fourth switch;

[0022] Establishing a communication connection between the standby basic input and output system in the target server and the second port of the mainboard in the target server via a fifth switch;

[0023] Establishing a communication connection between the second port and the communication interface in the target server via a sixth switch;

[0024] A communication connection is established between the standby basic input and output system in the target server and the communication interface in the target server via a seventh switch;

[0025] The target server completes the switching of the working mode by controlling the closing or opening of multiple switches from the first switch to the seventh switch, wherein the working mode includes an initial state mode, an emergency startup mode, a rescue mode, and a flashing mode.

[0026] Specifically, the target server may include, for example, a first server and a second server, and both the first server and the second server may include a main BIOS and a backup BIOS. The target server may also include a communication interface, and the communication interfaces in the first server and the second server together constitute a first interface pair for establishing a communication connection between the first server and the second server. By respectively establishing a communication connection or disconnecting the connection between different components through the first switch to the seventh switch, the working mode of the target server can be switched, such as free switching between an emergency startup mode, a rescue mode, a flashing mode, etc. The operation will be more flexible and convenient.

[0027] In an optional implementation, when the second switch and the fifth switch in the target server are closed and the switches other than the second switch and the fifth switch are in an open state, the target server enters the emergency start mode.

[0028] Specifically, the second switch and the fifth switch are closed, and the other switches remain open. At this time, the communication interface is disconnected from the management board network card to prevent the electrical signal from interfering with the Ethernet managed out-of-band. The first port of the main BIOS on the motherboard is exposed to the outside through the communication interface, and the backup BIOS remains connected to the motherboard. At this time, the target server enters the emergency startup mode, which allows other servers to perform fault recovery operations on their own backup BIOS after entering the rescue mode.

[0029] In an optional implementation, when the first switch and the seventh switch in the target server are closed and the switches other than the first switch and the seventh switch are in an open state, the target server enters a rescue mode.

[0030] Specifically, the first switch and the seventh switch are closed, and the other switches are opened. At this time, the communication interface is disconnected from the management board network card to avoid interference between the electrical signal and the Ethernet managed out-of-band. The backup BIOS on the mainboard is exposed to the outside through the communication interface. The main BIOS remains connected to the mainboard to complete the work on its side smoothly. In rescue mode, the backup BIOS can be provided to the faulty server for emergency startup to assist in the rescue and recovery of the faulty server.

[0031] In an optional implementation, when the third switch and the fifth switch in the target server are closed, unless the third switch and the fifth switch are in an open state, the target server enters the flash mode.

[0032] Specifically, the third switch and the fifth switch are closed, and the other switches are opened. At this time, the communication interface is disconnected from the management board network card to avoid mutual interference between the electrical signal and the Ethernet managed out-of-band. The main BIOS on the motherboard is exposed to the outside through the communication interface. The backup BIOS remains connected to the motherboard. In the flash mode, the BIOS of the faulty server can be burned and repaired with the help of the basic input and output system burning device.

[0033] In an optional implementation, when the first switch, the fourth switch, and the fifth switch in the target server are closed and the switches other than the first switch, the fourth switch, and the fifth switch are in an open state, the target server enters an initial state mode.

[0034] Specifically, the first switch, the fourth switch and the fifth switch are closed, and the other switches remain open. At this time, the main BIOS and the backup BIOS are normally connected to the mainboard. The communication interface is connected to the management board network card and used as an out-of-band management network port. The initial state is the normal working state of the server.

[0035] By closing or opening different switches, the server's working mode can be flexibly adjusted according to actual needs.

[0036] In an optional implementation, the basic input and output system burning device includes:

[0037] A terminal device including a basic input and output system burner, a network cable, and a third communication interface;

[0038] The terminal device establishes a communication connection with the third communication interface pair via a network cable;

[0039] The third communication interface and the first communication interface in the first server included in the first interface pair constitute a second interface pair;

[0040] A communication connection is established between the basic input and output system burning device and the first server through the second interface pair.

[0041] Specifically, the basic input / output system burning device includes a terminal device, a network cable, and a third communication interface. The third communication interface and the first interface form a second interface pair to the first interface included. The communication connection between the basic input / output system burning device and the first server is established through the second interface pair, and then the BIOS burner in the terminal device can complete the flashing work of the faulty server, thereby realizing the repair work of the faulty BIOS.

[0042] In an optional implementation, the first server further includes: a first encoding and decoding device; the second server further includes: a second encoding and decoding device; and the basic input and output system burning device further includes: a third encoding and decoding device.

[0043] In a second aspect, the present invention provides a method for repairing a basic input and output system, the method comprising:

[0044] When the first server detects that both the first main basic input-output system and the first standby basic input-output system included in the first server fail, the first server enters an emergency startup mode: the first main basic input-output system disconnects the communication connection with the first mainboard included in the first server, and the first standby basic input-output system maintains the communication connection with the first mainboard; a notification message is sent to the second server, where the notification message is used to indicate that both the first main basic input-output system and the first standby basic input-output system in the first server fail;

[0045] The second server controls itself to enter the rescue mode according to the notification message: the second main basic input and output system in the second server maintains a communication connection with the second mainboard, the communication connection between the second standby basic input and output system and the second mainboard is disconnected, and the second standby basic input and output system establishes a communication connection with the first mainboard through the preconfigured first interface pair;

[0046] After the first server controls the first mainboard to successfully enter the operating system through the second backup basic input and output system, the firmware flashing tool in the operating system is used to complete the repair operation of the first backup basic input and output system; when it is determined that the repair operation of the first backup basic input and output system is completed, the connection between the first server and the second server is disconnected; after the first server is restarted by the first backup basic input and output system, the first mainboard is controlled to enter the operating system; and the firmware flashing tool in the operating system is used to complete the repair operation of the first main basic input and output system.

[0047] The basic input and output system repair method provided by the present invention has the following advantages:

[0048] When the first server detects that both its first main BIOS and first standby BIOS fail, it means that the first server cannot perform fault recovery normally, so it needs to enter the emergency startup mode. Then, a notification message is sent to the second server, and the second server enters the rescue mode according to the notification message. In this way, the first server can control the first mainboard to enter the operating system through the second standby BIOS, and then use the firmware flashing tool in the operating system to complete the repair operation of the first standby BIOS. When the first standby BIOS is successfully repaired, the subsequent first mainboard can enter the operating system after the emergency startup of the first standby BIOS, and then complete the repair operation of the first main BIOS through the operating system. Therefore, after the first standby BIOS is successfully repaired, the connection between the first server and the second server can be disconnected. In this way, although two servers of the same type are used to implement the fault repair operation, during the entire working process, because the connection between the mainboard of the second server and the second main BIOS is never disconnected, when the first server is repaired, the business processing work of the second server is not affected at all. Moreover, in the whole process, because the first main BIOS and the first standby BIOS in the first server are not disassembled, the requirements for the staff do not need to be too high. This solution has a wider scope of application, especially when the BIOS chip in some servers is directly soldered on the motherboard. Furthermore, the firmware flashing tool under the operating system is used in this application document, which has a higher success rate than the firmware flashing tool built into the BMC. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 is a structural schematic diagram of a basic input and output system repair device provided by an embodiment of the present invention;

[0051] Figure 2 is a schematic structural diagram of another basic input and output system repair device provided by an embodiment of the present invention;

[0052] Figure 3 It is a structural schematic diagram of a target server in an initial state provided by the present invention;

[0053] Figure 4 It is a structural schematic diagram of a target server in an emergency startup mode provided by the present invention;

[0054] Figure 5 It is a structural schematic diagram of a target server in a rescue mode provided by the present invention;

[0055] Figure 6 It is a structural schematic diagram of a target server in a flash mode provided by the present invention;

[0056] Figure 7 It is a structural schematic diagram of a burning device provided by the present invention;

[0057] Figure 8 It is a flowchart of a basic input and output system repair method provided by an embodiment of the present invention;

[0058] Fig. 9 is an exemplary overall structural diagram of a basic input and output system repair device provided by an embodiment of the present invention;

[0059] Fig.10 It is a schematic diagram of an exemplary method flow of a basic input and output system repair method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0061] The Basic Input Output System (BIOS) of Read-Only Memory (ROM) is a set of programs fixed on a ROM chip on the computer's motherboard. It stores the most important basic input and output programs of the computer, system setting information, power-on self-test program and system boot program. Its main function is to provide the lowest-level and most direct hardware settings and control for the computer.

[0062] In modern servers, two BIOS chips are usually configured for backup and redundancy. When the main BIOS chip fails, the backup BIOS can be used to boot. During server maintenance, BIOS upgrade is a common operation to optimize system performance or fix known problems. However, if the BIOS upgrade process encounters unexpected interruptions or upgrade file corruption, etc. Dual BIOS redundancy can theoretically provide protection against abnormal BIOS failures, but human operations often cause problems in both BIOS at the same time. This causes the BIOS to fail to work properly, affecting the startup of the server.

[0063] In a related technology, to solve the above problem, out-of-band management can be used to log in to the BMC management system. The BIOS firmware is refreshed through the flashing tool provided by the BMC. This method is the preferred solution because it is simple to operate and does not require disassembly of the machine or other hardware tools. In actual operation, the firmware flashing tool under the operating system is usually more powerful and has a wider range of applications. However, after the failure of both BIOSes, the success rate of the firmware flashing tool built into the BMC is not high.

[0064] In another related technology, the BIOS chip of the failed server can be removed and migrated to a spare BIOS location on another server. After entering the operating system, the BIOS chip can be refreshed using tools under the operating system.

[0065] However, this solution requires the use of a second server, and the second server needs to be powered off and unpacked. The operation involves plugging and unplugging the BIOS chip, which requires high maintenance personnel and may damage the hardware. In addition, the BIOS chip of some servers is directly soldered to the motherboard, so this solution cannot be used.

[0066] In addition, you can also open the chassis of the power-off server and use a professional burner to reprogram the BIOS chip. For pluggable BIOS chips, remove the chip directly for flashing. For some non-removable BIOS chips, use a special clip to clamp the chip PIN pin for operation.

[0067] Although this solution can completely solve the BIOS failure, it is inconvenient to operate. It is necessary to power off the server, open the chassis, and directly disassemble the BIOS chip or use a clip with contacts to operate, which has a high risk of damaging the motherboard and chip and has high requirements for maintenance personnel.

[0068] To solve the above problems, an embodiment of the present invention provides an embodiment of remotely upgrading a complex programmable logic device. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system (client) including a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0069] This embodiment provides a basic input and output system repair device. Figure 1 As shown, the device comprises:

[0070] The first server 10 and the second server 20 of the same type as the first server 10 establish a communication connection between the first server 10 and the second server 20 through a preconfigured first interface pair; the first server and the second server both include a main basic input and output system and a backup basic input and output system.

[0071] The first server 10 is used to enter an emergency startup mode when it is detected that both the first main basic input-output system 101 and the first standby basic input-output system 102 included in the first server 10 have failed, wherein the first server 10 enters the emergency startup mode including: disconnecting the communication connection between the first main basic input-output system 101 and the first mainboard 103 included in the first server 10, and maintaining the communication connection between the first standby basic input-output system 102 and the first mainboard 103; sending a notification message to the second server 20, the notification message is used to indicate that both the first main basic input-output system 101 and the first standby basic input-output system 102 in the first server 10 have failed;

[0072] The second server 20 is used to control itself to enter the rescue mode according to the notification message, wherein the second server 20 enters the rescue mode including: the second main basic input and output system 201 in the second server 20 maintains a communication connection with the second mainboard 203, the communication connection between the second standby basic input and output system 202 and the second mainboard 203 is disconnected, and the second standby basic input and output system 202 establishes a communication connection with the first mainboard 103 through a preconfigured first interface pair;

[0073] The first server 10 is also used to control the first mainboard 103 to successfully enter the operating system through the second backup basic input and output system 202, and then use the firmware flashing tool in the operating system to complete the repair operation of the first backup basic input and output system 102; when it is determined that the repair operation of the first backup basic input and output system 102 is completed, disconnect the connection between the first server 10 and the second server 20; after completing the restart operation of the first server 10 using the first backup basic input and output system 102, control the first mainboard 103 to enter the operating system; use the firmware flashing tool in the operating system to complete the repair operation of the first main basic input and output system 101.

[0074] Specifically, when the first server 10 detects that both its first main BIOS 101 and first backup BIOS 102 fail, it means that the first server cannot perform fault recovery normally, so it needs to enter the emergency startup mode. The emergency startup mode is to disconnect the first main BIOS 101 from the first main board 103, and keep the first backup BIOS 102 connected to the first main board 103. Then, a notification message is sent to the second server 20.

[0075] The second server 20 enters the rescue mode according to the notification message.

[0076] Among them, the rescue mode includes maintaining a communication connection between the second main BIOS 201 and the second mainboard 203 in the second server 20, disconnecting the communication connection between the second standby BIOS 202 and the second mainboard 203, and establishing a communication connection between the second standby BIOS 202 and the first mainboard 103 through a preconfigured first interface pair.

[0077] At this time, in the second server 20, because the second main BIOS 201 maintains a communication connection with the second mainboard 203, the second server 20 can be in a normal working state on the one hand. On the other hand, because the second standby BIOS 202 establishes a communication connection with the first mainboard 103 through the pre-configured first interface pair, the first server 10 can control the first mainboard 103 to enter the operating system through the second standby BIOS 202.

[0078] After successfully entering the operating system, the first server 10 can use the firmware flashing tool in the operating system to complete the repair operation of the first backup BIOS 102. After the first backup BIOS 102 is successfully repaired, the first server 10 can enter the operating system after emergency startup through the first backup BIOS 102. Then, the repair operation of the first main BIOS 101 is completed through the operating system. Therefore, after the first backup BIOS 102 is successfully repaired, the connection between the first server 10 and the second server 20 can be disconnected.

[0079] A basic input / output system repair device provided by an embodiment of the present invention uses two servers of the same type to implement fault repair operations. However, during the entire working process, because the connection between the mainboard of the second server and the second main BIOS is never disconnected, the business processing of the second server is not affected at all when the repair operation is performed on the first server. Moreover, during the entire process, because no disassembly operation is performed on the first main BIOS and the first backup BIOS in the first server, the requirements for the staff do not need to be too high. The scope of application of this solution is wider, especially compared to the situation where the BIOS chip in some servers is directly soldered to the mainboard. Furthermore, the firmware flashing tool under the operating system is used in this application document, which has a higher success rate than the firmware flashing tool built into the BMC.

[0080] In an optional implementation, based on the above embodiment, considering that in some extreme cases, the second backup BIOS 202 of the second server 20 may fail to start the operating system in the first server 10. In order to further optimize the technical solution of the present application, therefore, in an optional example, see Figure 2 As shown, the device may further include: a basic input and output system burning device 30.

[0081] The first server 10 is further configured to disconnect the connection between the first server 10 and the second server 20 and enter a flashing mode when the control of the first mainboard 103 to enter the operating system via the second standby basic input and output system 202 fails, wherein the flashing mode includes: the first main basic input and output system 101 establishes a communication connection with the first interface pair;

[0082] Controlling the burning device to complete the flashing operation on the first main basic input and output system 101;

[0083] After the flash operation on the first main basic input and output system 101 is completed, the first server 10 enters the rescue mode;

[0084] The programming device is controlled to complete the flashing operation on the first standby basic input and output system 102 .

[0085] Specifically, when the second backup BIOS 202 fails to control the first mainboard 103 to enter the operating system, it is equivalent to that the repair work of the main / backup BIOS in the first server 10 can no longer be completed through the second server 20. It is necessary to reconsider the repair work of the main / backup BIOS of the first server 10 through other methods. Therefore, in the embodiment of the present application, the connection between the first server 10 and the second server 20 can be disconnected, and then the flashing mode is entered.

[0086] The flashing mode includes: the first main basic input and output system 101 establishes a communication connection with the first interface pair.

[0087] Then, a communication connection is established between the first server 10 and the burning device, and the burning device is controlled to complete the flashing operation of the first main BIOS 101. After the flashing operation of the first main basic input and output system 101 is completed, the rescue mode is entered. That is, a communication connection is established between the first main board 103 and the first main BIOS 101, and the service processing work of the server is carried out normally. The first standby BIOS 102 and the first communication interface in the first server 10 establish a communication connection, and the communication between the first standby BIOS 102 and the burning device is realized through the connection, and the repair work of the first standby BIOS 102 is performed by using the burning device.

[0088] In the above embodiment, when the control of the first BIOS to enter the operating system through the second backup BIOS 202 fails, it is no longer necessary to consider implementing the fault repair work of the BIOS in the first server 10 through the second server 20. At this time, the connection between the first server 10 and the second server 20 can be disconnected, and the flashing mode is entered. Then, a communication connection is established between the first mainboard 103 and the BIOS burning device, and the fault repair work of the first main BIOS 101 and the first backup BIOS 102 is completed through the BIOS burning device in the BIOS repair device. Reduce the system downtime caused by BIOS failure, improve the reliability and stability of the system, and reduce the impact on the business.

[0089] Based on any of the foregoing embodiments, since the first server 10 and the second server 20 can both serve as fault servers at a certain moment, or can also serve as rescue servers at a certain moment, the first server 10 and the second server 20 are actually configured with the same or similar structure. In order to perform different functions at different moments. In order to introduce the specific structural details of the first server 10 and the second server 20, the target server is taken as an example to refer to servers of the same type. That is, the target server may include the first server 10 and the second server 20. Figure 3 As shown, Figure 3 An example of the target server structure is given in . Figure 3 As shown, the target server may include a management network card in addition to a main BIOS, a standby BIOS, and a communication interface. The first interface pair mentioned above includes a first communication interface in the first server 10 and a second communication interface in the second server 20.

[0090] Establishing a communication connection between a main basic input and output system in the target server and a first port of a mainboard in the target server via a first switch;

[0091] Establishing a communication connection between the first port and the communication interface in the target server via the second switch;

[0092] Establishing a communication connection between the main basic input and output system in the target server and the communication interface in the target server via a third switch;

[0093] A communication connection is established between the management board network card in the target server and the communication interface in the target server via a fourth switch;

[0094] Establishing a communication connection between the standby basic input and output system in the target server and the second port of the mainboard in the target server via a fifth switch;

[0095] Establishing a communication connection between the second port and the communication interface in the target server via a sixth switch;

[0096] A communication connection is established between the standby basic input and output system in the target server and the communication interface in the target server via the seventh switch.

[0097] Specifically, in an optional example, the communication interface may be, for example, an Intelligent Platform Management Interface (IPMI), that is, the first server 10 includes a first IPMI interface, and the second server 20 includes a second IPMI interface.

[0098] See Figure 3 As shown, a communication connection is established between the main BIOS in the target server and the first port of the motherboard in the target server via a first switch S1. A communication connection is established between the first port and the communication interface in the target server via a second switch S2, for example Figure 3 A communication connection is established between the main BIOS and the IPMI port in the target server through S2. A communication connection is established between the main BIOS and the IPMI in the target server through the third switch S3; a communication connection is established between the network card of the management board and the IPMI through the fourth switch S4; a communication connection is established between the standby BIOS and the second port of the mainboard through the fifth switch S5; a communication connection is established between the second port and the IPMI through the sixth switch S6; a communication connection is established between the standby BIOS and the IPMI in the target server through the seventh switch S7.

[0099] The target server controls the communication connection and disconnection between two components connected by different switches through the first switch to the seventh switch. By closing or opening different switches, the switching of different working modes of the target server is realized. The specific control of the conduction or closing of the first switch to the seventh switch can be achieved, for example, by the level, the control of the enable signal, or other feasible methods. The working mode of the target server can include, for example, an initial state mode, an emergency startup mode, a rescue mode, and a flash mode.

[0100] In an optional example, the switch may include an analog switch, a hardware switch, or an electrical component to implement the closing or opening function of the relevant switch, etc. The specific form of the switch is not limited here.

[0101] The following is a more detailed description of different working modes. For details, please refer to the following:

[0102] In an alternative example, see Figure 3 As shown, Figure 3 A structural diagram showing the target server in an initial state mode is shown in FIG.

[0103] When the first switch, the fourth switch, and the fifth switch in the target server are closed, and the switches other than the first switch, the fourth switch, and the fifth switch are in an open state, the target server enters an initial state mode.

[0104] See also Figure 3 As shown, the first switch is closed, a communication connection is established between the main BIOS and the first port of the mainboard, the first port and the IPMI are disconnected, and the main BIOS and the IPMI are directly disconnected. A communication connection is established between the standby BIOS and the mainboard via S5. The standby BIOS and the IPMI are disconnected. The second port of the mainboard and the IMPI are also directly disconnected. The management board network card and the IPMI are directly closed via S4 to maintain the communication connection.

[0105] At this time, the main BIOS chip and the backup BIOS chip are normally connected to the mainboard. The IPMI interface is connected to the management board network card and used as an out-of-band management network port. The initial state is the normal working state of the server.

[0106] In another specific example, see Figure 4 As shown, when the second switch and the fifth switch in the target server are closed and the switches except the second switch and the fifth switch are in the open state, the target server enters the emergency start mode.

[0107] Specifically, switches S2 and S5 are closed, and other switches remain open. At this time, the IPMI interface is disconnected from the management board network card to prevent electrical signals from interfering with the Ethernet managed out-of-band. The first port is exposed to the outside through the IPMI interface. The backup BIOS remains connected to the mainboard. In the emergency startup mode, emergency startup can be performed with the help of the rescue server, and an attempt can be made to repair the backup BIOS under the operating system.

[0108] In another specific example, see Figure 5 As shown, when the first switch and the seventh switch in the target server are closed and the switches except the first switch and the seventh switch are in an open state, the target server enters a rescue mode.

[0109] Specifically, switches S1 and S7 are closed, and other switches are open. At this time, the IPMI interface is disconnected from the management board network card to prevent electrical signals from interfering with the Ethernet managed out-of-band. The backup BIOS on the motherboard is exposed to the outside through the IPMI interface. The main BIOS remains connected to the motherboard. In rescue mode, the backup BIOS can be provided to the faulty server for emergency startup.

[0110] In another specific example, see Figure 6 As shown, when the third switch and the fifth switch in the target server are closed, the target server enters the flashing mode unless the third switch and the fifth switch are in the open state.

[0111] Specifically, switches S3 and S5 are closed, and other switches are open. At this time, the IPMI interface is disconnected from the management board network card to prevent electrical signals from interfering with the Ethernet managed out-of-band. The main BIOS on the motherboard is exposed to the outside through the IPMI interface. The backup BIOS chip remains connected to the motherboard.

[0112] In flash mode, you can use a burner to burn and repair the main BIOS of the machine through the IPMI port.

[0113] In an alternative example, see Figure 7 As shown, the BIOS basic input and output system burning device includes:

[0114] A terminal device including a basic input and output system burner, a network cable, and a third communication interface;

[0115] The terminal device establishes a communication connection with the third communication interface pair via a network cable;

[0116] The third communication interface and the first communication interface in the first server 10 included in the first interface pair constitute a second interface pair;

[0117] A communication connection is established between the BIOS burning device and the first server 10 through the second interface pair.

[0118] See Figure 7 As shown, the terminal device is connected to the BIOS burner through a USB cable, the BIOS burner is connected to the codec through the output signal line, the codec is converted into 8 signal lines, and after passing through the RJ45 connector, it is connected to the IPMI interface of the server through the Gigabit straight-through cable. The faulty server is connected through the IPMI interface to achieve fault repair work on the faulty server.

[0119] In an alternative example, something like Figure 7 The codec (third codec device) shown in FIG. 1 is actually an optional component. In addition, the first server 10 may also include: a first codec device; the second server 20 may also include: a second codec device.

[0120] The encoding and decoding device, also known as the codec, is used to solve the problem of different pin numbers of BIOS of different brands and specifications. The codec adopts mature technology. For example, the codec can use the principle of multiplexer and reverse multiplexer to realize the conversion of 16-pin data into 8-line data, or the conversion of other number of pin data into 8-line and then transmit and reverse transmission. In particular, when the BIOS chip is 8-pin, the codec can be omitted.

[0121] In the above embodiment, the first server 10 and the second server 20 both perform corresponding operations through their own processors, such as fault detection, controlling the closing or opening of different switches, and entering the operating system to complete fault repair. However, in actual application, the above operations can also be performed by additional terminal devices or implemented by user manual operations.

[0122] In a specific example, for example, a communication connection is established between a terminal device and different servers. And the working status of the main and standby BIOS in different servers is detected by certain detection means. When it is identified that both the main and standby BIOS of a server have failed, other servers that have not had BIOS failures are controlled as rescue servers through the remote control interface to perform the above-mentioned fault repair operation. Alternatively, the corresponding fault repair work is completed through a BIOS burning device connected to the terminal device. Moreover, the remote operation interface can also display the working status of different servers.

[0123] In this embodiment, a basic input output system repair method is provided, which can be used for the basic input output system repair device mentioned above. Figure 8 is a flow chart of a method for repairing a basic input / output system according to an embodiment of the present invention. Figure 8 As shown, the process includes the following steps:

[0124] Step S801: When the first server detects that both the first main basic input-output system and the first backup basic input-output system included in the first server fail, the first server enters an emergency start mode.

[0125] Among them, the first server enters the emergency startup mode including: disconnecting the communication connection between the first main basic input-output system and the first mainboard included in the first server, and maintaining the communication connection between the first standby basic input-output system and the first mainboard; sending a notification message to the second server, the notification message is used to indicate that both the first main basic input-output system and the first standby basic input-output system in the first server have failed.

[0126] Step S802: The second server controls itself to enter a rescue mode according to the notification message.

[0127] Among them, the second server enters the rescue mode including: the second main basic input and output system in the second server maintains a communication connection with the second mainboard, the communication connection between the second standby basic input and output system and the second mainboard is disconnected, and the second standby basic input and output system establishes a communication connection with the first mainboard through a preconfigured first interface pair.

[0128] Step S803, the first server controls the first mainboard to successfully enter the operating system through the second standby basic input and output system, and then uses the firmware flashing tool in the operating system to complete the repair operation of the first standby basic input and output system.

[0129] Step S804: When the first server determines that the repair operation of the first standby BIOS is completed, the connection between the first server and the second server is disconnected.

[0130] Step S805 , after the first server uses the first standby basic input and output system to complete the restart operation of the first server, the first mainboard is controlled to enter the operating system.

[0131] Step S806: The first server uses a firmware flashing tool in the operating system to complete a repair operation on the first main basic input / output system.

[0132] The above method steps have been described in detail in the above embodiments, so they will not be repeated here.

[0133] The following is a specific example to illustrate the overall operation process of the above method of the present application. Fig. 9 shown.

[0134] The server cannot start because of BIOS failure due to improper maintenance or other reasons.

[0135] Prepare a normal server of the same model as the rescue server. The faulty server and the rescue server are in the initial state by default. Fig.10 As shown, the faulty server is placed in emergency startup mode. On the faulty server side, the switch S4 between the management board network card and the IPMI interface is disconnected, the switch S1 between the main BIOS and the motherboard is disconnected, the switch S2 between the main BIOS motherboard terminal connection point and the codec is closed, and the other switches remain the same as the initial state. At this time, it is equivalent to pulling out the main BIOS chip and exposing the corresponding contacts on the motherboard through the IPMI interface.

[0136] On the rescue server, put the control switch into rescue mode, such as Fig.10 As shown, the switch S4' between the management board network card and the IPMI interface is disconnected. The switch S1' between the standby BIOS chip and the mainboard is disconnected. The switch S7' between the standby BIOS pin and the codec is closed, and the other switches remain the same as the initial state. At this time, the rescue server can maintain normal operation because the main BIOS is online. The standby BIOS chip is exposed to the outside through the IPMI interface.

[0137] Use a straight-through network cable to directly connect the IPMI interface of the faulty server and the IPMI interface of the rescue server, and mount the backup BIOS chip of the rescue server to the mainboard of the faulty server.

[0138] The failed server is booted through the backup BIOS chip of the rescue server to complete the emergency startup of the device. The expected situation is that the operating system can be entered normally and the emergency startup is completed.

[0139] At this time, you can rescue and repair the business system and data. After the business application and data backup are completed, you can proceed to the next step of repair, that is, repair the backup BIOS. For details, see the following:

[0140] After the faulty server enters the operating system, use the BIOS flash tool under the operating system to flash the spare BIOS chip. Since the BIOS flash tool under the operating system is powerful, the success rate of repair is high.

[0141] Set both the faulty server and the rescue server to their initial state, and disconnect the direct line between the IPMI interfaces. Restart the faulty server, and the faulty server can now boot from the backup BIOS. After entering the operating system, rewrite and repair the main BIOS chip under the operating system. After the main BIOS is successfully rewritten, the repair is complete.

[0142] In an optional example, if the flashing of the spare BIOS chip fails under the operating system, a repair work needs to be performed using a burner.

[0143] At this point, you can restore the rescue server to its original state and disconnect the direct line between the IPMI interface of the faulty server and the rescue server. Switch the faulty server to flash mode, where the main BIOS of the faulty server is directly exposed to the outside through the IPMI interface via the codec. Figure 7 The BIOS burner shown is connected to the IPMI interface of the faulty server via an RJ45 interface, and can burn the main BIOS to complete the repair of the main BIOS.

[0144] On this basis, the faulty server is switched to rescue mode. At this time, the backup BIOS of the faulty server is directly exposed to the outside through the IPMI interface via the codec. Figure 7 The BIOS burner shown is connected to the IPMI interface of the faulty server via the RJ45 interface, and can burn the spare BIOS to complete the repair of the spare BIOS chip. At this point, the repair is completed.

[0145] In the repair method of the basic input / output system provided in this embodiment, when the first server detects that both the first main BIOS and the first standby BIOS of the first server fail, it indicates that the first server cannot perform fault recovery normally, so it needs to enter the emergency startup mode. Then, a notification message is sent to the second server, and the second server enters the rescue mode according to the notification message. In this way, the first server can control the first mainboard to enter the operating system through the second standby BIOS, and then use the firmware flashing tool in the operating system to complete the repair operation of the first standby BIOS. When the first standby BIOS is successfully repaired, the subsequent first mainboard can enter the operating system after the emergency startup of the first standby BIOS, and then the repair operation of the first main BIOS can be completed through the operating system. Therefore, after the first standby BIOS is successfully repaired, the connection between the first server and the second server can be disconnected. In this way, although two servers of the same type are used to implement the fault repair operation, during the entire working process, because the connection between the mainboard of the second server and the second main BIOS is never disconnected, when the first server is repaired, the business processing work of the second server is not affected at all. Moreover, in the whole process, because the first main BIOS and the first standby BIOS in the first server are not disassembled, the requirements for the staff do not need to be too high. This solution has a wider scope of application, especially when the BIOS chip in some servers is directly soldered on the motherboard. Furthermore, the firmware flashing tool under the operating system is used in this application document, which has a higher success rate than the firmware flashing tool built into the BMC.

[0146] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A basic input and output system repair device, characterized in that: The device comprises: a first server, configured to, when detecting that both a first main basic input-output system and a first standby basic input-output system included in the first server fail, enter an emergency startup mode: disconnect the communication connection between the first main basic input-output system and a first mainboard included in the first server, and maintain the communication connection between the first standby basic input-output system and the first mainboard; and send a notification message to the second server, wherein the notification message is used to indicate that both the first main basic input-output system and the first standby basic input-output system in the first server fail; The second server is configured to control itself to enter a rescue mode according to the notification message: a second main basic input / output system in the second server and a second mainboard maintain a communication connection, a second standby basic input / output system and the second mainboard are disconnected from a communication connection, and the second standby basic input / output system establishes a communication connection with the first mainboard through a preconfigured first interface pair; The first server is further used for, after successfully controlling the first mainboard to enter the operating system through the second backup basic input / output system, using a firmware flashing tool in the operating system to complete a repair operation on the first backup basic input / output system; when it is determined that the repair operation on the first backup basic input / output system is completed, disconnecting the connection between the first server and the second server; after completing a restart operation on the first server using the first backup basic input / output system, controlling the first mainboard to enter the operating system; and using the firmware flashing tool in the operating system to complete a repair operation on the first main basic input / output system.

2. The device according to claim 1, characterized in that The device also includes: a basic input and output system burning device; The first server is further configured to disconnect the first server from the second server and enter a flash mode when the control of the first mainboard to enter the operating system through the second standby basic input and output system fails, wherein the flash mode includes: the first main basic input and output system establishing a communication connection with the first interface pair; Controlling the basic input and output system burning device to complete the flashing operation on the first main basic input and output system; After the flashing operation on the first main basic input and output system is completed, the first server enters a rescue mode; The basic input and output system burning device is controlled to complete the flashing operation on the first standby basic input and output system.

3. The device according to claim 1 or 2, characterized in that: The target server also includes a management board network card, and the target server includes the first server and the second server; the first interface pair includes a first communication interface in the first server and a second communication interface in the second server; A communication connection is established between the main basic input and output system in the target server and the first port of the mainboard in the target server via a first switch; Establishing a communication connection between the first port and the communication interface in the target server via a second switch; A communication connection is established between the main basic input and output system in the target server and the communication interface in the target server via a third switch; A communication connection is established between the management board network card in the target server and the communication interface in the target server via a fourth switch; A communication connection is established between the standby basic input and output system in the target server and the second port of the mainboard in the target server via a fifth switch; A communication connection is established between the second port and the communication interface in the target server via a sixth switch; A communication connection is established between the standby basic input and output system in the target server and the communication interface in the target server via a seventh switch; The target server completes the switching of the working mode by controlling the closing or opening of multiple switches from the first switch to the seventh switch, wherein the working mode includes an initial state mode, an emergency startup mode, a rescue mode, and a flashing mode.

4. The device according to claim 3, characterized in that When the second switch and the fifth switch in the target server are closed, and the switches except the second switch and the fifth switch are in an open state, the target server enters an emergency startup mode.

5. The device according to claim 3, characterized in that When the first switch and the seventh switch in the target server are closed and the switches except the first switch and the seventh switch are in an open state, the target server enters a rescue mode.

6. The device according to claim 3, characterized in that When the third switch and the fifth switch in the target server are closed, unless the third switch and the fifth switch are in an open state, the target server enters a flashing mode.

7. The device according to claim 3, characterized in that When the first switch, the fourth switch, and the fifth switch in the target server are closed, and the switches except the first switch, the fourth switch, and the fifth switch are in an open state, the target server enters the initial state mode.

8. The device according to claim 2, characterized in that The basic input and output system burning device comprises: A terminal device including a basic input and output system burner, a network cable, and a third communication interface; The terminal device establishes a communication connection with the third communication interface pair via the network cable; The third communication interface and the first communication interface in the first server included in the first interface pair constitute a second interface pair; A communication connection is established between the basic input and output system burning device and the first server through the second interface pair.

9. The device according to claim 2, characterized in that The first server further includes: a first encoding and decoding device; the second server further includes: a second encoding and decoding device; the basic input and output system burning device further includes: a third encoding and decoding device.

10. A method for repairing a basic input and output system, characterized in that: The method is applied to the basic input output system repair device as claimed in any one of claims 1 to 9, and the method comprises: When the first server detects that both the first main basic input-output system and the first standby basic input-output system included in the first server fail, the first server enters an emergency startup mode: the first main basic input-output system is disconnected from the first mainboard included in the first server, and the first standby basic input-output system maintains the communication connection with the first mainboard; a notification message is sent to the second server, where the notification message is used to indicate that both the first main basic input-output system and the first standby basic input-output system in the first server fail; The second server controls itself to enter the rescue mode according to the notification message: the second main basic input and output system in the second server maintains a communication connection with the second mainboard, the communication connection between the second standby basic input and output system and the second mainboard is disconnected, and the second standby basic input and output system establishes a communication connection with the first mainboard through the preconfigured first interface pair; After the first server controls the first mainboard to successfully enter the operating system through the second backup basic input and output system, the first server uses the firmware flashing tool in the operating system to complete the repair operation of the first backup basic input and output system; when it is determined that the repair operation of the first backup basic input and output system is completed, the connection between the first server and the second server is disconnected; after the first backup basic input and output system completes the restart operation of the first server, the first mainboard is controlled to enter the operating system; and the firmware flashing tool in the operating system is used to complete the repair operation of the first main basic input and output system.

Citation Information

Patent Citations

  • Server Dual BIOS function stability test method and system, terminal and storage medium

    CN111694698A

  • Domestic server BIOS firmware backup device

    CN218974903U

  • Server system and BIOS restoration method thereof

    JP2011253408A

  • Server system

    US20160147604A1

  • Basic input / output system (BIOS) device management

    US20210117272A1