CN113886218B - Method, device, equipment and readable medium for verifying BIOS refreshing - Google Patents
Method, device, equipment and readable medium for verifying BIOS refreshing Download PDFInfo
- Publication number
- CN113886218B CN113886218B CN202110999244.5A CN202110999244A CN113886218B CN 113886218 B CN113886218 B CN 113886218B CN 202110999244 A CN202110999244 A CN 202110999244A CN 113886218 B CN113886218 B CN 113886218B
- Authority
- CN
- China
- Prior art keywords
- bios
- test machine
- test
- state
- machine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title abstract 3
- 238000012795 verification Methods 0.000 abstract 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域Technical field
本领域涉及计算机领域,并且更具体地涉及一种验证BIOS刷新的方法、装置、设备及可读介质。The field relates to the field of computers, and more specifically to a method, device, equipment and readable medium for verifying BIOS refresh.
背景技术Background technique
BIOS发布者必须提供多种环境下的BIOS更新方法及必要工具,EFI Shell(新型EFI(Extensible Firmware Interface,可扩展固件接口)界面下,实现用户和系统交互的命令行界面)下刷新是对无操作系统和BMC不可用情形的解决方案,是BIOS发布者必须要支持的刷新方法。BIOS publishers must provide BIOS update methods and necessary tools in a variety of environments. Refreshing under the EFI Shell (the new EFI (Extensible Firmware Interface) interface, a command line interface that enables user and system interaction) is the best way to update the BIOS. The solution to the situation where the operating system and BMC are unavailable is a refresh method that BIOS publishers must support.
发布EFI Shell下刷新BIOS的方法和工具之前,要对其进行充分的验证。当前EFIShell下刷新BIOS的验证方式都需要手工准备U盘(格式化为FAT文件系统)、插接U盘、启动机器、进入EFI Shell、输入命令执行刷新等一系列人工操作。Before releasing methods and tools for refreshing BIOS under EFI Shell, they must be fully verified. The current verification method for refreshing BIOS under EFIShell requires a series of manual operations such as manually preparing a USB flash drive (formatted to the FAT file system), plugging in the USB flash drive, starting the machine, entering the EFI Shell, and entering commands to perform the refresh.
发明内容Contents of the invention
有鉴于此,本发明实施例的目的在于提出一种验证BIOS刷新的方法、装置、设备及可读介质,通过使用本发明的技术方案,能够自动刷新BIOS的完整验证工程,降低了人力成本,能够有助于实现BIOS发布测试的自动化,提高BIOS开发效率。In view of this, the purpose of the embodiments of the present invention is to propose a method, device, equipment and readable medium for verifying BIOS refresh. By using the technical solution of the present invention, the complete verification project of automatically refreshing the BIOS can be reduced, and labor costs can be reduced. It can help automate BIOS release testing and improve BIOS development efficiency.
基于上述目的,本发明的实施例的一个方面提供了一种验证BIOS刷新的方法,包括以下步骤:Based on the above purpose, one aspect of the embodiment of the present invention provides a method for verifying BIOS refresh, including the following steps:
响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具;In response to receiving the instruction to refresh the BIOS, upload the BIOS release package to the preset directory and download the test tool;
运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机;Run the test tool to refresh the BIOS release package to be refreshed into the test machine, change the status of the test machine to the first state, and then restart the test machine;
响应于测试机重启完成,将BIOS发布包上传到预设目录中并下载测试工具;In response to the test machine restarting, upload the BIOS release package to the default directory and download the test tool;
响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机;In response to obtaining that the status of the test machine is the first state, run the test tool to refresh the old version BIOS release package into the test machine and modify the status of the test machine to the second state before restarting the test machine;
响应于测试机重启完成且获取到测试机的状态为第二状态,判断测试机运行旧版本BIOS的状态是否正确;In response to the restart of the test machine being completed and the state of the test machine being obtained as the second state, it is determined whether the state of the test machine running the old version of the BIOS is correct;
响应于测试机运行旧版本BIOS的状态正确,退出BIOS的刷新。In response to the test machine running the old version of the BIOS in a correct state, exit the BIOS refresh.
根据本发明的一个实施例,响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具包括:According to an embodiment of the present invention, in response to receiving an instruction to refresh the BIOS, uploading the BIOS release package to the preset directory and downloading the test tool includes:
响应于接收到刷新BIOS的指令,将测试工具、新版本BIOS发布包和旧版本BIOS发布包通过网络上传至TFTP(Trivial File Transfer Protocol,简单文件传输协议)目录中;In response to receiving the instruction to refresh the BIOS, upload the test tool, new version BIOS release package, and old version BIOS release package to the TFTP (Trivial File Transfer Protocol, Simple File Transfer Protocol) directory through the network;
通过IPMI接口向测试机的BMC发出指令,使测试机执行PXE启动;Send instructions to the BMC of the test machine through the IPMI interface to cause the test machine to perform PXE startup;
响应于测试机执行PXE启动,向测试机提供TFTP目录的地址;In response to the test machine performing a PXE boot, provide the address of the TFTP directory to the test machine;
测试机基于TFTP目录的地址下载测试工具。The test machine downloads the test tool based on the address of the TFTP directory.
根据本发明的一个实施例,运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机包括:According to an embodiment of the present invention, running the test tool to refresh the BIOS release package to be refreshed into the test machine and modifying the state of the test machine to the first state and restarting the test machine includes:
在测试机上运行测试工具,在测试机的内存中创建Ramdisk(在内存中创建的磁盘镜像)和FAT文件系统;Run the test tool on the test machine and create Ramdisk (disk image created in memory) and FAT file system in the memory of the test machine;
测试工具通过TFTP目录的地址下载新版本BIOS发布包并保存到Ramdisk中;The test tool downloads the new version of the BIOS release package through the address of the TFTP directory and saves it to Ramdisk;
测试工具加载并运行EFI Shell,EFI Shell遍历所有FAT文件系统并在根目录寻找startup.nsh并执行;The test tool loads and runs the EFI Shell. The EFI Shell traverses all FAT file systems and looks for startup.nsh in the root directory and executes it;
startup.nsh将新版本BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机。startup.nsh refreshes the new version of the BIOS release package into the test machine and changes the status of the test machine to the first state before restarting the test machine.
根据本发明的一个实施例,响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机包括:According to an embodiment of the present invention, in response to obtaining that the status of the testing machine is the first status, the testing tool is run to refresh the old version BIOS release package into the testing machine and modify the status of the testing machine to the second status before restarting the testing machine. include:
响应于获取到测试机的状态为第一状态,判断测试机运行新版本BIOS的状态是否正确;In response to obtaining that the status of the test machine is the first status, determine whether the status of the test machine running the new version of BIOS is correct;
响应于测试机运行新版本BIOS的状态正确,在测试机上运行测试工具,在测试机的内存中创建Ramdisk和FAT文件系统;In response to the correct status of the test machine running the new version of BIOS, run the test tool on the test machine and create the Ramdisk and FAT file system in the memory of the test machine;
测试工具通过TFTP目录的地址下载旧版本BIOS发布包并保存到Ramdisk中;The test tool downloads the old version BIOS release package through the address of the TFTP directory and saves it to Ramdisk;
测试工具加载并运行EFI Shell,EFI Shell遍历所有FAT文件系统并在根目录寻找startup.nsh并执行;The test tool loads and runs the EFI Shell. The EFI Shell traverses all FAT file systems and looks for startup.nsh in the root directory and executes it;
startup.nsh将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机。startup.nsh refreshes the old version of the BIOS release package into the test machine and changes the status of the test machine to the second state before restarting the test machine.
根据本发明的一个实施例,第一状态为刷新成功状态,第二状态为回退成功状态。According to an embodiment of the present invention, the first state is the refresh success state, and the second state is the rollback success state.
本发明的实施例的另一个方面,还提供了一种验证BIOS刷新的装置,装置包括:Another aspect of the embodiment of the present invention also provides a device for verifying BIOS refresh. The device includes:
设置模块,设置模块配置为响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具;The setting module is configured to upload the BIOS release package to a preset directory and download the test tool in response to receiving an instruction to refresh the BIOS;
刷新模块,刷新模块配置为运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机;Refresh module, the refresh module is configured to run the test tool, refresh the BIOS release package to be refreshed into the test machine, modify the status of the test machine to the first state, and then restart the test machine;
上传模块,上传模块配置为响应于测试机重启完成,将BIOS发布包上传到预设目录中并下载测试工具;Upload module, the upload module is configured to upload the BIOS release package to the preset directory and download the test tool in response to the restart of the test machine;
验证模块,验证模块配置为响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机;Verification module, the verification module is configured to respond to obtaining the status of the test machine as the first state, run the test tool to refresh the old version BIOS release package into the test machine and modify the status of the test machine to the second state before restarting the test machine;
判断模块,判断模块配置为响应于测试机重启完成且获取到测试机的状态为第二状态,判断测试机运行旧版本BIOS的状态是否正确;The judgment module is configured to determine whether the status of the test machine running the old version of the BIOS is correct in response to the completion of the restart of the test machine and the acquisition of the status of the test machine as the second state;
退出模块,退出模块配置为响应于测试机运行旧版本BIOS的状态正确,退出BIOS的刷新。The exit module is configured to exit the refresh of the BIOS in response to the correct state of the test machine running the old version of the BIOS.
根据本发明的一个实施例,设置模块还配置为:According to an embodiment of the present invention, the setting module is further configured to:
响应于接收到刷新BIOS的指令,将测试工具、新版本BIOS发布包和旧版本BIOS发布包通过网络上传至TFTP目录中;In response to receiving the instruction to refresh the BIOS, upload the test tool, new version BIOS release package, and old version BIOS release package to the TFTP directory through the network;
通过IPMI接口向测试机的BMC发出指令,使测试机执行PXE启动;Send instructions to the BMC of the test machine through the IPMI interface to cause the test machine to perform PXE startup;
响应于测试机执行PXE启动,向测试机提供TFTP目录的地址;In response to the test machine performing a PXE boot, provide the address of the TFTP directory to the test machine;
测试机基于TFTP目录的地址下载测试工具。The test machine downloads the test tool based on the address of the TFTP directory.
根据本发明的一个实施例,刷新模块还配置为:According to an embodiment of the present invention, the refresh module is further configured to:
在测试机上运行测试工具,在测试机的内存中创建Ramdisk和FAT文件系统;Run the test tool on the test machine and create Ramdisk and FAT file systems in the memory of the test machine;
测试工具通过TFTP目录的地址下载新版本BIOS发布包并保存到Ramdisk中;The test tool downloads the new version of the BIOS release package through the address of the TFTP directory and saves it to Ramdisk;
测试工具加载并运行EFI Shell,EFI Shell遍历所有FAT文件系统并在根目录寻找startup.nsh并执行;The test tool loads and runs the EFI Shell. The EFI Shell traverses all FAT file systems and looks for startup.nsh in the root directory and executes it;
startup.nsh将新版本BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机。startup.nsh refreshes the new version of the BIOS release package into the test machine and changes the status of the test machine to the first state before restarting the test machine.
本发明的实施例的另一个方面,还提供了一种计算机设备,该计算机设备包括:Another aspect of the embodiments of the present invention also provides a computer device, the computer device includes:
至少一个处理器;以及at least one processor; and
存储器,存储器存储有可在处理器上运行的计算机指令,指令由处理器执行时实现上述任意一项方法的步骤。The memory stores computer instructions that can be run on the processor. When the instructions are executed by the processor, the steps of any of the above methods are implemented.
本发明的实施例的另一个方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述任意一项方法的步骤。Another aspect of the embodiments of the present invention also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of any of the above methods are implemented.
本发明具有以下有益技术效果:本发明实施例提供的验证BIOS刷新的方法,通过响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具;运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机;响应于测试机重启完成,将BIOS发布包上传到预设目录中并下载测试工具;响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机;响应于测试机重启完成且获取到测试机的状态为第二状态,判断测试机运行旧版本BIOS的状态是否正确;响应于测试机运行旧版本BIOS的状态正确,退出BIOS的刷新的技术方案,能够自动刷新BIOS的完整验证工程,降低了人力成本,能够有助于实现BIOS发布测试的自动化,提高BIOS开发效率。The present invention has the following beneficial technical effects: the method for verifying BIOS refresh provided by the embodiment of the present invention uploads the BIOS release package to the preset directory and downloads the test tool in response to receiving the instruction to refresh the BIOS; running the test tool will wait for The refreshed BIOS release package is refreshed into the test machine and the state of the test machine is changed to the first state before the test machine is restarted; in response to the completion of the restart of the test machine, the BIOS release package is uploaded to the preset directory and the test tool is downloaded; in response to After obtaining that the status of the test machine is the first state, run the test tool to refresh the old version BIOS release package into the test machine and modify the status of the test machine to the second state before restarting the test machine; in response to the completion of the restart of the test machine and obtaining The status of the test machine is the second state, and it is judged whether the status of the test machine running the old version of BIOS is correct; in response to the correct status of the test machine running the old version of BIOS, the technical solution of exiting the BIOS refresh can automatically refresh the complete verification project of the BIOS. It reduces labor costs, helps to automate BIOS release testing, and improves BIOS development efficiency.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can be obtained based on these drawings without exerting creative efforts.
图1为根据本发明一个实施例的验证BIOS刷新的方法的示意性流程图;Figure 1 is a schematic flow chart of a method for verifying BIOS refresh according to an embodiment of the present invention;
图2为根据本发明一个实施例的验证BIOS刷新的装置的示意图;Figure 2 is a schematic diagram of a device for verifying BIOS refresh according to an embodiment of the present invention;
图3为根据本发明一个实施例的计算机设备的示意图;Figure 3 is a schematic diagram of a computer device according to an embodiment of the present invention;
图4为根据本发明一个实施例的计算机可读存储介质的示意图。Figure 4 is a schematic diagram of a computer-readable storage medium according to one embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the purpose, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to specific embodiments and the accompanying drawings.
基于上述目的,本发明的实施例的第一个方面,提出了一种验证BIOS刷新的方法的一个实施例。图1示出的是该方法的示意性流程图。Based on the above purpose, a first aspect of the embodiment of the present invention provides an embodiment of a method for verifying BIOS refresh. Figure 1 shows a schematic flow chart of the method.
如图1中所示,该方法可以包括以下步骤:As shown in Figure 1, the method may include the following steps:
S1响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具。In response to receiving the instruction to refresh the BIOS, S1 uploads the BIOS release package to the preset directory and downloads the test tool.
将测试工具、新版本BIOS发布包和旧版本BIOS发布包通过网络上传至服务器的TFTP目录中。通过IPMI(Intelligent Platform Management Interface,智能平台管理接口)接口向测试机的BMC发出指令,使测试机启动时执行PXE启动,测试机执行PXE启动时,服务器的DHCP服务向测试机提供TFTP服务地址,并将测试工具路径作为启动程序,测试机通过TFTP协议从上述地址下载测试工具。Upload the test tool, new version BIOS release package, and old version BIOS release package to the TFTP directory of the server through the network. Send instructions to the BMC of the test machine through the IPMI (Intelligent Platform Management Interface) interface to cause the test machine to perform PXE startup when it starts. When the test machine performs PXE startup, the server's DHCP service provides the TFTP service address to the test machine. And use the test tool path as the startup program, and the test machine downloads the test tool from the above address through the TFTP protocol.
S2运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机。S2 runs the test tool to refresh the BIOS release package to be refreshed into the test machine, changes the state of the test machine to the first state, and then restarts the test machine.
测试工具在测试机上开始运行时会在内存中创建Ramdisk并挂载,并创建FAT文件系统,测试工具通过TFTP协议从上述地址下载新版本BIOS发布包并保存到Ramdisk中,测试工具加载并运行EFI Shell,EFI Shell运行后会自动遍历所有FAT文件系统,在其根目录寻找startup.nsh并执行,startup.nsh执行刷新BIOS指令,将新版本BIOS发布包刷新到测试机中,完成后,测试机的状态修改成刷新成功状态,然后重启测试机。When the test tool starts running on the test machine, it will create a Ramdisk in the memory and mount it, and create a FAT file system. The test tool downloads the new version of the BIOS release package from the above address through the TFTP protocol and saves it to the Ramdisk. The test tool loads and runs EFI. Shell, EFI Shell will automatically traverse all FAT file systems after running, find startup.nsh in its root directory and execute it. startup.nsh executes the refresh BIOS command and refreshes the new version of the BIOS release package to the test machine. After completion, the test machine Change the status to the refresh successful status, and then restart the test machine.
S3响应于测试机重启完成,将BIOS发布包上传到预设目录中并下载测试工具。In response to the test machine restarting, S3 uploads the BIOS release package to the preset directory and downloads the test tool.
此过程与S1步骤中相同,此处不再赘述。This process is the same as in step S1 and will not be repeated here.
S4响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机。In response to acquiring that the status of the testing machine is the first state, S4 runs the testing tool to refresh the old version BIOS release package into the testing machine, changes the status of the testing machine to the second status, and then restarts the testing machine.
测试工具执行预设的检查动作,判断当前运行的是否是新版本BIOS,如果是检查运行状态是否正确,如果运行状态正确,则运行测试工具,测试工具在测试机上开始运行时会在内存中创建Ramdisk并挂载,并创建FAT文件系统,测试工具通过TFTP协议从上述地址下载旧版本BIOS发布包并保存到Ramdisk中,测试工具加载并运行EFI Shell,EFI Shell运行后会自动遍历所有FAT文件系统,在其根目录寻找startup.nsh并执行,startup.nsh执行回退BIOS指令,将旧版本BIOS刷新到测试机中,完成后将测试机的状态更改成回退成功状态后重启测试机。The test tool performs preset check actions to determine whether the current version of the BIOS is running. If it is, check whether the running status is correct. If the running status is correct, run the test tool. The test tool will be created in the memory when it starts running on the test machine. Ramdisk and mount it, and create a FAT file system. The test tool downloads the old version BIOS release package from the above address through the TFTP protocol and saves it to Ramdisk. The test tool loads and runs the EFI Shell. After the EFI Shell is run, it will automatically traverse all FAT file systems. , search for startup.nsh in its root directory and execute it. startup.nsh executes the rollback BIOS command and refreshes the old version of BIOS into the test machine. After completion, change the status of the test machine to the rollback successful status and restart the test machine.
S5响应于测试机重启完成且获取到测试机的状态为第二状态,判断测试机运行旧版本BIOS的状态是否正确。In response to the restart of the test machine being completed and the status of the test machine being obtained as the second state, S5 determines whether the status of the test machine running the old version of the BIOS is correct.
测试工具执行预设的检查动作,判断当前运行的是否是旧版本BIOS,如果是则检查运行状态是否正确,如果运行状态正确,则刷新成功退出程序。The test tool performs preset checking actions to determine whether the BIOS currently running is an old version. If so, it checks whether the running status is correct. If the running status is correct, the program is successfully refreshed and exited.
S6响应于测试机运行旧版本BIOS的状态正确,退出BIOS的刷新。S6 responded that the test machine was running the old version of the BIOS correctly and exited the BIOS refresh.
上述每个过程如果出错或超时,都会停止并将测试机状态修改为错误状态并向管理员发出警告。If an error or timeout occurs in each of the above processes, it will stop and modify the test machine status to an error status and issue a warning to the administrator.
通过本发明的技术方案,能够自动刷新BIOS的完整验证工程,降低了人力成本,能够有助于实现BIOS发布测试的自动化,提高BIOS开发效率。Through the technical solution of the present invention, the complete verification project of the BIOS can be automatically refreshed, reducing labor costs, helping to realize the automation of BIOS release testing, and improving BIOS development efficiency.
在本发明的一个优选实施例中,响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具包括:In a preferred embodiment of the present invention, in response to receiving an instruction to refresh the BIOS, uploading the BIOS release package to the preset directory and downloading the test tool includes:
响应于接收到刷新BIOS的指令,将测试工具、新版本BIOS发布包和旧版本BIOS发布包通过网络上传至TFTP目录中;In response to receiving the instruction to refresh the BIOS, upload the test tool, new version BIOS release package, and old version BIOS release package to the TFTP directory through the network;
通过IPMI接口向测试机的BMC发出指令,使测试机执行PXE启动;Send instructions to the BMC of the test machine through the IPMI interface to cause the test machine to perform PXE startup;
响应于测试机执行PXE(preboot execute environment,预启动执行环境)启动,向测试机提供TFTP目录的地址;In response to the test machine executing PXE (preboot execute environment, preboot execution environment) startup, provide the address of the TFTP directory to the test machine;
测试机基于TFTP目录的地址下载测试工具。The test machine downloads the test tool based on the address of the TFTP directory.
在本发明的一个优选实施例中,运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机包括:In a preferred embodiment of the present invention, running the test tool to refresh the BIOS release package to be refreshed into the test machine and modifying the state of the test machine to the first state and restarting the test machine includes:
在测试机上运行测试工具,在测试机的内存中创建Ramdisk和FAT文件系统;Run the test tool on the test machine and create Ramdisk and FAT file systems in the memory of the test machine;
测试工具通过TFTP目录的地址下载新版本BIOS发布包并保存到Ramdisk中;The test tool downloads the new version of the BIOS release package through the address of the TFTP directory and saves it to Ramdisk;
测试工具加载并运行EFI Shell,EFI Shell遍历所有FAT文件系统并在根目录寻找startup.nsh并执行;The test tool loads and runs the EFI Shell. The EFI Shell traverses all FAT file systems and looks for startup.nsh in the root directory and executes it;
startup.nsh将新版本BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机。startup.nsh refreshes the new version of the BIOS release package into the test machine and changes the status of the test machine to the first state before restarting the test machine.
在本发明的一个优选实施例中,响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机包括:In a preferred embodiment of the present invention, in response to obtaining that the status of the testing machine is the first status, the testing tool is run to refresh the old version BIOS release package into the testing machine and modify the status of the testing machine to the second status before restarting Test machines include:
响应于获取到测试机的状态为第一状态,判断测试机运行新版本BIOS的状态是否正确;In response to obtaining that the status of the test machine is the first status, determine whether the status of the test machine running the new version of BIOS is correct;
响应于测试机运行新版本BIOS的状态正确,在测试机上运行测试工具,在测试机的内存中创建Ramdisk和FAT文件系统;In response to the correct status of the test machine running the new version of BIOS, run the test tool on the test machine and create the Ramdisk and FAT file system in the memory of the test machine;
测试工具通过TFTP目录的地址下载旧版本BIOS发布包并保存到Ramdisk中;The test tool downloads the old version BIOS release package through the address of the TFTP directory and saves it to Ramdisk;
测试工具加载并运行EFI Shell,EFI Shell遍历所有FAT文件系统并在根目录寻找startup.nsh并执行;The test tool loads and runs the EFI Shell. The EFI Shell traverses all FAT file systems and looks for startup.nsh in the root directory and executes it;
startup.nsh将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机。startup.nsh refreshes the old version of the BIOS release package into the test machine and changes the status of the test machine to the second state before restarting the test machine.
在本发明的一个优选实施例中,第一状态为刷新成功状态,第二状态为回退成功状态。In a preferred embodiment of the present invention, the first state is the refresh success state, and the second state is the rollback success state.
通过本发明的技术方案,能够自动刷新BIOS的完整验证工程,降低了人力成本,能够有助于实现BIOS发布测试的自动化,提高BIOS开发效率。Through the technical solution of the present invention, the complete verification project of the BIOS can be automatically refreshed, reducing labor costs, helping to realize the automation of BIOS release testing, and improving BIOS development efficiency.
需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,上述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中存储介质可为磁碟、光盘、只读存储器(Read-Only Memory,ROM)或随机存取存储器(Random AccessMemory,RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。It should be noted that those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through computer programs. The above programs can be stored in computer-readable storage media. When the program is executed, it may include the processes of the above method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc. The foregoing computer program embodiments can achieve the same or similar effects as any of the corresponding foregoing method embodiments.
此外,根据本发明实施例公开的方法还可以被实现为由CPU 执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被CPU 执行时,执行本发明实施例公开的方法中限定的上述功能。In addition, the method disclosed according to the embodiment of the present invention can also be implemented as a computer program executed by a CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above functions defined in the method disclosed in the embodiment of the present invention are performed.
基于上述目的,本发明的实施例的第二个方面,提出了一种验证BIOS刷新的装置,如图2所示,装置200包括:Based on the above purpose, a second aspect of the embodiment of the present invention proposes a device for verifying BIOS refresh. As shown in Figure 2, the device 200 includes:
设置模块201,设置模块201配置为响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具;Setting module 201, the setting module 201 is configured to respond to receiving an instruction to refresh the BIOS, upload the BIOS release package to the preset directory and download the test tool;
刷新模块202,刷新模块202配置为运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机;Refresh module 202, the refresh module 202 is configured to run the test tool to refresh the BIOS release package to be refreshed into the test machine and modify the state of the test machine to the first state and then restart the test machine;
上传模块203,上传模块203配置为响应于测试机重启完成,将BIOS发布包上传到预设目录中并下载测试工具;Upload module 203. The upload module 203 is configured to upload the BIOS release package to the default directory and download the test tool in response to the completion of the restart of the test machine;
验证模块204,验证模块204配置为响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机;Verification module 204, the verification module 204 is configured to respond to obtaining that the status of the test machine is the first state, run the test tool to refresh the old version BIOS release package into the test machine, and modify the status of the test machine to the second state before restarting the test. machine;
判断模块205,判断模块205配置为响应于测试机重启完成且获取到测试机的状态为第二状态,判断测试机运行旧版本BIOS的状态是否正确;Judgment module 205, the judgment module 205 is configured to determine whether the state of the test machine running the old version of BIOS is correct in response to the completion of the restart of the test machine and the acquisition of the status of the test machine as the second state;
退出模块206,退出模块206配置为响应于测试机运行旧版本BIOS的状态正确,退出BIOS的刷新。The exit module 206 is configured to exit the refresh of the BIOS in response to the correct status of the test machine running the old version of the BIOS.
在本发明的一个优选实施例中,设置模块201还配置为:In a preferred embodiment of the present invention, the setting module 201 is also configured to:
响应于接收到刷新BIOS的指令,将测试工具、新版本BIOS发布包和旧版本BIOS发布包通过网络上传至TFTP目录中;In response to receiving the instruction to refresh the BIOS, upload the test tool, new version BIOS release package, and old version BIOS release package to the TFTP directory through the network;
通过IPMI接口向测试机的BMC发出指令,使测试机执行PXE启动;Send instructions to the BMC of the test machine through the IPMI interface to cause the test machine to perform PXE startup;
响应于测试机执行PXE启动,向测试机提供TFTP目录的地址;In response to the test machine performing a PXE boot, provide the address of the TFTP directory to the test machine;
测试机基于TFTP目录的地址下载测试工具。The test machine downloads the test tool based on the address of the TFTP directory.
在本发明的一个优选实施例中,刷新模块还配置为:In a preferred embodiment of the present invention, the refresh module is also configured as:
在测试机上运行测试工具,在测试机的内存中创建Ramdisk和FAT文件系统;Run the test tool on the test machine and create Ramdisk and FAT file systems in the memory of the test machine;
测试工具通过TFTP目录的地址下载新版本BIOS发布包并保存到Ramdisk中;The test tool downloads the new version of the BIOS release package through the address of the TFTP directory and saves it to Ramdisk;
测试工具加载并运行EFI Shell,EFI Shell遍历所有FAT文件系统并在根目录寻找startup.nsh并执行;The test tool loads and runs the EFI Shell. The EFI Shell traverses all FAT file systems and looks for startup.nsh in the root directory and executes it;
startup.nsh将新版本BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机。startup.nsh refreshes the new version of the BIOS release package into the test machine and changes the status of the test machine to the first state before restarting the test machine.
基于上述目的,本发明实施例的第三个方面,提出了一种计算机设备。图3示出的是本发明提供的计算机设备的实施例的示意图。如图3所示,本发明实施例包括如下装置:至少一个处理器S21;以及存储器S22,存储器S22存储有可在处理器上运行的计算机指令S23,指令由处理器执行时实现以下方法:Based on the above objectives, a third aspect of the embodiments of the present invention provides a computer device. FIG. 3 shows a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in Figure 3, the embodiment of the present invention includes the following device: at least one processor S21; and a memory S22. The memory S22 stores computer instructions S23 that can be run on the processor. When the instructions are executed by the processor, the following methods are implemented:
响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具;In response to receiving the instruction to refresh the BIOS, upload the BIOS release package to the preset directory and download the test tool;
运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机;Run the test tool to refresh the BIOS release package to be refreshed into the test machine, change the status of the test machine to the first state, and then restart the test machine;
响应于测试机重启完成,将BIOS发布包上传到预设目录中并下载测试工具;In response to the test machine restarting, upload the BIOS release package to the default directory and download the test tool;
响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机;In response to obtaining that the status of the test machine is the first state, run the test tool to refresh the old version BIOS release package into the test machine and modify the status of the test machine to the second state before restarting the test machine;
响应于测试机重启完成且获取到测试机的状态为第二状态,判断测试机运行旧版本BIOS的状态是否正确;In response to the restart of the test machine being completed and the state of the test machine being obtained as the second state, it is determined whether the state of the test machine running the old version of the BIOS is correct;
响应于测试机运行旧版本BIOS的状态正确,退出BIOS的刷新。In response to the test machine running the old version of the BIOS in a correct state, exit the BIOS refresh.
在本发明的一个优选实施例中,响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具包括:In a preferred embodiment of the present invention, in response to receiving an instruction to refresh the BIOS, uploading the BIOS release package to the preset directory and downloading the test tool includes:
响应于接收到刷新BIOS的指令,将测试工具、新版本BIOS发布包和旧版本BIOS发布包通过网络上传至TFTP目录中;In response to receiving the instruction to refresh the BIOS, upload the test tool, new version BIOS release package, and old version BIOS release package to the TFTP directory through the network;
通过IPMI接口向测试机的BMC发出指令,使测试机执行PXE启动;Send instructions to the BMC of the test machine through the IPMI interface to cause the test machine to perform PXE startup;
响应于测试机执行PXE启动,向测试机提供TFTP目录的地址;In response to the test machine performing a PXE boot, provide the address of the TFTP directory to the test machine;
测试机基于TFTP目录的地址下载测试工具。The test machine downloads the test tool based on the address of the TFTP directory.
在本发明的一个优选实施例中,运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机包括:In a preferred embodiment of the present invention, running the test tool to refresh the BIOS release package to be refreshed into the test machine and modifying the state of the test machine to the first state and restarting the test machine includes:
在测试机上运行测试工具,在测试机的内存中创建Ramdisk和FAT文件系统;Run the test tool on the test machine and create Ramdisk and FAT file systems in the memory of the test machine;
测试工具通过TFTP目录的地址下载新版本BIOS发布包并保存到Ramdisk中;The test tool downloads the new version of the BIOS release package through the address of the TFTP directory and saves it to Ramdisk;
测试工具加载并运行EFI Shell,EFI Shell遍历所有FAT文件系统并在根目录寻找startup.nsh并执行;The test tool loads and runs the EFI Shell. The EFI Shell traverses all FAT file systems and looks for startup.nsh in the root directory and executes it;
startup.nsh将新版本BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机。startup.nsh refreshes the new version of the BIOS release package into the test machine and changes the status of the test machine to the first state before restarting the test machine.
在本发明的一个优选实施例中,响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机包括:In a preferred embodiment of the present invention, in response to obtaining that the status of the testing machine is the first status, the testing tool is run to refresh the old version BIOS release package into the testing machine and modify the status of the testing machine to the second status before restarting Test machines include:
响应于获取到测试机的状态为第一状态,判断测试机运行新版本BIOS的状态是否正确;In response to obtaining that the status of the test machine is the first status, determine whether the status of the test machine running the new version of BIOS is correct;
响应于测试机运行新版本BIOS的状态正确,在测试机上运行测试工具,在测试机的内存中创建Ramdisk和FAT文件系统;In response to the correct status of the test machine running the new version of BIOS, run the test tool on the test machine and create the Ramdisk and FAT file system in the memory of the test machine;
测试工具通过TFTP目录的地址下载旧版本BIOS发布包并保存到Ramdisk中;The test tool downloads the old version BIOS release package through the address of the TFTP directory and saves it to Ramdisk;
测试工具加载并运行EFI Shell,EFI Shell遍历所有FAT文件系统并在根目录寻找startup.nsh并执行;The test tool loads and runs the EFI Shell. The EFI Shell traverses all FAT file systems and looks for startup.nsh in the root directory and executes it;
startup.nsh将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机。startup.nsh refreshes the old version of the BIOS release package into the test machine and changes the status of the test machine to the second state before restarting the test machine.
在本发明的一个优选实施例中,第一状态为刷新成功状态,第二状态为回退成功状态。In a preferred embodiment of the present invention, the first state is the refresh success state, and the second state is the rollback success state.
基于上述目的,本发明实施例的第四个方面,提出了一种计算机可读存储介质。图4示出的是本发明提供的计算机可读存储介质的实施例的示意图。如图4所示,计算机可读存储介质S31存储有被处理器执行时执行如下方法的计算机程序S32:Based on the above objectives, a fourth aspect of the embodiments of the present invention provides a computer-readable storage medium. FIG. 4 shows a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in Figure 4, the computer-readable storage medium S31 stores a computer program S32 that performs the following method when executed by the processor:
响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具;In response to receiving the instruction to refresh the BIOS, upload the BIOS release package to the preset directory and download the test tool;
运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机;Run the test tool to refresh the BIOS release package to be refreshed into the test machine, change the status of the test machine to the first state, and then restart the test machine;
响应于测试机重启完成,将BIOS发布包上传到预设目录中并下载测试工具;In response to the test machine restarting, upload the BIOS release package to the default directory and download the test tool;
响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机;In response to obtaining that the status of the test machine is the first state, run the test tool to refresh the old version BIOS release package into the test machine and modify the status of the test machine to the second state before restarting the test machine;
响应于测试机重启完成且获取到测试机的状态为第二状态,判断测试机运行旧版本BIOS的状态是否正确;In response to the restart of the test machine being completed and the state of the test machine being obtained as the second state, it is determined whether the state of the test machine running the old version of the BIOS is correct;
响应于测试机运行旧版本BIOS的状态正确,退出BIOS的刷新。In response to the test machine running the old version of the BIOS in a correct state, exit the BIOS refresh.
在本发明的一个优选实施例中,响应于接收到刷新BIOS的指令,将BIOS发布包上传到预设目录中并下载测试工具包括:In a preferred embodiment of the present invention, in response to receiving an instruction to refresh the BIOS, uploading the BIOS release package to the preset directory and downloading the test tool includes:
响应于接收到刷新BIOS的指令,将测试工具、新版本BIOS发布包和旧版本BIOS发布包通过网络上传至TFTP目录中;In response to receiving the instruction to refresh the BIOS, upload the test tool, new version BIOS release package, and old version BIOS release package to the TFTP directory through the network;
通过IPMI接口向测试机的BMC发出指令,使测试机执行PXE启动;Send instructions to the BMC of the test machine through the IPMI interface to cause the test machine to perform PXE startup;
响应于测试机执行PXE启动,向测试机提供TFTP目录的地址;In response to the test machine performing a PXE boot, provide the address of the TFTP directory to the test machine;
测试机基于TFTP目录的地址下载测试工具。The test machine downloads the test tool based on the address of the TFTP directory.
在本发明的一个优选实施例中,运行测试工具将待刷新的BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机包括:In a preferred embodiment of the present invention, running the test tool to refresh the BIOS release package to be refreshed into the test machine and modifying the state of the test machine to the first state and restarting the test machine includes:
在测试机上运行测试工具,在测试机的内存中创建Ramdisk和FAT文件系统;Run the test tool on the test machine and create Ramdisk and FAT file systems in the memory of the test machine;
测试工具通过TFTP目录的地址下载新版本BIOS发布包并保存到Ramdisk中;The test tool downloads the new version of the BIOS release package through the address of the TFTP directory and saves it to Ramdisk;
测试工具加载并运行EFI Shell,EFI Shell遍历所有FAT文件系统并在根目录寻找startup.nsh并执行;The test tool loads and runs the EFI Shell. The EFI Shell traverses all FAT file systems and looks for startup.nsh in the root directory and executes it;
startup.nsh将新版本BIOS发布包刷新到测试机中并将测试机的状态修改成第一状态后重启测试机。startup.nsh refreshes the new version of the BIOS release package into the test machine and changes the status of the test machine to the first state before restarting the test machine.
在本发明的一个优选实施例中,响应于获取到测试机的状态为第一状态,运行测试工具将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机包括:In a preferred embodiment of the present invention, in response to obtaining that the status of the testing machine is the first status, the testing tool is run to refresh the old version BIOS release package into the testing machine and modify the status of the testing machine to the second status before restarting Test machines include:
响应于获取到测试机的状态为第一状态,判断测试机运行新版本BIOS的状态是否正确;In response to obtaining that the status of the test machine is the first status, determine whether the status of the test machine running the new version of BIOS is correct;
响应于测试机运行新版本BIOS的状态正确,在测试机上运行测试工具,在测试机的内存中创建Ramdisk和FAT文件系统;In response to the correct status of the test machine running the new version of BIOS, run the test tool on the test machine and create the Ramdisk and FAT file system in the memory of the test machine;
测试工具通过TFTP目录的地址下载旧版本BIOS发布包并保存到Ramdisk中;The test tool downloads the old version BIOS release package through the address of the TFTP directory and saves it to Ramdisk;
测试工具加载并运行EFI Shell,EFI Shell遍历所有FAT文件系统并在根目录寻找startup.nsh并执行;The test tool loads and runs the EFI Shell. The EFI Shell traverses all FAT file systems and looks for startup.nsh in the root directory and executes it;
startup.nsh将旧版本BIOS发布包刷新到测试机中并将测试机的状态修改成第二状态后重启测试机。startup.nsh refreshes the old version of the BIOS release package into the test machine and changes the status of the test machine to the second state before restarting the test machine.
在本发明的一个优选实施例中,第一状态为刷新成功状态,第二状态为回退成功状态。In a preferred embodiment of the present invention, the first state is the refresh success state, and the second state is the rollback success state.
此外,根据本发明实施例公开的方法还可以被实现为由处理器执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被处理器执行时,执行本发明实施例公开的方法中限定的上述功能。In addition, the method disclosed according to the embodiment of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the method disclosed in the embodiment of the present invention are performed.
此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。In addition, the above-mentioned method steps and system units can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above-mentioned steps or unit functions.
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现的功能,但是这种实现决定不应被解释为导致脱离本发明实施例公开的范围。Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits and steps have been described generally in terms of their functionality. Whether this functionality is implemented as software or hardware depends on the specific application and the design constraints imposed on the overall system. Those skilled in the art may implement the functionality in various ways for each specific application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
在一个或多个示例性设计中,功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外线、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。In one or more example designs, functionality may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media can be any available media that can be accessed by a general purpose or special purpose computer. By way of example and not limitation, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or may be used to carry or store instructions in the form of or any other medium containing the required program code for the data structures and capable of being accessed by a general-purpose or special-purpose computer or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave are used to deliver software from a website, server, or other remote source, the coaxial cable Cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of media. As used herein, disks and optical disks include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVDs), floppy disks, and Blu-ray disks, where disks typically reproduce data magnetically, while discs reproduce data optically using lasers. . Combinations of the above should also be included within the scope of computer-readable media.
以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are exemplary embodiments disclosed by the present invention, but it should be noted that various changes and modifications can be made without departing from the scope of the disclosed embodiments of the present invention defined by the claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or claimed in individual form, they may also be understood as plural unless expressly limited to the singular.
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It will be understood that, as used herein, the singular form "a" and "an" are intended to include the plural form as well, unless the context clearly supports an exception. It will also be understood that as used herein, "and/or" is meant to include any and all possible combinations of one or more of the associated listed items.
上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The embodiment numbers disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing the relevant hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium can be a read-only memory, a magnetic disk or an optical disk, etc.
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that the above discussion of any embodiments is only illustrative, and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the thinking of the embodiments of the present invention , the above embodiments or technical features in different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in details for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention shall be included in the protection scope of the embodiments of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110999244.5A CN113886218B (en) | 2021-08-28 | 2021-08-28 | Method, device, equipment and readable medium for verifying BIOS refreshing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110999244.5A CN113886218B (en) | 2021-08-28 | 2021-08-28 | Method, device, equipment and readable medium for verifying BIOS refreshing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113886218A CN113886218A (en) | 2022-01-04 |
CN113886218B true CN113886218B (en) | 2024-01-09 |
Family
ID=79011544
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110999244.5A Active CN113886218B (en) | 2021-08-28 | 2021-08-28 | Method, device, equipment and readable medium for verifying BIOS refreshing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113886218B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105677562A (en) * | 2016-01-05 | 2016-06-15 | 浪潮电子信息产业股份有限公司 | Method for realizing mutual refreshing of BIOS versions under DOS |
CN107766240A (en) * | 2017-09-29 | 2018-03-06 | 郑州云海信息技术有限公司 | UEFI Shell internal command automatic running detection methods and system |
CN107766072A (en) * | 2017-11-28 | 2018-03-06 | 郑州云海信息技术有限公司 | Video card refreshes BIOS method under a kind of linux system |
CN107894956A (en) * | 2017-12-21 | 2018-04-10 | 郑州云海信息技术有限公司 | A kind of long-range BIOS promotion and demotion refresh automated testing method |
CN109800163A (en) * | 2019-01-02 | 2019-05-24 | 郑州云海信息技术有限公司 | A kind of method and system of test b ios upgrade stability |
CN110659167A (en) * | 2019-09-12 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Server hardware testing method, equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090198988A1 (en) * | 2008-01-31 | 2009-08-06 | Inventec Corporation | Method for verifying refreshed bios content |
-
2021
- 2021-08-28 CN CN202110999244.5A patent/CN113886218B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105677562A (en) * | 2016-01-05 | 2016-06-15 | 浪潮电子信息产业股份有限公司 | Method for realizing mutual refreshing of BIOS versions under DOS |
CN107766240A (en) * | 2017-09-29 | 2018-03-06 | 郑州云海信息技术有限公司 | UEFI Shell internal command automatic running detection methods and system |
CN107766072A (en) * | 2017-11-28 | 2018-03-06 | 郑州云海信息技术有限公司 | Video card refreshes BIOS method under a kind of linux system |
CN107894956A (en) * | 2017-12-21 | 2018-04-10 | 郑州云海信息技术有限公司 | A kind of long-range BIOS promotion and demotion refresh automated testing method |
CN109800163A (en) * | 2019-01-02 | 2019-05-24 | 郑州云海信息技术有限公司 | A kind of method and system of test b ios upgrade stability |
CN110659167A (en) * | 2019-09-12 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Server hardware testing method, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113886218A (en) | 2022-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11068252B2 (en) | System and method for dynamically determining applicable updates | |
CN103970566B (en) | A kind of method and apparatus of router firmware upgrading | |
US20170228228A1 (en) | Remote launch of deploy utility | |
CN102426531A (en) | Intelligent terminal, application program updating system and updating method thereof | |
WO2021057795A1 (en) | System starting method and apparatus, node device and computer-readable storage medium | |
CN106897093A (en) | A kind of dispositions method and device of windows operating systems | |
US7293168B2 (en) | System and method for initially configuring and booting a device using a device identifier | |
CN102447732A (en) | Method for intelligent configuration of host computer embedded environment during BMC (Baseboard Management Controller) development | |
CN112328440A (en) | Hard disk physical position determining method and device | |
CN113517996B (en) | A network card equipment polling method, system and related devices | |
CN111371610A (en) | A network card firmware batch refresh method, system, terminal and storage medium | |
WO2023098052A1 (en) | Server operation and maintenance method and apparatus, and device and storage medium | |
WO2015154578A1 (en) | Remote upgrade method, device and system of boot program of single board | |
CN116521261A (en) | A startup item configuration method, device, computer equipment and storage medium | |
CN111324418A (en) | OpenStack-based virtual machine template generation method and device | |
CN111339055A (en) | Big data cluster expansion method and device | |
CN113886218B (en) | Method, device, equipment and readable medium for verifying BIOS refreshing | |
CN114448788A (en) | Installation method, system, equipment and medium of switch system | |
CN110045963A (en) | A kind of method and device of linux kernel compiling and verifying | |
CN107291505A (en) | A kind of method and device of controller system memory upgrading | |
CN116846865A (en) | Domain name configuration methods, devices, electronic equipment and computer program products | |
CN106817413A (en) | A kind of control node method for start-up and shutdown, system and RMC | |
CN113867767A (en) | A kind of server component upgrade method and server | |
CN115543399A (en) | A software processing system, software processing method and device | |
CN111966364A (en) | A method and system for building a Weblogic automation environment based on docker |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |