Configuration parameter import and export method and device, storage medium and electronic device
By storing and importing configuration parameters in the graphics card memory of the target server, and storing them in the target cache at each startup, it solves the problem of high storage pressure on BIOS, and realizes more flexible configuration parameter management. Reduces BIOS storage pressure.
Patent Information
- Application Number
- CN202411299116.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-24
AI Technical Summary
The storage pressure of BIOS memory chips is high, which limits cross-platform technology expansion and use, and the existing technology has failed to effectively solve this problem.
The storage usage of the basic input and output system is reduced by storing and importing configuration parameters in the target server's graphics card memory, and storing them in the target cache at each startup and exporting them from the cache to the graphics card memory.
It reduces the BIOS storage pressure, reduces the storage usage, solves the problem of high BIOS storage pressure, and realizes more flexible configuration parameter management.
Smart Images

Figure CN119179528A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of firmware, and in particular, to a method, device, storage medium and electronic device for importing and exporting configuration parameters. Background Art
[0002] In the related art, BIOS configuration data is usually stored in a designated area in the BIOS memory chip, and a space needs to be set up in the BIOS memory chip for data storage, thereby increasing the storage pressure of the BIOS memory chip and not conducive to cross-platform technology expansion and use.
[0003] It can be seen from this that the related technology has the problem of high BIOS storage pressure.
[0004] Currently, no effective solution has been proposed for the above-mentioned problems existing in the related technologies. Summary of the invention
[0005] The embodiments of the present invention provide a method, device, storage medium and electronic device for importing and exporting configuration parameters, so as to at least solve the problem of being unable to configure machines in batches in the related art.
[0006] According to one embodiment of the present invention, there is provided a method for importing and exporting configuration parameters, which is applied to a target server, wherein the target server includes a baseboard management controller and a basic input-output system, and the baseboard management controller includes a graphics card memory, comprising: when it is determined that updated configuration parameters are stored in the graphics card memory, and it is determined based on a response message that the updated configuration parameters are imported to the target server, the updated configuration parameters are imported from the graphics card memory to the basic input-output system, wherein the response message is a response message of a query instruction sent to the baseboard management controller, and the query instruction is used to query whether to import the updated configuration parameters to the target server; each time the target server is started, the target configuration parameters of the target server are stored in a target cache included in the target server, and the target configuration parameters are exported from the target cache to the graphics card memory.
[0007] According to another embodiment of the present invention, there is provided a configuration parameter import and export device, which is applied to a target server, wherein the target server includes a baseboard management controller and a basic input and output system, and the baseboard management controller includes a graphics card memory, comprising: an import module, which is used to import the updated configuration parameters from the graphics card memory to the basic input and output system when it is determined that the updated configuration parameters are stored in the graphics card memory and the updated configuration parameters are imported into the target server based on a response message, wherein the response message is a response message of a query instruction sent to the baseboard management controller, and the query instruction is used to query whether to import the updated configuration parameters into the target server; an export module, which is used to store the target configuration parameters of the target server in a target cache included in the target server each time the target server is started, and export the target configuration parameters from the target cache to the graphics card memory.
[0008] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0009] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0010] According to yet another embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the method described in each embodiment of the present application are implemented.
[0011] Through the present invention, when the baseboard management controller receives a query instruction, in the case of confirming to import the updated configuration parameters to the target server, the updated configuration parameters stored in the graphics card memory are determined and imported into the basic input and output system; when the target server is started each time, the target configuration parameters are stored in the target cache in the target server, and then the target configuration parameters are exported from the target cache to the graphics card memory. Since the updated configuration parameters are stored in the graphics card memory during the import and export process, the storage usage of the basic input and output system is reduced. Therefore, the problem of high BIOS storage pressure can be solved, and the effect of reducing BIOS storage pressure can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a hardware structure block diagram of a mobile terminal according to a method for importing and exporting configuration parameters according to an embodiment of the present invention;
[0013] Figure 2 is a flow chart of a method for importing and exporting configuration parameters according to an embodiment of the present invention;
[0014] Figure 3 is a diagram of a shared memory framework of a BMC chip and a host according to an embodiment of the present invention;
[0015] Figure 4 is a register address and an explanation according to an embodiment of the present invention Figure 1 ;
[0016] Figure 5 is a register address and an explanation according to an embodiment of the present invention Figure 2 ;
[0017] Figure 6 is a flow chart of exporting target configuration parameters according to an embodiment of the present invention;
[0018] Figure 7 is a flow chart of an import process according to an embodiment of the present invention;
[0019] Figure 8 is a main flow chart of configuration parameters according to an embodiment of the present invention;
[0020] Fig. 9 is a structural block diagram of a configuration parameter import and export device according to an embodiment of the present invention; DETAILED DESCRIPTION
[0021] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0023] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for importing and exporting configuration parameters according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for importing and exporting configuration parameters in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0025] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] In this embodiment, a method for importing and exporting configuration parameters is provided. Figure 2 is a flow chart of a method for importing and exporting configuration parameters according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0027] Step S202, when it is determined that the graphics card memory stores the updated configuration parameters, and it is determined based on the response message that the updated configuration parameters are to be imported into the target server, the updated configuration parameters are imported from the graphics card memory into the basic input and output system, wherein the response message is a response message of a query instruction sent to the baseboard management controller, and the query instruction is used to query whether to import the updated configuration parameters into the target server;
[0028] Step S204: Each time the target server is started, the target configuration parameters of the target server are stored in a target cache included in the target server, and the target configuration parameters are exported from the target cache to the graphics card memory.
[0029] In the above embodiment, the target server can be a local host or a remote server. The baseboard management controller can be a BMC (Board Management Controller) controller, which collects and communicates with other software and hardware components inside the host through various interfaces such as IPMB (Intelligent Platform Management Bus), LPC (Parallel Bus Protocol), SMBus (System Management Bus), and provides query and control functions to the local host or remote server through interfaces such as network, serial / Moderm (modulator), PCI (Peripheral Component Interconnect Standard), etc., wherein the IPMB protocol defines an information transmission mechanism based on serial communication, usually implemented using the I2C bus; LPC is a protocol for communication between the host and the BMC system; SMBus is a serial bus standard for managing hardware devices in a computer system, usually used to connect the motherboard with other hardware devices. The basic input and output system can be a BIOS (Basic Input Output System), which is used to save the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-startup program, and can directly read and write specific information of system settings from CMOS.
[0030] In the above embodiment, the basic input and output system can query the difference value to the baseboard management controller to query whether it is necessary to import the updated configuration parameters to the target server. After receiving the query instruction, the baseboard management controller can determine whether there are updated configuration parameters in the graphics card memory. If so, a response message can be sent to the basic input and output system. Among them, the response message can be to adjust the value of the predetermined number of bits in the register to 1, which means that the updated configuration parameters need to be imported to the target server. The value of the predetermined number of bits can also be adjusted to 0, which means that there is no need to import the updated configuration parameters to the target server. When the BMC has configuration parameters and configuration items that need to be imported, the configuration data structure is first saved in the BMC memory. During the BIOS restart process, the BIOS sends an IPMI command to the BMC to obtain whether there are new parameter configurations to be imported. If so, the BIOS continues to send IPMI commands to notify the BMC to import the data stored in the graphics card memory into the target server.
[0031] In the above embodiment, the target cache may be a temporary cache in the target server. When the target server is powered on, the BIOS stores the configuration parameters in a temporary buffer (equivalent to the above target cache), and then exports the target configuration parameters in the temporary cache to the graphics card memory.
[0032] Figure 3 The BMC chip and host shared memory framework diagram is shown in the figure. Figure 3As shown in the figure, the motherboard includes P2A bridge, P bus, integrated south bridge and central processing unit CPU; BMC module includes memory, VGA shared memory, BMC chip and AHB bus. In the process of configuring parameters, BMC chip needs to support P2A bridge, use P2A bridge as the connection channel for shared memory data transfer and transmission, enable P2A shared memory, that is, open VGA shared memory channel, at this time, SCU2C25bit (BMC) VGA memory allocation address is 0x9F000000 and SCU180 bit1 register is set to 1 to enable, register address and explanation are as follows Figure 4 , Figure 5 shown.
[0033] In the above embodiment, the configuration parameter information is stored by using the graphics card memory of the BMC chip as the shared memory of the BIOS and the BMC, instead of using the area space of the BIOS storage chip itself or using an additional media device, thereby reducing the storage pressure of the BIOS storage chip, expanding the use scope of the graphics card in the BMC chip, and also reducing the design difficulty and connection pressure of the motherboard device.
[0034] Through the present invention, when the baseboard management controller receives a query instruction, in the case of confirming to import the updated configuration parameters to the target server, the updated configuration parameters stored in the graphics card memory are determined and imported into the basic input and output system; when the target server is started each time, the target configuration parameters are stored in the target cache in the target server, and then the target configuration parameters are exported from the target cache to the graphics card memory. Since the updated configuration parameters are stored in the graphics card memory during the import and export process, the storage usage of the basic input and output system is reduced. Therefore, the problem of high BIOS storage pressure can be solved, and the effect of reducing BIOS storage pressure can be achieved.
[0035] Optionally, the execution subject of the above steps may be BIOS, a host, or a remote server, but is not limited thereto.
[0036] In an exemplary embodiment, exporting the target configuration parameters from the target cache to the graphics card memory includes: determining the device address of each sub-device included in the target server; determining a target address that is the same as the address of the graphics card memory from the device address; obtaining the target configuration parameters from the target cache, and exporting the target configuration parameters to the target address, so as to export the target configuration parameters to the graphics card memory.
[0037] In the above embodiment, each sub-device in the target server can be a PCI device, and the device address can be the device number of each sub-device or the device identification code itself. The process of exporting the target configuration parameters from the target cache to the graphics card memory can be referred to Figure 6 , Figure 6 Export the flow chart for the target configuration parameters, such as Figure 6 As shown, when the configuration parameters to be updated are stored in the temporary buffer, the PCIID or VIDDID code of each PCI device (equivalent to the device address of each sub-device mentioned above) is determined. If the PCIID is consistent with the graphics card memory ID of the BMC chip, the target configuration parameters are obtained and the data in the temporary buffer is exported to the graphics card memory. Among them, the temporary buffer is equivalent to the above target buffer, the PCIID is equivalent to the device number of the above PCI sub-device, the VIDDID code is equivalent to the identification code of the above device itself, and the VGAID represents the ID number of the VGA interface, which is equivalent to the graphics card memory address in the BMC chip.
[0038] In an exemplary embodiment, storing the target configuration parameters of the target server in a target cache included in the target server includes: acquiring configuration parameters of the target server; parsing the configuration parameters to obtain the target configuration parameters; and storing the target configuration parameters in the target cache.
[0039] In the above embodiment, the device for acquiring configuration parameters may be a BIOS chip, the device for parsing configuration parameters to obtain target configuration parameters may also be a BIOS chip, and the target cache may be a temporary cache in the BIOS chip. Figure 6 As shown, each time the target server is powered on or restarted, the BIOS chip obtains the parameters to be configured and parses the configuration parameters, and stores the parsed configuration parameters in a temporary cache (ie, the target cache).
[0040] In an exemplary embodiment, importing the updated configuration parameters from the graphics card memory to the basic input and output system includes: obtaining the updated configuration parameters stored in the graphics card memory; parsing the updated configuration parameters to determine target dependencies included in the updated configuration parameters, wherein the dependencies are used to indicate dependencies between sub-parameters included in the updated configuration parameters; verifying the dependencies to obtain a verification result; and when the verification result indicates that the dependencies are established, importing the updated configuration parameters from the graphics card memory.
[0041] In the above embodiment, if Figure 7 As shown, when the target server has configuration parameters and configuration items that need to be imported, the BIOS chip obtains the updated parameter configuration from the shared memory, and after receiving the data and verifying it, determines the dependency between the sub-parameters included in the updated configuration parameters. After parsing and verifying the dependency, the imported data will overwrite the original corresponding parameter values in the BIOS configuration parameter variables or maintain the original configuration parameters.
[0042] In an exemplary embodiment, verifying the dependency relationship and obtaining a verification result includes: determining the dependency parameters and the dependent parameters included in the dependency relationship; determining the dependency conditions of the dependency parameters; if the dependent parameters satisfy the dependency conditions, determining that the verification result is that the dependency relationship is established; if the dependent parameters do not satisfy the dependency conditions, determining that the verification result is that the dependency relationship is not established.
[0043] In the above embodiment, the dependency relationship may be a mapping relationship between the dependency item of the configuration data and the dependency parameter and the dependent parameter. Figure 7 As shown, when there is a dependency relationship between configuration parameters, it is determined whether the dependency relationship is established. If so, the configuration parameters are imported into the current BIOS configuration. When the dependency relationship is not established, the configuration parameters are not imported and the original configuration parameters are maintained unchanged. When there is no dependency relationship between configuration parameters, the configuration parameters are also imported into the current BIOS configuration. By analyzing the dependency items and dependency relationships of the parameters, the import is allowed only after the dependency relationship is established, which improves the rationality and integrity of the imported data.
[0044] In the above embodiment, when the configuration data includes A and B, when A=1 and B=2, A and B are the dependent parameters and the dependent parameters, and the dependency condition is A=1. The dependency relationship can be verified. If the configuration data B is 2 and A is 1, the verification result is that the dependency relationship is established. If the configuration data is 2 and A is 0, the verification result is that the verification relationship is not established.
[0045] In an exemplary embodiment, after importing the updated configuration parameters from the graphics card memory to the basic input and output system, the method further includes: when determining that the import is successful, sending an import success instruction to the baseboard management controller to instruct the baseboard management controller to clear the updated configuration parameters stored in the graphics card memory after receiving the import success instruction.
[0046] In the above embodiment, the import success instruction can be sent through the Intelligent Platform Management Interface (IPMI). When the import is determined to be successful, the BIOS sends an IPMI instruction to the BMC to notify the BMC to clear the configuration parameters in the graphics card shared memory.
[0047] In an exemplary embodiment, after exporting the target configuration parameters to the target address, the method further includes: the baseboard management controller receiving a download instruction, wherein the download instruction is used to instruct the baseboard management controller to export the target configuration parameters; the baseboard management controller downloads the target configuration instruction to a designated folder in a target format.
[0048] In the above embodiment, the target format may be a jason text format, etc., but is not limited thereto. After the configuration data passes the data verification of the BMC, the BMC saves a copy of the acquired data locally, and when the configuration data needs to be exported, the saved configuration items and configuration parameters are downloaded to a designated folder, and the user can directly open the jason file in the download folder, that is, the user can modify the exported parameters within a reasonable range.
[0049] The following describes the method of importing and exporting configuration parameters in conjunction with a specific implementation plan:
[0050] Figure 8 is a main flow chart of configuration parameters according to a specific embodiment of the present invention, such as Figure 8 As shown, the process includes:
[0051] Step S802, start;
[0052] Step S804, the master controller restarts;
[0053] Step S806, IPMI channel initialization is completed;
[0054] Step S808, sending an IPMI command to the BMC to check whether there is any configuration to be imported;
[0055] Step S810, determine whether there is configuration import, if yes, execute step S812, if no, execute step S822;
[0056] Step S812, read the BMC return parameter;
[0057] Step S814, determining whether the parameter verification is successful, if yes, executing step S818, if no, executing step S816;
[0058] Step S816, informing the BMC to rewrite the data;
[0059] Step S818, importing configuration parameters from the shared memory;
[0060] Step S820, restart;
[0061] Step S822, the BIOS process continues;
[0062] Step S824, exporting configuration parameters to shared memory;
[0063] Step S826, sending an IPMI command to notify BMC to receive it;
[0064] Step S828, entering the operating system;
[0065] Step S830, end.
[0066] In the aforementioned embodiment, the device is powered on, the BMC main control is restarted and the IPMI channel is initialized; the BIOS system sends an IPMI instruction to the BMC chip to check whether there is currently a configuration that needs to be imported; if there is a configuration to be imported, the return parameters of the BMC are read and the parameters are verified. After the verification is successful, the configuration parameters are imported from the shared memory of the graphics card, and then the main control is restarted; if the parameter verification fails, the BMC is notified to rewrite the data and then perform parameter reading verification; if there is no configuration import, the BIOS process continues; the BIOS exports the configuration parameters to the shared memory of the graphics card for caching, and the BIOS sends an IPMI instruction to notify the BMC to receive data, enter the system, or enter the BIOS configuration page, and the process ends. In addition, during the import and export process, there is no restriction on the current BIOS startup. No matter how many times the BIOS is started after the refresh, as long as the BIOS is started, the import and export operations can be performed, ensuring the real-time nature of the import and export.
[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0068] In the present embodiment, a configuration parameter import and export device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0069] Fig. 9 is a structural block diagram of a configuration parameter import and export device according to an embodiment of the present invention, such as Fig. 9 As shown, the device comprises:
[0070] The import module 92 is used to import the updated configuration parameters from the graphics card memory to the basic input and output system when it is determined that the updated configuration parameters are stored in the graphics card memory and the updated configuration parameters are imported to the target server based on a response message, wherein the response message is a response message of a query instruction sent to the baseboard management controller, and the query instruction is used to query whether to import the updated configuration parameters to the target server;
[0071] The export module 94 is used to store the target configuration parameters of the target server in the target cache included in the target server each time the target server is started, and export the target configuration parameters from the target cache to the graphics card memory.
[0072] In an exemplary embodiment, the export module 94 can export the target configuration parameters from the target cache to the graphics card memory in the following manner: determine the device address of each sub-device included in the target server; determine a target address that is the same as the address of the graphics card memory from the device address; obtain the target configuration parameters from the target cache, and export the target configuration parameters to the target address, so as to export the target configuration parameters to the graphics card memory.
[0073] In an exemplary embodiment, the export module 94 can store the target configuration parameters of the target server in the target cache included in the target server in the following manner: obtain the configuration parameters of the target server; parse the configuration parameters to obtain the target configuration parameters; store the target configuration parameters in the target cache.
[0074] In an exemplary embodiment, the import module 92 can import the updated configuration parameters from the graphics card memory to the basic input and output system in the following manner: obtain the updated configuration parameters stored in the graphics card memory; parse the updated configuration parameters to determine the target dependencies included in the updated configuration parameters, wherein the dependencies are used to indicate the dependencies between sub-parameters included in the updated configuration parameters; verify the dependencies to obtain a verification result; and when the verification result indicates that the dependencies are established, import the updated configuration parameters from the graphics card memory.
[0075] In an exemplary embodiment, the import module 92 can verify the dependency relationship and obtain a verification result in the following manner: determine the dependent parameters and the dependent parameters included in the dependency relationship; determine the dependency conditions of the dependent parameters; if the dependent parameters meet the dependency conditions, determine that the verification result is that the dependency relationship is established; if the dependent parameters do not meet the dependency conditions, determine that the verification result is that the dependency relationship is not established.
[0076] In an exemplary embodiment, the device can also be used to, after importing the updated configuration parameters from the graphics card memory to the basic input and output system: when it is determined that the import is successful, send an import success instruction to the baseboard management controller to instruct the baseboard management controller to clear the updated configuration parameters stored in the graphics card memory after receiving the import success instruction.
[0077] In an exemplary embodiment, the device can also be used to, after exporting the target configuration parameters to the target address: the baseboard management controller receives a download instruction, wherein the download instruction is used to instruct the baseboard management controller to export the target configuration parameters; the baseboard management controller downloads the target configuration instruction to a designated folder in a target format.
[0078] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0079] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0080] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0081] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0082] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0083] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method in each embodiment of the present application when the computer program is executed by a processor.
[0084] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0085] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for importing and exporting configuration parameters, characterized in that: Applied to a target server, wherein the target server includes a baseboard management controller and a basic input and output system, and the baseboard management controller includes a graphics card memory, including: In the case where it is determined that the updated configuration parameters are stored in the graphics card memory and it is determined based on the response message that the updated configuration parameters are to be imported into the target server, the updated configuration parameters are imported from the graphics card memory into the basic input and output system, wherein the response message is a response message of a query instruction sent to the baseboard management controller, and the query instruction is used to query whether to import the updated configuration parameters into the target server; Each time the target server is started, the target configuration parameters of the target server are stored in a target cache included in the target server, and the target configuration parameters are exported from the target cache to the graphics card memory.
2. The method according to claim 1, characterized in that Exporting the target configuration parameters from the target cache to the graphics card memory includes: Determine a device address of each sub-device included in the target server; Determine a target address from the device address that is the same as the address of the graphics card memory; The target configuration parameters are obtained from the target cache, and the target configuration parameters are exported to the target address, so as to export the target configuration parameters to the graphics card memory.
3. The method according to claim 1, characterized in that Storing the target configuration parameters of the target server in a target cache included in the target server includes: Obtaining configuration parameters of the target server; Parsing the configuration parameters to obtain the target configuration parameters; The target configuration parameters are stored in the target cache.
4. The method according to claim 1, characterized in that: Importing the updated configuration parameters from the graphics card memory to the basic input and output system includes: Obtaining the update configuration parameters stored in the graphics card memory; Parsing the update configuration parameters to determine target dependencies included in the update configuration parameters, wherein the dependencies are used to indicate dependencies between sub-parameters included in the update configuration parameters; Verifying the dependency relationship and obtaining a verification result; When the verification result indicates that the dependency relationship is established, the update configuration parameters are imported from the graphics card memory.
5. The method according to claim 4, characterized in that Verify the dependency relationship, and obtain verification results including: Determining the dependent parameters and the dependent parameters included in the dependency relationship; Determining a dependency condition of the dependency parameter; In the case where the dependent parameter satisfies the dependency condition, determining that the verification result is that the dependency relationship is established; In the case that the dependent parameter does not satisfy the dependency condition, it is determined that the verification result is that the dependency relationship does not hold.
6. The method according to claim 3, characterized in that After importing the updated configuration parameters from the graphics card memory to the basic input and output system, the method further includes: When it is determined that the import is successful, an import success instruction is sent to the baseboard management controller to instruct the baseboard management controller to clear the updated configuration parameters stored in the graphics card memory after receiving the import success instruction.
7. The method according to claim 1, characterized in that After exporting the target configuration parameters to the target address, the method further includes: The baseboard management controller receives a download instruction, wherein the download instruction is used to instruct the baseboard management controller to export the target configuration parameter; The baseboard management controller downloads the target configuration instruction to a designated folder according to a target format.
8. A configuration parameter import and export device, characterized in that: Applied to a target server, wherein the target server includes a baseboard management controller and a basic input and output system, and the baseboard management controller includes a graphics card memory, including: an import module, configured to import the updated configuration parameters from the graphics card memory to the basic input and output system when it is determined that the updated configuration parameters are stored in the graphics card memory and the updated configuration parameters are imported to the target server based on a response message, wherein the response message is a response message of a query instruction sent to the baseboard management controller, and the query instruction is used to query whether to import the updated configuration parameters to the target server; The export module is used to store the target configuration parameters of the target server in the target cache included in the target server each time the target server is started, and export the target configuration parameters from the target cache to the graphics card memory.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.
Citation Information
Cited By
Retimer card information acquisition method and device, electronic equipment and medium
CN119621489A
