[go: up one dir, main page]

CN114153503A - A BIOS control method, device and medium - Google Patents

A BIOS control method, device and medium Download PDF

Info

Publication number
CN114153503A
CN114153503A CN202111278703.7A CN202111278703A CN114153503A CN 114153503 A CN114153503 A CN 114153503A CN 202111278703 A CN202111278703 A CN 202111278703A CN 114153503 A CN114153503 A CN 114153503A
Authority
CN
China
Prior art keywords
bios
image file
update
started
control method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202111278703.7A
Other languages
Chinese (zh)
Inventor
姚藩益
李道童
王兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN202111278703.7A priority Critical patent/CN114153503A/en
Publication of CN114153503A publication Critical patent/CN114153503A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a BIOS control method, a device and a medium, comprising the following steps: the base plate control management chip judges whether the BIOS is started successfully or not, if the BIOS is not started successfully, the base plate control management chip determines a BIOS image file to be acquired according to the state of the BIOS and selects a proper BIOS to prevent the BIOS program from being incompatible with system configuration. And the BIOS image file is acquired and written into the equipment to update the BIOS, so that the operation of a manager is not needed, and the processing efficiency is improved. Therefore, by the adoption of the BIOS control method, the problem that the server cannot be normally started due to failure of BIOS starting can be effectively solved, operation of management personnel is not needed, and processing efficiency is improved.

Description

BIOS control method, device and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a BIOS control method, apparatus, and medium.
Background
The Basic Input Output System (BIOS) is a set of programs that are fixed on a ROM chip of a motherboard, and stores the most important Basic Input and Output programs of a computer, System setting information, a self-test program after power-on, and a System self-starting program, and its main function is to provide hardware settings and control of a bottom layer for the computer. When a server is started and operated, if a BIOS starting program is damaged or the BIOS program is incompatible with system configuration, the problem that the system is down due to the failed starting of the BIOS program occurs.
At present, when the BIOS fails to start, a manager needs to maintain the BIOS program through the USB flash disk image, the efficiency is low, and the problem that the BIOS program is incompatible with system configuration cannot be solved.
How to efficiently solve the problem that the server cannot be normally started due to the failed start-up of the BIOS is the important research of those skilled in the art.
Disclosure of Invention
The application aims to provide a BIOS control method, a device and a medium, so as to solve the problem that a server cannot be normally started due to failure of BIOS starting.
In order to solve the above technical problem, the present application provides a BIOS control method, including:
judging whether the BIOS is started successfully;
if the BIOS is not successfully started, determining a BIOS image file to be acquired from an image file library according to the state of the BIOS, wherein the image file library comprises a plurality of BIOS image files;
and acquiring the BIOS image file and writing the BIOS image file into equipment to update the BIOS.
Preferably, the unsuccessful booting of the BIOS includes:
the BIOS is not started;
or the BIOS failed to boot;
correspondingly, the determining the BIOS image file to be acquired according to the status of the BIOS includes:
if the BIOS is not started, determining that the BIOS image file is the image file of the latest version;
and if the BIOS fails to start, determining the corresponding BIOS image file according to version information, wherein the version information is the current version information sent in the BIOS starting process.
Preferably, the obtaining the BIOS image file and writing the BIOS image file into a chip to update the BIOS includes:
acquiring the BIOS mirror image file from a remote server;
checking whether the mirror image file is legal and conforms to the equipment;
and if the BIOS image file is legal and accords with the equipment, writing the BIOS image file into the equipment.
Preferably, after the step of obtaining the BIOS image file and writing the BIOS image file into a device to update the BIOS, the method further includes:
and recording the updating times, updating results and version information of the BIOS.
Preferably, after the step of writing the BIOS image file into a chip to update the BIOS, the method further includes:
restarting the equipment, and judging whether the BIOS is successfully started;
if the BIOS fails to start, judging whether the BIOS is not started before updating;
and if not, updating the BIOS into the system with the latest version.
Preferably, after the step of updating the BIOS to the latest version, the method further includes:
and if the BIOS is not started successfully, recording an event and giving an alarm to a manager.
Preferably, the verifying whether the image file is legal specifically includes:
and carrying out integrity check on the BIOS image file through an MD5 algorithm.
In order to solve the above technical problem, the present application further provides a BIOS control device, including:
the judging module is used for judging whether the BIOS is started successfully or not;
the determining module is used for determining a BIOS image file to be acquired according to the state of the BIOS if the BIOS is not started successfully;
and the updating module is used for acquiring the BIOS image file and writing the BIOS image file into equipment to update the BIOS.
In order to solve the above technical problem, the present application further provides another BIOS control device, including a memory for storing a computer program;
and the processor is used for realizing the steps of the BIOS control method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the BIOS control method.
The application provides a BIOS control method, which comprises the following steps: the base plate control management chip judges whether the BIOS is started successfully or not, if the BIOS is not started successfully, the base plate control management chip determines a BIOS image file to be acquired according to the state of the BIOS and selects a proper BIOS to prevent the BIOS program from being incompatible with system configuration. And the BIOS image file is acquired and written into the equipment to update the BIOS, so that the operation of a manager is not needed, and the processing efficiency is improved. Therefore, by the adoption of the BIOS control method, the problem that the server cannot be normally started due to failure of BIOS starting can be effectively solved, operation of management personnel is not needed, and processing efficiency is improved.
Besides, the application also provides a BIOS control device and a medium, which correspond to the BIOS control method and have the same effects.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a BIOS control method according to an embodiment of the present disclosure;
fig. 2 is a structural diagram of a BIOS control device according to an embodiment of the present disclosure;
fig. 3 is a block diagram of another BIOS control device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a BIOS control method, device and medium.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
In a server application scenario, when a server is started and operated, the BIOS needs to be operated to achieve the purposes of self-checking and setting system information after starting, and when a BIOS starting program is damaged or the BIOS program is incompatible with the server system configuration, the server cannot be started normally. To solve this problem, the BIOS update needs to be controlled. The substrate management control chip judges whether the BIOS is started successfully or not; if the BIOS is not successfully started, determining a BIOS image file to be acquired from an image file library according to the state of the BIOS, wherein the image file library comprises a plurality of BIOS image files; and acquiring the BIOS image file and writing the BIOS image file into equipment to update the BIOS.
It should be noted that the present solution is described with a server architecture of an Intel platform, but the method is not limited to a server of the Intel platform, nor to a server system, and still has a general application value in server systems of other platforms or other computer systems.
Fig. 1 is a flowchart of a BIOS control method according to an embodiment of the present application, and as shown in fig. 1, the BIOS control method includes:
s10: and judging whether the BIOS is started successfully.
It is understood that if the BIOS is not successfully booted, situations may arise including: the boot failure is caused by the BIOS not booting or the termination of the boot program during the BIOS boot process. In specific implementation, the BIOS is stored in a memory chip under the serial peripheral interface SPI, the device monitors a signal on the SPI through the CPLD, and if the BIOS start signal is not obtained within a first preset time, it indicates that the BIOS is not started, and the CPLD sends the signal that the BIOS is not started to the baseboard management control chip (BMC). The BMC chip is also used for detecting whether the BIOS fails to start, and if the BMC chip does not detect a BIOS non-start signal within a first preset time and does not detect a start ending signal sent by the BIOS within a second preset time, the starting behavior of the BIOS is indicated, but the BIOS fails to start.
S11: if the BIOS is not started successfully, determining a BIOS image file to be acquired from an image file library according to the state of the BIOS, wherein the image file library comprises a plurality of BIOS image files.
In a specific implementation, the mirror image file library comprises a plurality of mirror image files. The mirror image file library can be stored in a remote server or a local storage device. The latter scheme requires a separate storage device, increases the hardware cost and maintenance cost of the server, and is not conducive to maintaining the BIOS because the image file stored in the local storage device cannot be updated in time. The remote server may be an FTP server, an HTTP server, or the like.
The BMC chip determines a BIOS image file to be acquired according to the running state of the current BIOS, for example: if the current BIOS is not started, acquiring a server with the latest version; if the current BIOS has a starting behavior but fails to start, the BIOS of the current version is obtained, and the user can also set a BIOS image file selection rule by himself to select a proper BIOS image file for devices in different states.
It can be understood that the image file in the image file library can be updated in real time to ensure that the device can obtain any version of the BIOS image file from the image file library.
It should be noted that, in order to more conveniently obtain the BIOS version information, the BIOS version information may be sent to the BMC chip during the BIOS start-up process, so that the BMC chip may determine the corresponding BIOS image file according to the current BIOS operating state and the BIOS version information.
S12: and acquiring the BIOS image file and writing the BIOS image file into the equipment to update the BIOS.
And acquiring the determined BIOS image file from the image file library, and writing the image file into a corresponding chip of the equipment to update the data BIOS. It can be understood that if the mirror image database is stored in the remote server, the mirror image file needs to be downloaded to the corresponding chip through the network service; and if the mirror image database is stored in the local storage device, writing the mirror image file in the local storage device into the chip. The latter approach places less demand on the network environment.
It should be noted that, in order to ensure that the obtained BIOS image file can normally operate on the current device, the downloaded image file also needs to be subjected to validity check, whether the image file is complete is checked through a hash algorithm, when the image file is checked, hash operation is generally performed on file data by using the hash algorithm and a key to obtain a hash value of the file data, then the hash value and the data are sent to a remote server together, after the remote server receives the data, the hash operation is performed on the data by using the same hash algorithm and key to obtain the hash value, and if the obtained hash value is the same as the received hash value, it is stated that the file data is not tampered. The hash algorithm used in the network data integrity check generally includes MD5 algorithm and SHA algorithm. Further, it is necessary to check whether the downloaded image file is suitable for the current device.
It can be understood that, in order to better master the working state of the virtual machine and provide data support for subsequent operations, a BIOS update event needs to be recorded, and information such as the number of times of updating the BIOS of the current device, the version information of the updated BIOS, whether the update is successful, and the like is written into the log file.
In specific implementation, in order to ensure that the device can operate normally, it is further required to detect whether the BIOS is updated successfully. When the BIOS is updated, the control equipment is restarted, and if the BIOS is restarted successfully, the BIOS is updated successfully; and if the restart fails, judging the reason why the BIOS is not started successfully before and after the update. If the BIOS is not started before updating and the updated BIOS has a starting behavior but fails to start, the current BIOS is considered to be incompatible with the equipment and needs to be updated to the BIOS with the latest version; if neither the BIOS before or after updating is started, or the BIOS before or after updating has a starting behavior but fails to start, and the BIOS after updating is not started, the failure or other problems of the device storage hardware are indicated.
Further, when the device cannot be started normally after the BIOS is updated, the event is recorded and an alarm is sent to a manager.
The application provides a BIOS control method, which comprises the following steps: the base plate control management chip judges whether the BIOS is started successfully or not, if the BIOS is not started successfully, the base plate control management chip determines a BIOS image file to be acquired according to the state of the BIOS and selects a proper BIOS to prevent the BIOS program from being incompatible with system configuration. And the BIOS image file is acquired and written into the equipment to update the BIOS, so that the operation of a manager is not needed, and the processing efficiency is improved. Therefore, by the adoption of the BIOS control method, the problem that the server cannot be normally started due to failure of BIOS starting can be effectively solved, operation of management personnel is not needed, and processing efficiency is improved.
In specific implementation, the condition that the BIOS is not started successfully includes two conditions that the BIOS is not started or the BIOS is failed to start, the BIOS sends version information to the BMC during the starting process, but when the BIOS is not started, the BIOS does not have a starting action, and the BMC cannot acquire the version information of the BIOS. Therefore, different schemes should be adopted to determine the version of the BIOS image file according to different states of the BIOS.
On the basis of the above embodiment, determining the BIOS image file to be acquired according to the status of the BIOS includes:
if the BIOS is not started, determining that the BIOS image file is the image file of the latest version;
and if the BIOS fails to start, determining a corresponding BIOS image file according to the version information, wherein the version information is the current version information sent in the BIOS starting process.
The image file to be acquired is determined according to the state of the BIOS, when the version information of the current BIOS can be acquired, the image file of the corresponding version is acquired, and when the version information cannot be acquired, the image file of the minimum version is acquired.
Further, when the BIOS is damaged, the corresponding BIOS image file may be obtained according to the version information of the current BIOS recorded in the log file.
In the embodiment, the version of the BIOS image file is determined by adopting different schemes, so that the problem that a proper image file cannot be acquired due to BIOS damage and the like is prevented, and the reliability of the scheme is improved.
In particular implementations, storing the image file library in a local storage device increases server hardware costs and is not conducive to updating and maintaining the BIOS image files in the image file library. Therefore, on the basis of the above embodiments, acquiring the BIOS image file and writing the BIOS image file to the chip to update the BIOS includes:
acquiring a BIOS (basic input output System) image file from a remote server;
checking whether the mirror image file is safe and conforms to equipment;
and if the BIOS image file is safe and accords with the equipment, writing the BIOS image file into the equipment.
In order to ensure that the obtained BIOS image file can normally run on the current equipment, before the image file is used for Hill equipment, the legality of the downloaded image file needs to be checked, whether the image file is complete is checked through a Hash algorithm, the Hash algorithm and a key are generally used for carrying out Hash operation on file data to obtain a Hash value of the file data when the image file is checked, then the Hash value and the data are sent to a remote server together, after the remote server receives the data, the Hash operation is carried out on the data by using the same Hash algorithm and the same key to obtain the Hash value, and if the obtained Hash value is the same as the received Hash value, the file data is stated to be not tampered. The hash algorithm used in the network data integrity check generally includes MD5 algorithm and SHA algorithm.
Furthermore, different devices have different hardware architectures, such as an X86 architecture, an X64 architecture, an ARM architecture, and the like, and different operating systems, such as a Windows system, a Linux system, and the like, and in order to ensure that an image file can normally operate, it is also necessary to check whether the downloaded image file is suitable for the current device.
In this embodiment, the BIOS image file is acquired from the remote server, so that the hardware cost and the image file maintenance cost are reduced, and meanwhile, the validity of the acquired BIOS image file is checked to determine whether the acquired BIOS image file conforms to the current device, so that the acquired image file can be ensured to normally run on the current device.
In a specific implementation, in order for a BIOS manager to obtain a working state of the BIOS and take a corresponding operation on the BIOS, a BIOS update event needs to be recorded.
On the basis of the above embodiment, after the step of obtaining the BIOS image file and writing the BIOS image file into the device to update the BIOS, the method further includes:
and recording the updating times, updating results and version information of the BIOS.
It can be understood that, the recording of the BIOS update event may include, in addition to recording information such as the update frequency of the BIOS of the current device, whether the update is successful, and version information of the updated BIOS, different conditions occurring in the update process, for example: whether compatibility issues exist, BIOS cannot successfully boot for reasons such as: if the BIOS version information before and after updating is consistent, indicating that the BIOS is damaged; and if the BIOS version information before and after updating is inconsistent, indicating that the BIOS is incompatible with the current equipment. And if the BIOS fails to be updated, recording the reason of unsuccessful starting of the BIOS before and after updating so as to facilitate the analysis of the equipment by a manager.
It should be noted that after the BIOS is recorded in the log file, the log file may be saved in the local device, or may be saved in a remote server for storing the mirror image file library. Compared with the former scheme, the method for storing the log file in the remote server has the advantages of being convenient to check and not prone to losing data due to equipment failure.
In this embodiment, information such as the update times, the update result, and the updated version information of the BIOS is written into the log file, so that management personnel can know the working state of the BIOS of the device, and data support is provided for subsequent development work.
In specific implementation, in order to ensure that the problem that the device cannot be normally started due to the BIOS is solved, it is further required to detect whether the device can normally operate.
On the basis of the above embodiment, after the step of writing the BIOS image file into the chip to update the BIOS, the method further includes:
restarting the device, and judging whether the BIOS is successfully started;
if the BIOS fails to start, judging whether the BIOS is not started before updating;
if not, updating the BIOS to the system with the latest version.
It can be understood that, after the BIOS update is finished, the control device is restarted, and if the restart is successful, the BIOS update is successful; and if the restart fails, judging the reason why the BIOS is not started successfully before and after the update. If the BIOS is not started before updating and the updated BIOS has a starting behavior but fails to start, the current BIOS is considered to be incompatible with the equipment and needs to be updated to the BIOS with the latest version; if neither the BIOS before or after updating is started, or the BIOS before or after updating has a starting behavior but fails to start, and the BIOS after updating is not started, the failure or other problems of the device storage hardware are indicated.
In this embodiment, whether the device can be started or not is detected after the update of the BIOS is completed, and if the device cannot be started, corresponding operations are taken according to the working states of the BIOS before and after the update, so that the stability and reliability of the scheme are improved.
In the specific implementation, when the BIOS cannot be successfully started, it may be because the BIOS program has an error, or because the device itself has a failure, and only updating the BIOS program cannot solve the problem caused by the device failure.
On the basis of the above embodiment, after the step of updating the BIOS to the latest version, the method further includes:
if the BIOS is not successfully started, recording the event and sending an alarm to a manager.
Furthermore, after the alarm is given to the manager, the failed updating process needs to be completely recorded in the log file, so that the manager can maintain the equipment subsequently to provide data support, and the manager can analyze the reason of the equipment fault according to the log file conveniently.
In this embodiment, if the BIOS is updated to the latest version, if the BIOS is not successfully started, an event is recorded and an alarm is issued to a manager, so that the manager can maintain the faulty device in time.
In specific implementation, because the BIOS image file is stored in the remote server, and the image file data may be lost or erroneous during the process of writing the image file into the server and the process of downloading the image file from the server, it is also necessary to perform validity check on the image file. Checking the validity of the file comprises checking whether the file name of the file is legal or whether the file is complete.
On the basis of the above embodiment, the specific steps of checking whether the image file is legal are as follows:
and carrying out integrity check on the BIOS image file through the MD5 algorithm.
The hash algorithm used in the network data integrity check generally includes MD5 algorithm and SHA algorithm.
In this embodiment, the local server performs integrity check on the BIOS image file through the MD5 algorithm. The method comprises the steps of carrying out hash operation on file data by using an MD5 algorithm and a key to obtain a hash value of the file data, then sending the hash value and the data to a remote server, carrying out hash operation on the received data and the key by using an MD5 algorithm after the remote server receives the data to obtain the hash value, and if the hash value obtained by operation is the same as the hash value received from a local server, indicating that the file data is complete and has not been tampered.
In this embodiment, the integrity of the mirror image file is checked through the MD5 algorithm, the validity of the file is checked, it is ensured that the BIOS mirror image file written in the device can normally start the device, and the reliability of the scheme is improved.
In the above embodiments, the BIOS control method is described in detail, and the present application also provides embodiments corresponding to the BIOS control device. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 2 is a structural diagram of a BIOS control device according to an embodiment of the present application, and as shown in fig. 2, the BIOS control device includes:
and a judging module 10, configured to judge whether the BIOS is successfully started.
The determining module 11 is configured to determine, according to a state of the BIOS, a BIOS image file to be acquired if the BIOS is not successfully started.
And the updating module 12 is used for acquiring the BIOS image file and writing the BIOS image file into the equipment to update the BIOS.
In addition, the BIOS control device provided in the embodiment of the present application further includes: the device comprises a recording module, a checking module and an alarm module. The recording module is used for recording the updating times, the updating result and the version information of the BIOS. The checking module is used for restarting the equipment to check whether the BIOS is started successfully or not, if the BIOS is started unsuccessfully, whether the BIOS is not started before updating is judged, and if the BIOS is not started, the BIOS is updated to the system with the latest version. The alarm module is used for recording an event and giving an alarm to a manager if the BIOS is not started successfully after the BIOS is updated to the latest version.
The present embodiment provides a BIOS control apparatus, including: the base plate control management chip judges whether the BIOS is started successfully or not, if the BIOS is not started successfully, the base plate control management chip determines a BIOS image file to be acquired according to the state of the BIOS and selects a proper BIOS to prevent the BIOS program from being incompatible with system configuration. And the BIOS image file is acquired and written into the equipment to update the BIOS, so that the operation of a manager is not needed, and the processing efficiency is improved. Therefore, by the adoption of the BIOS control method, the problem that the server cannot be normally started due to failure of BIOS starting can be effectively solved, operation of management personnel is not needed, and processing efficiency is improved.
Fig. 3 is a block diagram of a BIOS control device according to another embodiment of the present application, and as shown in fig. 3, the BIOS control device includes: a memory 20 for storing a computer program;
the processor 21 is configured to implement the steps of the method for obtaining the BIOS image file according to the above-mentioned embodiments when executing the computer program.
The server and the device provided by the embodiment may include, but are not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 21 may further include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement the steps related to obtaining the BIOS image file in the image file library disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like. The data 203 may include, but is not limited to, version information of the BIOS, BIOS update information, and the like.
In some embodiments, the BIOS control device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in FIG. 3 is not meant to be limiting of the BIOS control device and may include more or less components than those shown.
The BIOS control apparatus provided in an embodiment of the present application includes a memory and a processor, and when the processor executes a program stored in the memory, the following method can be implemented: the base plate control management chip judges whether the BIOS is started successfully or not, if the BIOS is not started successfully, the base plate control management chip determines a BIOS image file to be acquired according to the state of the BIOS and selects a proper BIOS to prevent the BIOS program from being incompatible with system configuration. And the BIOS image file is acquired and written into the equipment to update the BIOS, so that the operation of a manager is not needed, and the processing efficiency is improved. Therefore, by the adoption of the BIOS control method, the problem that the server cannot be normally started due to failure of BIOS starting can be effectively solved, operation of management personnel is not needed, and processing efficiency is improved.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In the present embodiment, a computer storage medium is provided for implementing the following method: the base plate control management chip judges whether the BIOS is started successfully or not, if the BIOS is not started successfully, the base plate control management chip determines a BIOS image file to be acquired according to the state of the BIOS and selects a proper BIOS to prevent the BIOS program from being incompatible with system configuration. And the BIOS image file is acquired and written into the equipment to update the BIOS, so that the operation of a manager is not needed, and the processing efficiency is improved. Therefore, by the adoption of the BIOS control method, the problem that the server cannot be normally started due to failure of BIOS starting can be effectively solved, operation of management personnel is not needed, and processing efficiency is improved.
The BIOS control method, apparatus, and medium provided by the present application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1.一种BIOS控制方法,其特征在于,包括:1. a BIOS control method, is characterized in that, comprises: 判断BIOS是否成功启动;Determine whether the BIOS is successfully started; 若所述BIOS未成功启动,则根据所述BIOS的状态自镜像文件库确定待获取的BIOS镜像文件,所述镜像文件库包含多个所述BIOS镜像文件;If the BIOS fails to start successfully, then determine the BIOS image file to be obtained from the image file library according to the state of the BIOS, and the image file library includes a plurality of the BIOS image files; 获取所述BIOS镜像文件并写入设备以更新所述BIOS。Obtain the BIOS image file and write to the device to update the BIOS. 2.如权利要求1所述的BIOS控制方法,其特征在于,所述BIOS未成功启动包括:2. The BIOS control method according to claim 1, wherein the unsuccessful startup of the BIOS comprises: 所述BIOS未启动;The BIOS is not started; 或所述BIOS启动失败;or the BIOS fails to start; 相应的,所述根据所述BIOS的状态确定待获取的BIOS镜像文件,包括:Correspondingly, determining the BIOS image file to be acquired according to the state of the BIOS includes: 若所述BIOS未启动,则确定所述BIOS镜像文件为最新版本的镜像文件;If the BIOS is not started, then determine that the BIOS image file is the latest version of the image file; 若所述BIOS启动失败,则根据版本信息确定相应的所述BIOS镜像文件,其中,所述版本信息为所述BIOS启动过程中发送的当前版本信息。If the BIOS fails to start, the corresponding BIOS image file is determined according to the version information, where the version information is the current version information sent during the BIOS startup process. 3.如权利要求1所述的BIOS控制方法,其特征在于,所述获取所述BIOS镜像文件并写入芯片以更新所述BIOS包括:3. The BIOS control method according to claim 1, wherein the acquiring the BIOS image file and writing the chip to update the BIOS comprises: 自远端服务器获取所述BIOS镜像文件;Obtain the BIOS image file from the remote server; 检验所述镜像文件是否合法且符合所述设备;Verify that the image file is legal and conforms to the device; 若合法且符合所述设备,将所述BIOS镜像文件写入所述设备。If it is legal and conforms to the device, write the BIOS image file to the device. 4.如权利要求1所述的BIOS控制方法,其特征在于,所述获取所述BIOS镜像文件并写入设备以更新所述BIOS的步骤后,还包括:4. The BIOS control method according to claim 1, wherein after the step of acquiring the BIOS image file and writing the device to update the BIOS, the method further comprises: 记录所述BIOS的更新次数、更新结果和版本信息。The update times, update results and version information of the BIOS are recorded. 5.如权利要求2所述的BIOS控制方法,其特征在于,所述将所述BIOS镜像文件写入芯片以更新所述BIOS的步骤后,还包括:5. The BIOS control method according to claim 2, wherein after the step of writing the BIOS image file into the chip to update the BIOS, the method further comprises: 重启所述设备,判断所述BIOS是否成功启动;Restarting the device, and judging whether the BIOS is successfully started; 若所述BIOS启动失败,则判断更新前所述BIOS是否未启动;If the BIOS fails to start, then determine whether the BIOS is not started before the update; 若未启动,则将所述BIOS更新为最新版本的系统。If not started, update the BIOS to the latest version of the system. 6.如权利要求5所述的BIOS控制方法,其特征在于,所述将所述BIOS更新为最新版本的步骤后,还包括:6. The BIOS control method according to claim 5, wherein after the step of updating the BIOS to the latest version, the method further comprises: 若所述BIOS未成功启动,则记录事件并向管理人员发出警报。If the BIOS fails to boot, an event is logged and an alert is issued to management. 7.根据权利要求3所述的BIOS控制方法,其特征在于,所述检验所述镜像文件是否合法具体为:7. The BIOS control method according to claim 3, wherein the checking whether the image file is legal is specifically: 通过MD5算法对所述BIOS镜像文件进行完整性校验。The integrity of the BIOS image file is checked through the MD5 algorithm. 8.一种BIOS控制装置,其特征在于,包括:8. A BIOS control device, comprising: 判断模块,用于判断BIOS是否成功启动;The judgment module is used to judge whether the BIOS is successfully started; 确定模块,用于若所述BIOS未成功启动,则根据所述BIOS的状态确定待获取的BIOS镜像文件;a determining module, configured to determine the BIOS image file to be acquired according to the state of the BIOS if the BIOS fails to start; 更新模块,用于获取所述BIOS镜像文件并写入设备以更新所述BIOS。An update module, configured to obtain the BIOS image file and write it into a device to update the BIOS. 9.一种BIOS控制装置,其特征在于,包括存储器,用于存储计算机程序;9. A BIOS control device, comprising a memory for storing a computer program; 处理器,用于执行所述计算机程序时实现如权利要求1至7任一项所述的BIOS控制方法的步骤。The processor is configured to implement the steps of the BIOS control method according to any one of claims 1 to 7 when executing the computer program. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述的BIOS控制方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the BIOS according to any one of claims 1 to 7 is implemented The steps of the control method.
CN202111278703.7A 2021-10-31 2021-10-31 A BIOS control method, device and medium Withdrawn CN114153503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111278703.7A CN114153503A (en) 2021-10-31 2021-10-31 A BIOS control method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111278703.7A CN114153503A (en) 2021-10-31 2021-10-31 A BIOS control method, device and medium

Publications (1)

Publication Number Publication Date
CN114153503A true CN114153503A (en) 2022-03-08

Family

ID=80458831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111278703.7A Withdrawn CN114153503A (en) 2021-10-31 2021-10-31 A BIOS control method, device and medium

Country Status (1)

Country Link
CN (1) CN114153503A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115840682A (en) * 2023-02-24 2023-03-24 北京太极信息系统技术有限公司 SW64 instruction set-based BIOS level sampling operation and maintenance monitoring method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115840682A (en) * 2023-02-24 2023-03-24 北京太极信息系统技术有限公司 SW64 instruction set-based BIOS level sampling operation and maintenance monitoring method and device

Similar Documents

Publication Publication Date Title
CN112948157B (en) Server fault location method, device, system and computer-readable storage medium
WO2022198972A1 (en) Method, system and apparatus for fault positioning in starting process of server
TWI576764B (en) A computer system
TW202030602A (en) The method and system of bios recovery and update
CN109213667A (en) Exception handling method of Android system and electronic equipment
WO2016206514A1 (en) Startup processing method and device
CN116932010B (en) System firmware upgrading method, device and server
WO2024148863A1 (en) Image compiling method and apparatus, nonvolatile readable storage medium, and electronic device
CN113703823A (en) BMC (baseboard management controller) firmware upgrading method and device, electronic equipment and storage medium
CN110209525B (en) Operating system restoration method and device
CN113641537A (en) A server startup system, method and medium
CN111104129B (en) Memory operating system manufacturing method and device, electronic equipment and storage medium
CN111090546B (en) Method, device and equipment for restarting operating system and readable storage medium
CN116339908A (en) Virtual machine starting method, device, computer equipment and storage medium
CN114153503A (en) A BIOS control method, device and medium
WO2024119787A1 (en) Method and apparatus for amd server system installation power-off processing, device and medium
CN116610336A (en) A firmware upgrade method, system, device and readable storage medium
CN110908725A (en) Application program starting method and device, electronic equipment and readable medium
US11354109B1 (en) Firmware updates using updated firmware files in a dedicated firmware volume
CN115827069A (en) Starting control method, system and device for server mainboard
CN115951949A (en) Recovery method and device for configuration parameters of BIOS (basic input output System) and computing equipment
CN113656378A (en) A server management method, device and medium
CN113900934A (en) Multi-image hybrid refresh test method, system, terminal and storage medium
CN103186403A (en) Node replacement processing method and server system using the method
CN104834574A (en) Method and device for solving damage of system partition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220308