CN111240775A - BIOS Setup interface control method, system, terminal and storage medium - Google Patents
BIOS Setup interface control method, system, terminal and storage medium Download PDFInfo
- Publication number
- CN111240775A CN111240775A CN201911416743.6A CN201911416743A CN111240775A CN 111240775 A CN111240775 A CN 111240775A CN 201911416743 A CN201911416743 A CN 201911416743A CN 111240775 A CN111240775 A CN 111240775A
- Authority
- CN
- China
- Prior art keywords
- bmc
- menu
- potential
- menu information
- switching instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 claims abstract description 13
- 238000004590 computer program Methods 0.000 claims description 3
- 238000000605 extraction Methods 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims description 2
- 238000004891 communication Methods 0.000 abstract description 8
- 230000003993 interaction Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
Abstract
The invention provides a BIOS Setup interface control method, a system, a terminal and a storage medium, comprising the following steps: the BMC receives an interface switching instruction and calls a pin of the GPIO through an OEM command; the BMC switches the GPIO pin potential according to the interface switching instruction; and the BMC acquires the current BIOS menu information through the IPMI and verifies the switching result. According to the method, the GPIO pin is controlled to be pulled up or pulled down through the BMC, and then the hidden item is opened or closed on the BIOS Setup interface by utilizing IPMI communication interaction between the BMC and the BIOS, so that the 'expert menu' and the 'common mode' are remotely and efficiently switched.
Description
Technical Field
The invention relates to the technical field of servers, in particular to a BIOS Setup interface control method, a system, a terminal and a storage medium.
Background
The Setup interface of BIOS sets an "expert mode" and a "normal mode" for the convenience of the technician and the client, respectively, so that the technician and the client can realize different required functions. The BIOS Setup interface is typically set to "normal mode" so that a technician needs to open the hidden item first when using BIOS-related functions.
There are generally two ways to open a hidden item:
one is to use the RU software tool to enter the Dos system, run the RU tool, execute the related commands, and open hidden items, which requires a Dos disk to store the RU tool, and is cumbersome to operate.
The other type is that the Jumper for controlling the hidden item is reserved during the design of a server mainboard, the switch of the hidden item is realized by manually moving the position of the Jumper, the server is powered off firstly by the switch each time, and the remote control cannot be realized.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a BIOS Setup interface control method, system, terminal and storage medium to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a BIOS Setup interface control method, including:
the BMC receives an interface switching instruction and calls a pin of the GPIO through an OEM command;
the BMC switches the GPIO pin potential according to the interface switching instruction;
and the BMC acquires the current BIOS menu information through the IPMI and verifies the switching result.
Further, the method further comprises:
extracting target menu information in the interface switching instruction;
judging whether the current BIOS menu information is consistent with the target menu information:
and if not, executing the interface switching instruction.
Further, the method further comprises:
judging the type of the target menu according to the target menu information:
if the target menu is an expert menu, the potential of the GPIO pin is pulled up;
and if the target menu is the common menu, pulling down the potential of the GPIO pin.
In a second aspect, the present invention provides a BIOS Setup interface control system, including:
the command calling unit is configured for the BMC to receive the interface switching instruction and calling a pin of the GPIO through an OEM command;
the potential adjusting unit is configured for switching the GPIO pin potential according to the interface switching instruction by the BMC;
and the interface verification unit is configured for acquiring the current BIOS menu information through IPMI by the BMC and verifying the switching result.
Further, the system further comprises:
the information extraction unit is configured to extract target menu information in the interface switching instruction;
the information judgment unit is configured to judge whether the current BIOS menu information is consistent with the target menu information;
and the instruction execution unit is configured to execute the interface switching instruction if the current BIOS menu information is inconsistent with the target menu information.
Further, the system further comprises:
the type judging unit is configured to judge the type of the target menu according to the target menu information;
the potential pull-up unit is configured to pull up the potential of the GPIO pin if the target menu is an expert menu;
and the potential pull-down unit is configured to pull down the potential of the GPIO pin if the target menu is a common menu.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the BIOS Setup interface control method, system, terminal and storage medium provided by the invention, the GPIO pin is controlled to be pulled up or pulled down through the BMC control, and then the hidden item is opened or closed on the BIOS Setup interface by utilizing the IPMI communication interaction between the BMC and the BIOS, so that the 'expert menu' and the 'common mode' are remotely and efficiently switched.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and 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 invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject in fig. 1 may be a BIOS Setup interface control system.
As shown in fig. 1, the method 100 includes:
and step 130, the BMC acquires the current BIOS menu information through IPMI and verifies the switching result.
In order to facilitate understanding of the present invention, the following describes the BIOS Setup interface control method provided by the present invention further by using the principle of the BIOS Setup interface control method of the present invention and combining the process of switching the BIOS Setup interface in the embodiment.
Specifically, the BIOS Setup interface control method includes:
and S1, the BMC receives the interface switching instruction and calls the pin of the GPIO through an OEM command.
The control register of the setup interface hidden item under the BIOS is mainly controlled by the cmos, the BIOS cannot be controlled by the related setting of the cmos, and the BMC can control the pin of the related GPIO by adding the OEM command to realize the control of the cmos, thereby realizing the control of the setup hidden item.
And S2, the BMC switches the GPIO pin potential according to the interface switching instruction.
Extracting target menu information in the interface switching instruction, extracting BIOS current menu information through IPMI, and judging whether the current BIOS menu information is consistent with the target menu information: and if not, executing the interface switching instruction.
Judging the type of the target menu according to the target menu information: if the target menu is an expert menu, the potential of the GPIOpin is pulled up; and if the target menu is the common menu, pulling down the potential of the GPIO pin. And controlling a register for controlling the hidden item mode in the cmos through the pin of the GPIO.
S3, the BMC collects the current BIOS menu information through IPMI and checks the switching result.
And the BMC acquires the menu type after the BIOS is switched through the IPMI, judges whether the menu type is consistent with the target menu or not, if so, indicates that the switching is successful, and otherwise, outputs an error prompt.
As shown in fig. 2, the system 200 includes:
the command calling unit 210 is configured to receive an interface switching instruction by the BMC and call a pin of the GPIO through an OEM command;
the potential adjusting unit 220 is configured to switch the GPIO pin potential according to the interface switching instruction by the BMC;
and the interface checking unit 230 is configured to collect the current BIOS menu information by the BMC through IPMI, and check the switching result.
Optionally, as an embodiment of the present invention, the system further includes:
the information extraction unit is configured to extract target menu information in the interface switching instruction;
the information judgment unit is configured to judge whether the current BIOS menu information is consistent with the target menu information;
and the instruction execution unit is configured to execute the interface switching instruction if the current BIOS menu information is inconsistent with the target menu information.
Optionally, as an embodiment of the present invention, the system further includes:
the type judging unit is configured to judge the type of the target menu according to the target menu information;
the potential pull-up unit is configured to pull up the potential of the GPIO pin if the target menu is an expert menu;
and the potential pull-down unit is configured to pull down the potential of the GPIO pin if the target menu is a common menu.
Fig. 3 is a schematic structural diagram of a terminal system 300 according to an embodiment of the present invention, where the terminal system 300 may be used to execute the BIOS Setup interface control method according to the embodiment of the present invention.
The terminal system 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention realizes the opening or closing of the hidden item of the BIOS Setup interface by the BMC to control the GPIO pin to be pulled up or pulled down and then by utilizing the IPMI communication interaction between the BMC and the BIOS, thus realizing the remote and efficient switching between the 'expert menu' and the 'common mode', wherein the technical effect which can be achieved by the embodiment can be referred to the description above and is not repeated herein.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units 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, systems 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 invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. A BIOS Setup interface control method is characterized by comprising the following steps:
the BMC receives an interface switching instruction and calls a pin of the GPIO through an OEM command;
the BMC switches the GPIO pin potential according to the interface switching instruction;
and the BMC acquires the current BIOS menu information through the IPMI and verifies the switching result.
2. The method of claim 1, further comprising:
extracting target menu information in the interface switching instruction;
judging whether the current BIOS menu information is consistent with the target menu information:
and if not, executing the interface switching instruction.
3. The method of claim 2, further comprising:
judging the type of the target menu according to the target menu information:
if the target menu is an expert menu, the potential of the GPIO pin is pulled up;
and if the target menu is the common menu, pulling down the potential of the GPIO pin.
4. A BIOS Setup interface control system, comprising:
the command calling unit is configured for the BMC to receive the interface switching instruction and calling a pin of the GPIO through an OEM command;
the potential adjusting unit is configured for switching the GPIO pin potential according to the interface switching instruction by the BMC;
and the interface verification unit is configured for acquiring the current BIOS menu information through IPMI by the BMC and verifying the switching result.
5. The system of claim 4, further comprising:
the information extraction unit is configured to extract target menu information in the interface switching instruction;
the information judgment unit is configured to judge whether the current BIOS menu information is consistent with the target menu information;
and the instruction execution unit is configured to execute the interface switching instruction if the current BIOS menu information is inconsistent with the target menu information.
6. The system of claim 5, further comprising:
the type judging unit is configured to judge the type of the target menu according to the target menu information;
the potential pull-up unit is configured to pull up the potential of the GPIO pin if the target menu is an expert menu;
and the potential pull-down unit is configured to pull down the potential of the GPIO pin if the target menu is a common menu.
7. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-3.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911416743.6A CN111240775A (en) | 2019-12-31 | 2019-12-31 | BIOS Setup interface control method, system, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911416743.6A CN111240775A (en) | 2019-12-31 | 2019-12-31 | BIOS Setup interface control method, system, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111240775A true CN111240775A (en) | 2020-06-05 |
Family
ID=70874184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911416743.6A Withdrawn CN111240775A (en) | 2019-12-31 | 2019-12-31 | BIOS Setup interface control method, system, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111240775A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023005518A1 (en) * | 2021-07-30 | 2023-02-02 | 华为技术有限公司 | Data processing method, computer system and electronic device |
-
2019
- 2019-12-31 CN CN201911416743.6A patent/CN111240775A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023005518A1 (en) * | 2021-07-30 | 2023-02-02 | 华为技术有限公司 | Data processing method, computer system and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109510742B (en) | Server network card remote test method, device, terminal and storage medium | |
CN110162435B (en) | Method, system, terminal and storage medium for starting and testing PXE of server | |
CN107480011A (en) | BIOS switching devices | |
CN104461631B (en) | A kind of system OTA upgrade methods and device | |
CN109271223A (en) | Windows switching method, device, terminal and computer readable storage medium | |
CN109189621A (en) | A kind of test method and system of NVMe SSD hot plug | |
CN109542525A (en) | A kind of method, apparatus, terminal and storage medium by BMC switching system memory configurations | |
CN111966380A (en) | BMC (baseboard management controller) firmware upgrading method, system, terminal and storage medium | |
CN111181781A (en) | Vdbench test configuration method, system, terminal and storage medium | |
CN111240775A (en) | BIOS Setup interface control method, system, terminal and storage medium | |
CN111176897A (en) | Closed BIOS self-repairing method, system, terminal and storage medium | |
CN104809378A (en) | User authentication design method of KVM (Kernel-based Virtual Machine) local management system | |
CN109976926A (en) | Method, circuit, terminal and the storage medium of protection BMC renewal process are restarted in a kind of shielding | |
CN109117406B (en) | PCIE hot plug test method, device, terminal and storage medium | |
CN108399135A (en) | A kind of control method and relevant apparatus of disk unit identification | |
CN110459260B (en) | Automatic test switching device, method and system | |
US20190163595A1 (en) | System and method for providing network access in the event of a computer system failure | |
CN105912431A (en) | Reboot testing method of server, server, control device and system | |
CN115951949A (en) | Recovery method and device for configuration parameters of BIOS (basic input output System) and computing equipment | |
CN112463195B (en) | Method, system, terminal and storage medium for cluster grouping online upgrade | |
CN111966286A (en) | Multi-data pool hierarchical migration method and system | |
CN101387966A (en) | Computer equipment with BIOS selection function | |
CN109450682B (en) | IB network card communication configuration method and device, terminal and storage medium | |
CN110703988B (en) | Storage pool creating method, system, terminal and storage medium for distributed storage | |
CN109783031B (en) | Method, device, terminal and storage medium for checking drive letter and slot number of RAID card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200605 |
|
WW01 | Invention patent application withdrawn after publication |