Updating method and device of basic input and output system, equipment and storage medium
By detecting and configuring the operating system to support BIOS upgrades, the problem of insufficient compatibility and executability of old versions of OS systems in the existing technology is solved, and the BIOS upgrade without interruption is realized, and the compatibility and operability of the server is improved. sex.
Patent Information
- Application Number
- CN202411521596.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-14
AI Technical Summary
When upgrading the BIOS, the existing technology cannot guarantee compatibility and executable operation of the old version of the OS system, resulting in the risk of upgrading failure and interruption of existing network services.
By detecting the kernel information and BIOS version information of the operating system, use the compatibility script test tool to detect whether the OS supports the target driver update function. If it is not supported, configure environment variables through the compatibility configuration script to support this function, and use the BIOS version information to configure the environment variables and configure the BIOS version information. Make sure the driver updates the file for update.
It realizes upgrading the BIOS without interrupting the on-line service, improves server compatibility and operability, reduces the risk of system crashes and data loss, and improves user experience and production efficiency.
Smart Images

Figure CN119440579A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a basic input and output system updating method, device, equipment and storage medium. Background Art
[0002] From the user's perspective, there is an urgent need to refresh and upgrade the existing network BIOS V1.0 to BIOS V2.0. However, the existing network machines are all in normal use by users. If the refresh and upgrade to BIOS V2.0 are performed in batches, the workload is very large and the existing network services will be interrupted, which is very risky. Therefore, how to patch the BIOS V1.0 upgrade and update, and update the BIOS (Basic Input Output System) function or solve the problem without restarting the machine, interrupting user services, and minimizing the impact as much as possible, is an urgent problem to be solved.
[0003] The prior art is to update and upgrade some BIOS functions under the OS (Operating System) system through the SDU (SMM Driver Update) function. The problem here is that the OS system launched support for the SDU function relatively late, and many old OS systems do not support it. In this way, the operation of updating the BIOS by upgrading the SDU of the existing server often fails to upgrade the SDU under the OS system. Therefore, how to improve the compatibility with the old version of the OS system and improve the executable operability during the upgrade and update process is a problem that needs to be solved urgently. Summary of the invention
[0004] Based on this, it is necessary to provide a basic input and output system update method, device, equipment and storage medium that can improve compatibility with old versions of OS systems and improve executable operability in response to the above technical problems.
[0005] In a first aspect, a method for updating a basic input / output system is provided, the method comprising:
[0006] In response to detecting a basic input / output system update request, acquiring kernel information of the operating system and version information of the basic input / output system;
[0007] In response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports a target driver update function;
[0008] In response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function;
[0009] In response to detecting that the operating system already supports the target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
[0010] Optionally, the method further includes:
[0011] In response to detecting that the kernel information of the operating system meets a preset standard or the operating system supports a target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
[0012] Optionally, after obtaining the kernel information of the operating system, the method further includes:
[0013] Obtaining an operating system list, wherein the operating system list includes kernel information corresponding to multiple operating systems;
[0014] In response to detecting that the acquired operating system kernel information successfully matches the kernel information in the operating system list, defining that the acquired operating system kernel information meets a preset standard;
[0015] In response to detecting that the acquired operating system kernel information fails to match the kernel information in the operating system list, it is defined that the acquired operating system kernel information does not meet a preset standard.
[0016] Optionally, in response to detecting that the operating system supports the target driver update function, the method further includes:
[0017] The acquired operating system kernel information is added to the operating system list, and the operating system list is updated.
[0018] Optionally, using a compatibility script testing tool to detect whether the operating system supports the target driver update function includes:
[0019] In response to detecting that the kernel information of the operating system does not meet the preset standard, selecting a target compatibility script testing tool according to the test task;
[0020] Get the operating system version information;
[0021] Determining a target operating system environment corresponding to the operating system based on the version information of the operating system;
[0022] Configuring the target operating system environment in the target compatibility script testing tool;
[0023] In response to detecting that the target operating system environment has been successfully configured, selecting a test script for simulating a target driver update process;
[0024] Execute the test script based on the target operating system environment to obtain a test report generated based on the test script execution result;
[0025] In response to detecting an error or warning in the test report, determining that the operating system does not support a target driver update function;
[0026] In response to detecting that no error or warning occurs in the test report, it is determined that the operating system supports the target driver update function.
[0027] Optionally, determining a driver update file based on the version information of the basic input / output system to update the basic input / output system includes:
[0028] Get the driver update file corresponding to the basic input and output system version information;
[0029] Importing the driver update file corresponding to the basic input / output system version information into the system file of the basic input / output system;
[0030] In response to detecting that the driver update file has been imported, the basic input and output system is updated based on the driver update file.
[0031] Optionally, in response to detecting that the basic input and output system has been updated, the method further includes:
[0032] Obtaining version information of modules in the basic input and output system that have been updated;
[0033] In response to detecting that the module version information is consistent with the target version information, defining that the basic input and output system is updated successfully;
[0034] In response to detecting that the module version information is inconsistent with the target version information, it is defined that the basic input and output system update fails.
[0035] In a second aspect, a basic input and output system updating device is provided, the device comprising:
[0036] An information acquisition module, used to acquire kernel information of the operating system and version information of the basic input and output system when a basic input and output system update request is detected;
[0037] A detection module, used to detect whether the operating system supports a target driver update function by using a compatibility script test tool when it is detected that the kernel information of the operating system does not meet a preset standard;
[0038] A configuration module, configured to configure the environment variables of the operating system based on a compatibility configuration script to support the target driver update function when it is detected that the operating system does not support the target driver update function;
[0039] The update module is used to determine the driver update file based on the version information of the basic input and output system when it is detected that the operating system supports the target driver update function, so as to update the basic input and output system.
[0040] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0041] In response to detecting a basic input / output system update request, acquiring kernel information of the operating system and version information of the basic input / output system;
[0042] In response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports a target driver update function;
[0043] In response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function;
[0044] In response to detecting that the operating system already supports the target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
[0045] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0046] In response to detecting a basic input / output system update request, acquiring kernel information of the operating system and version information of the basic input / output system;
[0047] In response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports a target driver update function;
[0048] In response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function;
[0049] In response to detecting that the operating system already supports the target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
[0050] In a fifth aspect, a computer program product is provided, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0051] In response to detecting a basic input / output system update request, acquiring kernel information of the operating system and version information of the basic input / output system;
[0052] In response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports a target driver update function;
[0053] In response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function;
[0054] In response to detecting that the operating system already supports the target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
[0055] The above-mentioned basic input and output system update method, device, equipment and storage medium, the method includes: in response to detecting an update request of the basic input and output system, obtaining the kernel information of the operating system and the version information of the basic input and output system; in response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports the target driver update function; in response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function; in response to detecting that the operating system already supports the target driver update function, determining a driver update file based on the version information of the basic input and output system to update the basic input and output system. The present application can avoid interrupting the existing network business to complete the BIOS upgrade, avoid the occurrence of system shutdown and restart, improve the server compatibility and operability, as well as the stability and reliability of the system operation, meet the user's existing network server BIOS update and upgrade and the user's performance requirements for the server, improve the user experience, reduce the workload of administrators or maintenance personnel to manually detect and record errors, simplify the maintenance process, and improve production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A diagram of an application environment of a basic input and output system updating method in one embodiment;
[0057] Figure 2 is a flowchart of a method for updating a basic input and output system in one embodiment;
[0058] Figure 3 A schematic diagram of an SDU function identification and configuration process of a basic input / output system update method in one embodiment;
[0059] Figure 4 A schematic diagram of a BIOS update and verification process of a basic input / output system update method in one embodiment;
[0060] Figure 5 is a structural block diagram of a basic input and output system updating device in one embodiment;
[0061] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0063] It should be understood that in the description of the present application, unless the context clearly requires otherwise, words such as "include", "comprises", and the like throughout the specification should be interpreted as including rather than being exclusive or exhaustive; that is, as including but not limited to.
[0064] It should also be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, "plurality" means two or more.
[0065] It should be noted that the terms "S1", "S2", etc. are only used for the purpose of describing the steps, and do not specifically refer to the order or sequence, nor are they used to limit the present application. They are only for the convenience of describing the method of the present application, and cannot be understood as indicating the order of the steps. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present application.
[0066] During the development of AI servers, users will frequently add new demand adjustments and changes to original demand, especially for early online versions. The existing network usage scenarios and complex business usage patterns often produce expected problems that cannot be tested in the testing phase. With the deepening of use and the resolution of problems, the frequency of BIOS (Basic Input Output System) version iteration is very high. Intel's handling of such complex structures and long-link devices, especially RAS (an important indicator for evaluating the performance of computer operating systems) fault diagnosis strategies, is also timely adjusted and adapted to new demands and scenarios as the machine configuration and user demand problems are presented. Some BIOS settings or register configurations will also be updated at any time. In this way, the iteration of the existing network version will be accompanied by the need to solve problems and import them. There is always a need to release a version to import into the existing network. For example, after BIOS V1.0 is introduced into the existing network, new untested problems are found and new requirements are proposed by users, which require the adaptation and release of a new BIOS V2.0 version. The problem is solved by importing the BIOS V1.0 currently being used in the existing network to achieve problem solving and function iteration. According to the background technology, the existing technology cannot guarantee the compatibility and executable operability of the old version of the OS system during the upgrade and update process.
[0067] To solve the above technical problems, the present application provides a basic input and output system update method, apparatus, equipment and storage medium, which utilizes a whitelist system to screen server OS systems that support the SDU function, configures OS systems that do not support the SDU function into a mode that supports the SDU function, autonomously identifies the current server BIOS version, calls the SDU upgrade solution for the current BIOS version, implements the update and upgrade of the current BIOS, and at the same time detects whether the SDU upgrade is successful and outputs the test results to the OS system, thereby completing the BIOS update and avoiding interrupting the existing network services to complete the BIOS upgrade, thereby improving the server compatibility and operability.
[0068] The basic input and output system updating method provided by the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the data processing platform set on the server 104 through the network, wherein the terminal 102 can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0069] In one embodiment, Figure 2 As shown, a basic input and output system update method is provided, and the method is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:
[0070] S1: In response to detecting a basic input output system update request, obtaining operating system kernel information and basic input output system version information.
[0071] It should be noted that the basic input and output system refers to the BIOS (Basic Input Output System), and the operating system refers to the OS (Operating System) system, and the two belong to the same server; the kernel information of the operating system refers to the kernel version related information of the operating system, such as the version number, etc., and the version information of the basic input and output system may include the version number, etc.; the update request of the basic input and output system is used to request to update and upgrade the BIOS, which is generally issued by the user or the system. It updates and upgrades the BIOS version by importing the SDU (SMM Driver Update, updating the driver in SMM mode) upgrade file. SMM is a special processor mode for managing system operation and maintenance. Specifically, in the development process of AI server (a server specially designed for artificial intelligence applications), a variety of PCIE (PCI Express, high-speed expansion device) devices are connected through the Switch Bridge (switch bridge) adapter board. For example, 8 NVME (Non-Volatile Memory) cards can be connected to the SW (switch) expansion board through the SW (switch) expansion board. express, a high-performance storage protocol) hard disk, 8 network cards, 8 GPU cards and other devices. The PCIE device resources loaded on such an AI server are very rich. At the same time, different AI server models are equipped with a variety of PCIE resources with a variety of changes and combinations. In the models of AI server projects, complex device configurations will cause a variety of problems. Some problems can only be discovered with the use of the existing network in conjunction with usage scenarios, and need to be continuously iterated to update the BIOS version to repair. At this time, a corresponding update request will be generated.
[0072] In the above implementation, by obtaining the kernel information of the operating system, it is possible to determine whether the current operating system supports the driver update function, and by obtaining the version information of the basic input / output system, the corresponding driver update file can be determined to update the basic input / output system, thereby improving the accuracy of the update result and the update efficiency.
[0073] S2: In response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports a target driver update function.
[0074] It should be noted that the compatibility script testing tool refers to a tool used to detect and verify the compatibility of software in different environments, devices and operating systems. The tool can help developers discover and fix problems that may arise when running in different environments, ensuring the stable operation of the software on different platforms. Commonly used compatibility script testing tools may include Appium (open source automated testing tool), Robot Framework (general automated testing framework) and Calabash (automated testing framework), etc.; the target driver update function may refer to the SDU function.
[0075] In some specific implementations, after obtaining the kernel information of the operating system, the method further includes:
[0076] Obtaining an operating system list, the operating system list including kernel information corresponding to a plurality of operating systems, wherein the operating system list refers to a pre-set whitelist stored in a whitelist screening system;
[0077] In response to detecting that the acquired operating system kernel information successfully matches the kernel information in the operating system list, defining that the acquired operating system kernel information meets a preset standard;
[0078] In response to detecting that the acquired operating system kernel information fails to match the kernel information in the operating system list, it is defined that the acquired operating system kernel information does not meet a preset standard.
[0079] Specifically, Figure 3 As shown, program A (supporting SDU function identification and configuration program) with a kernel whitelist system for an OS system supporting the SDU function is used to identify the kernel information of the current operating system to determine whether the OS system supports the SDU function. If the kernel information of the current operating system is in the whitelist, it means that the kernel information of the current operating system meets the preset standard, and the driver update file can be directly called to update the basic input and output system. If the kernel information of the current operating system is not in the whitelist, it means that the kernel information of the current operating system does not meet the preset standard, and the driver update file cannot be directly called. At this time, it is necessary to detect whether the current operating system supports the target driver update function.
[0080] In some specific implementations, using a compatibility script testing tool to detect whether the operating system supports a target driver update function includes:
[0081] In response to detecting that the kernel information of the operating system does not meet the preset standard, a target compatibility script testing tool is selected according to a test task, wherein the test task is to test whether the operating system supports a target driver update function, and the target compatibility script testing tool can be selected from commonly used compatibility script testing tools according to actual needs;
[0082] Obtaining the version information of the operating system, wherein the version information may be the version number of the operating system, such as Windows 7, Windows 10, etc.;
[0083] Determining a target operating system environment corresponding to the operating system based on the version information of the operating system;
[0084] The target operating system environment, i.e., the corresponding operating environment, is configured in the target compatibility script testing tool. It can be selected according to actual needs and will not be described in detail here;
[0085] In response to detecting that the target operating system environment has been successfully configured, selecting a test script for simulating a target driver update process, wherein the test script is a pre-written script;
[0086] Execute the test script based on the target operating system environment to obtain a test report generated based on the test script execution result;
[0087] In response to detecting an error or warning in the test report, determining that the operating system does not support a target driver update function;
[0088] In response to detecting that no error or warning occurs in the test report, it is determined that the operating system supports the target driver update function.
[0089] In some embodiments, the method further comprises:
[0090] In response to detecting that the kernel information of the operating system meets a preset standard or the operating system supports a target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
[0091] In some specific implementations, in response to detecting that the operating system supports the target driver update function, the method further includes:
[0092] The acquired operating system kernel information is added to the operating system list, and the operating system list is updated.
[0093] Specifically, for the OS system kernel that is not in the whitelist, enable the compatibility script testing tool in program A to first detect whether the current OS system supports the SDU function. If it supports the SDU function, directly call the SDU upgrade solution (i.e., the driver update file), and automatically add the current OS system kernel information to the whitelist, and update the whitelist system. If the SDU function is not supported, call the compatibility configuration script to configure the current OS system environment variables to support the SDU function.
[0094] In the above implementation, a whitelist plus script identification method is used to identify whether the OS system kernel effectively supports the SDU function, so as to determine whether to directly update the system or configure the environment variables of the operating system, thereby avoiding the situation where the update fails due to the system not supporting the SDU function, thereby improving the reliability of the system operation.
[0095] S3: In response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function.
[0096] It should be noted that the compatibility configuration script refers to a script used to help the developed program run on different computers. It ensures that the program can be compiled and run smoothly by matching the library files on the user's computer with the library files required by the program. The specific process will not be repeated here.
[0097] Specifically, if the current operating system does not support the SDU function, the compatibility configuration script is called to configure the current OS system environment variables into a mode that supports the SDU function.
[0098] In the above implementation, by calling the compatibility identification script + compatibility configuration script for the OS system that does not support the SDU function to configure the OS system to achieve a mode that supports the SDU function, and then importing the SDU file to be upgraded, the update operation of some BIOS functions and register configurations can be achieved without interrupting customer tasks, restarting the machine, and minimizing the impact, thereby improving the server compatibility and maintainability of the BIOS.
[0099] S4: In response to detecting that the operating system supports the target driver update function, a driver update file is determined based on the version information of the basic input and output system to update the basic input and output system.
[0100] It should be noted that the driver update file refers to a file generated based on the SDU upgrade solution.
[0101] In some specific implementations, determining a driver update file based on the version information of the basic input / output system to update the basic input / output system includes:
[0102] Get the driver update file corresponding to the basic input and output system version information;
[0103] Importing the driver update file corresponding to the basic input / output system version information into the system file of the basic input / output system;
[0104] In response to detecting that the driver update file has been imported, the basic input and output system is updated based on the driver update file.
[0105] In some specific implementations, in response to detecting that the basic input and output system has been updated, the method further includes:
[0106] Obtaining version information of a module in the basic input / output system that has performed an update operation, wherein the module version information refers to version information of an SDU module;
[0107] In response to detecting that the module version information is consistent with the target version information, defining that the basic input and output system is updated successfully;
[0108] In response to detecting that the module version information is inconsistent with the target version information, it is defined that the basic input and output system update fails.
[0109] Specifically, when the OS system supports the SDU function, the BIOS version information of the current server is identified and the corresponding SDU upgrade solution is called. Different BIOS versions contain inconsistent functional modules due to their release order. It is necessary to update the SDU upgrade solution for the current version to update the modules that need to be upgraded in the current BIOS version, so as to achieve the requirement of consistent BIOS functions. Figure 4As shown, program B (including BIOS version identification and SDU upgrade program) obtains the current BIOS version through a script, and after identifying the BIOS version, calls the preset SDU upgrade solution for the current BIOS version, generates a corresponding driver update file (i.e., SDU upgrade file), and imports the SDU upgrade file into the current BIOS file to update and upgrade the basic input and output system. After the SDU upgrade operation is completed, program C (SDU function test program) is called to test the update result, and based on the test return result, it is determined whether the update operation is successful. Specifically: read the version information of the current SDU module, and perform a version check on the SDU module version. If the current version information is consistent with the expected updated SDU version information (i.e., the target version information), it indicates that the update operation is successful. At this time, a success prompt is output in the OS system. If the current version information is inconsistent with the expected updated SDU version information, it indicates that the update operation has failed. At this time, a failure prompt is output in the OS system.
[0110] In the above implementation, the BIOS version of the SDU that needs to be upgraded is identified, and different BIOS versions update different modules of the SDU function. By identifying the BIOS version of the current server, a targeted update of the current BIOS version is implemented. Since the existing network BIOS versions are different, the function updates are not completely consistent, and corresponding updates are required for different versions to achieve the final BIOS function consistency requirement. After the update is completed, the update result of the server that has completed the import of the SDU upgrade operation is tested, and the test result is output to the screen to prompt the customer to take the next step, thereby ensuring the success rate of the SDU-based BIOS upgrade.
[0111] In some embodiments, the method further comprises:
[0112] Obtaining the first and second occurrences of the kernel information of the operating system and the basic input and output system version information corresponding to each driver update file within a preset time period, wherein the preset time period can be set according to actual needs, such as half a year, one year, etc.;
[0113] Based on the first number of occurrences and the second number of occurrences, determining weight information of each driver for different operating systems and different basic input and output systems, wherein the weight information is calculated as follows: Q=K1X+K2Y, wherein Q represents weight information, K1 and K2 both represent weight coefficients, X represents the first number of occurrences, and Y represents the second number of occurrences;
[0114] In response to detecting that the weight information is greater than a preset threshold, a one-to-one mapping relationship is generated between the target driver update file and the corresponding operating system kernel information and basic input and output system version information, and the mapping relationship is saved in a preset mapping table, wherein the preset threshold can be set according to actual needs;
[0115] If within the next time period, it is detected that the current operating system supports the SDU function mode and the operating system kernel information and the basic input and output system version information successfully match the mapping relationship in the preset mapping table, the driver update file in the mapping relationship is called to directly update the basic input and output system.
[0116] In the above implementation, the corresponding mapping relationship is generated by calculating the weight information and saved in the mapping table for direct call when the update task is subsequently executed. On the basis of ensuring the accuracy of the driver update file call, the operation time is reduced and the system operation efficiency is improved.
[0117] In the above-mentioned basic input and output system update method, the method includes: in response to detecting an update request for the basic input and output system, obtaining the kernel information of the operating system and the version information of the basic input and output system; in response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports the target driver update function; in response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function; in response to detecting that the operating system already supports the target driver update function, determining a driver update file based on the version information of the basic input and output system to update the basic input and output system. The present application can realize maintenance of the existing network server without interrupting the business, improve the server compatibility and operability, and reduce the risk of system crash and data loss through this method. Improve the stability and reliability of the system, meet the update iteration of the user's existing network server BIOS version and the user's requirements for server performance, improve the user experience, reduce the workload of administrators or maintenance personnel to manually detect and record errors, simplify the maintenance process, and improve production efficiency.
[0118] It should be understood that although Figure 2-Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0119] In one embodiment, Figure 5 As shown, a basic input and output system update device is provided, including: an information acquisition module, a detection module, a configuration module and an update module, wherein:
[0120] An information acquisition module, used to acquire kernel information of the operating system and version information of the basic input and output system when a basic input and output system update request is detected;
[0121] A detection module, used to detect whether the operating system supports a target driver update function by using a compatibility script test tool when it is detected that the kernel information of the operating system does not meet a preset standard;
[0122] A configuration module, configured to configure the environment variables of the operating system based on a compatibility configuration script to support the target driver update function when it is detected that the operating system does not support the target driver update function;
[0123] The update module is used to determine the driver update file based on the version information of the basic input and output system when it is detected that the operating system supports the target driver update function, so as to update the basic input and output system.
[0124] As a preferred implementation, in the embodiment of the present invention, the update module is specifically used for:
[0125] In response to detecting that the kernel information of the operating system meets a preset standard or the operating system supports a target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
[0126] As a preferred implementation, in the embodiment of the present invention, the detection module is specifically used for:
[0127] Obtaining an operating system list, wherein the operating system list includes kernel information corresponding to multiple operating systems;
[0128] In response to detecting that the acquired operating system kernel information successfully matches the kernel information in the operating system list, defining that the acquired operating system kernel information meets a preset standard;
[0129] In response to detecting that the acquired operating system kernel information fails to match the kernel information in the operating system list, it is defined that the acquired operating system kernel information does not meet a preset standard.
[0130] As a preferred implementation, in the embodiment of the present invention, the configuration module is specifically used for:
[0131] The acquired operating system kernel information is added to the operating system list, and the operating system list is updated.
[0132] As a preferred implementation, in the embodiment of the present invention, the detection module is specifically used for:
[0133] In response to detecting that the kernel information of the operating system does not meet the preset standard, selecting a target compatibility script testing tool according to the test task;
[0134] Get the operating system version information;
[0135] Determining a target operating system environment corresponding to the operating system based on the version information of the operating system;
[0136] Configuring the target operating system environment in the target compatibility script testing tool;
[0137] In response to detecting that the target operating system environment has been successfully configured, selecting a test script for simulating a target driver update process;
[0138] Execute the test script based on the target operating system environment to obtain a test report generated based on the test script execution result;
[0139] In response to detecting an error or warning in the test report, determining that the operating system does not support a target driver update function;
[0140] In response to detecting that no error or warning occurs in the test report, it is determined that the operating system supports the target driver update function.
[0141] As a preferred implementation, in the embodiment of the present invention, the update module is specifically used for:
[0142] Get the driver update file corresponding to the basic input and output system version information;
[0143] Importing the driver update file corresponding to the basic input / output system version information into the system file of the basic input / output system;
[0144] In response to detecting that the driver update file has been imported, the basic input and output system is updated based on the driver update file.
[0145] As a preferred implementation, in the embodiment of the present invention, the device further includes a verification module, and the verification module is specifically used to:
[0146] Obtaining version information of modules in the basic input and output system that have been updated;
[0147] In response to detecting that the module version information is consistent with the target version information, defining that the basic input and output system is updated successfully;
[0148] In response to detecting that the module version information is inconsistent with the target version information, it is defined that the basic input and output system update fails.
[0149] The specific definition of the basic input-output system update device can be found in the definition of the basic input-output system update method mentioned above, which will not be repeated here. Each module in the above basic input-output system update device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0150] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a basic input and output system update method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0151] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0152] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0153] S1: in response to detecting a basic input / output system update request, obtaining operating system kernel information and basic input / output system version information;
[0154] S2: In response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports a target driver update function;
[0155] S3: in response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function;
[0156] S4: In response to detecting that the operating system supports the target driver update function, a driver update file is determined based on the version information of the basic input and output system to update the basic input and output system.
[0157] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0158] In response to detecting that the kernel information of the operating system meets a preset standard or the operating system supports a target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
[0159] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0160] Obtaining an operating system list, wherein the operating system list includes kernel information corresponding to multiple operating systems;
[0161] In response to detecting that the acquired operating system kernel information successfully matches the kernel information in the operating system list, defining that the acquired operating system kernel information meets a preset standard;
[0162] In response to detecting that the acquired operating system kernel information fails to match the kernel information in the operating system list, it is defined that the acquired operating system kernel information does not meet a preset standard.
[0163] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0164] The acquired operating system kernel information is added to the operating system list, and the operating system list is updated.
[0165] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0166] In response to detecting that the kernel information of the operating system does not meet the preset standard, selecting a target compatibility script testing tool according to the test task;
[0167] Get the operating system version information;
[0168] Determining a target operating system environment corresponding to the operating system based on the version information of the operating system;
[0169] Configuring the target operating system environment in the target compatibility script testing tool;
[0170] In response to detecting that the target operating system environment has been successfully configured, selecting a test script for simulating a target driver update process;
[0171] Execute the test script based on the target operating system environment to obtain a test report generated based on the test script execution result;
[0172] In response to detecting an error or warning in the test report, determining that the operating system does not support a target driver update function;
[0173] In response to detecting that no error or warning occurs in the test report, it is determined that the operating system supports the target driver update function.
[0174] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0175] Get the driver update file corresponding to the basic input and output system version information;
[0176] Importing the driver update file corresponding to the basic input / output system version information into the system file of the basic input / output system;
[0177] In response to detecting that the driver update file has been imported, the basic input and output system is updated based on the driver update file.
[0178] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0179] Obtaining version information of modules in the basic input and output system that have been updated;
[0180] In response to detecting that the module version information is consistent with the target version information, defining that the basic input and output system is updated successfully;
[0181] In response to detecting that the module version information is inconsistent with the target version information, it is defined that the basic input and output system update fails.
[0182] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0183] S1: in response to detecting a basic input / output system update request, obtaining operating system kernel information and basic input / output system version information;
[0184] S2: In response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports a target driver update function;
[0185] S3: in response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function;
[0186] S4: In response to detecting that the operating system supports the target driver update function, a driver update file is determined based on the version information of the basic input and output system to update the basic input and output system.
[0187] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0188] In response to detecting that the kernel information of the operating system meets a preset standard or the operating system supports a target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0190] Obtaining an operating system list, wherein the operating system list includes kernel information corresponding to multiple operating systems;
[0191] In response to detecting that the acquired operating system kernel information successfully matches the kernel information in the operating system list, defining that the acquired operating system kernel information meets a preset standard;
[0192] In response to detecting that the acquired operating system kernel information fails to match the kernel information in the operating system list, it is defined that the acquired operating system kernel information does not meet a preset standard.
[0193] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0194] The acquired operating system kernel information is added to the operating system list, and the operating system list is updated.
[0195] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0196] In response to detecting that the kernel information of the operating system does not meet the preset standard, selecting a target compatibility script testing tool according to the test task;
[0197] Get the operating system version information;
[0198] Determining a target operating system environment corresponding to the operating system based on the version information of the operating system;
[0199] Configuring the target operating system environment in the target compatibility script testing tool;
[0200] In response to detecting that the target operating system environment has been successfully configured, selecting a test script for simulating a target driver update process;
[0201] Execute the test script based on the target operating system environment to obtain a test report generated based on the test script execution result;
[0202] In response to detecting an error or warning in the test report, determining that the operating system does not support a target driver update function;
[0203] In response to detecting that no error or warning occurs in the test report, it is determined that the operating system supports the target driver update function.
[0204] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0205] Get the driver update file corresponding to the basic input and output system version information;
[0206] Importing the driver update file corresponding to the basic input / output system version information into the system file of the basic input / output system;
[0207] In response to detecting that the driver update file has been imported, the basic input and output system is updated based on the driver update file.
[0208] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0209] Obtaining version information of modules in the basic input and output system that have been updated;
[0210] In response to detecting that the module version information is consistent with the target version information, defining that the basic input and output system is updated successfully;
[0211] In response to detecting that the module version information is inconsistent with the target version information, it is defined that the basic input and output system update fails.
[0212] In one embodiment, a computer program product is provided, the computer program product comprising a computer program, the computer program when executed by a processor implements the following steps:
[0213] S1: in response to detecting a basic input / output system update request, obtaining operating system kernel information and basic input / output system version information;
[0214] S2: In response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports a target driver update function;
[0215] S3: in response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function;
[0216] S4: In response to detecting that the operating system supports the target driver update function, a driver update file is determined based on the version information of the basic input and output system to update the basic input and output system.
[0217] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0218] In response to detecting that the kernel information of the operating system meets a preset standard or the operating system supports a target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
[0219] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0220] Obtaining an operating system list, wherein the operating system list includes kernel information corresponding to multiple operating systems;
[0221] In response to detecting that the acquired operating system kernel information successfully matches the kernel information in the operating system list, defining that the acquired operating system kernel information meets a preset standard;
[0222] In response to detecting that the acquired operating system kernel information fails to match the kernel information in the operating system list, it is defined that the acquired operating system kernel information does not meet a preset standard.
[0223] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0224] The acquired operating system kernel information is added to the operating system list, and the operating system list is updated.
[0225] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0226] In response to detecting that the kernel information of the operating system does not meet the preset standard, selecting a target compatibility script testing tool according to the test task;
[0227] Get the operating system version information;
[0228] Determining a target operating system environment corresponding to the operating system based on the version information of the operating system;
[0229] Configuring the target operating system environment in the target compatibility script testing tool;
[0230] In response to detecting that the target operating system environment has been successfully configured, selecting a test script for simulating a target driver update process;
[0231] Execute the test script based on the target operating system environment to obtain a test report generated based on the test script execution result;
[0232] In response to detecting an error or warning in the test report, determining that the operating system does not support a target driver update function;
[0233] In response to detecting that no error or warning occurs in the test report, it is determined that the operating system supports the target driver update function.
[0234] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0235] Get the driver update file corresponding to the basic input and output system version information;
[0236] Importing the driver update file corresponding to the basic input / output system version information into the system file of the basic input / output system;
[0237] In response to detecting that the driver update file has been imported, the basic input and output system is updated based on the driver update file.
[0238] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0239] Obtaining version information of modules in the basic input and output system that have been updated;
[0240] In response to detecting that the module version information is consistent with the target version information, defining that the basic input and output system is updated successfully;
[0241] In response to detecting that the module version information is inconsistent with the target version information, it is defined that the basic input and output system update fails.
[0242] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0243] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0244] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A basic input and output system updating method, characterized in that: The method comprises: In response to detecting a basic input / output system update request, acquiring kernel information of the operating system and version information of the basic input / output system; In response to detecting that the kernel information of the operating system does not meet the preset standard, using a compatibility script testing tool to detect whether the operating system supports a target driver update function; In response to detecting that the operating system does not support the target driver update function, configuring the environment variables of the operating system based on a compatibility configuration script to support the target driver update function; In response to detecting that the operating system already supports the target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
2. The basic input and output system updating method according to claim 1, characterized in that: The method further comprises: In response to detecting that the kernel information of the operating system meets a preset standard or the operating system supports a target driver update function, a driver update file is determined based on the version information of the basic input / output system to update the basic input / output system.
3. The basic input / output system updating method according to claim 1, characterized in that: After obtaining the kernel information of the operating system, the method further includes: Obtaining an operating system list, wherein the operating system list includes kernel information corresponding to multiple operating systems; In response to detecting that the acquired operating system kernel information successfully matches the kernel information in the operating system list, defining that the acquired operating system kernel information meets a preset standard; In response to detecting that the acquired operating system kernel information fails to match the kernel information in the operating system list, it is defined that the acquired operating system kernel information does not meet a preset standard.
4. The basic input / output system updating method according to claim 3, characterized in that: In response to detecting that the operating system supports the target driver update function, the method further includes: The acquired operating system kernel information is added to the operating system list, and the operating system list is updated.
5. The basic input and output system updating method according to claim 1, characterized in that: Using the compatibility script test tool, detecting whether the operating system supports the target driver update function includes: In response to detecting that the kernel information of the operating system does not meet the preset standard, selecting a target compatibility script testing tool according to the test task; Get the operating system version information; Determining a target operating system environment corresponding to the operating system based on the version information of the operating system; Configuring the target operating system environment in the target compatibility script testing tool; In response to detecting that the target operating system environment has been successfully configured, selecting a test script for simulating a target driver update process; Execute the test script based on the target operating system environment to obtain a test report generated based on the test script execution result; In response to detecting an error or warning in the test report, determining that the operating system does not support a target driver update function; In response to detecting that no error or warning occurs in the test report, it is determined that the operating system supports the target driver update function.
6. The basic input / output system updating method according to claim 1 or 2, characterized in that: Determining a driver update file based on the version information of the basic input / output system to update the basic input / output system includes: Get the driver update file corresponding to the basic input and output system version information; Importing the driver update file corresponding to the basic input / output system version information into the system file of the basic input / output system; In response to detecting that the driver update file has been imported, the basic input and output system is updated based on the driver update file.
7. The basic input and output system updating method according to claim 6, characterized in that: In response to detecting that the basic input and output system has been updated, the method further includes: Obtaining version information of modules in the basic input and output system that have been updated; In response to detecting that the module version information is consistent with the target version information, defining that the basic input and output system is updated successfully; In response to detecting that the module version information is inconsistent with the target version information, it is defined that the basic input and output system update fails.
8. A basic input and output system update device, characterized in that: The device comprises: An information acquisition module, used to acquire kernel information of the operating system and version information of the basic input and output system when a basic input and output system update request is detected; A detection module, used to detect whether the operating system supports a target driver update function by using a compatibility script test tool when it is detected that the kernel information of the operating system does not meet a preset standard; A configuration module, configured to configure the environment variables of the operating system based on a compatibility configuration script to support the target driver update function when it is detected that the operating system does not support the target driver update function; The update module is used to determine the driver update file based on the version information of the basic input and output system when it is detected that the operating system supports the target driver update function, so as to update the basic input and output system.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Operating system update method, electronic device, storage medium and program product
WO2026179817A1