CN113886218A - Method, device and equipment for verifying BIOS refreshing and readable medium - Google Patents

Method, device and equipment for verifying BIOS refreshing and readable medium Download PDF

Info

Publication number
CN113886218A
CN113886218A CN202110999244.5A CN202110999244A CN113886218A CN 113886218 A CN113886218 A CN 113886218A CN 202110999244 A CN202110999244 A CN 202110999244A CN 113886218 A CN113886218 A CN 113886218A
Authority
CN
China
Prior art keywords
state
tester
bios
test
test tool
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.)
Granted
Application number
CN202110999244.5A
Other languages
Chinese (zh)
Other versions
CN113886218B (en
Inventor
李金锋
吴海波
吴安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110999244.5A priority Critical patent/CN113886218B/en
Publication of CN113886218A publication Critical patent/CN113886218A/en
Application granted granted Critical
Publication of CN113886218B publication Critical patent/CN113886218B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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)
  • Stored Programmes (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention provides a method, a device, equipment and a readable medium for verifying BIOS refreshing, wherein the method comprises the following steps: in response to receiving a command for refreshing the BIOS, uploading the BIOS issue packet to a preset directory and downloading a test tool; running the test tool to refresh the BIOS release packet to be refreshed into the test machine, and restarting the test machine after modifying the state of the test machine into a first state; responding to the completion of the restart of the tester, uploading the BIOS release packet to a preset directory and downloading a test tool; in response to the fact that the obtained state of the testing machine is the first state, running the testing tool to refresh the BIOS release packet of the old version into the testing machine, and restarting the testing machine after the state of the testing machine is modified into the second state; judging whether the state of the old version BIOS of the test machine is correct or not in response to the completion of the restart of the test machine and the acquired state of the test machine is a second state; and if the state is correct, exiting the refreshing of the BIOS. By using the scheme of the invention, the complete verification project of the BIOS can be automatically refreshed, and the labor cost is reduced.

Description

Method, device and equipment for verifying BIOS refreshing and readable medium
Technical Field
The field relates to the field of computers, and more particularly to a method, apparatus, device and readable medium for verifying BIOS refresh.
Background
The BIOS publisher needs to provide BIOS updating methods and necessary tools in various environments, and refreshing under an EFI Shell (command line Interface for realizing interaction between a user and a system under a novel EFI (Extensible Firmware Interface)) is a solution for the situation that no operating system and BMC are unavailable, and is a refreshing method which needs to be supported by the BIOS publisher.
Before issuing the method and tool for refreshing BIOS under EFI Shell, the BIOS needs to be fully verified. At present, the verification mode of refreshing the BIOS under the EFI Shell needs a series of manual operations of manually preparing a USB flash disk (formatted as an FAT file system), plugging the USB flash disk, starting a machine, entering the EFI Shell, inputting a command to execute refreshing and the like.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a readable medium for verifying BIOS refresh, which can automatically refresh a complete verification project of BIOS, reduce labor cost, facilitate automation of BIOS release test, and improve BIOS development efficiency.
In view of the above object, an aspect of the embodiments of the present invention provides a method for verifying BIOS refresh, comprising the steps of:
in response to receiving a command for refreshing the BIOS, uploading the BIOS issue packet to a preset directory and downloading a test tool;
running the test tool to refresh the BIOS release packet to be refreshed into the test machine, and restarting the test machine after modifying the state of the test machine into a first state;
responding to the completion of the restart of the tester, uploading the BIOS release packet to a preset directory and downloading a test tool;
in response to the fact that the obtained state of the testing machine is the first state, running the testing tool to refresh the BIOS release packet of the old version into the testing machine, and restarting the testing machine after the state of the testing machine is modified into the second state;
judging whether the state of the old version BIOS of the test machine is correct or not in response to the completion of the restart of the test machine and the acquired state of the test machine is a second state;
and exiting the refreshing of the BIOS in response to the state that the tester runs the old version BIOS is correct.
According to one embodiment of the invention, uploading the BIOS issue package into the preset directory and downloading the test tool in response to receiving the instruction to refresh the BIOS comprises:
in response to receiving a command for refreshing the BIOS, uploading the test tool, the new version BIOS release packet and the old version BIOS release packet to a TFTP (simple File Transfer Protocol) directory through a network;
sending an instruction to the BMC of the tester through the IPMI interface to enable the tester to execute PXE starting;
providing an address of the TFTP directory to the tester in response to the tester performing the PXE boot;
the tester downloads the test tools based on the address of the TFTP directory.
According to one embodiment of the invention, running the test tool to flush the BIOS issue packet to be flushed into the tester and restarting the tester after modifying the state of the tester to the first state comprises:
running a test tool on a test machine, and creating a Ramdisk (disk image created in an internal memory) and a FAT file system in the internal memory of the test machine;
the testing tool downloads a new version BIOS release package through the address of the TFTP directory and stores the new version BIOS release package in the Ramdisk;
loading and running the EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the new version BIOS issue package into the tester and restarts the tester after the state of the tester is modified to the first state.
According to one embodiment of the invention, in response to obtaining that the state of the tester is the first state, running the test tool to restart the tester after refreshing the old version BIOS release package into the tester and modifying the state of the tester to the second state comprises:
judging whether the state of the new version BIOS of the testing machine is correct or not in response to the acquired state of the testing machine being the first state;
responding to the correct state of the new version BIOS operated by the tester, operating a test tool on the tester, and creating a Ramdisk and an FAT file system in a memory of the tester;
the testing tool downloads an old version BIOS (basic input output System) release packet through the address of the TFTP directory and stores the BIOS release packet into the Ramdisk;
loading and running the EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the tester after the old version BIOS issue packet is refreshed into the tester and the state of the tester is modified into a second state.
According to one embodiment of the invention, the first state is a refresh success state and the second state is a rollback success state.
In another aspect of an embodiment of the present invention, there is also provided an apparatus for verifying BIOS refresh, the apparatus including:
the setting module is configured to respond to the received command for refreshing the BIOS, upload the BIOS release packet to a preset directory and download a test tool;
the refreshing module is configured to run a test tool to refresh the BIOS release packet to be refreshed into the test machine, modify the state of the test machine into a first state and restart the test machine;
the uploading module is configured to respond to the completion of the restart of the tester, upload the BIOS release packet to a preset directory and download a test tool;
the verification module is configured to respond that the obtained state of the test machine is a first state, run the test tool to refresh the old version BIOS release packet into the test machine, modify the state of the test machine into a second state and then restart the test machine;
the judging module is configured to respond to the completion of the restart of the tester and acquire that the state of the tester is a second state, and judge whether the state of the old version BIOS of the tester is correct or not;
and the exit module is configured to exit the refreshing of the BIOS in response to the state that the tester runs the old version BIOS is correct.
According to one embodiment of the invention, the setup module is further configured to:
in response to receiving a command for refreshing the BIOS, uploading the test tool, the new version BIOS release package and the old version BIOS release package to a TFTP directory through a network;
sending an instruction to the BMC of the tester through the IPMI interface to enable the tester to execute PXE starting;
providing an address of the TFTP directory to the tester in response to the tester performing the PXE boot;
the tester downloads the test tools based on the address of the TFTP directory.
According to one embodiment of the invention, the refresh module is further configured to:
running a test tool on a test machine, and creating a Ramdisk and FAT file system in a memory of the test machine;
the testing tool downloads a new version BIOS release package through the address of the TFTP directory and stores the new version BIOS release package in the Ramdisk;
loading and running the EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the new version BIOS issue package into the tester and restarts the tester after the state of the tester is modified to the first state.
In another aspect of an embodiment of the present invention, there is also provided a computer apparatus including:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of any of the methods described above.
In another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program, which when executed by a processor implements the steps of any one of the above-mentioned methods.
The invention has the following beneficial technical effects: according to the method for verifying BIOS refreshing provided by the embodiment of the invention, the BIOS issuing packet is uploaded to a preset directory and a test tool is downloaded by responding to the received instruction for refreshing the BIOS; running the test tool to refresh the BIOS release packet to be refreshed into the test machine, and restarting the test machine after modifying the state of the test machine into a first state; responding to the completion of the restart of the tester, uploading the BIOS release packet to a preset directory and downloading a test tool; in response to the fact that the obtained state of the testing machine is the first state, running the testing tool to refresh the BIOS release packet of the old version into the testing machine, and restarting the testing machine after the state of the testing machine is modified into the second state; judging whether the state of the old version BIOS of the test machine is correct or not in response to the completion of the restart of the test machine and the acquired state of the test machine is a second state; the state of the old version BIOS running in the tester is correct, the technical scheme of BIOS refreshing is quitted, the complete verification project of the BIOS can be automatically refreshed, the labor cost is reduced, the automation of BIOS release test can be facilitated, and the BIOS development efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method of verifying a BIOS refresh, in accordance with one embodiment of the present invention;
FIG. 2 is a schematic diagram of an apparatus to verify BIOS refreshes, in accordance with one embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer device according to one embodiment of the present invention;
fig. 4 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
In view of the above, a first aspect of embodiments of the present invention proposes one embodiment of a method of verifying a BIOS refresh. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1, in response to receiving the command to refresh the BIOS, uploads the BIOS issue package to a preset directory and downloads the test tool.
And uploading the test tool, the new version BIOS release packet and the old version BIOS release packet to a TFTP directory of a server through a network. An instruction is sent to BMC of the testing machine through an IPMI (Intelligent Platform Management Interface) Interface, when the testing machine is started, PXE is executed, when the testing machine executes PXE start, DHCP service of a server provides a TFTP service address for the testing machine, a testing tool path is used as a starting program, and the testing machine downloads a testing tool from the address through a TFTP protocol.
S2 running the test tool refreshes the BIOS issue package to be refreshed into the tester and restarts the tester after the state of the tester is modified to the first state.
The testing tool starts to run on a testing machine, Ramdisk is created in a memory and mounted, an FAT file system is created, the testing tool downloads a new version BIOS (basic input/output System) distribution packet from the address through a TFTP (transport tunneling protocol) and stores the new version BIOS distribution packet into the Ramdisk, the testing tool loads and runs an EFI Shell, the EFI Shell runs and then automatically traverses all FAT file systems, a startup.
S3 responds to the completion of the restart of the tester, uploads the BIOS release package to the preset directory and downloads the test tool.
This process is the same as in step S1, and is not described in detail here.
S4, in response to the state of the tester being the first state, the running test tool refreshes the old version BIOS issue package into the tester and restarts the tester after modifying the state of the tester to the second state.
The testing tool executes a preset checking action, judges whether the current running is a new version BIOS, if the current running is the new version BIOS, checks whether the running state is correct, runs the testing tool if the running state is correct, the testing tool starts running on a testing machine, creates Ramdisk in a memory and mounts the Ramdisk, creates an FAT file system, downloads an old version BIOS publishing packet from the address through a TFTP protocol and stores the old version BIOS publishing packet into the Ramdisk, loads and runs an EFI Shell, automatically traverses all FAT file systems after the EFI Shell runs, searches for and executes startup.
S5, in response to the test machine being restarted and the obtained state of the test machine being the second state, determining whether the state of the old version BIOS running on the test machine is correct.
And the test tool executes a preset check action, judges whether the current running is the old version BIOS, if so, checks whether the running state is correct, and if so, refreshes the program to successfully exit.
S6 exits the flush of BIOS in response to the tester running the old version of BIOS in the correct state.
Each of the above procedures, if faulty or timed out, will stop and modify the tester state to a faulty state and alert the administrator.
By the technical scheme, the complete verification project of the BIOS can be automatically refreshed, the labor cost is reduced, the automation of the BIOS release test can be realized, and the BIOS development efficiency is improved.
In a preferred embodiment of the present invention, uploading the BIOS issue package to the predetermined directory and downloading the test tool in response to receiving the instruction to refresh the BIOS comprises:
in response to receiving a command for refreshing the BIOS, uploading the test tool, the new version BIOS release package and the old version BIOS release package to a TFTP directory through a network;
sending an instruction to the BMC of the tester through the IPMI interface to enable the tester to execute PXE starting;
providing an address of a TFTP directory to a tester in response to the tester executing a PXE (preboot execution environment) boot;
the tester downloads the test tools based on the address of the TFTP directory.
In a preferred embodiment of the present invention, running the test tool to flush the BIOS release packet to be flushed into the tester and restarting the tester after modifying the state of the tester to the first state comprises:
running a test tool on a test machine, and creating a Ramdisk and FAT file system in a memory of the test machine;
the testing tool downloads a new version BIOS release package through the address of the TFTP directory and stores the new version BIOS release package in the Ramdisk;
loading and running the EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the new version BIOS issue package into the tester and restarts the tester after the state of the tester is modified to the first state.
In a preferred embodiment of the present invention, in response to obtaining that the state of the tester is the first state, running the test tool to reboot the tester after flushing the old version BIOS issue package into the tester and modifying the state of the tester to the second state comprises:
judging whether the state of the new version BIOS of the testing machine is correct or not in response to the acquired state of the testing machine being the first state;
responding to the correct state of the new version BIOS operated by the tester, operating a test tool on the tester, and creating a Ramdisk and an FAT file system in a memory of the tester;
the testing tool downloads an old version BIOS (basic input output System) release packet through the address of the TFTP directory and stores the BIOS release packet into the Ramdisk;
loading and running the EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the tester after the old version BIOS issue packet is refreshed into the tester and the state of the tester is modified into a second state.
In a preferred embodiment of the present invention, the first state is a refresh success state and the second state is a rollback success state.
By the technical scheme, the complete verification project of the BIOS can be automatically refreshed, the labor cost is reduced, the automation of the BIOS release test can be realized, and the BIOS development efficiency is improved.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
In view of the above, according to a second aspect of the embodiments of the present invention, there is provided an apparatus for verifying BIOS refresh, as shown in fig. 2, the apparatus 200 includes:
the setting module 201, the setting module 201 is configured to respond to the received command for refreshing the BIOS, upload the BIOS issue packet to a preset directory and download the test tool;
the refreshing module 202 is configured to run a test tool to refresh the BIOS release packet to be refreshed into the test machine and restart the test machine after modifying the state of the test machine into a first state;
the uploading module 203, the uploading module 203 is configured to respond to the completion of the restart of the tester, upload the BIOS release package to a preset directory and download the test tool;
the verification module 204, the verification module 204 is configured to, in response to the obtained state of the test machine being the first state, run the test tool to refresh the old version BIOS release packet into the test machine and modify the state of the test machine into the second state, and then restart the test machine;
the judging module 205, where the judging module 205 is configured to respond to that the test machine is restarted and the obtained state of the test machine is the second state, and judge whether the state of the old version BIOS of the test machine is correct;
an exit module 206, the exit module 206 configured to exit the refreshing of the BIOS in response to the tester running the old version of the BIOS in a correct state.
In a preferred embodiment of the present invention, the setup module 201 is further configured to:
in response to receiving a command for refreshing the BIOS, uploading the test tool, the new version BIOS release package and the old version BIOS release package to a TFTP directory through a network;
sending an instruction to the BMC of the tester through the IPMI interface to enable the tester to execute PXE starting;
providing an address of the TFTP directory to the tester in response to the tester performing the PXE boot;
the tester downloads the test tools based on the address of the TFTP directory.
In a preferred embodiment of the present invention, the refresh module is further configured to:
running a test tool on a test machine, and creating a Ramdisk and FAT file system in a memory of the test machine;
the testing tool downloads a new version BIOS release package through the address of the TFTP directory and stores the new version BIOS release package in the Ramdisk;
loading and running the EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the new version BIOS issue package into the tester and restarts the tester after the state of the tester is modified to the first state.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, the instructions when executed by the processor implementing the method of:
in response to receiving a command for refreshing the BIOS, uploading the BIOS issue packet to a preset directory and downloading a test tool;
running the test tool to refresh the BIOS release packet to be refreshed into the test machine, and restarting the test machine after modifying the state of the test machine into a first state;
responding to the completion of the restart of the tester, uploading the BIOS release packet to a preset directory and downloading a test tool;
in response to the fact that the obtained state of the testing machine is the first state, running the testing tool to refresh the BIOS release packet of the old version into the testing machine, and restarting the testing machine after the state of the testing machine is modified into the second state;
judging whether the state of the old version BIOS of the test machine is correct or not in response to the completion of the restart of the test machine and the acquired state of the test machine is a second state;
and exiting the refreshing of the BIOS in response to the state that the tester runs the old version BIOS is correct.
In a preferred embodiment of the present invention, uploading the BIOS issue package to the predetermined directory and downloading the test tool in response to receiving the instruction to refresh the BIOS comprises:
in response to receiving a command for refreshing the BIOS, uploading the test tool, the new version BIOS release package and the old version BIOS release package to a TFTP directory through a network;
sending an instruction to the BMC of the tester through the IPMI interface to enable the tester to execute PXE starting;
providing an address of the TFTP directory to the tester in response to the tester performing the PXE boot;
the tester downloads the test tools based on the address of the TFTP directory.
In a preferred embodiment of the present invention, running the test tool to flush the BIOS release packet to be flushed into the tester and restarting the tester after modifying the state of the tester to the first state comprises:
running a test tool on a test machine, and creating a Ramdisk and FAT file system in a memory of the test machine;
the testing tool downloads a new version BIOS release package through the address of the TFTP directory and stores the new version BIOS release package in the Ramdisk;
loading and running the EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the new version BIOS issue package into the tester and restarts the tester after the state of the tester is modified to the first state.
In a preferred embodiment of the present invention, in response to obtaining that the state of the tester is the first state, running the test tool to reboot the tester after flushing the old version BIOS issue package into the tester and modifying the state of the tester to the second state comprises:
judging whether the state of the new version BIOS of the testing machine is correct or not in response to the acquired state of the testing machine being the first state;
responding to the correct state of the new version BIOS operated by the tester, operating a test tool on the tester, and creating a Ramdisk and an FAT file system in a memory of the tester;
the testing tool downloads an old version BIOS (basic input output System) release packet through the address of the TFTP directory and stores the BIOS release packet into the Ramdisk;
loading and running the EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the tester after the old version BIOS issue packet is refreshed into the tester and the state of the tester is modified into a second state.
In a preferred embodiment of the present invention, the first state is a refresh success state and the second state is a rollback success state.
In view of the above object, a fourth aspect of the embodiments of the present invention proposes a computer-readable storage medium. FIG. 4 is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer readable storage medium S31 stores a computer program S32 that when executed by a processor performs the method of:
in response to receiving a command for refreshing the BIOS, uploading the BIOS issue packet to a preset directory and downloading a test tool;
running the test tool to refresh the BIOS release packet to be refreshed into the test machine, and restarting the test machine after modifying the state of the test machine into a first state;
responding to the completion of the restart of the tester, uploading the BIOS release packet to a preset directory and downloading a test tool;
in response to the fact that the obtained state of the testing machine is the first state, running the testing tool to refresh the BIOS release packet of the old version into the testing machine, and restarting the testing machine after the state of the testing machine is modified into the second state;
judging whether the state of the old version BIOS of the test machine is correct or not in response to the completion of the restart of the test machine and the acquired state of the test machine is a second state;
and exiting the refreshing of the BIOS in response to the state that the tester runs the old version BIOS is correct.
In a preferred embodiment of the present invention, uploading the BIOS issue package to the predetermined directory and downloading the test tool in response to receiving the instruction to refresh the BIOS comprises:
in response to receiving a command for refreshing the BIOS, uploading the test tool, the new version BIOS release package and the old version BIOS release package to a TFTP directory through a network;
sending an instruction to the BMC of the tester through the IPMI interface to enable the tester to execute PXE starting;
providing an address of the TFTP directory to the tester in response to the tester performing the PXE boot;
the tester downloads the test tools based on the address of the TFTP directory.
In a preferred embodiment of the present invention, running the test tool to flush the BIOS release packet to be flushed into the tester and restarting the tester after modifying the state of the tester to the first state comprises:
running a test tool on a test machine, and creating a Ramdisk and FAT file system in a memory of the test machine;
the testing tool downloads a new version BIOS release package through the address of the TFTP directory and stores the new version BIOS release package in the Ramdisk;
loading and running the EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the new version BIOS issue package into the tester and restarts the tester after the state of the tester is modified to the first state.
In a preferred embodiment of the present invention, in response to obtaining that the state of the tester is the first state, running the test tool to reboot the tester after flushing the old version BIOS issue package into the tester and modifying the state of the tester to the second state comprises:
judging whether the state of the new version BIOS of the testing machine is correct or not in response to the acquired state of the testing machine being the first state;
responding to the correct state of the new version BIOS operated by the tester, operating a test tool on the tester, and creating a Ramdisk and an FAT file system in a memory of the tester;
the testing tool downloads an old version BIOS (basic input output System) release packet through the address of the TFTP directory and stores the BIOS release packet into the Ramdisk;
loading and running the EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the tester after the old version BIOS issue packet is refreshed into the tester and the state of the tester is modified into a second state.
In a preferred embodiment of the present invention, the first state is a refresh success state and the second state is a rollback success state.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
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 above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be 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 the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended 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. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method of verifying BIOS refresh, comprising the steps of:
in response to receiving a command for refreshing the BIOS, uploading the BIOS issue packet to a preset directory and downloading a test tool;
running the test tool to refresh the BIOS release packet to be refreshed into a test machine, and restarting the test machine after modifying the state of the test machine into a first state;
responding to the completion of the restart of the tester, uploading a BIOS release packet to a preset directory and downloading the test tool;
in response to the fact that the obtained state of the testing machine is the first state, operating the testing tool to refresh an old version BIOS release packet into the testing machine, modifying the state of the testing machine into a second state, and then restarting the testing machine;
in response to the test machine being restarted and the state of the test machine being obtained as the second state, judging whether the state of the old version BIOS of the test machine is correct or not;
and exiting the refreshing of the BIOS in response to the state that the tester runs the old version BIOS is correct.
2. The method of claim 1, wherein uploading the BIOS issue package into a preset directory and downloading the test tool in response to receiving the instruction to refresh the BIOS comprises:
in response to receiving a command for refreshing the BIOS, uploading the test tool, the new version BIOS release package and the old version BIOS release package to a TFTP directory through a network;
sending an instruction to a BMC (baseboard management controller) of the tester through an IPMI (intelligent platform management interface) interface to enable the tester to execute PXE (PCI extensions for instrumentation) starting;
providing an address of the TFTP directory to the tester in response to the tester performing a PXE start;
the tester downloads the test tool based on the address of the TFTP directory.
3. The method of claim 2, wherein restarting the tester after running the test tool to flush the BIOS issue package to be flushed into the tester and to modify the state of the tester to the first state comprises:
running the test tool on the tester, and creating a Ramdisk and FAT file system in a memory of the tester;
the testing tool downloads a new version BIOS (basic input output System) release package through the address of the TFTP directory and stores the new version BIOS release package in the Ramdisk;
loading and operating an EFI Shell by the test tool, traversing all the FAT file systems by the EFI Shell, and searching and executing startup.
Nsh refreshes the new version BIOS issue package into the tester and restarts the tester after the state of the tester is modified into a first state.
4. The method of claim 3, wherein, in response to obtaining that the state of the tester is the first state, running the test tool to restart the tester after flushing an old version BIOS issue packet into the tester and modifying the state of the tester to a second state comprises:
in response to the fact that the obtained state of the testing machine is the first state, judging whether the state of the new version BIOS of the testing machine is correct or not;
responding to the correct state of the new version BIOS operated by the tester, operating the test tool on the tester, and creating a Ramdisk and an FAT file system in a memory of the tester;
the testing tool downloads an old version BIOS (basic input output System) release packet through the address of the TFTP directory and stores the old version BIOS release packet into the Ramdisk;
loading and operating an EFI Shell by the test tool, traversing all FAT file systems by the EFI Shell, searching for startup.
Nsh refreshes the tester of the old version BIOS release packet and modifies the state of the tester into a second state, and then restarts the tester.
5. The method of claim 1, wherein the first state is a refresh success state and the second state is a rollback success state.
6. An apparatus for verifying BIOS refresh, the apparatus comprising:
the setting module is configured to respond to the received command of refreshing the BIOS, upload the BIOS release package to a preset directory and download a test tool;
the refreshing module is configured to run the test tool to refresh the BIOS release packet to be refreshed into the test machine and restart the test machine after the state of the test machine is modified into a first state;
the uploading module is configured to respond to the completion of the restart of the tester, upload the BIOS release package to a preset directory and download the test tool;
the verification module is configured to respond to the fact that the obtained state of the testing machine is the first state, run the testing tool to refresh an old version BIOS release packet into the testing machine, modify the state of the testing machine into a second state and then restart the testing machine;
the judging module is configured to respond to the completion of the restart of the tester and acquire that the state of the tester is the second state, and judge whether the state of the old version BIOS of the tester is correct or not;
an exit module configured to exit the refreshing of the BIOS in response to a state of the tester running the old version of BIOS being correct.
7. The apparatus of claim 6, wherein the setup module is further configured to:
in response to receiving a command for refreshing the BIOS, uploading the test tool, the new version BIOS release package and the old version BIOS release package to a TFTP directory through a network;
sending an instruction to a BMC (baseboard management controller) of the tester through an IPMI (intelligent platform management interface) interface to enable the tester to execute PXE (PCI extensions for instrumentation) starting;
providing an address of the TFTP directory to the tester in response to the tester performing a PXE start;
the tester downloads the test tool based on the address of the TFTP directory.
8. The apparatus of claim 7, wherein the refresh module is further configured to:
running the test tool on the tester, and creating a Ramdisk and FAT file system in a memory of the tester;
the testing tool downloads a new version BIOS (basic input output System) release package through the address of the TFTP directory and stores the new version BIOS release package in the Ramdisk;
loading and operating an EFI Shell by the test tool, traversing all the FAT file systems by the EFI Shell, and searching and executing startup.
Nsh refreshes the new version BIOS issue package into the tester and restarts the tester after the state of the tester is modified into a first state.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN202110999244.5A 2021-08-28 2021-08-28 Method, device, equipment and readable medium for verifying BIOS refreshing Active CN113886218B (en)

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 true CN113886218A (en) 2022-01-04
CN113886218B 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090198988A1 (en) * 2008-01-31 2009-08-06 Inventec Corporation Method for verifying refreshed bios content
CN105677562A (en) * 2016-01-05 2016-06-15 浪潮电子信息产业股份有限公司 Method for achieving 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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090198988A1 (en) * 2008-01-31 2009-08-06 Inventec Corporation Method for verifying refreshed bios content
CN105677562A (en) * 2016-01-05 2016-06-15 浪潮电子信息产业股份有限公司 Method for achieving 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
CN113886218B (en) 2024-01-09

Similar Documents

Publication Publication Date Title
CN107608681B (en) Operating system installation method and device and server
CN110673923A (en) XWIKI system configuration method, system and computer equipment
CN102447732A (en) Method for intelligent configuration of host computer embedded environment during BMC (Baseboard Management Controller) development
CN113064625B (en) Method, device, equipment and medium for upgrading BIOS (basic input output system) out of band
US20150113263A1 (en) Method for updating basic input/output system of server
CN110597545A (en) Hot patch intelligent upgrading method and system based on OTA component
WO2016082450A1 (en) Method for upgrading user terminal, and user terminal
CN111324365A (en) Method and equipment for upgrading super-converged system
CN113805965A (en) Method, device and equipment for installing external plug-in and readable medium
CN117687695A (en) Information processing method, information processing device, electronic equipment and storage medium
CN113886218A (en) Method, device and equipment for verifying BIOS refreshing and readable medium
CN114448788A (en) Installation method, system, equipment and medium of switch system
CN111949290B (en) Hot patch management method and device, electronic equipment and storage medium
CN113553110A (en) Automatic correction method, device and system for hardware baseline of server
CN111857744A (en) Installation method, system, equipment and medium of super-fusion system
CN111813504A (en) Method and device for automatically configuring effective virtual machine and electronic equipment
CN111966364A (en) Weblogic automatic environment building method and system based on docker
CN111082984A (en) Method and device for simulating login of network equipment to carry out command line interaction
CN114116033B (en) Method and device for modifying server configuration
CN116339761B (en) Method, system, storage medium and equipment for automatically constructing mirror image template
CN111682956B (en) Network upgrading method, device, server and readable storage medium
CN109783756B (en) Website creation method, server and computer readable storage medium
CN117917636A (en) Version upgrading method, device, electronic equipment, storage medium and program product
CN116846865A (en) Domain name configuration method, device, electronic equipment and computer program product
CN117221160A (en) Detection method, first node and computer readable storage medium

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