CN117472458B - System function optimal configuration method and device, electronic equipment and storage medium - Google Patents

System function optimal configuration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117472458B
CN117472458B CN202311827317.8A CN202311827317A CN117472458B CN 117472458 B CN117472458 B CN 117472458B CN 202311827317 A CN202311827317 A CN 202311827317A CN 117472458 B CN117472458 B CN 117472458B
Authority
CN
China
Prior art keywords
function
configuration
item
target
target function
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
CN202311827317.8A
Other languages
Chinese (zh)
Other versions
CN117472458A (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.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311827317.8A priority Critical patent/CN117472458B/en
Publication of CN117472458A publication Critical patent/CN117472458A/en
Application granted granted Critical
Publication of CN117472458B publication Critical patent/CN117472458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

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 invention provides a system function optimal configuration method, a device, electronic equipment and a storage medium, and relates to the technical field of computers, wherein the method comprises the following steps: acquiring the model and configuration requirement information of a computer system to which a basic input/output system to be configured belongs according to a configuration request of a target function item of the basic input/output system to be configured; under the condition that the target function item is determined to be a configurable function item, acquiring a plurality of function identifiers corresponding to the target function item in a configuration database according to the numerical value of the configurable setting item corresponding to the target function item; acquiring a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information; and carrying out functional configuration on the basic input/output system to be configured according to the target functional identifier. The invention realizes the functions of flexibly and optimally configuring basic input and output systems with different machine types and different configuration requirements at low cost.

Description

System function optimal configuration method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for optimizing configuration of a system function, an electronic device, and a storage medium.
Background
BIOS (basic Input/Output System) is a set of programs solidified on a ROM (Read-only memory) chip on a main board in a computer, which stores the most important programs of basic Input/Output, self-checking programs after starting and System self-starting programs of the computer, and has the main functions of providing the bottommost and most direct hardware setting and control for the computer, so how to efficiently and accurately perform BIOS function optimization configuration plays an important role in the aspects of starting, hardware equipment management, safety, performance optimization and the like of the computer.
Because of the different models and different items of computer systems, the configuration requirement information required varies for the function of one or some BIOS setup items. In the related art, in order to meet such a requirement, corresponding code libraries or scripts are generally written one-to-one for BIOS in computer systems on different models and different projects to perform corresponding functional configuration; if the corresponding code library or script is written one by one to perform the corresponding function configuration, a great deal of repetitive labor in software engineering is likely to be caused, and maintainability is poor, so that the efficiency and cost of BIOS function configuration are affected.
Therefore, there is a need for a system function optimization configuration method, apparatus, electronic device, and storage medium to solve the above problems.
Disclosure of Invention
The invention provides a system function optimal configuration method, a device, electronic equipment and a storage medium, which are used for solving the defects that the efficiency and cost of BIOS function configuration are affected by corresponding function configuration by writing corresponding code libraries or scripts one to one for BIOS in computer systems on different models and different projects in the related technology, and realizing efficient and low-cost system function optimal configuration.
The invention provides a system function optimizing configuration method, which comprises the following steps:
acquiring the model and configuration requirement information of a computer system to which a basic input/output system to be configured belongs according to a configuration request of a target function item of the basic input/output system to be configured;
under the condition that the target function item is determined to be a configurable function item, acquiring a plurality of function identifiers corresponding to the target function item in a configuration database according to the numerical value of the configurable setting item corresponding to the target function item;
acquiring a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information;
And carrying out functional configuration on the basic input/output system to be configured according to the target functional identifier.
According to the system function optimizing configuration method provided by the invention, before the values of the configurable setting items corresponding to the target function items are obtained in the configuration database, the method further comprises the steps of:
under the condition that the target function item is determined to be a configurable function item, acquiring each difference function information and each common function information between the target function item and other function items; the other function items are function items which are the same as the function type of the target function item in other basic input and output systems which are different from the machine type of the basic input and output system to be configured;
marking each piece of difference function information and each piece of common function information respectively to obtain a difference function identifier corresponding to each piece of difference function information and a common function identifier corresponding to each piece of common function information;
configuring a plurality of fixed configuration setting items and the configurable setting items corresponding to the target function items according to the quantity of the common function information;
Establishing a one-to-one mapping relation between the numerical value of each fixed configuration setting item and each common function identifier in the configuration database;
and establishing a one-to-many mapping relation between the numerical value of the configurable setting item, a plurality of common function identifiers and a plurality of difference function identifiers in the configuration database.
According to the system function optimizing configuration method provided by the invention, the function configuration of the basic input/output system to be configured is carried out according to the target function identifier, and the method comprises the following steps:
configuring the target function identifier as a function identifier of the target function item;
under the condition that the target function identifier belongs to any one of a plurality of different function identifiers according to the target function identifier, acquiring a first function configuration code corresponding to the target function identifier from an adaptive function module corresponding to the model according to the target function identifier;
and carrying out functional configuration on the basic input/output system to be configured according to the first functional configuration code.
According to the system function optimizing configuration method provided by the invention, the function configuration of the basic input/output system to be configured is carried out according to the target function identifier, and the method comprises the following steps:
Configuring the target function identifier as a function identifier of the target function item;
under the condition that the target function identifier belongs to any one of a plurality of common function identifiers according to the target function identifier, acquiring a second function configuration code corresponding to the target function identifier from a shared code library according to the target function identifier;
performing function configuration on the target function item according to the second function configuration code;
the shared code library is a code library shared by the basic input and output system to be configured and other basic input and output systems.
According to the system function optimizing configuration method provided by the invention, the target function identifier is obtained from a plurality of function identifiers according to the model and the configuration requirement information, and the method comprises the following steps:
under the condition that the configuration requirement information is first requirement information, acquiring a plurality of common function identifiers from a plurality of function identifiers;
according to the machine type, acquiring the target function identifier from a plurality of common function identifiers;
the first requirement information comprises requirement information of sharing configuration of the basic input/output system to be configured and the other basic input/output systems.
According to the system function optimizing configuration method provided by the invention, the target function identifier is obtained from a plurality of function identifiers according to the model and the configuration requirement information, and the method comprises the following steps:
acquiring a plurality of different function identifiers from a plurality of function identifiers under the condition that the configuration requirement information is second requirement information;
according to the machine type, acquiring the target function identifier from a plurality of different function identifiers;
the second requirement information comprises requirement information of differential configuration of the basic input/output system to be configured and the other basic input/output systems.
According to the system function optimizing configuration method provided by the invention, the method for acquiring a plurality of function identifiers corresponding to the target function item in a configuration database according to the numerical value of the configurable setting item corresponding to the target function item comprises the following steps:
acquiring a target function identifier set in the configuration database according to the numerical value of the configurable setting item and the one-to-many association relationship between the numerical value of the configurable setting item and the function identifier; the target function identifier set comprises a plurality of common function identifiers and a plurality of difference function identifiers;
And acquiring a plurality of function identifiers from the target function identifier set.
According to the system function optimizing configuration method provided by the invention, after the plurality of fixed configuration setting items and the configurable setting items corresponding to the target function items are configured according to the quantity of the common function information, the method further comprises the following steps:
determining a target data type among a plurality of data types;
configuring a value of each of the fixed configuration settings and a value of the configurable settings based on the target data type;
wherein the plurality of data types includes at least a plurality of 8-bit unsigned integer, 16-bit unsigned integer, 32-bit unsigned integer, and boolean type.
According to the system function optimizing configuration method provided by the invention, before the values of the configurable setting items corresponding to the target function items are obtained in the configuration database, the method further comprises the steps of:
judging whether the target function item is a configurable function item according to the configuration requirement information and/or the model;
and under the condition that the target function item is determined to be the configurable function item according to the judging result, configuring the numerical value of the configurable setting item as the default setting item value of the target function item.
The invention provides a system function optimizing configuration method, which further comprises the following steps:
under the condition that the target function item is determined to be an unconfigurable function item according to the judging result, determining a target data value in the numerical values of a plurality of fixed configuration setting items corresponding to the target function item according to the model;
and configuring the target data value as a default setting item value of the target function item.
According to the system function optimization configuration method provided by the invention, after the target data value is configured as the default setting item value of the target function item, the method further comprises the following steps:
acquiring a common function identifier corresponding to the target data value from the configuration database according to the target data value and the one-to-one mapping relation between the target data value and the common function identifier;
and carrying out functional configuration on the basic input/output system to be configured according to the common functional identifier corresponding to the target data value.
The invention provides a system function optimizing configuration method, which further comprises the following steps:
acquiring a database update request; the database update request comprises an update request of the configuration database input through a user configuration terminal;
According to the database updating request, acquiring the numerical value of the setting item to be updated and the function identifier corresponding to the numerical value of the setting item to be updated; the setting items to be updated comprise fixed configuration setting items and/or configurable setting items;
searching a setting item value matched with the value of the setting item to be updated in the configuration database;
and under the condition that the matched numerical value of the setting item is not found, the numerical value of the setting item to be updated and the function identifier corresponding to the numerical value of the setting item to be updated are added into the configuration database in a mapping relation mode.
The invention also provides a system function optimizing configuration device, which comprises:
the first acquisition unit is used for acquiring the model and configuration requirement information of a computer system to which the basic input/output system to be configured belongs according to a configuration request of a target function item of the basic input/output system to be configured;
the second acquisition unit is used for acquiring a plurality of function identifiers corresponding to the target function item in a configuration database according to the numerical value of the configurable setting item corresponding to the target function item under the condition that the target function item is determined to be the configurable function item;
A third obtaining unit, configured to obtain a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information;
and the configuration unit is used for carrying out functional configuration on the basic input/output system to be configured according to the target functional identifier.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the system function optimal configuration method according to any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a system function optimization configuration method as described in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a system function optimization configuration method as described in any one of the above.
According to the system function optimal configuration method, device, electronic equipment and storage medium, under the condition that the target function item is the configurable function item, the numerical value of the configurable setting item corresponding to the target function item and the model of the BIOS can be based on the numerical value of the configurable setting item corresponding to the target function item, the function identifiers corresponding to the target function item are obtained in the configuration database in an adaptive mode, and the target function identifiers are determined in an adaptive mode according to different models and different configuration requirement information, so that the function optimal configuration of the BIOS can be flexibly executed, and in the updating process, the configuration information between the configurable setting item and the function identifiers is simply modified, so that the flexible optimal configuration of the BIOS functions of different models and different configuration requirements can be realized, the efficiency, the expandability and the flexibility of the function optimal configuration of the BIOS are effectively improved, the repeated labor is avoided, and the maintenance cost is reduced.
Drawings
In order to more clearly illustrate the invention or the technical solutions in the related art, the following description will briefly explain the drawings used in the embodiments or the related art description, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a schematic flow chart of a system function optimization configuration method provided by the invention;
FIG. 2 is a schematic diagram of a computer system according to the present invention;
FIG. 3 is a second flow chart of the system function optimization configuration method according to the present invention;
FIG. 4 is a third flow chart of the system function optimization configuration method according to the present invention;
FIG. 5 is a schematic diagram of a configuration of a system function optimization configuration device provided by the invention;
fig. 6 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The BIOS may be implemented with a user interaction interface; on the user interaction interface, there are multiple tabs and subdirectories for realizing multiple function setting items, these function setting items, usually there are two or more options for the user to select setting according to the function needs, also can directly key in digital values, different setting represents different function realization conditions; after detecting the specific settings of the function setting items by the client in the BIOS configuration code, the corresponding functions of each setting of each function can be realized respectively.
In the related art, in order to reduce the number of BIOS configuration codes, thereby greatly reducing the manpower required for maintaining the codes and ensuring the consistency of the functional performance of the BIOS main body, the BIOS functions of a plurality of models and projects of the same platform are supported by optimizing the BIOS architecture, and the models and projects share the same BIOS setting item function and the settings corresponding to each function.
Because the setting required by the functions of part of BIOS setting items in different projects or different models is different, the configuration of the BIOS function items realized by adopting the same set of Codebase is only one setting, and the differential configuration of the BIOS function configuration of multiple projects or multiple models cannot be performed, so that the BIOS function configuration requirement information of different projects or models cannot be met.
To meet such a requirement, in the related art, corresponding Codebase is generally written in a one-to-one manner for BIOS in computer systems on different models and different projects, so as to perform corresponding functional configuration; if the corresponding Codebase is written one-to-one for corresponding function configuration, the quantity of BIOS configuration codes is increased, when the BIOS configuration codes are upgraded, the same work task can cause several times of workload, which can cause a great deal of repeated labor in software engineering and has poor maintainability, thereby influencing the efficiency and cost of BIOS function configuration. In addition, related technologies aim at realizing BIOS function configuration by writing additional development scripts one to one for BIOS in computer systems on different models and different projects, which not only increases labor investment for script development and testing, but also brings about the situation of BIOS version and script collocation, and increases the complexity of version maintenance.
In summary, in the related art, corresponding code libraries or scripts are written for BIOS in computer systems on different models and different projects one to perform corresponding function configuration seriously, which affects efficiency and cost of BIOS function configuration.
Aiming at the problems, the embodiment provides a system function optimal configuration method, a device, an electronic device and a storage medium, which can effectively solve the problems that the BIOS function performance is inconsistent, a plurality of sets of codes are required to be maintained, the code maintenance complexity and the labor cost are increased, the technical problem is solved, the maintenance cost is saved for a company, and the system function configuration performance, the customer satisfaction and the product competitiveness are improved under the existing design that one set of codes supports a plurality of machine types/projects/customer customizations.
The system function optimizing configuration method of the present invention is described below with reference to fig. 1 to 4.
Fig. 1 is a schematic flow chart of a system function optimization configuration method provided in an embodiment of the present application; the method can be suitable for various configuration scenes, such as other similar BIOS system function optimization configuration scenes with different hardware architectures, different customization requirements and the like. The method may be applied to a computer system, which may be a server, a desktop computer, a notebook computer, a tablet computer, an embedded system, etc., which is not particularly limited in this embodiment. FIG. 2 is a schematic diagram of a computer system according to an embodiment of the present disclosure; as shown in FIG. 2, the computer system includes an application layer, an operating system layer, a BIOS, and a hardware layer. The method can also be used in other firmware, software, OS (Operating System) similar scenarios and requirements.
Application layer: the application layer is the highest level part of the computer system and includes various applications and software such as text editors, multimedia players, games, etc. These applications are typically used directly by users and utilize services and resources provided by the operating system and underlying hardware to accomplish various tasks.
Operating system layer: the operating system layer is one of the most important layers in the computer system, and is responsible for managing computer hardware resources, providing a file system, network services, process management, security, memory management and other core services, and providing support for programs and software of an upper application layer.
BIOS: the BIOS, which is a set of firmware programs stored on the motherboard of a computer, is located at a lower level of the computer system and is used to initialize computer hardware, perform self-tests, boot an operating system, and the like.
Hardware layer: the hardware layer is the lowest part of the computer system, including various physical devices, hardware components, and circuits. The hardware layer provides various resources and services required by the operating system and application programs, such as a CPU (Central Processing Unit ), memory, hard disk, display, network adapter, etc.
As shown in fig. 1, the system function optimization configuration method specifically includes the following steps:
step 101, obtaining the model and configuration requirement information of a computer system to which a basic input/output system to be configured belongs according to a configuration request of a target function item of the basic input/output system to be configured;
the target function item is a function item required to be configured by a basic input output system to be configured, which is required to be configured. The configuration request may be a user input for input at the front end interface module, or may be information generated by a controller or a third party device within the computer under certain conditions, such as a configuration request triggered by timing. The user input may be information input through a command line interface input, a graphical interface input, a touch input, a drop-down selection input, a voice input, a gesture input, a visual input, a brain-computer input, or the like, which is not specifically limited in this embodiment.
Optionally, acquiring a configuration request of a target function item of the basic input/output system to be configured in real time; after the configuration request is obtained, the configuration request may be analyzed to obtain the model and configuration requirement information of the computer system to which the basic input output system to be configured belongs.
Here, the model and the configuration requirement information of the computer system to which the basic input output system to be configured belongs may be configured in the configuration request; or the mapping relation is stored in association with the configuration request; correspondingly, the mode of acquiring the model and configuration requirement information of the computer system to which the basic input/output system to be configured belongs can be acquired through association of mapping relation or analysis; for example, the association relationship between the request identifier of the configuration request and the model and the configuration requirement information of the computer system to which the basic input/output system to be configured belongs may be mapped, searched and obtained; or analyzing the configuration request to obtain the model and configuration requirement information of the computer system to which the basic input/output system to be configured belongs.
The configuration requirement information here includes at least information indicating whether or not it is a differentiated configuration requirement.
102, under the condition that the target function item is determined to be a configurable function item, acquiring a plurality of function identifiers corresponding to the target function item from a configuration database according to the numerical value of a configurable setting item corresponding to the target function item;
Optionally, judging whether the configuration type of the target function item is a configurable function item; the judging method includes but is not limited to: searching and acquiring the configuration type of the target function item based on the pre-association relation between the configuration type of the target function item corresponding to the model, thereby determining whether the configuration type of the target function item is a configurable function item; or determining the configuration type of the target function item based on the configuration requirement information analysis, thereby determining whether the configuration type of the target function item is a configurable function item; or determining whether the configuration type of the target function item is a configurable function item based on the configuration type of the target function item determined by combining the model and the configuration requirement information.
And under the condition that the configuration type of the target function item is judged to be the configurable function item, loading the numerical value of the configurable setting item corresponding to the target function item to acquire a plurality of function identifiers corresponding to the target function item in the configuration database.
Because the driving attribute of the BIOS contains a plurality of code files and different functional modules, the global data of the BIOS is not comparable to the general software in the complexity degree; the function setting data may be transferred within the BIOS code global based on a data structure used in UEFI (Unified Extensible Firmware Interface ), i.e., PCD (Platform Configuration Database, platform configuration database) to build a configuration database, in addition to other hardware or software tools that may hold and transfer data within the BIOS code global, to build a configuration database, including but not limited to Variable mechanisms under the UEFI specification (hereinafter also referred to as UEFI Variable), hardware memory chips, etc.
UEFI is a protocol specification used to implement BIOS and device drivers, APP (Application), etc. in the same environment.
UEFI Variable allows data to be stored and transferred between UEFI firmware and the operating system. These variables may be used to store configuration settings, system status, etc. information and may be shared and transferred between different software modules.
Step 103, according to the model and the configuration requirement information, acquiring a target function identifier from a plurality of function identifiers;
optionally, after obtaining a plurality of function identifiers corresponding to the target function item, the machine type and the configuration requirement information may be combined, and a target function identifier matched with the machine type and the configuration requirement information may be obtained from the plurality of function identifiers.
The method for obtaining the target function identifier matched with the model and the configuration requirement information can be that a first candidate function identifier matched with the configuration requirement information is obtained from a plurality of function identifiers, and then the target function identifier matched with the model is obtained from the first candidate function identifier; or, firstly, acquiring a second candidate function identifier matched with the machine type from the plurality of function identifiers, and then acquiring a target function identifier matched with the machine type from the second candidate function identifier; or, the model and the configuration requirement information are subjected to combined coding so as to obtain a target function identifier matched with the combined coding from a plurality of function identifiers.
And 104, performing function configuration on the basic input/output system to be configured according to the target function identifier.
Optionally, after the target function identifier is obtained, the corresponding function configuration can be executed on the basis of the function configuration information or the function configuration code corresponding to the target function identifier, so that the function optimization configuration of the BIOS can be enabled to be effective.
According to the system function optimizing configuration method, under the condition that the target function item is the configurable function item, a plurality of function identifiers corresponding to the target function item can be obtained in the configuration database adaptively based on the value of the configurable setting item corresponding to the target function item and the model of the BIOS, the target function identifiers are determined adaptively according to different models and different configuration requirement information, so that function optimizing configuration of the BIOS can be executed flexibly, in the updating process, the configuration information between the configurable setting item and the function identifiers is only needed to be modified simply, flexible optimizing configuration of BIOS functions of different models and different configuration requirements can be achieved, efficiency, expandability and flexibility of function optimizing configuration of the BIOS are improved effectively, repeated labor is avoided, and maintenance cost is reduced.
In some embodiments, before the obtaining, in the configuration database, the plurality of function identifiers corresponding to the target function item according to the value of the configurable setting item corresponding to the target function item, the method further includes:
under the condition that the target function item is determined to be a configurable function item, acquiring each difference function information and each common function information between the target function item and other function items; the other function items are function items which are the same as the function type of the target function item in other basic input and output systems which are different from the machine type of the basic input and output system to be configured;
marking each piece of difference function information and each piece of common function information respectively to obtain a difference function identifier corresponding to each piece of difference function information and a common function identifier corresponding to each piece of common function information;
configuring a plurality of fixed configuration setting items and the configurable setting items corresponding to the target function items according to the quantity of the common function information;
establishing a one-to-one mapping relation between the numerical value of each fixed configuration setting item and each common function identifier in the configuration database;
And establishing a one-to-many mapping relation between the numerical value of the configurable setting item, a plurality of common function identifiers and a plurality of difference function identifiers in the configuration database.
FIG. 3 is a second flow chart of a system function optimization configuration method according to an embodiment of the present disclosure; as shown in fig. 3, before executing step 102, a setting item corresponding to the target function item, a value of the setting item, and an association relationship between the value of the setting item and the function identifier need to be preconfigured:
step 301, judging whether the target function item configuration under the model to which the basic input/output system to be configured belongs has a difference; specifically, in the case where the target function item is determined to be a configurable function item, it is necessary to determine in advance whether or not there is function information, which is different from the function item of the other basic input output system of the other model, in the target function item of the basic input output system to be configured, and the function information that is common to the function items of the other basic input output system. It should be noted that different functional information is used to implement different functional effects; executing step 302 under the condition that the target function item configuration under the machine type of the basic input output system to be configured is determined to be different;
Step 302, add a configuration configurable settings; after the difference function information and the common function information are obtained, the difference function information and the common function information are marked to allocate unique identification numbers for the function information, so that corresponding difference function identifications and corresponding common function identifications are obtained, and each function information is managed and distinguished better; the marking may be realized based on a combination of numbers, letters or special characters.
And configuring each fixed configuration setting item corresponding to each common function information according to the number of the common function information; and configuring at least one configurable setting item.
For example, there are 3 fixed configuration setting items, such as target function item X of BIOS, A, B, C respectively, and when the target function item is an unconfigurable function item, the default setting value of the target function item X may be configured to be the value of the fixed configuration setting item a, or the default setting value of the target function item X may be configured to be the value of the fixed configuration setting item B, or the default setting value of the target function item X may be configured to be the value of the fixed configuration setting item C; and a configurable setting item Auto is additionally arranged to configure the configurable setting item Auto as a default setting value of the target function item X when the target function item is the configurable function item, so that personalized configuration of the target function item X is realized.
In some embodiments, after configuring the plurality of fixed configuration settings and the configurable settings corresponding to the target function item according to the number of common function information, the method further comprises:
determining a target data type among a plurality of data types;
configuring a value of each of the fixed configuration settings and a value of the configurable settings based on the target data type;
the plurality of data types at least include a plurality of 8-bit unsigned integer, 16-bit unsigned integer, 32-bit unsigned integer and boolean type, but are not limited to the above data types, for example, may be other data types including a character string type, etc., and may be specifically and adaptively selected and determined according to actual design requirements, which is not specifically limited in this embodiment.
It should be noted that, the values of different setting items are different, that is, the value of each setting item corresponds to a unique value, so as to distinguish each setting in the function implementation code, and the values are different according to the functions to be implemented, so that the system functions are adaptively and optimally configured. The values of the setting items may be in a pre-configuration item DEC (EFI Development Kit II Package Declaration File, extensible firmware interface development suite second-generation module declaration file).
Alternatively, in item DEC, PCD data of a type required for the corresponding function information may be defined for each setting item, and specifically may be any one of 8-bit unsigned integer, 16-bit unsigned integer, 32-bit unsigned integer, boolean type, and other data types such as a character string type, and the data is used as a value of the corresponding setting item. Illustratively, the values of the fixed configuration setting item A, the fixed configuration setting item B, the fixed configuration setting item C, the configurable setting item Auto may be configured to be 0,1,2,3, respectively; or configuring the numerical values of the fixed configuration setting item A, the fixed configuration setting item B, the fixed configuration setting item C and the configurable setting item Auto as n0, n1, n2 and n3 respectively; the configuration of each setting item described above is merely an example, and may be specifically set to different values of different data types adaptively according to actual demands, which is not specifically limited in this embodiment.
According to the method provided by the embodiment, the numerical values of the configuration items are defined by adopting the unified data types, so that the consistency, the simplification and the compatibility of the configuration items can be ensured, and the associated influence is reduced to the greatest extent.
Step 303, carrying out configuration of fixed configuration setting items and configurable setting items according to the difference function information and the common function information of the function items so as to realize construction of a configuration database; specifically, a one-to-one mapping relation between the numerical value of each fixed configuration setting item and each shared function identifier is established in a configuration database, so that corresponding shared function identifiers are conveniently obtained according to the numerical value of the configuration item, and unified configuration and management of the shared functions of the system are realized; and establishing a one-to-many mapping relation between the numerical value of the configurable setting item, the plurality of common function identifiers and the plurality of difference function identifiers so as to realize flexible configuration and personalized customization of system functions.
It should be noted that, the function identifiers corresponding to different setting items are used for limiting the functions that can be realized by the setting items, so that different requirements of the realizing function item X on each model are correspondingly met.
In the related art, in the BIOS function code, in the file c, for different models, different BIOS setting items are respectively and forcedly set to realize differentiated setting, so that the complexity of the codes is increased, the models are required to be respectively processed, the option function of the forcedly set is not set into other setting items any more, one BIOS option function is lost, and the original design effect of the function of two or more settings can be realized. In view of the above problems, this embodiment
According to the method provided by the embodiment, the configuration of the fixed configuration setting items and the configurable setting items is carried out according to the marks corresponding to the common function information and the difference function information, so that flexible configuration and personalized customization of the BIOS functions can be realized, and the adaptability and usability of the BIOS functions are improved. Meanwhile, the BIOS configuration information is convenient to maintain and update, so that the change of the system configuration is simpler and controllable.
In some embodiments, the method further comprises:
Acquiring a database update request; the database update request comprises an update request of the configuration database input through a user configuration terminal;
according to the database updating request, acquiring the numerical value of the setting item to be updated and the function identifier corresponding to the numerical value of the setting item to be updated; the setting items to be updated comprise fixed configuration setting items and/or configurable setting items;
searching a setting item value matched with the value of the setting item to be updated in the configuration database;
and under the condition that the matched numerical value of the setting item is not found, the numerical value of the setting item to be updated and the function identifier corresponding to the numerical value of the setting item to be updated are added into the configuration database in a mapping relation mode.
Optionally, user input for performing configuration update on the configuration database, which is input by a user at a front-end interface of a user configuration end, is obtained in real time, so that a database update request is obtained.
Then, analyzing and acquiring the numerical value of the setting item to be updated and the function identifier corresponding to the numerical value of the setting item to be updated from the database updating request; the settings to be updated are referred to as fixed configuration settings and/or configurable settings.
Under the condition that the object to be configured comprises a fixed configuration setting item, taking the numerical value of the fixed configuration setting item as a searching dimension, and searching the numerical value of the setting item matched with the numerical value of the setting item to be updated in a configuration database; if the matched value of the setting item is found, modifying the function identifier corresponding to the matched value of the setting item in the configuration database according to the function identifier corresponding to the value of the setting item to be updated; if the matched setting item values are not found, the setting item to be updated is selected in the configuration database, and then the corresponding values and the corresponding function identifiers are added into the configuration database in a mapping relation, so that the configuration database is updated.
Similarly, when the object to be configured comprises a configurable setting item, the numerical value of the configurable setting item is taken as a searching dimension, and the numerical value of the setting item matched with the numerical value of the setting item to be updated is searched in a configuration database; if the matched value of the setting item is found, modifying the function identifier corresponding to the matched value of the setting item in the configuration database according to the function identifier corresponding to the value of the setting item to be updated; if the matched setting item values are not found, the setting item to be updated is selected in the configuration database, and then the corresponding values and the corresponding function identifiers are added into the configuration database in a mapping relation, so that the configuration database is updated.
The method provided by the embodiment provides a flexible configuration mode according to the configuration request, can configure the configuration database from multiple dimensions, can update in real time along with the change of the requirement, so as to optimize the function configuration at any time, is simple and quick, has few dependent components and no additional development cost, only needs to change the configuration in the updating process, does not need to change instructions, and improves the stability and instantaneity of the function configuration.
In some embodiments, the performing functional configuration on the basic input/output system to be configured according to the target function identifier includes:
configuring the target function identifier as a function identifier of the target function item;
under the condition that the target function identifier belongs to any one of a plurality of different function identifiers according to the target function identifier, acquiring a first function configuration code corresponding to the target function identifier from an adaptive function module corresponding to the model according to the target function identifier;
and carrying out functional configuration on the basic input/output system to be configured according to the first functional configuration code.
It should be noted that, when designing the BIOS code function architecture, an adaptive function module may be established for each model, and the inter-model difference point function implemented by each model is implemented in an adaptive manner in the function module, that is, the adaptive function module is configured with an association mapping relationship between each difference function identifier and a function configuration code.
In addition, the function configuration code can be realized by UEFI standard language, the function configuration code file has specific file extension and corresponding grammar requirement, and the function configuration code can be specifically configured according to the actual situation of the computer system.
As shown in fig. 3, the functional configuration step specifically further includes:
step 304, according to the model and the configuration requirement information, acquiring the target function identifier as the function identifier of the function item in the configuration database to carry out assignment, namely, configuring the target function identifier as the function identifier of the target function item, thereby, when the target function item is realized, acquiring the function identifier of the target function item by using a function (such as a GetVariable () function) for acquiring a variable, and judging whether the target function identifier belongs to a difference function identifier or a common function identifier;
step 305, obtaining a function configuration code according to the function identifier of the function item; specifically, when the function identifier of the obtained target function item is a difference function identifier, an API (Application Programming Interface ) in a configuration database can be adopted to obtain a function, and according to the target function identifier, a first function configuration code corresponding to the target function identifier is mapped and obtained in an adaptive function module corresponding to the machine type;
Step 306, realizing the optimal configuration of the function items according to the function configuration codes; specifically, a first function configuration code is called, and the optimal configuration of the function corresponding to the target function identifier is carried out on the basic input/output system to be configured, so that flexible configuration, automatic configuration and unified management of BIOS functions are realized, and the adaptability and maintainability of the BIOS are improved, so that the requirements of different users and models are met. Meanwhile, the BIOS configuration process is simplified, and the accuracy and efficiency of configuration are improved.
In some embodiments, the performing functional configuration on the basic input/output system to be configured according to the target functional identifier further includes:
configuring the target function identifier as a function identifier of the target function item;
under the condition that the target function identifier belongs to any one of a plurality of common function identifiers according to the target function identifier, acquiring a second function configuration code corresponding to the target function identifier from a shared code library according to the target function identifier;
performing function configuration on the target function item according to the second function configuration code;
the shared code library is a code library shared by the basic input and output system to be configured and other basic input and output systems.
When designing the function architecture of the BIOS code, in order to reduce code maintenance and database maintenance, the common function parts of each model may be put into a common code library to share and implement, that is, the common code library is configured with the association mapping relationship between each common function identifier and function configuration code, so that the common functions of each model can be shared by each other only once configured without developing and implementing separately, thereby effectively reducing development and maintenance costs.
Optionally, under the condition that the target function identifier belongs to any one of a plurality of common function identifiers, a second function configuration code corresponding to the target function identifier can be mapped and acquired in a shared code library according to the target function identifier, so that the basic input/output system to be configured performs optimal configuration of functions corresponding to the target function identifier by executing the second function configuration code, thereby realizing flexible configuration of BIOS functions, and when the codes are maintained, the common functions are realized only by maintaining one set of codes without maintaining each item respectively, so that the maintenance cost is effectively reduced.
In some embodiments, the obtaining, in step 103, a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information includes:
Under the condition that the configuration requirement information is first requirement information, acquiring a plurality of common function identifiers from a plurality of function identifiers;
according to the machine type, acquiring the target function identifier from a plurality of common function identifiers;
the first requirement information comprises requirement information of sharing configuration of the basic input/output system to be configured and the other basic input/output systems.
Optionally, under the condition that the configuration requirement information is requirement information of shared configuration, the target function item of the basic input/output system to be configured is characterized to be shared and configured, that is, differential configuration is not needed, and at this time, a plurality of common function identifiers can be obtained from a plurality of function identifiers; therefore, the target function identifier is obtained from the plurality of common function identifiers according to the machine type, and the sharing configuration of the target function item is further realized.
According to the method provided by the embodiment, when the differential configuration is not needed, the function identifiers of the function items are configured to be the common function identifiers corresponding to the machine types, so that the function performance of the function items is guaranteed to be the same as the function performance before the Auto setting items are added under the condition that the differential configuration requirement is not needed, and the associated influence is reduced to the greatest extent.
In some embodiments, the obtaining, in step 103, a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information further includes:
acquiring a plurality of different function identifiers from a plurality of function identifiers under the condition that the configuration requirement information is second requirement information;
according to the machine type, acquiring the target function identifier from a plurality of different function identifiers;
the second requirement information comprises requirement information of differential configuration of the basic input/output system to be configured and the other basic input/output systems.
Optionally, under the condition that the configuration requirement information is the requirement information of differential configuration, characterizing that the target function item of the basic input/output system to be configured needs to be configured in a differential mode; at this time, a plurality of difference function identifiers may be obtained from the plurality of function identifiers; therefore, the target function identification is obtained from the plurality of different function identifications according to the machine type, so that the differential optimal configuration of the target function items is realized, the configuration precision and efficiency are improved, the personalized configuration is realized, and the maintenance and the update are simplified.
In some embodiments, the obtaining, in a configuration database, a plurality of function identifiers corresponding to the target function item according to the value of the configurable setting item corresponding to the target function item includes:
Acquiring a target function identifier set in the configuration database according to the numerical value of the configurable setting item and the one-to-many association relationship between the numerical value of the configurable setting item and the function identifier; the target function identifier set comprises a plurality of common function identifiers and a plurality of difference function identifiers;
and acquiring a plurality of function identifiers from the target function identifier set.
Optionally, the step of obtaining the plurality of function identifiers in step 102 specifically includes:
according to the numerical value of the configurable setting item and the one-to-many association relation between the numerical value of the configurable setting item and the function identifier, mapping to obtain a plurality of common function identifiers and a plurality of difference function identifiers, thereby obtaining a plurality of function identifiers, realizing accurate matching between the identifiers and configuration requirements, ensuring that the configured BIOS function can accurately meet the requirements of users or models, and updating and managing the configuration database at any time. When the function configuration is required to be newly added or modified, flexible management and maintenance of the function configuration can be realized by only updating the function identification configuration in the configuration database, the expandability and maintainability of the configuration are improved, and the effect and adaptability of the BIOS function configuration are further improved.
In some embodiments, before the obtaining, in the configuration database, the plurality of function identifiers corresponding to the target function item according to the value of the configurable setting item corresponding to the target function item, the method further includes:
judging whether the target function item is a configurable function item according to the configuration requirement information and/or the model;
and under the condition that the target function item is determined to be the configurable function item according to the judging result, configuring the numerical value of the configurable setting item as the default setting item value of the target function item.
Optionally, before step 102 is performed, determination of the configuration type of the target function item and configuration of the default setting item value are also required:
acquiring a pre-association relation between the configuration types of the target function items corresponding to the machine types, searching the configuration types of the target function items, analyzing and determining the configuration types of the target function items based on the configuration requirement information, and determining that the target function items are configurable function items under the condition that any one of the configuration types corresponding to the machine types and the configuration types corresponding to the configuration requirement information is the configurable function type; and determining the target function item as an unconfigurable function item under the condition that all configuration types in the configuration types corresponding to the machine type and the configuration type corresponding to the configuration requirement information are unconfigurable function types.
In the case that the target function item is determined to be the configurable function item, configuring the numerical value of the configurable setting item as the default setting item value of the target function item; for example, for the target function item X, in the case that the target function item X is determined to be a configurable function item, the default setting item value of the target function item X is set to the value n3 of the configurable function item Auto, so that when the BIOS is configured for functions, the value of the configurable function item is automatically started by default to perform flexible and personalized optimal configuration of the system functions, and flexibility and convenience of optimal configuration of the system functions are improved.
In some embodiments, the method further comprises:
under the condition that the target function item is determined to be an unconfigurable function item according to the judging result, determining a target data value in the numerical values of a plurality of fixed configuration setting items corresponding to the target function item according to the model;
and configuring the target data value as a default setting item value of the target function item.
And under the condition that the target function item is determined to be the non-configurable function item, determining the default setting item value of the target function item in the numerical values of a plurality of fixed configuration setting items corresponding to the target function item according to the model. For model 1, for example, the default setting item value of the target function item X may be set to the value n0 of the fixed configuration setting item a; for model 2, the default setting item value of the target function item X may be set to the numerical value n1 of the fixed configuration setting item B; for model 3, the default setting item value of the target function item X may be set to the numerical value n2 of the fixed configuration setting item C.
According to the method provided by the embodiment, under the condition that the target function item is the non-configurable function item, the default setting item value of the target function item is determined in the numerical values of the plurality of fixed configuration setting items corresponding to the target function item directly according to the model, and the numerical value of the corresponding fixed configuration function item is automatically started by default to perform convenient and optimal configuration of the system function.
In some embodiments, after said configuring said target data value to a default setting item value of said target function item, said method further comprises:
acquiring a common function identifier corresponding to the target data value from the configuration database according to the target data value and the one-to-one mapping relation between the target data value and the common function identifier;
and carrying out functional configuration on the basic input/output system to be configured according to the common functional identifier corresponding to the target data value.
Optionally, after the target data value is configured as the default setting item value of the target function item, when the target function item is configured, the common function identifier corresponding to the target data value can be obtained from the configuration database through the one-to-one mapping relation between the target data value and the common function identifier, so that the corresponding function configuration code is searched and called in the shared database based on the common function identifier, and the shared function configuration of the basic input/output system to be configured can be conveniently realized.
The following expands the detailed description of the functional use of the system function optimization configuration with specific examples. Fig. 4 is a third flowchart of the system function optimization configuration method provided in this embodiment, as shown in fig. 4, the function using steps of the system function optimization configuration further include:
step 401, judging whether the function items under the machine type are in differential configuration;
step 402, obtaining a default setting item value of a function item;
step 403, judging whether the default setting item value of the function item is the numerical value of the configurable function item; if the number of the configurable function item is the number, then step 404 is executed; if the function item is not the value of the configurable function item, that is, the value of the fixed configuration setting item, the function identifier corresponding to the value of the fixed configuration setting item is used as the function identifier of the function item, and step 406 is executed;
step 404, obtaining a configuration in a configuration database;
step 405, performing function identifier configuration of the function item according to configuration in a configuration database, wherein the numerical value of the configurable setting item corresponding to the specific target function item is obtained from the configuration database, and the target function identifier is obtained from the function identifiers as the function identifier of the function item according to the model and configuration requirement information;
And step 406, performing optimal configuration of the function item according to the function identifier of the function item.
The system function optimizing configuration device provided by the invention is described below, and the system function optimizing configuration device described below and the system function optimizing configuration method described above can be referred to correspondingly.
Fig. 5 is a schematic structural diagram of a system function optimization configuration device provided in this embodiment; as shown in fig. 5, the apparatus includes:
the first obtaining unit 501 is configured to obtain, according to a configuration request of a target function item of a basic input output system to be configured, model and configuration requirement information of a computer system to which the basic input output system to be configured belongs;
the second obtaining unit 502 is configured to obtain, in a configuration database, a plurality of function identifiers corresponding to the target function item according to a value of a configurable setting item corresponding to the target function item when the target function item is determined to be the configurable function item;
the third obtaining unit 503 is configured to obtain a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information;
the configuration unit 504 is configured to perform functional configuration on the basic input/output system to be configured according to the target function identifier.
According to the system function optimizing configuration device, under the condition that the target function item is the configurable function item, a plurality of function identifiers corresponding to the target function item can be obtained in the configuration database adaptively based on the value of the configurable setting item corresponding to the target function item and the model of the BIOS, and the target function identifiers are determined adaptively according to different models and different configuration requirement information, so that the function optimizing configuration of the BIOS can be executed flexibly, and in the updating process, the flexible optimizing configuration of the BIOS functions of different models and different configuration requirements can be realized only by simply modifying the configuration information between the configurable setting item and the function identifiers, thereby effectively improving the efficiency, expandability and flexibility of the function optimizing configuration of the BIOS, avoiding repeated labor and reducing maintenance cost.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: processor 601, communication interface (Communications Interface) 602, memory 603 and communication bus 604, wherein processor 601, communication interface 602, memory 603 complete the communication between each other through communication bus 604. The processor 601 may call logic instructions in the memory 603 to perform a system function optimization configuration method comprising: acquiring the model and configuration requirement information of a computer system to which a basic input/output system to be configured belongs according to a configuration request of a target function item of the basic input/output system to be configured; under the condition that the target function item is determined to be a configurable function item, acquiring a plurality of function identifiers corresponding to the target function item in a configuration database according to the numerical value of the configurable setting item corresponding to the target function item; acquiring a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information; and carrying out functional configuration on the basic input/output system to be configured according to the target functional identifier.
Further, the logic instructions in the memory 603 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the related art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute a system function optimization configuration method provided by the above methods, and the method includes: acquiring the model and configuration requirement information of a computer system to which a basic input/output system to be configured belongs according to a configuration request of a target function item of the basic input/output system to be configured; under the condition that the target function item is determined to be a configurable function item, acquiring a plurality of function identifiers corresponding to the target function item in a configuration database according to the numerical value of the configurable setting item corresponding to the target function item; acquiring a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information; and carrying out functional configuration on the basic input/output system to be configured according to the target functional identifier.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a system function optimization configuration method provided by the above methods, the method comprising: acquiring the model and configuration requirement information of a computer system to which a basic input/output system to be configured belongs according to a configuration request of a target function item of the basic input/output system to be configured; under the condition that the target function item is determined to be a configurable function item, acquiring a plurality of function identifiers corresponding to the target function item in a configuration database according to the numerical value of the configurable setting item corresponding to the target function item; acquiring a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information; and carrying out functional configuration on the basic input/output system to be configured according to the target functional identifier.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on such understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the related art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (14)

1. The system function optimizing configuration method is characterized by comprising the following steps:
acquiring the model and configuration requirement information of a computer system to which a basic input/output system to be configured belongs according to a configuration request of a target function item of the basic input/output system to be configured;
under the condition that the target function item is determined to be a configurable function item, acquiring a plurality of function identifiers corresponding to the target function item in a configuration database according to the numerical value of the configurable setting item corresponding to the target function item;
acquiring a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information;
performing functional configuration on the basic input/output system to be configured according to the target functional identifier;
before the values of the configurable setting items corresponding to the target function items are obtained from the configuration database, the method further comprises:
under the condition that the target function item is determined to be a configurable function item, acquiring each difference function information and each common function information between the target function item and other function items; the other function items are function items which are the same as the function type of the target function item in other basic input and output systems which are different from the machine type of the basic input and output system to be configured;
Marking each piece of difference function information and each piece of common function information respectively to obtain a difference function identifier corresponding to each piece of difference function information and a common function identifier corresponding to each piece of common function information;
configuring a plurality of fixed configuration setting items and the configurable setting items corresponding to the target function items according to the quantity of the common function information;
establishing a one-to-one mapping relation between the numerical value of each fixed configuration setting item and each common function identifier in the configuration database;
and establishing a one-to-many mapping relation between the numerical value of the configurable setting item, a plurality of common function identifiers and a plurality of difference function identifiers in the configuration database.
2. The system function optimization configuration method according to claim 1, wherein the performing function configuration on the basic input/output system to be configured according to the target function identifier includes:
configuring the target function identifier as a function identifier of the target function item;
under the condition that the target function identifier belongs to any one of a plurality of different function identifiers according to the target function identifier, acquiring a first function configuration code corresponding to the target function identifier from an adaptive function module corresponding to the model according to the target function identifier;
And carrying out functional configuration on the basic input/output system to be configured according to the first functional configuration code.
3. The system function optimization configuration method according to claim 1, wherein the performing function configuration on the basic input/output system to be configured according to the target function identifier includes:
configuring the target function identifier as a function identifier of the target function item;
under the condition that the target function identifier belongs to any one of a plurality of common function identifiers according to the target function identifier, acquiring a second function configuration code corresponding to the target function identifier from a shared code library according to the target function identifier;
performing function configuration on the target function item according to the second function configuration code;
the shared code library is a code library shared by the basic input and output system to be configured and other basic input and output systems.
4. The system function optimizing configuration method according to claim 1, wherein the obtaining a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information includes:
Under the condition that the configuration requirement information is first requirement information, acquiring a plurality of common function identifiers from a plurality of function identifiers;
according to the machine type, acquiring the target function identifier from a plurality of common function identifiers;
the first requirement information comprises requirement information of sharing configuration of the basic input/output system to be configured and the other basic input/output systems.
5. The system function optimizing configuration method according to claim 1, wherein the obtaining a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information includes:
acquiring a plurality of different function identifiers from a plurality of function identifiers under the condition that the configuration requirement information is second requirement information;
according to the machine type, acquiring the target function identifier from a plurality of different function identifiers;
the second requirement information comprises requirement information of differential configuration of the basic input/output system to be configured and the other basic input/output systems.
6. The system function optimization configuration method according to claim 1, wherein the obtaining, in a configuration database, a plurality of function identifiers corresponding to the target function item according to the value of the configurable setting item corresponding to the target function item includes:
Acquiring a target function identifier set in the configuration database according to the numerical value of the configurable setting item and the one-to-many association relationship between the numerical value of the configurable setting item and the function identifier; the target function identifier set comprises a plurality of common function identifiers and a plurality of difference function identifiers;
and acquiring a plurality of function identifiers from the target function identifier set.
7. The system function optimizing configuration method according to claim 1, wherein after the configuring of the plurality of fixed configuration setting items and the configurable setting items corresponding to the target function item according to the number of the common function information, the method further comprises:
determining a target data type among a plurality of data types;
configuring a value of each of the fixed configuration settings and a value of the configurable settings based on the target data type;
wherein the plurality of data types includes at least a plurality of 8-bit unsigned integer, 16-bit unsigned integer, 32-bit unsigned integer, and boolean type.
8. The system function optimizing configuration method according to any one of claims 1 to 7, wherein before the obtaining, in a configuration database, a plurality of function identifiers corresponding to the target function item according to the value of the configurable setting item corresponding to the target function item, the method further comprises:
Judging whether the target function item is a configurable function item according to the configuration requirement information and/or the model;
and under the condition that the target function item is determined to be the configurable function item according to the judging result, configuring the numerical value of the configurable setting item as the default setting item value of the target function item.
9. The system function optimizing configuration method according to claim 8, characterized in that the method further comprises:
under the condition that the target function item is determined to be an unconfigurable function item according to the judging result, determining a target data value in the numerical values of a plurality of fixed configuration setting items corresponding to the target function item according to the model;
and configuring the target data value as a default setting item value of the target function item.
10. The system function optimizing configuration method according to claim 9, characterized in that after said configuring the target data value to a default setting item value of the target function item, the method further comprises:
acquiring a common function identifier corresponding to the target data value from the configuration database according to the target data value and the one-to-one mapping relation between the target data value and the common function identifier;
And carrying out functional configuration on the basic input/output system to be configured according to the common functional identifier corresponding to the target data value.
11. The system function optimization configuration method according to any one of claims 1 to 7, characterized in that the method further comprises:
acquiring a database update request; the database update request comprises an update request of the configuration database input through a user configuration terminal;
according to the database updating request, acquiring the numerical value of the setting item to be updated and the function identifier corresponding to the numerical value of the setting item to be updated; the setting items to be updated comprise fixed configuration setting items and/or configurable setting items;
searching a setting item value matched with the value of the setting item to be updated in the configuration database;
and under the condition that the matched numerical value of the setting item is not found, the numerical value of the setting item to be updated and the function identifier corresponding to the numerical value of the setting item to be updated are added into the configuration database in a mapping relation mode.
12. A system function optimizing configuration device, characterized by comprising:
the first acquisition unit is used for acquiring the model and configuration requirement information of a computer system to which the basic input/output system to be configured belongs according to a configuration request of a target function item of the basic input/output system to be configured;
The second acquisition unit is used for acquiring a plurality of function identifiers corresponding to the target function item in a configuration database according to the numerical value of the configurable setting item corresponding to the target function item under the condition that the target function item is determined to be the configurable function item;
a third obtaining unit, configured to obtain a target function identifier from a plurality of function identifiers according to the model and the configuration requirement information;
the configuration unit is used for carrying out functional configuration on the basic input/output system to be configured according to the target functional identifier;
before the values of the configurable setting items corresponding to the target function items are obtained in the configuration database according to the values of the configurable setting items corresponding to the target function items, the second obtaining unit is further configured to:
under the condition that the target function item is determined to be a configurable function item, acquiring each difference function information and each common function information between the target function item and other function items; the other function items are function items which are the same as the function type of the target function item in other basic input and output systems which are different from the machine type of the basic input and output system to be configured;
Marking each piece of difference function information and each piece of common function information respectively to obtain a difference function identifier corresponding to each piece of difference function information and a common function identifier corresponding to each piece of common function information;
configuring a plurality of fixed configuration setting items and the configurable setting items corresponding to the target function items according to the quantity of the common function information;
establishing a one-to-one mapping relation between the numerical value of each fixed configuration setting item and each common function identifier in the configuration database;
and establishing a one-to-many mapping relation between the numerical value of the configurable setting item, a plurality of common function identifiers and a plurality of difference function identifiers in the configuration database.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the system function optimization configuration method of any one of claims 1 to 11 when the program is executed by the processor.
14. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the system function optimization configuration method according to any one of claims 1 to 11.
CN202311827317.8A 2023-12-28 2023-12-28 System function optimal configuration method and device, electronic equipment and storage medium Active CN117472458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311827317.8A CN117472458B (en) 2023-12-28 2023-12-28 System function optimal configuration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311827317.8A CN117472458B (en) 2023-12-28 2023-12-28 System function optimal configuration method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117472458A CN117472458A (en) 2024-01-30
CN117472458B true CN117472458B (en) 2024-03-29

Family

ID=89627867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311827317.8A Active CN117472458B (en) 2023-12-28 2023-12-28 System function optimal configuration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117472458B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158968A (en) * 2019-12-31 2020-05-15 中科可控信息产业有限公司 BIOS configuration information self-checking method, device and storage medium
CN117149292A (en) * 2023-10-30 2023-12-01 苏州元脑智能科技有限公司 Electronic equipment starting method and device, server, computer equipment and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158968A (en) * 2019-12-31 2020-05-15 中科可控信息产业有限公司 BIOS configuration information self-checking method, device and storage medium
CN117149292A (en) * 2023-10-30 2023-12-01 苏州元脑智能科技有限公司 Electronic equipment starting method and device, server, computer equipment and medium

Also Published As

Publication number Publication date
CN117472458A (en) 2024-01-30

Similar Documents

Publication Publication Date Title
US8464242B2 (en) Virtualization of configuration settings
US10055218B2 (en) System and method for adding and storing groups of firmware default settings
US8341599B1 (en) Environments sharing remote mounted middleware
US10176072B2 (en) Device configuration with cached pre-assembled driver state
US9715440B2 (en) Test scope determination based on code change(s)
CN112256348B (en) Cloud service platform creation method and system, electronic equipment and storage medium
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CN107135462B (en) Bluetooth pairing method of UEFI firmware and computing system thereof
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN111782181A (en) Code generation method and device, electronic equipment and storage medium
US8086834B2 (en) System and method for populating a dedicated system service repository for an information handling system
EP3719645A1 (en) Extension application mechanisms through intra-process operation systems
CN112947907B (en) Method for creating code branches
US20120144390A1 (en) Customized computer image preparation and deployment including virtual machine mode
CN114691188A (en) Compatibility evaluation method, device, equipment and storage medium
CN117472458B (en) System function optimal configuration method and device, electronic equipment and storage medium
CN116049000A (en) Environment parameter configuration method, device, equipment, storage medium and product
US9003364B2 (en) Overriding system attributes and function returns in a software subsystem
CN115269021A (en) Operation processing method, device and medium for network card
CN112181403B (en) Development operation and maintenance integrated implementation method, device, equipment and readable storage medium
CN110327626B (en) Virtual server creation method and device
CN105808467A (en) Method for managing computer power supply by using custom ACPI (Advanced Configuration and Power Interface)
US11989551B2 (en) Modular firmware composition
CN114253615B (en) Method and device for setting bootstrap program, electronic equipment and storage medium
US20220269511A1 (en) Operating system partitioning of different users for single-user applications

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