CN116302136A - Firmware configuration method, device, equipment and readable storage medium - Google Patents

Firmware configuration method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN116302136A
CN116302136A CN202310300937.XA CN202310300937A CN116302136A CN 116302136 A CN116302136 A CN 116302136A CN 202310300937 A CN202310300937 A CN 202310300937A CN 116302136 A CN116302136 A CN 116302136A
Authority
CN
China
Prior art keywords
configuration information
basic input
output system
storage area
management controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310300937.XA
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN202310300937.XA priority Critical patent/CN116302136A/en
Publication of CN116302136A publication Critical patent/CN116302136A/en
Pending 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
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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/1441Resetting or repowering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application discloses a firmware configuration method, a device, equipment and a readable storage medium in the technical field of computers. After system configuration information of a basic input/output system is acquired through a user management interface of a baseboard management controller, the system configuration information is stored in a first nonvolatile storage area of the baseboard management controller so as to realize solidification storage of the information; then, the basic input and output system is controlled to restart, so that the current system configuration information is timely validated in the restarting process of the basic input and output system; after the BIOS is restarted, the system configuration information in the first nonvolatile storage area is marked as invalid so that the baseboard management controller knows that the system configuration information is valid. The scheme can enable the baseboard management controller to timely take effect on the configuration of the basic input/output system, and reduces the probability of repeated configuration. The firmware configuration device, the firmware configuration equipment and the readable storage medium have the same technical effects.

Description

Firmware configuration method, device, equipment and readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a firmware configuration method, device, apparatus, and readable storage medium.
Background
At present, when the basic input/output system is configured by the baseboard management controller, the basic input/output system cannot respond in time, so that the configured information cannot be effective in the basic input/output system in time. When the configuration of the baseboard management controller to the basic input/output system is not effective, if the server is restarted, the configuration information of the baseboard management controller to the basic input/output system is lost, and then the user needs to reconfigure the baseboard management controller.
Therefore, how to make the baseboard management controller take effect on the configuration of the basic input and output system in time, and reduce the probability of repeated configuration of users is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a firmware configuration method, apparatus, device and readable storage medium, so that a baseboard management controller can timely take effect on the configuration of a basic input/output system, and reduce the probability of repeated configuration of a user. The specific scheme is as follows:
in a first aspect, the present application provides a firmware configuration method, including:
acquiring system configuration information of a basic input/output system through a user management interface of a baseboard management controller;
Storing the system configuration information to a first nonvolatile storage area corresponding to the baseboard management controller;
controlling the basic input/output system to restart, so that the basic input/output system acquires the system configuration information from the first nonvolatile storage area in the restarting process, and completing the configuration flow of the system configuration information;
and marking the system configuration information in the first nonvolatile storage area as invalid after the basic input/output system is restarted.
Optionally, the bios acquires the system configuration information from the first nonvolatile storage area during a restart process, including:
the bios sends a configuration acquisition message to the baseboard management controller to cause the baseboard management controller to send the system configuration information in the first nonvolatile storage area to the bios.
Optionally, the method further comprises:
acquiring a query request of the system configuration information through a user management interface of the baseboard management controller;
inquiring according to the inquiry request to obtain an inquiry invalid notification message; the notification message represents: the basic input and output system completes the configuration flow of the system configuration information;
And displaying the notification message on a user management interface of the baseboard management controller.
Optionally, the method further comprises:
if the system configuration information is obtained according to the query request, the control of restarting the basic input/output system is executed, so that the basic input/output system obtains the system configuration information from the first nonvolatile storage area in the restarting process, and the configuration flow of the system configuration information is completed; and marking the system configuration information in the first nonvolatile storage area as invalid after the basic input/output system is restarted.
Optionally, the method further comprises:
and after the basic input/output system completes the configuration flow of the system configuration information, the system configuration information is stored in a second nonvolatile storage area corresponding to the basic input/output system.
Optionally, the method further comprises:
and if the basic input/output system acquires the query request of the system configuration information through the user operation interface, the basic input/output system returns the system configuration information in the second nonvolatile storage area to the user operation interface.
Optionally, the method further comprises:
Receiving firmware configuration information of the baseboard management controller sent by the basic input/output system;
and executing the configuration flow of the firmware configuration information, and storing the firmware configuration information into the first nonvolatile storage area.
Optionally, the method further comprises:
receiving a query request of the firmware configuration information sent by the basic input/output system;
and returning the firmware configuration information in the first nonvolatile storage area to the basic input and output system.
Optionally, the bios obtains firmware configuration information of the baseboard management controller through a user operation interface of the bios; and transmitting the firmware configuration information to the baseboard management controller through a preset protocol, so that the baseboard management controller stores the firmware configuration information to the first nonvolatile storage area after completing the configuration flow of the firmware configuration information.
Optionally, the method further comprises:
and if the basic input/output system acquires the inquiry request of the firmware configuration information through the user operation interface of the basic input/output system, the basic input/output system returns the firmware configuration information in the first nonvolatile storage area to the user operation interface of the basic input/output system.
Optionally, the method further comprises:
and if the inquiry request of the firmware configuration information is acquired through the user management interface of the baseboard management controller, returning the firmware configuration information in the first nonvolatile storage area to the user management interface of the baseboard management controller.
Optionally, the method further comprises:
and if the updating request of the firmware configuration information is obtained through the user management interface of the baseboard management controller, updating the firmware configuration information in the first nonvolatile storage area, and returning an updating completion message to the user management interface of the baseboard management controller.
In a second aspect, the present application provides a firmware configuring apparatus, including:
the acquisition module is used for acquiring system configuration information of the basic input/output system through a user management interface of the substrate management controller;
the storage module is used for storing the system configuration information to a first nonvolatile storage area corresponding to the baseboard management controller;
the control module is used for controlling the restarting of the basic input/output system so that the basic input/output system acquires the system configuration information from the first nonvolatile storage area in the restarting process and completes the configuration flow of the system configuration information;
And the marking module is used for marking the system configuration information in the first nonvolatile storage area as invalid after the basic input/output system is restarted.
Optionally, the basic input/output system is specifically configured to:
the bios sends a configuration acquisition message to the baseboard management controller to cause the baseboard management controller to send the system configuration information in the first nonvolatile storage area to the bios.
Optionally, the method further comprises:
the first query module is used for acquiring a query request of the system configuration information through a user management interface of the baseboard management controller; inquiring according to the inquiry request to obtain an inquiry invalid notification message; the notification message represents: the basic input and output system completes the configuration flow of the system configuration information; and displaying the notification message on a user management interface of the baseboard management controller.
Optionally, the method further comprises:
and the execution module is used for executing the steps in the control module and the marking module if the system configuration information is obtained according to the query request.
Optionally, the basic input output system is further configured to:
And after the basic input/output system completes the configuration flow of the system configuration information, the system configuration information is stored in a second nonvolatile storage area corresponding to the basic input/output system.
Optionally, the basic input output system is further configured to: and if the query request of the system configuration information is acquired through the user operation interface of the basic input/output system, returning the system configuration information in the second nonvolatile storage area to the user operation interface of the basic input/output system.
Optionally, the basic input output system is further configured to: acquiring firmware configuration information of the baseboard management controller through a user operation interface of the basic input/output system; and transmitting the firmware configuration information to the baseboard management controller through a preset protocol, so that the baseboard management controller stores the firmware configuration information to the first nonvolatile storage area after completing the configuration flow of the firmware configuration information.
Optionally, the basic input output system is further configured to: and if the query request of the firmware configuration information is obtained through the user operation interface of the basic input and output system, returning the firmware configuration information in the first nonvolatile storage area to the user operation interface of the basic input and output system.
Optionally, the method further comprises:
the firmware configuration module is used for receiving the firmware configuration information of the baseboard management controller sent by the basic input/output system; and executing the configuration flow of the firmware configuration information, and storing the firmware configuration information into the first nonvolatile storage area.
Optionally, the method further comprises:
the firmware configuration query module is used for receiving a query request of the firmware configuration information sent by the basic input/output system; and returning the firmware configuration information in the first nonvolatile storage area to the basic input and output system.
Optionally, the method further comprises:
and the second query module is used for returning the firmware configuration information in the first nonvolatile storage area to the user management interface of the baseboard management controller if the query request of the firmware configuration information is acquired through the user management interface of the baseboard management controller.
Optionally, the method further comprises:
and the updating module is used for updating the firmware configuration information in the first nonvolatile storage area and returning an updating completion message to the user management interface of the baseboard management controller if the updating request of the firmware configuration information is acquired through the user management interface of the baseboard management controller.
In a third aspect, the present application provides an electronic device, including:
a memory for storing a computer program;
and a processor for executing the computer program to implement the firmware configuration method disclosed above.
In a fourth aspect, the present application provides a readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the firmware configuration method disclosed above.
As can be seen from the above solution, the present application provides a firmware configuration method, including: acquiring system configuration information of a basic input/output system through a user management interface of a baseboard management controller; storing the system configuration information to a first nonvolatile storage area corresponding to the baseboard management controller; controlling the basic input/output system to restart, so that the basic input/output system acquires the system configuration information from the first nonvolatile storage area in the restarting process, and completing the configuration flow of the system configuration information; and marking the system configuration information in the first nonvolatile storage area as invalid after the basic input/output system is restarted.
Therefore, after the system configuration information of the basic input and output system is obtained through the user management interface of the baseboard management controller, the system configuration information is stored in the first nonvolatile storage area corresponding to the baseboard management controller, so that the solidification storage of the system configuration information is realized, and the conditions of power failure information loss, restarting information loss and the like are avoided; then controlling the basic input and output system to restart, so that the basic input and output system acquires system configuration information from the first nonvolatile storage area in the restarting process, and completing the configuration flow of the system configuration information, and enabling the current system configuration information to take effect in the basic input and output system in time; after the basic input/output system is restarted, the system configuration information in the first nonvolatile storage area is marked as invalid, so that the baseboard management controller can know that the system configuration information is validated. Therefore, the configuration of the basic input and output system by the baseboard management controller can be timely validated, the configuration of the basic input and output system by the baseboard management controller can not be lost even when abnormal conditions such as restarting of a server are met, the reconfiguration of the baseboard management controller by a user is not needed, and the probability of repeated configuration of the user is reduced.
Correspondingly, the firmware configuration device, the firmware configuration equipment and the readable storage medium have the technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of a firmware configuration method disclosed in the present application;
FIG. 2 is a schematic diagram illustrating a BMC firmware configuration process disclosed in the present application;
FIG. 3 is a schematic diagram illustrating a BIOS configuration process disclosed herein;
FIG. 4 is a schematic diagram of a firmware configuration apparatus disclosed herein;
fig. 5 is a schematic diagram of an electronic device disclosed in the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
At present, when the basic input/output system is configured by the baseboard management controller, the basic input/output system cannot respond in time, so that the configured information cannot be effective in the basic input/output system in time. When the configuration of the baseboard management controller to the basic input/output system is not effective, if the server is restarted, the configuration information of the baseboard management controller to the basic input/output system is lost, and then the user needs to reconfigure the baseboard management controller. Therefore, the firmware configuration scheme can enable the configuration of the basic input/output system by the baseboard management controller to be effective in time, and reduces the probability of repeated configuration of a user.
Referring to fig. 1, an embodiment of the application discloses a firmware configuration method for configuring a basic input/output system by a baseboard management controller, which includes:
s101, the baseboard management controller obtains system configuration information of the basic input and output system through a user management interface of the baseboard management controller.
In this embodiment, the user may input system configuration information of the basic input output system by means of a user management interface of the baseboard management controller. System configuration information of the basic input output system such as: account, password, IP, memory operating frequency, thread switch, etc. The baseboard management controller and the basic input/output system are arranged in the same server.
S102, the baseboard management controller stores the system configuration information into a first nonvolatile storage area corresponding to the baseboard management controller.
Wherein the data stored in the first nonvolatile memory area is not lost when power is lost. The first nonvolatile memory area may be a memory space in a memory in the baseboard management controller or may be a memory space in a nonvolatile memory on the server.
S103, the baseboard management controller controls the basic input and output system to restart, so that the basic input and output system acquires system configuration information from the first nonvolatile storage area in the restarting process, and the configuration flow of the system configuration information is completed.
In one embodiment, the bios obtains system configuration information from the first nonvolatile storage area during a reboot process, including: the basic input/output system sends a configuration acquisition message to the baseboard management controller so that the baseboard management controller sends the system configuration information in the first nonvolatile storage area to the basic input/output system.
S104, after restarting the basic input/output system, the baseboard management controller marks the system configuration information in the first nonvolatile storage area as invalid.
It should be noted that after the bios completes the configuration flow of the system configuration information, the system configuration information in the first nonvolatile storage area of the baseboard management controller is not used, so that the system configuration information in the first nonvolatile storage area is marked as invalid, and thus the baseboard management controller can also know that the bios has completed the configuration flow of the system configuration information. Thus, in one embodiment, the present embodiment further includes: the baseboard management controller obtains a query request of system configuration information through a user management interface of the baseboard management controller; inquiring according to the inquiry request to obtain an inquiry invalid notification message; the notification message indicates: the basic input and output system completes the configuration flow of the system configuration information; and displaying a notification message on a user management interface of the baseboard management controller. That is to say: when the baseboard management controller inquires system configuration information through a user management interface to obtain a notification message of invalid inquiry, the basic input/output system is indicated to complete the configuration flow of the system configuration information; when the baseboard management controller obtains specific information by inquiring system configuration information through the user management interface, the configuration flow of the system configuration information is not completed by the input/output system. Therefore, in one embodiment, if the baseboard management controller obtains the system configuration information according to the query request, the baseboard management controller performs control to restart the basic input/output system, so that the basic input/output system obtains the system configuration information from the first nonvolatile storage area in the restarting process, and completes the configuration flow of the system configuration information; and after the basic input/output system is restarted, marking the system configuration information in the first nonvolatile storage area as invalid so as to reconfigure the system configuration information.
Since the system configuration information in the first nonvolatile memory area of the baseboard management controller is marked as invalid, the system configuration information needs to be stored again, and the system configuration information is the configuration of the basic input output system, so that a corresponding second nonvolatile memory area is set for the basic input output system. In a specific embodiment, after completing the configuration flow of the system configuration information, the bios stores the system configuration information in a second nonvolatile storage area corresponding to the bios. Wherein the data stored in the second nonvolatile memory area is not lost when powered down. The second nonvolatile storage area may be a storage space in nonvolatile memory on the server.
In a specific embodiment, if the bios obtains the query request of the system configuration information through the user operation interface of the bios, the bios returns the system configuration information in the second nonvolatile storage area to the user operation interface of the bios. Namely: and when the basic input/output system inquires the configuration of the basic input/output system, the configuration information in the second nonvolatile storage area corresponding to the basic input/output system is directly returned.
Therefore, after the system configuration information of the basic input and output system is obtained through the user management interface of the baseboard management controller, the system configuration information is stored in the first nonvolatile storage area corresponding to the baseboard management controller, so that the solidification storage of the system configuration information is realized, and the conditions of power failure information loss, restarting information loss and the like are avoided; then controlling the basic input and output system to restart, so that the basic input and output system acquires system configuration information from the first nonvolatile storage area in the restarting process, and completing the configuration flow of the system configuration information, and enabling the current system configuration information to take effect in the basic input and output system in time; after the basic input/output system is restarted, the system configuration information in the first nonvolatile storage area is marked as invalid, so that the baseboard management controller can know that the system configuration information is validated. Therefore, the configuration of the basic input and output system by the baseboard management controller can be timely validated, the configuration of the basic input and output system by the baseboard management controller can not be lost even when abnormal conditions such as restarting of a server are met, the reconfiguration of the baseboard management controller by a user is not needed, and the probability of repeated configuration of the user is reduced.
Based on the above embodiments, it should be noted that the method for configuring the baseboard management controller firmware by the bios includes: the basic input/output system acquires firmware configuration information of the baseboard management controller through a user operation interface of the basic input/output system; and transmitting the firmware configuration information to the baseboard management controller through a preset protocol, so that the baseboard management controller stores the firmware configuration information into the first nonvolatile storage area after completing the configuration flow of the firmware configuration information. Accordingly, the baseboard management controller can receive firmware configuration information of the baseboard management controller sent by the basic input/output system; and executing the configuration flow of the firmware configuration information, and storing the firmware configuration information into the first nonvolatile storage area. Firmware configuration information of the baseboard management controller is as follows: account, password, etc. The preset protocols are as follows: IPMI (Intelligent Platform Management Interface, an interface protocol), etc.
Of course, the bios may also query the firmware configuration of the baseboard management controller. In one example, when the bios obtains a query request of firmware configuration information through the user operation interface thereof, the bios sends a message for querying the firmware configuration information to the baseboard management controller, and the baseboard management controller receives the query request of the firmware configuration information sent by the bios; and returning the firmware configuration information in the first nonvolatile storage area to the basic input/output system, and then returning the firmware configuration information in the first nonvolatile storage area to a user operation interface of the basic input/output system by the basic input/output system.
Of course, the baseboard management controller may also query its own firmware configuration. In one example, the baseboard management controller obtains a query request of firmware configuration information of the baseboard management controller through its own user management interface, and then the baseboard management controller returns the firmware configuration information in the first nonvolatile storage area to the user management interface of the baseboard management controller. Namely: when the baseboard management controller inquires the configuration of the baseboard management controller, the configuration information in the corresponding first nonvolatile storage area is directly returned.
In one embodiment, if the baseboard management controller obtains the update request of the firmware configuration information through the user management interface of the baseboard management controller, the baseboard management controller updates the firmware configuration information in the first nonvolatile storage area, and returns an update completion message to the user management interface of the baseboard management controller. Namely: when the baseboard management controller updates the self configuration, the configuration information in the first nonvolatile storage area directly corresponding to the baseboard management controller is updated.
Based on the above embodiment, it should be noted that when the BMC (Baseboard Management Controller ) and the BIOS (Basic Input Output System, basic input output system) mutually configure firmware for each other, the following rules are followed: who is the configuration data is solidified and stored to ensure that the data is not lost after restarting, power failure and upgrading; when configuration information needs to be displayed, the displayed data is provided by the final storage party.
Referring to fig. 2, the process of setting firmware configuration for the BMC by the bios includes: after the user operates the BIOS operation interface, the BIOS background is transferred, and the BIOS background sends the BMC configuration set by the user to the BMC through a protocol with the BMC. After the BMC receives the configuration information, analyzing to obtain the specific configuration information, and storing the specific configuration information in a solid storage area of the BMC. And, the user can change the above-mentioned saved configuration at BMC management interface, after changing, the new BMC configuration updates the solid-state memory area saved in BMC. And, the user can inquire the latest configuration of the BMC through the BIOS, and the BIOS operation interface transfers the inquiry request to the BMC through the BIOS background so as to acquire the latest BMC configuration information from the solid storage area of the BMC, and then the latest BMC configuration information is presented on the BIOS operation interface.
Referring to fig. 3, the process of the bmc setting the configuration for the BIOS includes: after the user sets the BIOS firmware configuration through the BMC management interface, the BMC temporarily stores the BIOS configuration input by the user, at the moment, the BIOS is restarted, so that the BIOS actively sends a message to the BMC to acquire the BMC temporarily stored configuration in the BIOS starting process, and the BMC returns the effective configuration to the BIOS. After the BIOS takes the new configuration, the relevant configuration is completed, and the latest configuration is saved in a storage area of the BIOS. Of course, the user may set the configuration of the BIOS through the setup interface of the BIOS and then save the configuration information in the storage area of the BIOS. When the BIOS or BMC queries the latest configuration of the BIOS, the latest information is provided in the memory area of the BIOS.
After the BMC returns the valid configuration to the BIOS, the BIOS configuration temporarily stored by the BMC is cleaned to invalid data so that the BMC can confirm whether the configuration to the BIOS is successfully set. Namely: if the BIOS configuration information set before can be found in the BMC, the BMC indicates that the configuration of the BIOS is problematic and needs to be reset. If the BIOS configuration information set before cannot be found in the BMC, the BMC is indicated to complete the configuration of the BIOS.
Therefore, the embodiment supports the BMC and the BIOS to mutually carry out firmware configuration on the other side, can carry out firmware management in a mode of crossing firmware and crossing MCU, can ensure that the configuration information is not lost after restarting, powering down and upgrading, and is a reliable cross configuration scheme.
The following describes a firmware configuration apparatus provided in an embodiment of the present application, and the firmware configuration apparatus described below and the firmware configuration method described above may be referred to each other.
Referring to fig. 4, an embodiment of the present application discloses a firmware configuration apparatus, including:
an acquiring module 401, configured to acquire system configuration information of a basic input/output system through a user management interface of a baseboard management controller;
a storage module 402, configured to store system configuration information into a first nonvolatile storage area corresponding to the baseboard management controller;
The control module 403 is configured to control the bios to restart, so that the bios obtains system configuration information from the first nonvolatile storage area during the restart process, and completes a configuration flow of the system configuration information;
and the marking module 404 is configured to mark the system configuration information in the first nonvolatile storage area as invalid after the bios is restarted.
In one embodiment, the basic input output system is specifically configured to:
the basic input/output system sends a configuration acquisition message to the baseboard management controller so that the baseboard management controller sends the system configuration information in the first nonvolatile storage area to the basic input/output system.
In one specific embodiment, the method further comprises:
the first query module is used for acquiring a query request of system configuration information through a user management interface of the baseboard management controller; inquiring according to the inquiry request to obtain an inquiry invalid notification message; the notification message indicates: the basic input and output system completes the configuration flow of the system configuration information; and displaying a notification message on a user management interface of the baseboard management controller.
In one specific embodiment, the method further comprises:
And the execution module is used for executing the steps in the control module and the marking module if the system configuration information is obtained according to the inquiry request.
In one embodiment, the basic input output system is further configured to:
after the basic input/output system completes the configuration flow of the system configuration information, the system configuration information is stored in a second nonvolatile storage area corresponding to the basic input/output system.
In one embodiment, the basic input output system is further configured to: if the query request of the system configuration information is obtained through the user operation interface of the basic input/output system, the basic input/output system returns the system configuration information in the second nonvolatile storage area to the user operation interface of the basic input/output system.
In one embodiment, the basic input output system is further configured to: acquiring firmware configuration information of the baseboard management controller through a user operation interface of the basic input/output system; and transmitting the firmware configuration information to the baseboard management controller through a preset protocol, so that the baseboard management controller stores the firmware configuration information into the first nonvolatile storage area after completing the configuration flow of the firmware configuration information.
In one embodiment, the basic input output system is further configured to: and if the query request of the firmware configuration information is obtained through the user operation interface of the basic input and output system, returning the firmware configuration information in the first nonvolatile storage area to the user operation interface of the basic input and output system.
In one specific embodiment, the method further comprises:
and the second query module is used for returning the firmware configuration information in the first nonvolatile storage area to the user management interface of the baseboard management controller if the query request of the firmware configuration information is acquired through the user management interface of the baseboard management controller.
In one specific embodiment, the method further comprises:
and the updating module is used for updating the firmware configuration information in the first nonvolatile storage area and returning an updating completion message to the user management interface of the baseboard management controller if the updating request of the firmware configuration information is acquired through the user management interface of the baseboard management controller.
In one specific embodiment, the method further comprises:
the firmware configuration module is used for receiving firmware configuration information of the baseboard management controller sent by the basic input/output system; and executing the configuration flow of the firmware configuration information, and storing the firmware configuration information into the first nonvolatile storage area.
In one specific embodiment, the method further comprises:
the firmware configuration query module is used for receiving a query request of firmware configuration information sent by the basic input/output system; and returning the firmware configuration information in the first nonvolatile storage area to the basic input and output system.
The more specific working process of each module and unit in this embodiment may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
Therefore, the firmware configuration device provided in this embodiment supports the BMC and the BIOS to mutually perform firmware configuration for each other, can perform firmware management in a mode of crossing firmware and crossing MCU, and can ensure that the configuration information is not lost after restarting, powering down and upgrading.
The following describes an electronic device provided in an embodiment of the present application, and the electronic device described below and the firmware configuration method and apparatus described above may refer to each other.
Referring to fig. 5, an embodiment of the present application discloses an electronic device, including:
a memory 501 for storing a computer program;
a processor 502 for executing the computer program to implement the method disclosed in any of the embodiments above.
Further, the embodiment of the application also provides a server serving as the electronic equipment. The server specifically may include: at least one processor, at least one memory, a power supply, a communication interface, an input-output interface, and a communication bus. The memory is used for storing a computer program, and the computer program is loaded and executed by the processor to implement relevant steps in the firmware configuration method disclosed in any of the foregoing embodiments.
In this embodiment, the power supply is configured to provide a working voltage for each hardware device on the server; the communication interface can create a data transmission channel between the server and external equipment, and the communication protocol to be followed by the communication interface is any communication protocol applicable to the technical scheme of the application, and is not particularly limited herein; the input/output interface is used for acquiring external input data or outputting data to the external, and the specific interface type can be selected according to the specific application requirement, and is not limited in detail herein.
In addition, the memory may be a read-only memory, a random access memory, a magnetic disk, an optical disk, or the like as a carrier for storing resources, where the resources stored include an operating system, a computer program, data, and the like, and the storage mode may be transient storage or permanent storage.
The operating system is used for managing and controlling each hardware device and computer program on the Server to realize the operation and processing of the processor on the data in the memory, and the operation and processing can be Windows Server, netware, unix, linux and the like. The computer program may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the firmware configuration method disclosed in any of the foregoing embodiments. The data may include data such as developer information of the virtual machine, in addition to data such as the virtual machine.
In one example, a baseboard management controller in a server is to: acquiring system configuration information of a basic input/output system through a user management interface of a baseboard management controller; storing system configuration information into a first nonvolatile storage area corresponding to the baseboard management controller; the basic input and output system is controlled to restart, so that the basic input and output system acquires system configuration information from the first nonvolatile storage area in the restarting process, and the configuration flow of the system configuration information is completed; after the BIOS is restarted, the system configuration information in the first nonvolatile storage area is marked as invalid.
In one embodiment, a basic input output system in a server is used to: and sending a configuration acquisition message to the baseboard management controller so that the baseboard management controller can send the system configuration information in the first nonvolatile storage area to the basic input and output system.
In one embodiment, a baseboard management controller in a server is configured to: acquiring a query request of system configuration information through a user management interface of a baseboard management controller; inquiring according to the inquiry request to obtain an inquiry invalid notification message; the notification message indicates: the basic input and output system completes the configuration flow of the system configuration information; and displaying a notification message on a user management interface of the baseboard management controller.
In one embodiment, a baseboard management controller in a server is configured to: if the system configuration information is obtained according to the inquiry request, the basic input/output system is controlled to restart, so that the basic input/output system obtains the system configuration information from the first nonvolatile storage area in the restarting process, and the configuration flow of the system configuration information is completed; and marking the system configuration information in the first nonvolatile storage area as invalid after the basic input/output system is restarted.
In one embodiment, a basic input output system in a server is used to: after the configuration flow of the system configuration information is completed, the system configuration information is stored in a second nonvolatile storage area corresponding to the basic input/output system.
In one embodiment, a basic input output system in a server is used to: if the query request of the system configuration information is obtained through the user operation interface of the basic input/output system, the system configuration information in the second nonvolatile storage area is returned to the user operation interface of the basic input/output system.
In one embodiment, a basic input output system in a server is used to: acquiring firmware configuration information of the baseboard management controller through a user operation interface of the basic input/output system; and transmitting the firmware configuration information to the baseboard management controller through a preset protocol, so that the baseboard management controller stores the firmware configuration information into the first nonvolatile storage area after completing the configuration flow of the firmware configuration information.
In one embodiment, a basic input output system in a server is used to: and if the query request of the firmware configuration information is obtained through the user operation interface of the basic input and output system, returning the firmware configuration information in the first nonvolatile storage area to the user operation interface of the basic input and output system.
In one embodiment, a baseboard management controller in a server is configured to: and if the inquiry request of the firmware configuration information is obtained through the user management interface of the baseboard management controller, returning the firmware configuration information in the first nonvolatile storage area to the user management interface of the baseboard management controller.
In one embodiment, a baseboard management controller in a server is configured to: if the update request of the firmware configuration information is obtained through the user management interface of the baseboard management controller, the firmware configuration information in the first nonvolatile storage area is updated, and an update completion message is returned to the user management interface of the baseboard management controller.
Further, the embodiment of the application also provides a terminal serving as the electronic equipment. The terminal may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Generally, the terminal in this embodiment includes: a processor and a memory.
The processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor may incorporate a GPU (Graphics Processing Unit, image processor) for rendering and rendering of content required to be displayed by the display screen. In some embodiments, the processor may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory may include one or more computer-readable storage media, which may be non-transitory. The memory 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 is at least used to store a computer program, where the computer program, after being loaded and executed by the processor, can implement relevant steps in the firmware configuration method executed by the terminal side as disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory can also comprise an operating system, data and the like, and the storage mode can be short-term storage or permanent storage. The operating system may include Windows, unix, linux, among others. The data may include, but is not limited to, update information for the application.
In some embodiments, the terminal may further include a display screen, an input-output interface, a communication interface, a sensor, a power supply, and a communication bus.
The following describes a readable storage medium provided in the embodiments of the present application, and the readable storage medium described below and the firmware configuration method, apparatus and device described above may be referred to with each other.
A readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the firmware configuration method disclosed in the foregoing embodiments. The readable storage medium is a computer readable storage medium, and can be used as a carrier for storing resources, such as read-only memory, random access memory, magnetic disk or optical disk, wherein the resources stored on the readable storage medium comprise an operating system, a computer program, data and the like, and the storage mode can be transient storage or permanent storage.
In this embodiment, the computer program executed by the processor may specifically implement the following steps: the baseboard management controller obtains system configuration information of the basic input/output system through a user management interface of the baseboard management controller; storing system configuration information into a first nonvolatile storage area corresponding to the baseboard management controller; the basic input and output system is controlled to restart, so that the basic input and output system acquires system configuration information from the first nonvolatile storage area in the restarting process, and the configuration flow of the system configuration information is completed; after the BIOS is restarted, the system configuration information in the first nonvolatile storage area is marked as invalid.
In this embodiment, the computer program executed by the processor may specifically implement the following steps: the basic input/output system sends a configuration acquisition message to the baseboard management controller so that the baseboard management controller sends the system configuration information in the first nonvolatile storage area to the basic input/output system.
In this embodiment, the computer program executed by the processor may specifically implement the following steps: the baseboard management controller obtains a query request of system configuration information through a user management interface of the baseboard management controller; inquiring according to the inquiry request to obtain an inquiry invalid notification message; the notification message indicates: the basic input and output system completes the configuration flow of the system configuration information; and displaying a notification message on a user management interface of the baseboard management controller.
In this embodiment, the computer program executed by the processor may specifically implement the following steps: if the baseboard management controller obtains the system configuration information according to the inquiry request, the basic input/output system is controlled to restart, so that the basic input/output system obtains the system configuration information from the first nonvolatile storage area in the restarting process, and the configuration flow of the system configuration information is completed; and marking the system configuration information in the first nonvolatile storage area as invalid after the basic input/output system is restarted.
In this embodiment, the computer program executed by the processor may specifically implement the following steps: after the basic input/output system completes the configuration flow of the system configuration information, the system configuration information is stored in a second nonvolatile storage area corresponding to the basic input/output system.
In this embodiment, the computer program executed by the processor may specifically implement the following steps: and if the basic input/output system acquires the query request of the system configuration information through the user operation interface of the basic input/output system, returning the system configuration information in the second nonvolatile storage area to the user operation interface of the basic input/output system.
In this embodiment, the computer program executed by the processor may specifically implement the following steps: the basic input/output system acquires firmware configuration information of the baseboard management controller through a user operation interface of the basic input/output system; and transmitting the firmware configuration information to the baseboard management controller through a preset protocol, so that the baseboard management controller stores the firmware configuration information into the first nonvolatile storage area after completing the configuration flow of the firmware configuration information.
In this embodiment, the computer program executed by the processor may specifically implement the following steps: and if the basic input/output system acquires the inquiry request of the firmware configuration information through the user operation interface of the basic input/output system, returning the firmware configuration information in the first nonvolatile storage area to the user operation interface of the basic input/output system.
In this embodiment, the computer program executed by the processor may specifically implement the following steps: and if the baseboard management controller acquires the inquiry request of the firmware configuration information through the user management interface of the baseboard management controller, returning the firmware configuration information in the first nonvolatile storage area to the user management interface of the baseboard management controller.
In this embodiment, the computer program executed by the processor may specifically implement the following steps: and if the baseboard management controller acquires the update request of the firmware configuration information through the user management interface of the baseboard management controller, updating the firmware configuration information in the first nonvolatile storage area, and returning an update completion message to the user management interface of the baseboard management controller.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A firmware configuring method, comprising:
acquiring system configuration information of a basic input/output system through a user management interface of a baseboard management controller;
storing the system configuration information to a first nonvolatile storage area corresponding to the baseboard management controller;
controlling the basic input/output system to restart, so that the basic input/output system acquires the system configuration information from the first nonvolatile storage area in the restarting process, and completing the configuration flow of the system configuration information;
and marking the system configuration information in the first nonvolatile storage area as invalid after the basic input/output system is restarted.
2. The method as recited in claim 1, further comprising:
Acquiring a query request of the system configuration information through the user management interface;
inquiring according to the inquiry request to obtain an inquiry invalid notification message; the notification message represents: the basic input and output system completes the configuration flow of the system configuration information;
and displaying the notification message on the user management interface.
3. The method as recited in claim 2, further comprising:
if the system configuration information is obtained according to the query request, the control of restarting the basic input/output system is executed, so that the basic input/output system obtains the system configuration information from the first nonvolatile storage area in the restarting process, and the configuration flow of the system configuration information is completed; and marking the system configuration information in the first nonvolatile storage area as invalid after the basic input/output system is restarted.
4. The method as recited in claim 1, further comprising:
and after the basic input/output system completes the configuration flow of the system configuration information, the system configuration information is stored in a second nonvolatile storage area corresponding to the basic input/output system.
5. The method as recited in claim 4, further comprising:
and if the basic input/output system acquires the query request of the system configuration information through the user operation interface, the basic input/output system returns the system configuration information in the second nonvolatile storage area to the user operation interface.
6. The method according to any one of claims 1 to 5, further comprising:
receiving firmware configuration information of the baseboard management controller sent by the basic input/output system;
and executing the configuration flow of the firmware configuration information, and storing the firmware configuration information into the first nonvolatile storage area.
7. The method as recited in claim 6, further comprising:
receiving a query request of the firmware configuration information sent by the basic input/output system;
and returning the firmware configuration information in the first nonvolatile storage area to the basic input and output system.
8. A firmware configuring apparatus, comprising:
the acquisition module is used for acquiring system configuration information of the basic input/output system through a user management interface of the substrate management controller;
The storage module is used for storing the system configuration information to a first nonvolatile storage area corresponding to the baseboard management controller;
the control module is used for controlling the restarting of the basic input/output system so that the basic input/output system acquires the system configuration information from the first nonvolatile storage area in the restarting process and completes the configuration flow of the system configuration information;
and the marking module is used for marking the system configuration information in the first nonvolatile storage area as invalid after the basic input/output system is restarted.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method of any one of claims 1 to 7.
10. A readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the method of any one of claims 1 to 7.
CN202310300937.XA 2023-03-24 2023-03-24 Firmware configuration method, device, equipment and readable storage medium Pending CN116302136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310300937.XA CN116302136A (en) 2023-03-24 2023-03-24 Firmware configuration method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310300937.XA CN116302136A (en) 2023-03-24 2023-03-24 Firmware configuration method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116302136A true CN116302136A (en) 2023-06-23

Family

ID=86799456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310300937.XA Pending CN116302136A (en) 2023-03-24 2023-03-24 Firmware configuration method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116302136A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991606A (en) * 2023-09-25 2023-11-03 苏州元脑智能科技有限公司 Baseboard management controller, and processing method and device of basic input/output system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116991606A (en) * 2023-09-25 2023-11-03 苏州元脑智能科技有限公司 Baseboard management controller, and processing method and device of basic input/output system
CN116991606B (en) * 2023-09-25 2024-02-02 苏州元脑智能科技有限公司 Baseboard management controller, and processing method and device of basic input/output system

Similar Documents

Publication Publication Date Title
CN110058889B (en) Application awakening method and device
CN108170451B (en) Method and system for controlling BIOS version upgrading by server BMC
US11658870B2 (en) Method and apparatus for restoring network device to factory defaults, and network device
CN110825772A (en) Method and device for synchronizing memory data of multiple service instances and storage medium
CN116302136A (en) Firmware configuration method, device, equipment and readable storage medium
CN114201197A (en) Firmware upgrading method and device, electronic equipment and readable storage medium
CN114327606B (en) Configuration management method and device, electronic equipment and computer readable storage medium
WO2019201248A1 (en) Re-bootstrap method and device in lightweight machine to machine system
US8612780B2 (en) Method and apparatus for modifying power management configuration of a computer to accommodate a packet processing latency policy associated with a pattern
CN111367761B (en) Information management method, system and related components of universal server
CN109697077B (en) Method, device and equipment for starting hard disk firmware
US20230350712A1 (en) Bmc parameter configuration and effect-taking method and apparatus, device, and medium
CN115756616A (en) Basic Input Output System (BIOS) configuration item configuration method and server
CN114020344B (en) Bus resource reservation method, device, equipment and storage medium
CN112527091B (en) Power management method, firmware update method, device, equipment, medium and product
CN114840263A (en) Network card management method, device, equipment and storage medium
CN114281389A (en) Method and device for upgrading SOC (system on chip) and automatic driving vehicle
CN114442765A (en) Fan control method for computer equipment, baseboard management controller and storage medium
JP2001075810A (en) Computer system, extension board and method for updating extension board function in computer system
CN112631874B (en) Server PSU information acquisition method and device, electronic equipment and medium
CN117290074B (en) Method, device, equipment and medium for setting process in vehicle type configuration
CN114884724B (en) Cloud server interaction method and device, readable storage medium and terminal equipment
CN115801569B (en) Access rule deployment method, device, equipment, medium and cloud platform
CN115686648A (en) Method, device, equipment and medium for managing configuration information
CN113791734A (en) Encoder reading acquisition method and device, servo system and storage medium

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