CN107220053B - BIOS management method and electronic equipment - Google Patents

BIOS management method and electronic equipment Download PDF

Info

Publication number
CN107220053B
CN107220053B CN201710379703.3A CN201710379703A CN107220053B CN 107220053 B CN107220053 B CN 107220053B CN 201710379703 A CN201710379703 A CN 201710379703A CN 107220053 B CN107220053 B CN 107220053B
Authority
CN
China
Prior art keywords
bios
management
tool
system management
electronic equipment
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.)
Active
Application number
CN201710379703.3A
Other languages
Chinese (zh)
Other versions
CN107220053A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710379703.3A priority Critical patent/CN107220053B/en
Publication of CN107220053A publication Critical patent/CN107220053A/en
Application granted granted Critical
Publication of CN107220053B publication Critical patent/CN107220053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked

Landscapes

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

Abstract

The application discloses a BIOS management method and electronic equipment, wherein the method comprises the steps of maintaining a BIOS tool chain provided by more than one BIOS supplier in the electronic equipment in advance, and maintaining a first corresponding relation between each BIOS tool and a system management number in the BIOS tool chain provided by more than one BIOS supplier, so that when the BIOS actually used by the electronic equipment has a management requirement, according to a target system management number (provided by the supplier to which the BIOS belongs) corresponding to a management function indicated by the management requirement, a target BIOS tool required to be adopted is determined from the first corresponding relation, and the tool is further used for realizing BIOS management. Compared with the prior art, the method and the device have the advantages that the universality of the BIOS tool maintained in the electronic equipment can be obviously improved, and the difficulty and the complexity of the equipment supplier in maintaining the BIOS tool of the equipment can be reduced.

Description

BIOS management method and electronic equipment
Technical Field
The present invention belongs to the technical field of BIOS (Basic Input Output System) management, and in particular, to a BIOS management method and an electronic device.
Background
At present, different BIOS vendors provide respective independent BIOS tool chains, and the BIOS tool chain inside each vendor usually includes a plurality of different tools such as a BIOS upgrade tool, an smbios (system Management BIOS) modification tool, a BIOS setting modification tool, and the like, wherein each BIOS tool (or corresponding BIOS Management function) is assigned with a corresponding system Management number by the corresponding vendor in a development stage, and the system Management numbers used by the different vendors and different BIOS tools (or BIOS Management functions) are different from each other.
The prior art generally implements BIOS management in the following ways: on the basis of maintaining a tool chain provided by a supplier to which the BIOS belongs in advance in the equipment aiming at the BIOS actually used by the equipment, when the BIOS management requirement exists, the corresponding BIOS tool of the supplier is called to carry out the required BIOS management, such as BIOS upgrading, SMBIOS modification and the like according to the system management number corresponding to the required management function. The BIOS and BIOS toolchains of different vendors cannot be used in conjunction.
In view of this, for the BIOS of different suppliers used, the device needs to maintain the BIOS tool chains of the corresponding different suppliers, which results in that the BIOS tool chain maintained by the device cannot be universally used for the BIOS of different suppliers, and further results in that the device needs to perform the differential maintenance of the BIOS tool chains, for example, the BIOS tool chain of supplier 1 needs to be maintained in batch a products due to the actual use of the BIOS of BIOS supplier 1 in batch a products provided by the computer product supplier, and the BIOS tool chain of supplier 2 needs to be maintained in batch B products due to the actual use of the BIOS of BIOS supplier 2 in batch B products, which obviously increases the difficulty and complexity of the BIOS tool maintenance.
Disclosure of Invention
In view of the above, the present invention provides a BIOS management method and an electronic device, which aim to reduce the difficulty and complexity of maintaining BIOS tools in BIOS management.
Therefore, the invention discloses the following technical scheme:
a BIOS management method is applied to an electronic device and comprises the following steps:
when a management instruction for a Basic Input Output System (BIOS) is obtained, a target system management number corresponding to a management function indicated by the management instruction is obtained; the target system management number is a system management number corresponding to the management function and provided by a supplier of the BIOS of the electronic equipment;
obtaining a first corresponding relation between each BIOS tool in a BIOS tool set maintained by the electronic equipment and a system management number; wherein the BIOS tool set maintained by the electronic device comprises BIOS tool chains provided by more than one BIOS supplier;
and determining a target BIOS tool corresponding to the target system management number according to the first corresponding relation, and managing the BIOS of the electronic equipment by using the target BIOS tool.
Preferably, the obtaining a target system management number corresponding to a management function indicated by the management instruction when the management instruction for the BIOS is obtained includes:
when a management instruction for the BIOS is obtained, determining a management function indicated by the management instruction;
obtaining a second corresponding relation between the BIOS management function and a system management number, wherein the second corresponding relation is the corresponding relation between each BIOS management function and the system management number provided by a supplier to which the BIOS of the electronic equipment operating system belongs, and reported to the electronic equipment operating system by the BIOS after the BIOS of the electronic equipment is started;
and determining a target system management number corresponding to the management function indicated by the management instruction according to the second corresponding relation.
In the above method, preferably, the obtaining a first corresponding relationship between each BIOS tool in a BIOS tool set maintained by a system of the electronic device and a system management number includes:
at the power-on self-test stage of the electronic equipment, generating a BIOS tool table data structure according to the pre-collected corresponding relation between each BIOS tool and a system management number in a BIOS tool chain of more than one supplier; the data structure comprises the corresponding relation between each BIOS tool and the system management number in the BIOS tool chain of more than one supplier which is described in a preset uniform format;
transferring, by the BIOS, the data structure to an operating system of the electronic device;
when the electronic equipment is started, analyzing the data structure by an operating system of the electronic equipment to obtain a first corresponding relation between each BIOS tool and a system management number in a BIOS tool chain provided by more than one BIOS supplier;
and when a management instruction of the BIOS is obtained, reading the first corresponding relation obtained by analyzing the data structure.
Preferably, the determining, according to the first corresponding relationship, a target BIOS tool corresponding to the target system management number, and managing the BIOS of the electronic device using the target BIOS tool includes:
controlling the electronic equipment to enter a system management mode;
transmitting the target system management number to a system management interrupt processing program realized in advance in the BIOS;
and calling a target BIOS tool corresponding to the target system management number by a system management interrupt processing program in the BIOS according to the first corresponding relation to perform corresponding BIOS management.
In the above method, preferably, the controlling the electronic device to enter a system management mode includes:
triggering software management interruption through a BIOS tool drive of an electronic equipment operating system layer, so that the electronic equipment enters a system management mode;
correspondingly, the transferring the target system management number to a system management interrupt handler implemented in the BIOS in advance includes:
in a system management mode, the BIOS tool driver transmits the target system management number to a system management interrupt handler realized in advance in the BIOS.
An electronic device, comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a target system management number corresponding to a management function indicated by a management instruction when the management instruction of a Basic Input Output System (BIOS) is acquired; the target system management number is a system management number corresponding to the management function and provided by a supplier of the BIOS of the electronic equipment;
a second obtaining unit, configured to obtain a first corresponding relationship between each BIOS tool in a BIOS tool set maintained by the electronic device and a system management number; wherein the BIOS tool set maintained by the electronic device comprises BIOS tool chains provided by more than one BIOS supplier;
and the management unit is used for determining a target BIOS tool corresponding to the target system management number according to the first corresponding relation and managing the BIOS of the electronic equipment by using the target BIOS tool.
Preferably, in the electronic device, the first obtaining unit is specifically configured to:
when a management instruction for the BIOS is obtained, determining a management function indicated by the management instruction; obtaining a second corresponding relation between the BIOS management function and a system management number, wherein the second corresponding relation is the corresponding relation between each BIOS management function and the system management number provided by a supplier to which the BIOS of the electronic equipment operating system belongs, and reported to the electronic equipment operating system by the BIOS after the BIOS of the electronic equipment is started; and determining a target system management number corresponding to the management function indicated by the management instruction according to the second corresponding relation.
Preferably, in the electronic device, the second obtaining unit is specifically configured to:
at the power-on self-test stage of the electronic equipment, generating a BIOS tool table data structure according to the pre-collected corresponding relation between each BIOS tool and a system management number in a BIOS tool chain of more than one supplier; the data structure comprises the corresponding relation between each BIOS tool and the system management number in the BIOS tool chain of more than one supplier which is described in a preset uniform format; transferring, by the BIOS, the data structure to an operating system of the electronic device; when the electronic equipment is started, analyzing the data structure by an operating system of the electronic equipment to obtain a first corresponding relation between each BIOS tool and a system management number in a BIOS tool chain provided by more than one BIOS supplier; and when a management instruction of the BIOS is obtained, reading the first corresponding relation obtained by analyzing the data structure.
Preferably, the management unit of the electronic device is specifically configured to:
controlling the electronic equipment to enter a system management mode; transmitting the target system management number to a system management interrupt processing program realized in advance in the BIOS; and calling a target BIOS tool corresponding to the target system management number by a system management interrupt processing program in the BIOS according to the first corresponding relation to perform corresponding BIOS management.
Preferably, in the electronic device, the management unit controls the electronic device to enter a system management mode, and the method further includes: triggering software management interruption through a BIOS tool drive of an electronic equipment operating system layer, so that the electronic equipment enters a system management mode;
correspondingly, the transferring, by the management unit, the target system management number to a system management interrupt handler implemented in the BIOS in advance further includes:
in a system management mode, the BIOS tool driver transmits the target system management number to a system management interrupt handler realized in advance in the BIOS.
According to the above scheme, by maintaining in advance the BIOS tool chains provided by more than one BIOS provider in the electronic device and maintaining the first corresponding relationship between each BIOS tool and the system management number in the BIOS tool chains provided by more than one BIOS provider, when there is a management requirement for the BIOS actually used by the electronic device, according to the target system management number (provided by the provider to which the BIOS belongs) corresponding to the management function indicated by the management requirement, the target BIOS tool to be used is determined from the first corresponding relationship, and then the BIOS management is realized using the target system management number. Compared with the prior art, the BIOS tool chain provided by more than one BIOS supplier is maintained in the electronic equipment, and the first corresponding relation is maintained, so that the BIOS management mode is realized, the universality of the BIOS tools maintained in the electronic equipment can be obviously improved, the BIOS tools of the equipment can be generally used for the BIOS provided by different suppliers, and the maintenance difficulty and the maintenance complexity of the equipment BIOS tools by the equipment suppliers are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart illustrating a first embodiment of a BIOS management method provided in the present application;
FIG. 2 is a flowchart illustrating a second embodiment of a BIOS management method provided in the present application;
FIG. 3 is a flowchart illustrating a third embodiment of a BIOS management method provided in the present application;
FIG. 4 is a schematic diagram of BIOS management principles provided in the third embodiment of the present application;
FIG. 5 is a flowchart illustrating a fourth embodiment of a BIOS management method according to the present application;
fig. 6 is a schematic structural diagram of a fifth embodiment of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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.
The embodiment of the application provides a BIOS management method, which can be applied to various electronic devices with BIOS management requirements, such as smart phones, tablets, notebook computers, desktop computers, all-in-one machines and the like, and aims to improve the universality of BIOS tools maintained in the electronic devices and reduce the maintenance difficulty and complexity of equipment suppliers on the BIOS tools of the devices.
Referring to fig. 1, a flow chart of a BIOS management method according to a first embodiment of the present application is shown, where the method may include the following steps:
step 101, when a management instruction for a BIOS is obtained, a target system management number corresponding to a management function indicated by the management instruction is obtained; the target system management number is a system management number corresponding to the management function and provided by a supplier of the BIOS of the electronic equipment.
The management instruction for the BIOS may be, but is not limited to, an instruction triggered by a device user based on an actual BIOS management requirement after an operating system of the electronic device is started, and by using a corresponding BIOS management application (BIOS ToolApplication), the instruction may instruct, according to a type of the instruction to which the instruction belongs, to perform required management such as updating, maintenance, or modification on a corresponding part of the BIOS, for example, a BIOS body or a BIOS start area.
In view of this, in this step, when obtaining the management instruction for the BIOS, the management function indicated by the instruction may be specifically determined based on the instruction type of the management instruction, such as specifically indicating which part of the BIOS is managed. Further, according to the Management function indicated by the instruction, a System Management Number (SMINumber) corresponding to the Management function can be determined and acquired.
In the development stage, the corresponding BIOS suppliers assign corresponding system management numbers to the BIOS tools (or corresponding BIOS management functions), and the system management numbers used by the BIOS tools (or corresponding BIOS management functions) are different from each other among different suppliers and different BIOS tools (or BIOS management functions).
102, obtaining a first corresponding relation between each BIOS tool in a BIOS tool set maintained by the electronic equipment and a system management number; wherein the BIOS tool set maintained by the electronic device comprises BIOS tool chains provided by more than one BIOS supplier.
In order to improve the universality of the BIOS tools maintained in the electronic equipment, the BIOS tool chains provided by more than one BIOS provider are maintained in the electronic equipment in advance, for example, various BIOS tool chains provided by various BIOS providers such as AMI/Insyde/Phoenix and the like on the market can be integrated and maintained in the electronic equipment in advance, and the tools in the integrated and maintained BIOS tool chains form a BIOS tool set which is unique to the electronic equipment and can be generally used for the BIOS of different providers.
Meanwhile, the electronic device also maintains a first corresponding relation between each BIOS tool in a BIOS tool chain provided by more than one BIOS supplier and a system management number in advance, so as to provide a basis for determining the BIOS tools required to be used in BIOS management.
It should be noted that, in this step, the processing procedure of obtaining the first corresponding relationship between each BIOS tool in the BIOS tool set maintained by the electronic device and the system management number may be specifically executed after obtaining the target system management number, that is, when obtaining the management instruction for the BIOS, first, the process of performing function analysis on the management instruction and obtaining the corresponding target system management number is executed, and then, the process of obtaining the first corresponding relationship is executed; certainly, the first corresponding relationship may be obtained first at the first time of obtaining the management instruction, and then the function analysis of the management instruction and the obtaining of the corresponding target system management number are performed; in addition, the two processing procedures may be executed simultaneously when the management instruction for the BIOS is obtained, and the execution time node of the two processing procedures is not limited in this embodiment.
Step 103, according to the first corresponding relationship, determining a target BIOS tool corresponding to the target system management number, and managing the BIOS of the electronic device by using the target BIOS tool.
On the basis of obtaining a target system management number corresponding to a management function indicated by a management instruction and obtaining a first corresponding relationship between each BIOS tool in a BIOS tool set maintained in the electronic device and the system management number, the target system management number can be used as an index, and a target BIOS tool corresponding to the target system management number is determined from the first corresponding relationship.
Furthermore, the target BIOS tool can be used for managing the BIOS of the electronic equipment so as to meet the BIOS management requirements of users.
According to the BIOS management method provided by the embodiment of the application, the BIOS tool chains provided by more than one BIOS supplier are maintained in the electronic equipment in advance, and the first corresponding relation between each BIOS tool and the system management number in the BIOS tool chains provided by more than one BIOS supplier is maintained, so that when the BIOS actually used by the electronic equipment has a management requirement, the target BIOS tool to be adopted is determined from the first corresponding relation according to the target system management number (provided by the supplier to which the BIOS belongs) corresponding to the management function indicated by the management requirement, and the BIOS management is realized by using the tool. Compared with the prior art, the BIOS tool chain provided by more than one BIOS supplier is maintained in the electronic equipment, and the first corresponding relation is maintained, so that the BIOS management mode is realized, the universality of the BIOS tools maintained in the electronic equipment can be obviously improved, the BIOS tools of the equipment can be generally used for the BIOS provided by different suppliers, and the maintenance difficulty and the maintenance complexity of the equipment BIOS tools by the equipment suppliers are reduced.
Referring to fig. 2, fig. 2 is a schematic flowchart of another BIOS management method according to an embodiment of the present application, where the method may be applied to various electronic devices with BIOS management requirements, such as a smart phone, a tablet, a notebook, a desktop, and an all-in-one machine, and the method according to the embodiment includes:
step 201, when a management instruction for the BIOS is obtained, a management function indicated by the management instruction is determined.
The management instruction for the BIOS may be, but is not limited to, an instruction triggered by a device user based on an actual BIOS management requirement after an operating system of the electronic device is started, and by using a corresponding BIOS management application (BIOS ToolApplication), the instruction may instruct, according to a type of the instruction to which the instruction belongs, to perform required management such as updating, maintenance, or modification on a corresponding part of the BIOS, for example, a BIOS body or a BIOS start area.
In view of this, in this step, when obtaining the management instruction for the BIOS, the management function indicated by the instruction may be specifically determined based on the instruction type of the management instruction, such as specifically indicating which part of the BIOS is managed.
Step 202, obtaining a second corresponding relationship between the BIOS management function and the system management number, where the second corresponding relationship is a corresponding relationship between each BIOS management function and the system management number provided by a provider to which the BIOS of the BIOS is reported to the operating system of the electronic device by the BIOS after the BIOS of the electronic device is started.
In the development stage, the corresponding BIOS suppliers assign corresponding system management numbers to the BIOS tools (or corresponding BIOS management functions), and the system management numbers used by the BIOS tools (or corresponding BIOS management functions) are different from each other among different suppliers and different BIOS tools (or BIOS management functions).
And aiming at the system management number distributed to each BIOS tool in the BIOS tool chain in the development stage, the BIOS supplier can integrate the second corresponding relation between each BIOS tool in the developed tool chain and the system management number in the BIOS, so that after the BIOS is applied to the electronic equipment, in the startup stage of the electronic equipment, after the BIOS is started up, the BIOS reports the second corresponding relation to the operating system of the electronic equipment, and the operating system layer can acquire the corresponding relation between each BIOS tool (or BIOS management function) matched with the BIOS actually used by the electronic equipment and the system management number.
Based on this, after the management function indicated by the BIOS management instruction is analyzed, the second corresponding relationship reported by the BIOS when the BIOS is completely started can be read in the system layer.
Step 203, according to the second corresponding relation, determining a target system management number corresponding to the management function indicated by the management instruction.
After the second corresponding relationship is obtained, the management function indicated by the management instruction may be an index, and the target system management number corresponding to the management function indicated by the management instruction is determined from the second corresponding relationship.
Step 204, obtaining a first corresponding relation between each BIOS tool in the BIOS tool set maintained by the electronic equipment and a system management number; wherein the BIOS tool set maintained by the electronic device comprises BIOS tool chains provided by more than one BIOS supplier.
In order to improve the universality of the BIOS tools maintained in the electronic equipment, the BIOS tool chains provided by more than one BIOS provider are maintained in the electronic equipment in advance, for example, various BIOS tool chains provided by various BIOS providers such as AMI/Insyde/Phoenix and the like on the market can be integrated and maintained in the electronic equipment in advance, and the tools in the integrated and maintained BIOS tool chains form a BIOS tool set which is unique to the electronic equipment and can be generally used for the BIOS of different providers.
Meanwhile, the electronic device also maintains a first corresponding relation between each BIOS tool in a BIOS tool chain provided by more than one BIOS supplier and a system management number in advance, so as to provide a basis for determining the BIOS tools required to be used in BIOS management.
It should be noted that, in this step, the processing procedure of obtaining the first corresponding relationship between each BIOS tool in the BIOS tool set maintained by the electronic device and the system management number may be specifically executed after obtaining the target system management number, that is, when obtaining the management instruction for the BIOS, first, the process of performing function analysis on the management instruction and obtaining the corresponding target system management number is executed, and then, the process of obtaining the first corresponding relationship is executed; certainly, the first corresponding relationship may be obtained first at the first time of obtaining the management instruction, and then the function analysis of the management instruction and the obtaining of the corresponding target system management number are performed; in addition, the two processing procedures may be executed simultaneously when the management instruction for the BIOS is obtained, and the execution time node of the two processing procedures is not limited in this embodiment.
Step 205, according to the first corresponding relationship, determining a target BIOS tool corresponding to the target system management number, and managing the BIOS of the electronic device by using the target BIOS tool.
On the basis of obtaining a target system management number corresponding to a management function indicated by a management instruction and obtaining a first corresponding relationship between each BIOS tool in a BIOS tool set maintained in the electronic device and the system management number, the target system management number can be used as an index, and a target BIOS tool corresponding to the target system management number is determined from the first corresponding relationship.
Furthermore, the target BIOS tool can be used for managing the BIOS of the electronic equipment so as to meet the BIOS management requirements of users.
According to the BIOS management method provided by the embodiment of the application, the BIOS tool chains provided by more than one BIOS supplier are maintained in the electronic equipment in advance, and the first corresponding relation between each BIOS tool and the system management number in the BIOS tool chains provided by more than one BIOS supplier is maintained, so that when the BIOS actually used by the electronic equipment has a management requirement, the target BIOS tool to be adopted is determined from the first corresponding relation according to the target system management number (provided by the supplier to which the BIOS belongs) corresponding to the management function indicated by the management requirement, and the BIOS management is realized by using the tool. Compared with the prior art, the BIOS tool chain provided by more than one BIOS supplier is maintained in the electronic equipment, and the first corresponding relation is maintained, so that the BIOS management mode is realized, the universality of the BIOS tools maintained in the electronic equipment can be obviously improved, the BIOS tools of the equipment can be generally used for the BIOS provided by different suppliers, and the maintenance difficulty and the maintenance complexity of the equipment BIOS tools by the equipment suppliers are reduced.
Referring to fig. 3, fig. 3 is a flowchart illustrating a further BIOS management method according to a third embodiment of the present application, where the method may be applied to various electronic devices with BIOS management requirements, such as a smart phone, a tablet, a notebook, a desktop, and an all-in-one machine, and the method provided in this embodiment includes:
301, when obtaining a management instruction for a BIOS, obtaining a target system management number corresponding to a management function indicated by the management instruction; the target system management number is a system management number corresponding to the management function and provided by a supplier of the BIOS of the electronic equipment.
The management instruction for the BIOS may be, but is not limited to, an instruction triggered by a device user based on an actual BIOS management requirement after an operating system of the electronic device is started, and by using a corresponding BIOS management application (BIOS ToolApplication), the instruction may instruct, according to a type of the instruction to which the instruction belongs, to perform required management such as updating, maintenance, or modification on a corresponding part of the BIOS, for example, a BIOS body or a BIOS start area.
In view of this, in this step, when obtaining the management instruction for the BIOS, the management function indicated by the instruction may be specifically determined based on the instruction type of the management instruction, such as specifically indicating which part of the BIOS is managed. And determining and acquiring a system management number corresponding to the management function according to the management function indicated by the instruction.
In the development stage, the corresponding BIOS suppliers assign corresponding system management numbers to the BIOS tools (or corresponding BIOS management functions), and the system management numbers used by the BIOS tools (or corresponding BIOS management functions) are different from each other among different suppliers and different BIOS tools (or BIOS management functions).
Step 302, in a power-on self-test stage of the electronic equipment, generating a BIOS tool table data structure according to the pre-collected corresponding relation between each BIOS tool and a system management number in a BIOS tool chain of more than one supplier; the data structure comprises the corresponding relation between each BIOS tool and the system management number in the BIOS tool chain of more than one supplier which is described in a preset uniform format.
In order to improve the universality of the BIOS tools maintained in the electronic equipment, the BIOS tool chain provided by more than one BIOS provider is maintained in the electronic equipment in advance, for example, various BIOS providers such as AMI/Insyde/Phoenix on the market at present and the like can be integrated and maintained in the electronic equipment in advance
The various BIOS toolchains, and the tools in the integrated and maintained BIOS toolchains, form a BIOS toolset that is unique to the electronic device in the present application and can be universally used for different vendors' BIOS.
Meanwhile, the electronic device also maintains a first corresponding relation between each BIOS tool in a BIOS tool chain provided by more than one BIOS supplier and a system management number in advance, so as to provide a basis for determining the BIOS tools required to be used in BIOS management.
Therefore, when information of the corresponding relationship of each supplier is collected, the specific target is to the supplier corresponding to each BIOS tool chain that needs to be integrated and maintained in the electronic device.
On the basis of collecting the corresponding relationship between the BIOS TOOL and the system Management number in each BIOS TOOL chain provided by more than one BIOS provider in advance, the present embodiment establishes a unified ACPI (Advanced configuration and Power Management Interface) data structure BIOS _ TOOL _ TABLE in the BIOS, that is, establishes a BIOS TOOL TABLE data structure, and describes the system Management number corresponding to each BIOS TOOL of each provider in a preset unified format according to the collected information of the corresponding relationship between the BIOS TOOL and the system Management number of each provider in the data structure.
The BIOS tool table data structure can be generated in a power-on self-test stage of the electronic equipment.
Referring to table 1 below, a specific example of the data structure of the BIOS tool table provided in the present embodiment is shown.
TABLE 1
Figure BDA0001304906630000111
Figure BDA0001304906630000121
Step 303, the BIOS transfers the data structure to an operating system of the electronic device.
Referring to the schematic diagram of the BIOS management principle provided in fig. 4, after the data structure of the BIOS tooltable is generated, the data structure generated in the power on self test stage may be transferred to the operating system of the electronic device by the BIOS through ACPI.
Step 304, when the electronic device is started, the operating system of the electronic device analyzes the data structure to obtain a first corresponding relationship between each BIOS tool and a system management number in a BIOS tool chain provided by more than one BIOS provider.
As shown in fig. 4, after the electronic device is powered on, a BIOS tool driver (BIOS ToolDriver) in the system layer may analyze the BIOS tool table data structure to obtain a first corresponding relationship between each BIOS tool and a system relationship number in a tool set (including tool chains of more than one BIOS provider) maintained by the electronic device, so as to provide a basis for determining the BIOS tool to be used in BIOS management.
Step 305, when obtaining the management instruction of the BIOS, reading the first corresponding relationship obtained by analyzing the data structure.
On the basis of the above processing, when a management instruction for the BIOS is obtained, the first correspondence obtained by analyzing the data structure may be directly read.
It should be noted that, the first processing procedure for obtaining the first corresponding relationship between each BIOS tool in the BIOS tool set maintained by the electronic device and the system management number may be specifically executed after obtaining the target system management number, that is, when obtaining a management instruction for the BIOS, first executing a process for analyzing a function of the management instruction and obtaining the corresponding target system management number, and then executing a process for obtaining the first corresponding relationship; certainly, the first corresponding relationship may be obtained first at the first time of obtaining the management instruction, and then the function analysis of the management instruction and the obtaining of the corresponding target system management number are performed; in addition, the two processing procedures may be executed simultaneously when the management instruction for the BIOS is obtained, and the execution time node of the two processing procedures is not limited in this embodiment.
Step 306, according to the first corresponding relationship, determining a target BIOS tool corresponding to the target system management number, and managing the BIOS of the electronic device by using the target BIOS tool.
On the basis of obtaining a target system management number corresponding to a management function indicated by a management instruction and obtaining a first corresponding relationship between each BIOS tool in a BIOS tool set maintained in the electronic device and the system management number, the target system management number can be used as an index, and a target BIOS tool corresponding to the target system management number is determined from the first corresponding relationship.
Furthermore, the target BIOS tool can be used for managing the BIOS of the electronic equipment so as to meet the BIOS management requirements of users.
According to the BIOS management method provided by the embodiment of the application, the BIOS tool chains provided by more than one BIOS supplier are maintained in the electronic equipment in advance, and the first corresponding relation between each BIOS tool and the system management number in the BIOS tool chains provided by more than one BIOS supplier is maintained, so that when the BIOS actually used by the electronic equipment has a management requirement, the target BIOS tool to be adopted is determined from the first corresponding relation according to the target system management number (provided by the supplier to which the BIOS belongs) corresponding to the management function indicated by the management requirement, and the BIOS management is realized by using the tool. Compared with the prior art, the BIOS tool chain provided by more than one BIOS supplier is maintained in the electronic equipment, and the first corresponding relation is maintained, so that the BIOS management mode is realized, the universality of the BIOS tools maintained in the electronic equipment can be obviously improved, the BIOS tools of the equipment can be generally used for the BIOS provided by different suppliers, and the maintenance difficulty and the maintenance complexity of the equipment BIOS tools by the equipment suppliers are reduced.
Referring to fig. 5, fig. 5 is a flowchart illustrating a further BIOS management method according to a fourth embodiment of the present disclosure, where the method may be applied to various electronic devices with BIOS management requirements, such as a smart phone, a tablet, a notebook, a desktop, and an all-in-one machine, and the method provided in this embodiment includes:
step 501, when a management instruction for the BIOS is obtained, a target system management number corresponding to a management function indicated by the management instruction is obtained; the target system management number is a system management number corresponding to the management function and provided by a supplier of the BIOS of the electronic equipment.
The management instruction for the BIOS may be, but is not limited to, an instruction triggered by a device user based on an actual BIOS management requirement after an operating system of the electronic device is started, and by using a corresponding BIOS management application (BIOS ToolApplication), the instruction may instruct, according to a type of the instruction to which the instruction belongs, to perform required management such as updating, maintenance, or modification on a corresponding part of the BIOS, for example, a BIOS body or a BIOS start area.
In view of this, in this step, when obtaining the management instruction for the BIOS, the management function indicated by the instruction may be specifically determined based on the instruction type of the management instruction, such as specifically indicating which part of the BIOS is managed. And determining and acquiring a system management number corresponding to the management function according to the management function indicated by the instruction.
In the development stage, the corresponding BIOS suppliers assign corresponding system management numbers to the BIOS tools (or corresponding BIOS management functions), and the system management numbers used by the BIOS tools (or corresponding BIOS management functions) are different from each other among different suppliers and different BIOS tools (or BIOS management functions).
Step 502, obtaining a first corresponding relation between each BIOS tool in a BIOS tool set maintained by the electronic equipment and a system management number; wherein the BIOS tool set maintained by the electronic device comprises BIOS tool chains provided by more than one BIOS supplier.
In order to improve the universality of the BIOS tools maintained in the electronic equipment, the BIOS tool chains provided by more than one BIOS provider are maintained in the electronic equipment in advance, for example, various BIOS tool chains provided by various BIOS providers such as AMI/Insyde/Phoenix and the like on the market can be integrated and maintained in the electronic equipment in advance, and the tools in the integrated and maintained BIOS tool chains form a BIOS tool set which is unique to the electronic equipment and can be generally used for different BIOS providers.
Meanwhile, the electronic device also maintains a first corresponding relation between each BIOS tool in a BIOS tool chain provided by more than one BIOS supplier and a system management number in advance, so as to provide a basis for determining the BIOS tools required to be used in BIOS management.
It should be noted that, in this step, the processing procedure of obtaining the first corresponding relationship between each BIOS tool in the BIOS tool set maintained by the electronic device and the system management number may be specifically executed after obtaining the target system management number, that is, when obtaining the management instruction for the BIOS, first, the process of performing function analysis on the management instruction and obtaining the corresponding target system management number is executed, and then, the process of obtaining the first corresponding relationship is executed; certainly, the first corresponding relationship may be obtained first at the first time of obtaining the management instruction, and then the function analysis of the management instruction and the obtaining of the corresponding target system management number are performed; in addition, the two processing procedures may be executed simultaneously when the management instruction for the BIOS is obtained, and the execution time node of the two processing procedures is not limited in this embodiment.
Step 503, controlling the electronic device to enter a system management mode.
Specifically, a software management interrupt may be triggered by a BIOS utility driver at the operating system level of the electronic device, causing the electronic device to enter a system management mode.
Step 504, the target system management number is transferred to a system management interrupt handler pre-implemented in the BIOS.
In the system management mode, the target system management number can be transferred to a system management interrupt handler pre-implemented in the BIOS by the BIOS tool driver.
And 505, calling a target BIOS tool corresponding to the target system management number by a system management interrupt handler in the BIOS according to the first corresponding relationship to perform corresponding BIOS management.
And after a system management interrupt processing program in the system BIOS obtains the target system management number, determining a target BIOS tool required by the BIOS management from the first corresponding relation by using the target system management number, and calling the target BIOS tool to perform corresponding BIOS management, such as required upgrading, maintenance or modification management on a BOIS main body or a BIOS starting area.
According to the BIOS management method provided by the embodiment of the application, the BIOS tool chains provided by more than one BIOS supplier are maintained in the electronic equipment in advance, and the first corresponding relation between each BIOS tool and the system management number in the BIOS tool chains provided by more than one BIOS supplier is maintained, so that when the BIOS actually used by the electronic equipment has a management requirement, the target BIOS tool to be adopted is determined from the first corresponding relation according to the target system management number (provided by the supplier to which the BIOS belongs) corresponding to the management function indicated by the management requirement, and the BIOS management is realized by using the tool. Compared with the prior art, the BIOS tool chain provided by more than one BIOS supplier is maintained in the electronic equipment, and the first corresponding relation is maintained, so that the BIOS management mode is realized, the universality of the BIOS tools maintained in the electronic equipment can be obviously improved, the BIOS tools of the equipment can be generally used for the BIOS provided by different suppliers, and the maintenance difficulty and the maintenance complexity of the equipment BIOS tools by the equipment suppliers are reduced.
The fifth embodiment of the application provides an electronic device, which can be various devices with BIOS management requirements, such as a smart phone, a tablet, a notebook computer, a desktop computer, and an all-in-one machine, and aims to improve the universality of BIOS tools maintained in the electronic device and reduce the maintenance difficulty and complexity of device suppliers on the BIOS tools of the devices. Referring to a schematic structural diagram of an electronic device shown in fig. 6, the electronic device of the present embodiment includes:
a first obtaining unit 601, configured to obtain a target system management number corresponding to a management function indicated by a management instruction when the management instruction for the BIOS is obtained; the target system management number is a system management number corresponding to the management function and provided by a supplier of the BIOS of the electronic equipment.
The management instruction for the BIOS may be, but is not limited to, an instruction triggered by a device user based on an actual BIOS management requirement after an operating system of the electronic device is started, and by using a corresponding BIOS management application (BIOS ToolApplication), the instruction may instruct, according to a type of the instruction to which the instruction belongs, to perform required management such as updating, maintenance, or modification on a corresponding part of the BIOS, for example, a BIOS body or a BIOS start area.
In view of this, when obtaining the management instruction for the BIOS, the management function indicated by the instruction may be specifically determined based on the instruction type of the management instruction, such as specifically indicating which management is performed on which part of the BIOS, and the like. Further, according to the Management function indicated by the instruction, a System Management Number (SMI Number) corresponding to the Management function can be determined and acquired.
In the development stage, the corresponding BIOS suppliers assign corresponding system management numbers to the BIOS tools (or corresponding BIOS management functions), and the system management numbers used by the BIOS tools (or corresponding BIOS management functions) are different from each other among different suppliers and different BIOS tools (or BIOS management functions).
A second obtaining unit 602, configured to obtain a first corresponding relationship between each BIOS tool in a BIOS tool set maintained by the electronic device and a system management number; wherein the BIOS tool set maintained by the electronic device comprises BIOS tool chains provided by more than one BIOS supplier.
In order to improve the universality of the BIOS tools maintained in the electronic equipment, the BIOS tool chains provided by more than one BIOS provider are maintained in the electronic equipment in advance, for example, various BIOS tool chains provided by various BIOS providers such as AMI/Insyde/Phoenix and the like on the market can be integrated and maintained in the electronic equipment in advance, and the tools in the integrated and maintained BIOS tool chains form a BIOS tool set which is unique to the electronic equipment and can be generally used for the BIOS of different providers.
Meanwhile, the electronic device also maintains a first corresponding relation between each BIOS tool in a BIOS tool chain provided by more than one BIOS supplier and a system management number in advance, so as to provide a basis for determining the BIOS tools required to be used in BIOS management.
It should be noted that, in this step, the processing procedure of obtaining the first corresponding relationship between each BIOS tool in the BIOS tool set maintained by the electronic device and the system management number may be specifically executed after obtaining the target system management number, that is, when obtaining the management instruction for the BIOS, first, the process of performing function analysis on the management instruction and obtaining the corresponding target system management number is executed, and then, the process of obtaining the first corresponding relationship is executed; certainly, the first corresponding relationship may be obtained first at the first time of obtaining the management instruction, and then the function analysis of the management instruction and the obtaining of the corresponding target system management number are performed; in addition, the two processing procedures may be executed simultaneously when the management instruction for the BIOS is obtained, and the execution time node of the two processing procedures is not limited in this embodiment.
The management unit 603 is configured to determine, according to the first corresponding relationship, a target BIOS tool corresponding to the target system management number, and manage the BIOS of the electronic device by using the target BIOS tool.
On the basis of obtaining a target system management number corresponding to a management function indicated by a management instruction and obtaining a first corresponding relationship between each BIOS tool in a BIOS tool set maintained in the electronic device and the system management number, the target system management number can be used as an index, and a target BIOS tool corresponding to the target system management number is determined from the first corresponding relationship.
Furthermore, the target BIOS tool can be used for managing the BIOS of the electronic equipment so as to meet the BIOS management requirements of users.
According to the electronic device provided by the embodiment of the application, the BIOS tool chains provided by more than one BIOS supplier are maintained in the electronic device in advance, and the first corresponding relation between each BIOS tool in the BIOS tool chains provided by more than one BIOS supplier and the system management number is maintained, so that when the BIOS actually used by the electronic device has a management requirement, the target BIOS tool to be adopted is determined from the first corresponding relation according to the target system management number (provided by the supplier to which the BIOS belongs) corresponding to the management function indicated by the management requirement, and the BIOS management is realized by using the tool. Compared with the prior art, the BIOS tool chain provided by more than one BIOS supplier is maintained in the electronic equipment, and the first corresponding relation is maintained, so that the BIOS management mode is realized, the universality of the BIOS tools maintained in the electronic equipment can be obviously improved, the BIOS tools of the equipment can be generally used for the BIOS provided by different suppliers, and the maintenance difficulty and the maintenance complexity of the equipment BIOS tools by the equipment suppliers are reduced.
In the above embodiment, the first obtaining unit in the electronic device is further configured to:
when a management instruction for the BIOS is obtained, determining a management function indicated by the management instruction; obtaining a second corresponding relation between the BIOS management function and a system management number, wherein the second corresponding relation is the corresponding relation between each BIOS management function and the system management number provided by a supplier to which the BIOS of the electronic equipment operating system belongs, and reported to the electronic equipment operating system by the BIOS after the BIOS of the electronic equipment is started; and determining a target system management number corresponding to the management function indicated by the management instruction according to the second corresponding relation.
Specifically, the management instruction for the BIOS may be, but is not limited to, an instruction triggered by a device user based on an actual BIOS management requirement after an operating system of the electronic device is started, and by using a corresponding BIOS management application (BIOS ToolApplication), the instruction may instruct, according to a type of the instruction to which the instruction belongs, to perform required management such as updating, maintaining, or modifying on a corresponding part of the BIOS, for example, a BIOS body or a BIOS start area.
In view of this, when obtaining the management instruction for the BIOS, the management function indicated by the instruction may be specifically determined based on the instruction type of the management instruction, such as specifically indicating which management is performed on which part of the BIOS, and the like.
In the development stage, the corresponding BIOS suppliers assign corresponding system management numbers to the BIOS tools (or corresponding BIOS management functions), and the system management numbers used by the BIOS tools (or corresponding BIOS management functions) are different from each other among different suppliers and different BIOS tools (or BIOS management functions).
And aiming at the system management number distributed to each BIOS tool in the BIOS tool chain in the development stage, the BIOS supplier can integrate the second corresponding relation between each BIOS tool in the developed tool chain and the system management number in the BIOS, so that after the BIOS is applied to the electronic equipment, in the startup stage of the electronic equipment, after the BIOS is started up, the BIOS reports the second corresponding relation to the operating system of the electronic equipment, and the operating system layer can acquire the corresponding relation between each BIOS tool (or BIOS management function) matched with the BIOS actually used by the electronic equipment and the system management number.
Based on this, after the management function indicated by the BIOS management instruction is analyzed, the second corresponding relationship reported by the BIOS when the BIOS is completely started can be read in the system layer.
After the second corresponding relationship is obtained, the management function indicated by the management instruction may be an index, and the target system management number corresponding to the management function indicated by the management instruction is determined from the second corresponding relationship.
In the above embodiment, the second obtaining unit in the electronic device is further configured to:
at the power-on self-test stage of the electronic equipment, generating a BIOS tool table data structure according to the pre-collected corresponding relation between each BIOS tool and a system management number in a BIOS tool chain of more than one supplier; the data structure comprises the corresponding relation between each BIOS tool and the system management number in the BIOS tool chain of more than one supplier which is described in a preset uniform format; transferring, by the BIOS, the data structure to an operating system of the electronic device; when the electronic equipment is started, analyzing the data structure by an operating system of the electronic equipment to obtain a first corresponding relation between each BIOS tool and a system management number in a BIOS tool chain provided by more than one BIOS supplier; and when a management instruction of the BIOS is obtained, reading the first corresponding relation obtained by analyzing the data structure.
Specifically, in order to improve the universality of the BIOS tool maintained in the electronic device, the BIOS tool chain provided by more than one BIOS provider is maintained in the electronic device in advance, for example, various BIOS tool chains provided by various BIOS providers such as AMI/instyde/Phoenix on the market at present can be integrated and maintained in the electronic device in advance, and the tools in the integrated and maintained BIOS tool chains form a specific BIOS tool set capable of being generally used for different BIOS providers of the electronic device in the present application.
Meanwhile, the electronic device also maintains a first corresponding relation between each BIOS tool in a BIOS tool chain provided by more than one BIOS supplier and a system management number in advance, so as to provide a basis for determining the BIOS tools required to be used in BIOS management.
Therefore, when information of the corresponding relationship of each supplier is collected, the specific target is to the supplier corresponding to each BIOS tool chain that needs to be integrated and maintained in the electronic device.
On the basis of collecting the corresponding relationship between the BIOS TOOL and the system Management number in each BIOS TOOL chain provided by more than one BIOS provider in advance, the present embodiment establishes a unified ACPI (Advanced configuration and Power Management Interface) data structure BIOS _ TOOL _ TABLE in the BIOS, that is, establishes a BIOS TOOL TABLE data structure, and describes the system Management number corresponding to each BIOS TOOL of each provider in a preset unified format according to the collected information of the corresponding relationship between the BIOS TOOL and the system Management number of each provider in the data structure.
The BIOS tool table data structure can be generated in a power-on self-test stage of the electronic equipment.
Referring to table 1 below, a specific example of the data structure of the BIOS tool table provided in the present embodiment is shown.
TABLE 1
Figure BDA0001304906630000191
Referring to the schematic diagram of the BIOS management principle provided in fig. 4, after the data structure of the BIOS tooltable is generated, the data structure generated in the power on self test stage may be transferred to the operating system of the electronic device by the BIOS through ACPI.
As shown in fig. 4, after the electronic device is powered on, a BIOS tool driver (BIOS ToolDriver) in the system layer may analyze the BIOS tool table data structure to obtain a first corresponding relationship between each BIOS tool and a system relationship number in a tool set (including tool chains of more than one BIOS provider) maintained by the electronic device, so as to provide a basis for determining the BIOS tool to be used in BIOS management.
On the basis of the above processing, when a management instruction for the BIOS is obtained, the first correspondence obtained by analyzing the data structure may be directly read.
It should be noted that, the first processing procedure for obtaining the first corresponding relationship between each BIOS tool in the BIOS tool set maintained by the electronic device and the system management number may be specifically executed after obtaining the target system management number, that is, when obtaining a management instruction for the BIOS, first executing a process for analyzing a function of the management instruction and obtaining the corresponding target system management number, and then executing a process for obtaining the first corresponding relationship; certainly, the first corresponding relationship may be obtained first at the first time of obtaining the management instruction, and then the function analysis of the management instruction and the obtaining of the corresponding target system management number are performed; in addition, the two processing procedures may be executed simultaneously when the management instruction for the BIOS is obtained, and the execution time node of the two processing procedures is not limited in this embodiment.
In the above embodiment, the management unit in the electronic device is further configured to:
controlling the electronic equipment to enter a system management mode; transmitting the target system management number to a system management interrupt processing program realized in advance in the BIOS; and calling a target BIOS tool corresponding to the target system management number by a system management interrupt processing program in the BIOS according to the first corresponding relation to perform corresponding BIOS management.
Specifically, a software management interrupt may be triggered by a BIOS utility driver at the operating system level of the electronic device, causing the electronic device to enter a system management mode.
In the system management mode, the target system management number can be transferred to a system management interrupt handler pre-implemented in the BIOS by the BIOS tool driver.
And after a system management interrupt processing program in the system BIOS obtains the target system management number, determining a target BIOS tool required by the BIOS management from the first corresponding relation by using the target system management number, and calling the target BIOS tool to perform corresponding BIOS management, such as required upgrading, maintenance or modification management on a BOIS main body or a BIOS starting area.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device or system type embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
For convenience of description, the above system or apparatus is described as being divided into various modules or units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
Finally, it is further noted that, herein, relational terms such as first, second, third, fourth, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A BIOS management method applied to an electronic device is characterized by comprising the following steps:
when a management instruction for a Basic Input Output System (BIOS) is obtained, a target system management number corresponding to a management function indicated by the management instruction is obtained; the target system management number is a system management number corresponding to the management function and provided by a supplier of the BIOS of the electronic equipment;
obtaining a first corresponding relation between each BIOS tool in a BIOS tool set maintained by the electronic equipment and a system management number; wherein the BIOS tool set maintained by the electronic device comprises BIOS tool chains provided by more than one BIOS supplier;
and determining a target BIOS tool corresponding to the target system management number according to the first corresponding relation, and managing the BIOS of the electronic equipment by using the target BIOS tool.
2. The method of claim 1, wherein obtaining the target system management number corresponding to the management function indicated by the management instruction when obtaining the management instruction for the BIOS comprises:
when a management instruction for the BIOS is obtained, determining a management function indicated by the management instruction;
obtaining a second corresponding relation between the BIOS management function and a system management number, wherein the second corresponding relation is the corresponding relation between each BIOS management function and the system management number provided by a supplier to which the BIOS of the electronic equipment operating system belongs, and reported to the electronic equipment operating system by the BIOS after the BIOS of the electronic equipment is started;
and determining a target system management number corresponding to the management function indicated by the management instruction according to the second corresponding relation.
3. The method of claim 1, wherein obtaining the first correspondence between each BIOS tool in the set of BIOS tools maintained by the system of the electronic device and a system management number comprises:
at the power-on self-test stage of the electronic equipment, generating a BIOS tool table data structure according to the pre-collected corresponding relation between each BIOS tool and a system management number in a BIOS tool chain of more than one supplier; the data structure comprises the corresponding relation between each BIOS tool and the system management number in the BIOS tool chain of more than one supplier which is described in a preset uniform format;
transferring, by the BIOS, the data structure to an operating system of the electronic device;
when the electronic equipment is started, analyzing the data structure by an operating system of the electronic equipment to obtain a first corresponding relation between each BIOS tool and a system management number in a BIOS tool chain provided by more than one BIOS supplier;
and when a management instruction of the BIOS is obtained, reading the first corresponding relation obtained by analyzing the data structure.
4. The method of claim 1, wherein determining a target BIOS tool corresponding to the target system management number according to the first mapping relationship, and managing the BIOS of the electronic device using the target BIOS tool comprises:
controlling the electronic equipment to enter a system management mode;
transmitting the target system management number to a system management interrupt processing program realized in advance in the BIOS;
and calling a target BIOS tool corresponding to the target system management number by a system management interrupt processing program in the BIOS according to the first corresponding relation to perform corresponding BIOS management.
5. The method of claim 4, wherein the controlling electronic device to enter a system management mode comprises:
triggering software system management interrupt through a BIOS tool drive of an electronic equipment operating system layer, so that the electronic equipment enters a system management mode;
correspondingly, the transferring the target system management number to a system management interrupt handler implemented in the BIOS in advance includes:
in a system management mode, the BIOS tool driver transmits the target system management number to a system management interrupt handler realized in advance in the BIOS.
6. An electronic device, comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a target system management number corresponding to a management function indicated by a management instruction when the management instruction of a Basic Input Output System (BIOS) is acquired; the target system management number is a system management number corresponding to the management function and provided by a supplier of the BIOS of the electronic equipment;
a second obtaining unit, configured to obtain a first corresponding relationship between each BIOS tool in a BIOS tool set maintained by the electronic device and a system management number; wherein the BIOS tool set maintained by the electronic device comprises BIOS tool chains provided by more than one BIOS supplier;
and the management unit is used for determining a target BIOS tool corresponding to the target system management number according to the first corresponding relation and managing the BIOS of the electronic equipment by using the target BIOS tool.
7. The electronic device according to claim 6, wherein the first obtaining unit is specifically configured to:
when a management instruction for the BIOS is obtained, determining a management function indicated by the management instruction; obtaining a second corresponding relation between the BIOS management function and a system management number, wherein the second corresponding relation is the corresponding relation between each BIOS management function and the system management number provided by a supplier to which the BIOS of the electronic equipment operating system belongs, and reported to the electronic equipment operating system by the BIOS after the BIOS of the electronic equipment is started; and determining a target system management number corresponding to the management function indicated by the management instruction according to the second corresponding relation.
8. The electronic device according to claim 6, wherein the second obtaining unit is specifically configured to:
at the power-on self-test stage of the electronic equipment, generating a BIOS tool table data structure according to the pre-collected corresponding relation between each BIOS tool and a system management number in a BIOS tool chain of more than one supplier; the data structure comprises the corresponding relation between each BIOS tool and the system management number in the BIOS tool chain of more than one supplier which is described in a preset uniform format; transferring, by the BIOS, the data structure to an operating system of the electronic device; when the electronic equipment is started, analyzing the data structure by an operating system of the electronic equipment to obtain a first corresponding relation between each BIOS tool and a system management number in a BIOS tool chain provided by more than one BIOS supplier; and when a management instruction of the BIOS is obtained, reading the first corresponding relation obtained by analyzing the data structure.
9. The electronic device according to claim 6, wherein the management unit is specifically configured to:
controlling the electronic equipment to enter a system management mode; transmitting the target system management number to a system management interrupt processing program realized in advance in the BIOS; and calling a target BIOS tool corresponding to the target system management number by a system management interrupt processing program in the BIOS according to the first corresponding relation to perform corresponding BIOS management.
10. The electronic device of claim 9, wherein the management unit controls the electronic device to enter a system management mode, further comprising: triggering software system management interrupt through a BIOS tool drive of an electronic equipment operating system layer, so that the electronic equipment enters a system management mode;
correspondingly, the transferring, by the management unit, the target system management number to a system management interrupt handler implemented in the BIOS in advance further includes:
in a system management mode, the BIOS tool driver transmits the target system management number to a system management interrupt handler realized in advance in the BIOS.
CN201710379703.3A 2017-05-25 2017-05-25 BIOS management method and electronic equipment Active CN107220053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710379703.3A CN107220053B (en) 2017-05-25 2017-05-25 BIOS management method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710379703.3A CN107220053B (en) 2017-05-25 2017-05-25 BIOS management method and electronic equipment

Publications (2)

Publication Number Publication Date
CN107220053A CN107220053A (en) 2017-09-29
CN107220053B true CN107220053B (en) 2020-10-27

Family

ID=59944544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710379703.3A Active CN107220053B (en) 2017-05-25 2017-05-25 BIOS management method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107220053B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958749A (en) * 2018-06-29 2018-12-07 郑州云海信息技术有限公司 Realize the method, device and equipment that the BIOS data of packing forms are write with a brush dipped in Chinese ink

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0973086A1 (en) * 1998-07-15 2000-01-19 Hewlett-Packard Company Computer remote power on
CN1892608A (en) * 2005-07-05 2007-01-10 英业达股份有限公司 Interruption control system and method
CN101131639A (en) * 2006-08-18 2008-02-27 英特尔公司 Monitoring performance through an extensible firmware interface
CN101727349A (en) * 2008-11-03 2010-06-09 英业达股份有限公司 Method for transmitting system messages of computer system and configuration management program thereof
CN102081533A (en) * 2009-11-27 2011-06-01 株式会社理光 Equipment management system, electronic equipment and software updating method
CN102455919A (en) * 2010-10-19 2012-05-16 英业达股份有限公司 Automatic optimization setting method for basic input output system(BIOS)
CN102479119A (en) * 2010-11-29 2012-05-30 英业达股份有限公司 Method for dynamically switching memory mode for protecting damaged memory cell data
CN103257922A (en) * 2013-04-16 2013-08-21 合肥联宝信息技术有限公司 Method for quickly testing reliability of BIOS (basic input output system) and OS (operating system) interface codes

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0973086A1 (en) * 1998-07-15 2000-01-19 Hewlett-Packard Company Computer remote power on
CN1892608A (en) * 2005-07-05 2007-01-10 英业达股份有限公司 Interruption control system and method
CN101131639A (en) * 2006-08-18 2008-02-27 英特尔公司 Monitoring performance through an extensible firmware interface
CN101727349A (en) * 2008-11-03 2010-06-09 英业达股份有限公司 Method for transmitting system messages of computer system and configuration management program thereof
CN102081533A (en) * 2009-11-27 2011-06-01 株式会社理光 Equipment management system, electronic equipment and software updating method
CN102455919A (en) * 2010-10-19 2012-05-16 英业达股份有限公司 Automatic optimization setting method for basic input output system(BIOS)
CN102479119A (en) * 2010-11-29 2012-05-30 英业达股份有限公司 Method for dynamically switching memory mode for protecting damaged memory cell data
CN103257922A (en) * 2013-04-16 2013-08-21 合肥联宝信息技术有限公司 Method for quickly testing reliability of BIOS (basic input output system) and OS (operating system) interface codes

Also Published As

Publication number Publication date
CN107220053A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
US10248414B2 (en) System and method for determining component version compatibility across a device ecosystem
KR102317535B1 (en) Methods and systems for implementing data tracking with software development kits
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN102306117B (en) Automatic hardware test alarm method and device
CN109117141B (en) Method, device, electronic equipment and computer readable storage medium for simplifying programming
US20140282412A1 (en) System And Method For Automatic Generation Of Software Test
CN111130891A (en) Server management device and method, electronic equipment and storage medium
WO2020015170A1 (en) Interface invoking method and apparatus, and computer-readable storage medium
US20150161123A1 (en) Techniques to diagnose live services
CN112486491A (en) Page generation method and device, computer equipment and storage medium
US9342606B2 (en) Intelligent software installation
CN109144834B (en) User behavior data acquisition method and device, android system and terminal equipment
CN107220053B (en) BIOS management method and electronic equipment
US10520929B2 (en) Techniques for implementing universal commands in a welding or cutting system
CN101373464B (en) Method, apparatus and system for automatically adopting form setting
AU2017319596A1 (en) Computer implemented method, welding system and apparatus for multiple application banks
CN110767264A (en) Data processing method and device and computer readable storage medium
US20230259377A1 (en) User input predictive action system and method for user interfaces
US10313188B2 (en) Method for remote management of multiple device configurations
CN115543428A (en) Simulated data generation method and device based on strategy template
CN105808467A (en) Method for managing computer power supply by using custom ACPI (Advanced Configuration and Power Interface)
CN113448867A (en) Software pressure testing method and device
US20070156775A1 (en) Metadata transformation in copy and paste scenarios between heterogeneous applications
CN108809763B (en) Network performance parameter acquisition method, terminal device and storage medium
CN107193670B (en) Remote management method, device and system for cluster workstations

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
GR01 Patent grant
GR01 Patent grant