CN115827522A - BIOS setting method, BIOS chip and electronic equipment - Google Patents
BIOS setting method, BIOS chip and electronic equipment Download PDFInfo
- Publication number
- CN115827522A CN115827522A CN202211600866.7A CN202211600866A CN115827522A CN 115827522 A CN115827522 A CN 115827522A CN 202211600866 A CN202211600866 A CN 202211600866A CN 115827522 A CN115827522 A CN 115827522A
- Authority
- CN
- China
- Prior art keywords
- bios
- target
- setting
- interface
- setting item
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The embodiment of the application provides a BIOS setting method, a BIOS chip and electronic equipment. The method comprises the following steps: receiving BIOS setting information through a BIOS setting interface, wherein the BIOS setting information comprises target values of target setting items; the target value of the target setting item is stored in a variable area stored by the BIOS, and the value of a register corresponding to the target setting item is modified into the target value of the target setting item, so that the target value of the target setting item takes effect, and the interruption influence on the application running on the computer when the BIOS setting is modified is avoided.
Description
Technical Field
The present application relates to the field of computers, and more particularly, to a setting method of a Basic Input Output System (BIOS), a BIOS chip, and an electronic device.
Background
The BIOS is a set of programs solidified in a Read Only Memory (ROM) chip on a main board in a computer, and stores the most important basic input and output programs, a power-on self-test program and a system self-start program of the computer, and the main function of the BIOS is to provide the bottommost and most direct hardware setting and control for the computer, and in addition, the BIOS also provides some system parameters for an operating system. The BIOS operates when the computer is started, and the program on the hard disk of the computer can normally work after the BIOS is executed.
Currently, when the BIOS setting item is modified, the computer needs to be restarted once or several times to validate the modified setting, which causes an interruption of the application running on the computer.
Disclosure of Invention
The application provides a BIOS setting method, a BIOS chip and electronic equipment, so as to avoid interruption influence on application running on a computer when BIOS setting is modified.
In a first aspect, the present application provides a method for setting a BIOS, including:
receiving BIOS setting information through a BIOS setting interface, wherein the BIOS setting information comprises a target value of a target setting item;
and storing the target value of the target setting item to a variable area stored by a BIOS (basic input output System), and modifying the value of a register corresponding to the target setting item into the target value of the target setting item so as to enable the target value of the target setting item to take effect.
Optionally, the BIOS setting interface is an interface called by an operating system.
Optionally, the BIOS setting interface is an interface called by a baseboard management controller BMC.
Optionally, the BIOS setting information includes identity authentication information;
the storing the target value of the target setting item to a variable area stored by the BIOS includes:
authenticating the BIOS setting information based on the authentication information;
and if the identity authentication is passed, storing the target value of the target setting item to a variable area stored by the BIOS.
Optionally, before receiving the BIOS setting information through the BIOS setting interface, the method further includes:
receiving an identity authentication request through the BIOS setting interface;
and if the identity authentication is passed, returning an identity authentication passing response through the BIOS setting interface.
Optionally, the method further includes:
and storing a modification record of the target setting item, wherein the modification record comprises a user calling the BIOS setting interface, time and a target value of the target setting item.
Optionally, the register corresponding to the target setting item is a register in a central processing unit CPU, a platform controller hub PCH or a peripheral chip.
In a second aspect, the present application provides a setting apparatus for a BIOS, comprising:
the receiving module is used for receiving BIOS setting information through a BIOS setting interface, wherein the BIOS setting information comprises a target value of a target setting item;
and the processing module is used for storing the target value of the target setting item to a variable area stored by the BIOS and modifying the value of a register corresponding to the target setting item into the target value of the target setting item so as to enable the target value of the target setting item to take effect.
Optionally, the BIOS setting interface is an interface called by an operating system.
Optionally, the BIOS setting interface is an interface called by the BMC.
Optionally, the BIOS setting information includes identity authentication information; the processing module is used for:
performing identity verification on the BIOS setting information based on the identity verification information;
and if the identity authentication is passed, storing the target value of the target setting item to a variable area stored by the BIOS.
Optionally, the receiving module is further configured to:
receiving an identity authentication request through a BIOS setting interface;
and if the identity authentication is passed, returning an identity authentication passing response through the BIOS setting interface.
Optionally, the BIOS setting means further includes:
and the storage module is used for storing a modification record of the target setting item, wherein the modification record comprises a user for calling the BIOS setting interface, time and a target value of the target setting item.
Optionally, the register corresponding to the target setting item is a register in a central processing unit CPU, a platform controller hub PCH or a peripheral chip.
In a third aspect, the present application provides a BIOS chip, comprising: a memory and a processor;
the memory for storing a computer program;
the processor is configured to execute the computer program stored in the memory, and the computer program causes the processor to perform the method according to the first aspect when running.
In a fourth aspect, the present application provides an electronic device comprising the BIOS chip according to the third aspect.
In a fifth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform the method according to the first aspect.
In the BIOS setting method, the BIOS chip and the electronic equipment, the BIOS setting is realized through an external BIOS setting interface, the BIOS modifies a Variable (Variable) area for storing setting items and modifies a corresponding register at the same time based on interface information, so that the modified setting items take effect in real time, the real-time modification and effect of the BIOS setting items are realized, the whole process does not involve the restart of a server, and the interruption influence on the application running on the server is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a server architecture;
FIG. 2 is a schematic diagram of a BIOS storage;
FIG. 3 is a flowchart illustrating a BIOS setting method according to an embodiment of the present disclosure;
FIG. 4 is a block diagram of a BIOS architecture according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a BIOS setting apparatus according to an embodiment of the present application;
FIG. 6 is a schematic block diagram of a BIOS chip provided by an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, terms related to embodiments of the present application will be described.
Unified Extensible Firmware Interface (UEFI): a computer system specification defines a software interface between an operating system and system firmware.
Baseboard Management Controller (BMC): the remote management controller of the server is executed, and the remote management controller can realize the operations of upgrading the firmware of the machine, checking the equipment of the machine and the like under the state that the machine is not started.
Platform Controller Hub (PCH): and an integrated south bridge.
In-band management: it means that the management control information of the network and the bearer information of the user network are transmitted through the same logical channel.
Managing outside the band: it means that the management control information of the network and the bearer information of the user network are transmitted in different logical channels.
B1OS Setup function (Setup): key configuration parameters and system settings of the BIOS are saved.
The BIOS setting method and the BIOS chip provided in the embodiment of the present application may be applied to various types of computer devices, which is not limited in this embodiment of the present application, and may be applied to, for example, a personal computer, a server, and the like.
The server is taken as an example for explanation. Fig. 1 is a schematic diagram of a server architecture. As shown in fig. 1, the server includes a Central Processing Unit (CPU) 0 and a CPU1, where the CPU0 and the CPU1 are connected to a Double Data Rate Dynamic Random Access Memory (DDR SDRAM) through an Integrated Memory Controller (IMC). CPU0 and PCH are connected via a Direct Media Interface (DMI). The PCH may be connected to a hard disk through a Serial Advanced Technology Attachment (SATA) interface, the PCH may be connected to an external device through a Universal Serial Bus (USB) interface, and the BMC may be connected to the external device through a Serial interface. A Peripheral Component Interconnect Express (PCIE) interface may be provided between the PCH and the BMC. The PCH and the BMC are connected to a BIOS chip, which may be an SPI FLASH chip, through a Serial Peripheral Interface (SPI) and a data selector (MUX).
The setting function of the BIOS can realize the modification of the BIOS setting items, and the modification comprises two parts of contents, wherein one part is to modify the BIOS setting items, and the other part is to enable the modified BIOS setting items to take effect.
In relation to the first point, the BIOS setup function generally provides a human-machine interface through which a user can modify setup items of the BIOS, and the modified result will be stored in a Variable area of the BIOS storage, and an example, as shown in fig. 2, is a schematic diagram of the BIOS storage, in which a Descriptor (Descriptor) and a Management Engine (ME) in the BIOS are illustrated in addition to the Variable area illustrating the BIOS storage. It should be noted that fig. 2 is only an example and is not limited thereto. However, for a running server, if the running server wants to enter the human-computer interaction interface, the server needs to be restarted, and the running server enters the human-computer interaction interface set by the BIOS through a shortcut key or the like in the restarting process.
In addition to the above human-computer interface, some out-of-band BMC or in-band Operating System (OS) tools may also modify BIOS setting items, that is, modify a Variable area stored in the BIOS, some of these tools may directly modify the Variable area stored in the BIOS, and some tools may need to restart the server, and modify the Variable area stored in the BIOS during the restart process.
Regarding the second point, the validation of the BIOS setting item is usually performed by reading a value of the setting item from the Variable area during the boot process of the BIOS, and modifying a register corresponding to the setting item to validate the setting item, where the register may be a register in the CPU, the PCH or the peripheral chip, that is, the validation of the BIOS setting item, that is, the modification of the register, also requires the server to be restarted.
It can be seen from the above two points that, when the setting item of the BIOS is modified, that is, when the Variable area stored in the BIOS is modified, a reboot may be required on the server, and when the setting item of the BIOS is validated, a reboot is inevitably required, which results in at least one reboot in the whole process, and even multiple reboots, and for the server in operation, this inevitably causes an application running on the server to be interrupted.
In view of the above two contents of modification and validation of the BIOS setting items, a core problem is that in the current scheme, validation of the BIOS setting items, that is, modification of registers, is implemented in the boot process, that is, a server needs to be restarted, and the root cause of this problem is that modification of registers of many chips needs to be restarted to be validated due to the history of technical development, but at present, many registers can be modified and validated in real time with the development of technology. In some scenarios, it may be considered to modify the register values directly in a hardware-driven manner, but this scheme is only effective once, and after the server is restarted, the register values are overwritten by the values set in the BIOS.
In view of this, the embodiment of the present application provides a BIOS setting method, considering a register that can be modified in real time, in which an external functional interface is provided to implement BIOS setting, a user can call the interface to set a BIOS, and based on interface information, the BIOS modifies a Variable area and also modifies a corresponding register, so that modified setting items take effect in real time, thereby implementing real-time and permanent modification and effect of BIOS setting items, and the entire process does not involve restarting a server and does not generate interrupt influence on applications running on the server.
The following describes a BIOS setting method according to an embodiment of the present application in detail with reference to the accompanying drawings.
Fig. 3 is a schematic flowchart of a BIOS setting method according to an embodiment of the present disclosure. The execution main body of the embodiment of the application is a BIOS chip. As shown in fig. 3, the BIOS setting method includes:
s301, receiving BIOS setting information through the BIOS setting interface, wherein the BIOS setting information comprises target values of the target setting items.
The BIOS setting interface in the embodiment of the present application is an interface provided by a BIOS chip and available for external invocation, and a user may transfer BIOS setting information to the BIOS by invoking the BIOS setting interface, where the BIOS setting information includes a target setting item to be set, that is, a target setting item to be modified, and a target value corresponding to the target setting item. The target setting item may be any BIOS setting item that is modifiable provided by a setting function of the BIOS, and the target value is any of values that the BIOS setting item can set.
For example, the target setting items may include system status setting items such as system date, time, various hardware information, and the like; the target setting items can comprise setting items such as PCI subsystems, various chip sets in a mainboard, power management, computer hardware monitoring, external operation equipment control and the like; the target setting items can comprise hardware frequency and voltage, including setting items such as CPU frequency, memory frequency, CPU voltage, memory voltage, PCI voltage and the like; the target setting items can comprise system security passwords, including setting items such as administrator passwords, user passwords, case intrusion setting and the like; the target setting items can include starting information of the system, including setting items such as starting configuration, starting mode and setting starting sequence.
S302, storing the target value of the target setting item to a variable area stored by the BIOS, and modifying the value of a register corresponding to the target setting item into the target value of the target setting item so as to enable the target value of the target setting item to take effect.
In the embodiment of the application, the BIOS chip receives BIOS setting information through the BIOS setting interface, modifies a Variable region, that is, a Variable region, stored in the BIOS, and modifies a value of a target setting item stored in the Variable region to a target value, that is, modification of the target setting item is achieved, and the BIOS chip also directly modifies a register corresponding to the target setting item, that is, modifies a value of the target setting item stored in the register to a target value, that is, achieves real-time validation of the target value of the target setting item.
In the method for setting the BIOS provided in the embodiment of the present application, the BIOS is set through an external BIOS setting interface, a user can set the BIOS by calling the interface, and the BIOS modifies a Variable area storing setting items and a corresponding register based on interface information, so that the modified setting items take effect in real time, thereby modifying and taking effect of the real-time BIOS setting items.
On the basis of the above embodiments, the BIOS setting interface provided in the embodiment of the present application is described with reference to the architecture shown in fig. 4. As shown in fig. 4, the BIOS is located between hardware and an operating system of the computer, and includes a UEFI Framework (Framework), an Independent BIOS Vendor (IBV) service, an Original Equipment Manufacturer (OEM) Common Features (Common Features), a UEFI OS Loader (Loader), a Legacy Compatible Support Module (CSM), and a BIOS setup interface.
Optionally, the BIOS setting interface may be an interface called by an operating system, for example, as illustrated in fig. 4, the BIOS setting interface is called by the operating system, that is, BIOS setting is performed in an in-band management manner.
Optionally, the BIOS setting interface may be an interface called by the BMC, for example, as illustrated in fig. 4, the BIOS setting interface is called by the BMC, that is, the BIOS setting is performed in an out-of-band management manner.
It is understood that whether the BIOS setup interface is called by the operating system or the BMC, the BIOS directly modifies the variable region in the BIOS storage and modifies the registers in the hardware, which is also illustrated in fig. 4.
On the basis of the above embodiments, in order to ensure the security of the BIOS setting, a security authentication mechanism is further provided in the BIOS setting method according to the embodiment of the present application.
Optionally, the security authentication performed by the user and the sending of the BIOS setting information may be synchronized, when the user calls the BIOS setting interface through the operating system or the BMC, the BIOS setting information may include an identity verification information in addition to the target value of the target setting item, and accordingly, after receiving the BIOS setting information, the BIOS may perform identity verification through the identity verification information, that is, perform identity verification on the BIOS setting information based on the identity verification information; and if the identity authentication is passed, storing the target value of the target setting item to a variable area stored by the BIOS, and modifying the value of a register corresponding to the target setting item into the target value of the target setting item so as to enable the target value of the target setting item to take effect.
For example, the authentication information may be signature information generated according to a private key of the user, after the BIOS receives the BIOS setting information, the public key of the user may be used to verify the signature information in the BIOS setting information, if the verification passes, the subsequent modification of the BIOS setting item is continued, and if the verification fails, the modification of the BIOS setting item is not performed.
For example, the authentication information may be a user name and a password, after the BIOS receives the BIOS setting information, the BIOS may perform authentication using the user name and the password, if the authentication passes, continue to perform subsequent modification on the BIOS setting item, and if the authentication fails, not modify the BIOS setting item.
Optionally, the user may perform security authentication and send the BIOS setting information asynchronously, that is, perform security authentication first, and send the BIOS setting information after the security authentication passes. That is, before receiving the BIOS setting information through the BIOS setting interface, the BIOS first receives an authentication request through the BIOS setting interface; and if the identity authentication is passed, returning an identity authentication passing response through the BIOS setting interface.
For example, the identity authentication request may include signature information generated according to a private key of the user, after receiving the identity authentication request, the BIOS may check and sign the signature information in the identity authentication request using a public key of the user, if the authentication passes, return an authentication passing response through the BIOS setting interface, so that the user continues to send the BIOS setting information through the BIOS setting interface, and if the authentication fails, return an authentication failure response, so that the user cannot continue to send the BIOS setting information through the BIOS setting interface.
For example, the authentication request may include a user name and a password, after receiving the authentication request, the BIOS may perform authentication using the user name and the password, and if the authentication passes, return an authentication passing response through the BIOS setting interface, so that the user continues to send the BIOS setting information through the BIOS setting interface, and if the authentication fails, return an authentication failure response, so that the user cannot continue to send the BIOS setting information through the BIOS setting interface.
This is illustrated with reference to fig. 4. Illustratively, a user calls a BIOS setting interface through BMC, BIOS setting information is transmitted to the BIOS, the BIOS setting information comprises a target value of a target setting item, meanwhile, the user also adopts a summary algorithm to generate a summary of the target value of the target setting item, and adopts a private key to sign the summary, and the signature is carried in the BIOS setting information.
After receiving the BIOS setting information through the BIOS setting interface, the BIOS checks the signature carried in the BIOS setting information by adopting a public key of a user, if the signature passes, namely the identity verification passes, a Variable area, namely a Variable area, stored in the BIOS is modified, the value of a target setting item stored in the Variable area is modified into a target value, a register corresponding to the target setting item is modified, namely the value of the target setting item stored in the register is modified into the target value, so that the target value of the target setting item is effective in real time, and the BIOS setting is completed.
In an example, a user calls a BIOS setting interface through an operating system, and sends an identity authentication request to a BIOS, where the identity authentication request carries a user name and a password, and the BIOS verifies the user name and the password after receiving the identity authentication request through the BIOS setting interface, and returns an identity authentication pass response to the user when the verification passes. And the user transmits BIOS setting information again through the BIOS setting interface, wherein the BIOS setting information comprises the target value of the target setting item.
After receiving the BIOS setting information through the BIOS setting interface, the BIOS modifies a Variable region, that is, a Variable region, stored in the BIOS, modifies a value of a target setting item stored in the Variable region to a target value, and modifies a register corresponding to the target setting item, that is, modifies the value of the target setting item stored in the register to the target value, so that the target value of the target setting item is validated in real time, and the BIOS setting is completed this time.
Optionally, on the basis of the foregoing embodiment, in order to ensure that the setting of the BIOS is traceable, the setting method of the BIOS according to the embodiment of the present application further includes: and storing a modification record of the target setting item, wherein the modification record comprises a user calling the BIOS setting interface, time and a target value of the target setting item. It should be noted that the modification record may be stored in the BIOS storage, or may be stored in the storage of other modules, which is not limited in the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a setting device of a BIOS according to an embodiment of the present disclosure. As shown in fig. 5, the setting means 500 of the BIOS includes:
a receiving module 501, configured to receive BIOS setting information through a BIOS setting interface, where the BIOS setting information includes a target value of a target setting item;
the processing module 502 is configured to store the target value of the target setting item to a variable area stored by the BIOS, and modify the value of the register corresponding to the target setting item to the target value of the target setting item, so that the target value of the target setting item is validated.
Optionally, the BIOS setting interface is an interface called by an operating system.
Optionally, the BIOS setting interface is an interface called by the BMC.
Optionally, the BIOS setting information includes identity authentication information; the processing module 502 is configured to:
performing identity verification on the BIOS setting information based on the identity verification information;
and if the identity authentication is passed, storing the target value of the target setting item to a variable area stored by the BIOS.
Optionally, the receiving module 501 is further configured to:
receiving an identity authentication request through a BIOS setting interface;
and if the identity authentication is passed, returning an identity authentication passing response through the BIOS setting interface.
Optionally, the BIOS setting device 500 further includes:
and the storage module is used for storing a modification record of the target setting item, wherein the modification record comprises a user for calling the BIOS setting interface, time and a target value of the target setting item.
Optionally, the register corresponding to the target setting item is a register in a central processing unit CPU, a platform controller hub PCH, or a peripheral chip.
The BIOS setting apparatus provided in the embodiment of the present application may be configured to execute the BIOS setting method in any of the foregoing embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Optionally, the setting device of the BIOS is a BIOS chip.
FIG. 6 is a schematic block diagram of a BIOS chip provided by an embodiment of the present application. As shown in fig. 6, the BIOS chip 600 may include at least one processor 601 for implementing the BIOS setting method provided in the embodiment of the present application.
Optionally, the BIOS chip also includes at least one memory 602 for storing program instructions and/or data. A memory 602 is coupled to the processor 601. The coupling in the embodiments of the present application is an indirect coupling or a communication connection between devices, units or modules, and may be an electrical, mechanical or other form for information interaction between the devices, units or modules. The processor 601 may cooperate with the memory 602. Processor 601 may execute program instructions stored in memory 602. At least one of the at least one memory may be included in the processor.
Optionally, the BIOS chip 600 further comprises a communication interface 603 for communicating with other devices via a transmission medium, such that the BIOS chip 600 can communicate with other devices. The communication interface 603 may be, for example, a transceiver, an interface, a bus, a circuit, or a device capable of performing a transceiving function. Processor 601 may send and receive data and/or information using communication interface 603 and may be used to implement the example method for dynamic allocation of resources provided by embodiments of the present application.
Illustratively, when the electronic device 600 is used to implement the BIOS setting method provided in the embodiment of the present application, the processor 601 may be configured to receive BIOS setting information through the BIOS setting interface, where the BIOS setting information includes a target value of a target setting item; and storing the target value of the target setting item to a variable area stored by the BIOS, and modifying the value of a register corresponding to the target setting item into the target value of the target setting item so as to enable the target value of the target setting item to take effect. For details, reference is made to the detailed description in the foregoing embodiments, which are not repeated herein.
The specific connection medium between the processor 601, the memory 602, and the communication interface 603 is not limited in the embodiment of the present application. In fig. 6, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 604. The bus 604 is shown in fig. 6 by a thick line, and the connection between other components is merely illustrative and not limited thereto. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
It should be understood that the processor in the embodiments of the present application may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It will also be appreciated that the memory in the embodiments of the subject application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM, enhanced SDRAM, SLDRAM, synchronous Link DRAM (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The present application also provides a computer-readable storage medium having stored thereon a computer program (also referred to as code, or instructions). When the computer program is executed, the computer is caused to execute the setting method of the BIOS in any one of the foregoing embodiments.
The present application further provides an electronic device, which includes the BIOS chip in the foregoing embodiment.
Alternatively, the electronic device may be a personal computer, a server, or other computer device.
As used in this specification, the terms "unit," "module," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution.
Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps (step) described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application. In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the unit is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the above embodiments, the functions of the functional units may be fully or partially implemented by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). The procedures or functions according to the embodiments of the present application are wholly or partially generated when the computer program instructions (program) are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optics, digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.).
This functionality, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (11)
1. A method for setting a Basic Input Output System (BIOS) is characterized by comprising the following steps:
receiving BIOS setting information through a BIOS setting interface, wherein the BIOS setting information comprises target values of target setting items;
and storing the target value of the target setting item to a variable area stored by a BIOS (basic input output System), and modifying the value of a register corresponding to the target setting item into the target value of the target setting item so as to enable the target value of the target setting item to take effect.
2. The method of claim 1, wherein the BIOS setup interface is an interface called by an operating system.
3. The method of claim 1, wherein the BIOS setup interface is an interface invoked by a Baseboard Management Controller (BMC).
4. The method according to any of claims 1-3, wherein the BIOS setting information comprises authentication information;
the storing the target value of the target setting item to a variable area stored by the BIOS includes:
authenticating the BIOS setting information based on the authentication information;
and if the identity authentication is passed, storing the target value of the target setting item to a variable area stored by the BIOS.
5. The method of any of claims 1-3, wherein prior to receiving the BIOS setting information via the BIOS setting interface, the method further comprises:
receiving an identity authentication request through the BIOS setting interface;
and if the identity authentication is passed, returning an identity authentication passing response through the BIOS setting interface.
6. The method according to any one of claims 1-3, further comprising:
and storing a modification record of the target setting item, wherein the modification record comprises a user calling the BIOS setting interface, time and a target value of the target setting item.
7. The method according to any one of claims 1 to 3,
the register corresponding to the target setting item is a central processing unit CPU, a platform controller hub PCH or a register in a peripheral chip.
8. A setting device for BIOS, comprising:
the receiving module is used for receiving BIOS setting information through a BIOS setting interface, wherein the BIOS setting information comprises a target value of a target setting item;
and the processing module is used for storing the target value of the target setting item to a variable area stored by the BIOS and modifying the value of a register corresponding to the target setting item into the target value of the target setting item so as to enable the target value of the target setting item to take effect.
9. A BIOS chip, comprising: a memory and a processor;
the memory for storing a computer program;
the processor for executing a computer program stored in the memory, the computer program when executed causing the processor to perform the method of any of claims 1-7.
10. An electronic device comprising the BIOS chip of claim 8.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211600866.7A CN115827522A (en) | 2022-12-12 | 2022-12-12 | BIOS setting method, BIOS chip and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211600866.7A CN115827522A (en) | 2022-12-12 | 2022-12-12 | BIOS setting method, BIOS chip and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115827522A true CN115827522A (en) | 2023-03-21 |
Family
ID=85546989
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211600866.7A Pending CN115827522A (en) | 2022-12-12 | 2022-12-12 | BIOS setting method, BIOS chip and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115827522A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117873604A (en) * | 2024-03-11 | 2024-04-12 | 浪潮计算机科技有限公司 | Setting item modification method, device, equipment and computer readable storage medium |
-
2022
- 2022-12-12 CN CN202211600866.7A patent/CN115827522A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117873604A (en) * | 2024-03-11 | 2024-04-12 | 浪潮计算机科技有限公司 | Setting item modification method, device, equipment and computer readable storage medium |
CN117873604B (en) * | 2024-03-11 | 2024-06-07 | 浪潮计算机科技有限公司 | Setting item modification method, device, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10831934B2 (en) | Management of authenticated variables | |
CN109542518B (en) | Chip and method for starting chip | |
US10754955B2 (en) | Authenticating a boot path update | |
US11281768B1 (en) | Firmware security vulnerability verification service | |
CN102063591B (en) | Methods for updating PCR (Platform Configuration Register) reference values based on trusted platform | |
JP5346608B2 (en) | Information processing apparatus and file verification system | |
EP1832977A2 (en) | Platform boot with bridge support | |
WO2018222666A1 (en) | Method and apparatus for secure system boot | |
CN107567629B (en) | Dynamic firmware module loader in trusted execution environment container | |
US10831897B2 (en) | Selective enforcement of secure boot database entries in an information handling system | |
CN114817105B (en) | Device enumeration method, device, computer device and storage medium | |
CN107844306B (en) | Application program repairing method and device, storage medium and terminal | |
CN114035842B (en) | Firmware configuration method, computing system configuration method, computing device and equipment | |
US20230342472A1 (en) | Computer System, Trusted Function Component, and Running Method | |
CN114721493B (en) | Chip starting method, computer equipment and readable storage medium | |
CN115329321A (en) | Firmware starting method, chip and computing device | |
CN115827522A (en) | BIOS setting method, BIOS chip and electronic equipment | |
US11900128B2 (en) | Modularized basic input output system (BIOS) firmware activation | |
CN111709030B (en) | Trusted platform module board card | |
CN111198832A (en) | Processing method and electronic equipment | |
US11977753B2 (en) | BIOS NVRAM storage extension system and method for secure and seamless access for various boot architectures | |
CN115859225A (en) | Reinforcement method, registration method, operation method, electronic device, and storage medium | |
CN114968314B (en) | Firmware upgrading method and device for display equipment, electronic equipment and storage medium | |
WO2023098569A1 (en) | Patch processing method and apparatus, and computer device | |
US20240160431A1 (en) | Technologies to update firmware and microcode |
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 |