CN110377300A - A kind of upgrade method of BIOS, device and computer readable storage medium - Google Patents

A kind of upgrade method of BIOS, device and computer readable storage medium Download PDF

Info

Publication number
CN110377300A
CN110377300A CN201910561322.6A CN201910561322A CN110377300A CN 110377300 A CN110377300 A CN 110377300A CN 201910561322 A CN201910561322 A CN 201910561322A CN 110377300 A CN110377300 A CN 110377300A
Authority
CN
China
Prior art keywords
information
file
bios
server
upgraded
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.)
Withdrawn
Application number
CN201910561322.6A
Other languages
Chinese (zh)
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 Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave 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 Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910561322.6A priority Critical patent/CN110377300A/en
Publication of CN110377300A publication Critical patent/CN110377300A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/004Error avoidance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

Disclosed herein is the upgrade method of basic input output system (BIOS) a kind of, device and computer readable storage mediums, comprising: server obtains BIOS file upgrade command;BIOS file to be upgraded is obtained from preset BIOS file storage location, and obtains the file information and the first check information of BIOS file to be upgraded;Wherein, the first check information is pre-generated according to the type information of server and the file information of BIOS file to be upgraded;Obtain the type information of server;The second check information is obtained according to the file information of acquisition and the type information of itself;When the second check information is identical as the first check information, upgraded according to BIOS file to be upgraded.The application can be avoided the staging error occurred due to upgrade file mistake and upgrade file are tampered, improve the success rate for upgrading of BIOS.

Description

A kind of upgrade method of BIOS, device and computer readable storage medium
Technical field
The present embodiments relate to field of computer technology, espespecially a kind of basic input output system (Basic Input Output System, BIOS) upgrading, device and computer readable storage medium.
Background technique
BIOS is one group and is cured in computer read-only memory (Read Only Memory, a ROM) core on mainboard The program of on piece, self-check program and system are from opening after the program of its in store most important basic input and output of computer, booting Dynamic program, and can from complementary metal oxide semiconductor (Complementary Metal Oxide Semiconductor, CMOS the specifying information that read-write system is arranged in), to provide the bottom, the most direct hardware setting and control for computer System.And work as BIOS currently in use itself there are problem, cause main board work abnormal or can not be transported with other hardware compatibilities Row, it is necessary to which upgrading BIOS modifies mistake;Or when older mainboard is when using trendy CPU product, in fact it could happen that can not The problem of correct identification CPU model, it is necessary to which upgrading BIOS supports more CPU products so that mainboard be allowed correctly to identify CPU.
In the related technology, the upgrading of BIOS is upgraded using file, i.e., server is read to be upgraded in designated position Then BIOS file to be upgraded is burnt in BIOS to realize upgrading by BIOS file.
However, this method not can guarantee and belong to the server for the BIOS file of upgrade server and (be likely to occur use In upgrade other servers BIOS file brought for upgrading the server the case where), not can guarantee yet BIOS upgrading text Part is not maliciously tampered, to cause staging error.
Summary of the invention
In order to solve the above-mentioned technical problem, the embodiment of the invention provides the upgrade method of BIOS a kind of, device and calculating Machine readable storage medium storing program for executing can be avoided the staging error occurred due to upgrade file mistake and upgrade file are tampered, improve The success rate for upgrading of BIOS.
In order to achieve the purpose that the embodiment of the present invention, the embodiment of the invention provides the upgrade methods of BIOS a kind of, comprising:
Server obtains BIOS file upgrade command;
The server obtains BIOS file to be upgraded from preset BIOS file storage location, and described in acquisition The file information of BIOS file to be upgraded and the first check information;Wherein, first check information is according to the server Type information and the BIOS file to be upgraded the file information it is pre-generated;
The server obtains the type information of itself;
The server obtains the second check information according to the file information and the type information of itself of acquisition;
When second check information is identical as first check information, the server is according to described to be upgraded BIOS file is upgraded.
The server obtains the second check information according to the file information and the type information of itself of acquisition, comprising:
The server obtains default checking algorithm from preset checking algorithm storage location;
The server verifies the file information of acquisition and the type information of itself according to default checking algorithm, obtains To second check information.
The default checking algorithm include: the 5th edition Message Digest 5 (Message Digest Algorithm 5th, ) and hash function algorithm MD5.
The server verifies the file information of acquisition and the type information of itself according to default checking algorithm, obtains To second check information, comprising:
The server calculates the file information of acquisition and the type information of itself according to the MD5 algorithm, obtains To calculating information;
The server carries out Hash to the calculating information according to the hash function algorithm, obtains second verification Information.
The file information includes:
The version information of file, the length information of file and file format information.
The embodiment of the invention provides a kind of servers, comprising:
Module is obtained, for obtaining BIOS file upgrade command;
The acquisition module is also used to obtain BIOS file to be upgraded from preset BIOS file storage location, And obtain the file information and the first check information of the BIOS file to be upgraded;Wherein, first check information is basis What the file information of the type information of the server and the BIOS file to be upgraded pre-generated;
The acquisition module, is also used to obtain the type information of the server;
Processing module is believed for obtaining the second verification according to the file information of acquisition and the type information of the server Breath;
The processing module is also used to when second check information is identical as first check information, according to institute BIOS file to be upgraded is stated to be upgraded.
The acquisition module is specifically used for:
Default checking algorithm is obtained from preset checking algorithm storage location;
The file information of acquisition and the type information of the server are verified according to default checking algorithm, obtain institute State the second check information.
The default checking algorithm includes: the 5th edition eap-message digest MD5 algorithm and hash function algorithm.
The embodiment of the invention provides a kind of update devices of basic input-output system BIOS, comprising: processor and deposits Reservoir, wherein the following order being executed by processor is stored in memory:
Obtain BIOS file upgrade command;
BIOS file to be upgraded is obtained from preset BIOS file storage location, and obtains the BIOS to be upgraded The file information of file and the first check information;Wherein, first check information is the type information according to server and institute The file information for stating BIOS file to be upgraded is pre-generated;
Obtain the type information of the server;
The second check information is obtained according to the type information of the file information of acquisition and server;
When second check information is identical as first check information, carried out according to the BIOS file to be upgraded Upgrading.
The embodiment of the invention provides a kind of computer readable storage medium, being stored with computer on the storage medium can Order is executed, the computer executable command is for executing following steps:
Obtain BIOS file upgrade command;
BIOS file to be upgraded is obtained from preset BIOS file storage location, and obtains the BIOS to be upgraded The file information of file and the first check information;Wherein, first check information is the type information according to server and institute The file information for stating BIOS file to be upgraded is pre-generated;
Obtain the type information of the server;
The second check information is obtained according to the type information of the file information of acquisition and server;
When second check information is identical as first check information, carried out according to the BIOS file to be upgraded Upgrading.
Since server is before carrying out BIOS upgrading using BIOS file to be upgraded, can be waited for according to the type information of server The file information of upgrading BIOS file generates the second checking information, when the second check information is identical as the first check information, BIOS upgrading can be carried out according to BIOS file to be upgraded, therefore avoided because upgrade file mistake and upgrade file are tampered Existing staging error improves the success rate for upgrading of BIOS.
The other feature and advantage of the embodiment of the present invention will illustrate in the following description, also, partly from explanation It is become apparent in book, or understood by implementing the embodiment of the present invention.The purpose of the embodiment of the present invention and other advantages It can be achieved and obtained by structure specifically noted in the specification, claims and drawings.
Detailed description of the invention
Attached drawing is used to provide one for further understanding technical solution of the embodiment of the present invention, and constituting specification Point, it is used to explain the present invention the technical solution of embodiment together with embodiments herein, does not constitute to the embodiment of the present invention The limitation of technical solution.
Fig. 1 is a kind of flow diagram of BIOS upgrade method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of server of the embodiment of the present invention.
Specific embodiment
Understand in order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing pair The embodiment of the present invention is described in detail.It should be noted that in the absence of conflict, embodiment and reality in the application The feature applied in example can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
The embodiment of the present invention provides the upgrade method of BIOS a kind of, as shown in Figure 1, this method comprises:
Step 101, server obtain BIOS file upgrade command.
In a kind of exemplary embodiment, the BIOS file upgrade command that server obtains is that user is sent to by terminal Server.
Step 102, server obtain BIOS file to be upgraded from preset BIOS file storage location, and obtain The file information of BIOS file to be upgraded and the first check information.
Wherein, the first check information is preparatory according to the type information of server and the file information of BIOS file to be upgraded It generates.
It is a kind of it is exemplary be that the first check information of BIOS file to be upgraded is pre-generated and is placed on wait rise For verification in grade BIOS file.
Step 103, server obtain the type information of itself.
Step 104, server obtain the second check information according to the file information and the type information of itself of acquisition.
Step 105, when the second check information is identical as the first check information, server according to BIOS file to be upgraded into Row upgrading.
In a kind of illustrative examples, since the first check information and the second check information are according to the file information and service What device type information generated, therefore when the second check information is identical as the first check information, illustrates to generate the second check information Institute according to the file information therewith previous existence at the first check information institute according to the file information it is identical, generate the second check information when Institute according to server model information also therewith previous existence at the first check information institute according to server model information it is identical, that is, say Bright BIOS file to be upgraded is the BIOS file of subordinate server and file to be upgraded is not tampered with.
In a kind of illustrative examples, server obtains the second school according to the file information and the type information of itself of acquisition Test information, comprising:
Preferred, server obtains default checking algorithm from preset checking algorithm storage location
In a kind of illustrative examples, default checking algorithm is stored in advance on the server, BIOS upgrading to be distorted The attacker of file can not be known.
Secondly, server verifies the file information of acquisition and the type information of itself according to default checking algorithm, Obtain the second check information.
In a kind of exemplary embodiment, default checking algorithm includes: the 5th edition Message Digest 5 MD5 and hash function Algorithm.
In a kind of exemplary embodiment, server is according to default checking algorithm to the file information and the type of itself of acquisition Number information is verified, and the second check information is obtained, comprising:
First, server calculates the file information of acquisition and the type information of itself according to MD5 algorithm, is counted Calculate information.
Secondly, server carries out Hash to information is calculated according to hash function algorithm, obtains the second check information.
In a kind of exemplary embodiment, first treat upgrading BIOS file the file information and server type information into Row md5 encryption calculates, then carries out Hash operation to the information being calculated, it is ensured that the integrality and correctness of information.
In a kind of exemplary embodiment, the file information includes: the length information and file of the version information of file, file Format information.
The upgrade method of BIOS provided in an embodiment of the present invention, since server is carried out using BIOS file to be upgraded Before BIOS upgrading, the second checking information can be generated according to the file information of the type information BIOS file to be upgraded of server, when When second check information is identical as the first check information, just BIOS upgrading can be carried out according to BIOS file to be upgraded, therefore avoid The staging error occurred due to upgrade file mistake and upgrade file are tampered, improves the success rate for upgrading of BIOS.
The embodiment of the present invention also provides a kind of server, as shown in Fig. 2, the server 2 includes:
Module 21 is obtained, for obtaining BIOS file upgrade command.
Module 21 is obtained, is also used to obtain BIOS file to be upgraded from preset BIOS file storage location, and Obtain the file information and the first check information of BIOS file to be upgraded.Wherein, the first check information is the type according to server The file information of number information and BIOS file to be upgraded is pre-generated.
Module 21 is obtained, is also used to obtain the type information of server.
Processing module 22, for obtaining the second check information according to the file information of acquisition and the type information of server.
Processing module 22 is also used to when the second check information is identical as the first check information, according to BIOS text to be upgraded Part is upgraded.
In a kind of illustrative examples, obtains module 21 and is specifically used for:
Default checking algorithm is obtained from preset checking algorithm storage location.
The file information of acquisition and the type information of server are verified according to default checking algorithm, obtain the second school Test information.
In a kind of illustrative examples, default checking algorithm includes: that the 5th edition Message Digest 5 MD5 and hash function are calculated Method.
In a kind of illustrative examples, obtains module 21 and is specifically used for:
The file information of acquisition and the type information of itself are calculated according to MD5 algorithm, obtain calculating information.
Hash is carried out to information is calculated according to hash function algorithm, obtains the second check information.
In a kind of illustrative examples, the file information includes: the length information and tray of the version information of file, file Formula information.
Server provided in an embodiment of the present invention, due to root before carrying out BIOS upgrading using BIOS file to be upgraded The second checking information is generated according to the file information of the type information of server BIOS file to be upgraded, when the second check information and the When one check information is identical, just BIOS upgrading can be carried out according to BIOS file to be upgraded, therefore avoid because of upgrade file mistake The staging error for being tampered and occurring with upgrade file improves the success rate for upgrading of BIOS.
In practical applications, the acquisition module 21 and processing module 22 are respectively positioned on the central processing unit in server (Central Processing Unit, CPU), microprocessor (Micro Processor Unit, MPU), Digital Signal Processing Device (Digital Signal Processor, DSP) or field programmable gate array (Field Programmable Gate Array, FPGA) etc. realize.
The embodiment of the present invention also provides the update device of BIOS a kind of, including memory, processor and is stored in memory Computer program that is upper and can running in processor, processor realize any one in above-described embodiment when executing computer program The remote operation method of server.
The embodiment of the present invention also provides a kind of computer readable storage medium, and it is executable that computer is stored on storage medium Order, computer executable command are used to execute the upgrade method such as any one BIOS in above-described embodiment.
Although embodiment disclosed by the embodiment of the present invention is as above, only the present invention is real for ease of understanding for the content The embodiment applying example and using is not intended to limit the invention embodiment.Skill in any fields of the embodiment of the present invention Art personnel can be in the form and details of implementation under the premise of not departing from spirit and scope disclosed by the embodiment of the present invention It is upper to carry out any modification and variation, but the scope of patent protection of the embodiment of the present invention, it still must be with appended claims institute Subject to the range defined.

Claims (10)

1. a kind of upgrade method of basic input-output system BIOS characterized by comprising
Server obtains BIOS file upgrade command;
The server obtains BIOS file to be upgraded from preset BIOS file storage location, and obtains described wait rise The file information and the first check information of grade BIOS file;Wherein, first check information is the type according to the server The file information of number information and the BIOS file to be upgraded is pre-generated;
The server obtains the type information of itself;
The server obtains the second check information according to the file information and the type information of itself of acquisition;
When second check information is identical as first check information, the server is according to the BIOS text to be upgraded Part is upgraded.
2. upgrade method according to claim 1, which is characterized in that the server is according to the file information of acquisition and oneself The type information of body obtains the second check information, comprising:
The server obtains default checking algorithm from preset checking algorithm storage location;
The server verifies the file information of acquisition and the type information of itself according to default checking algorithm, obtains institute State the second check information.
3. document upgrading method according to claim 2, which is characterized in that the default checking algorithm includes: the 5th edition Message Digest 5 MD5 and hash function algorithm.
4. document upgrading method according to claim 3, which is characterized in that the server is according to default checking algorithm pair The file information of acquisition and the type information of itself are verified, and the second check information is obtained, comprising:
The server calculates the file information of acquisition and the type information of itself according to the MD5 algorithm, is counted Calculate information;
The server carries out Hash to the calculating information according to the hash function algorithm, obtains the second verification letter Breath.
5. document upgrading method according to claim 1,2 or 4, which is characterized in that the file information includes: file The length information and file format information of version information, file.
6. a kind of server characterized by comprising
Module is obtained, for obtaining BIOS file upgrade command;
The acquisition module is also used to obtain BIOS file to be upgraded from preset BIOS file storage location, and obtains Take the file information and the first check information of the BIOS file to be upgraded;Wherein, first check information is according to What the file information of the type information of server and the BIOS file to be upgraded pre-generated;
The acquisition module, is also used to obtain the type information of the server;
Processing module, for obtaining the second check information according to the file information of acquisition and the type information of the server;
The processing module is also used to when second check information is identical as first check information, according to it is described to Upgrading BIOS file is upgraded.
7. server according to claim 6, which is characterized in that the acquisition module is specifically used for:
Default checking algorithm is obtained from preset checking algorithm storage location;
The file information of acquisition and the type information of the server are verified according to default checking algorithm, obtain described Two check informations.
8. server according to claim 7, which is characterized in that the default checking algorithm includes: that the 5th edition message is plucked Want algorithm MD5 and hash function algorithm.
9. a kind of update device of basic input-output system BIOS characterized by comprising processor and memory, wherein The following order being executed by processor is stored in memory:
Obtain BIOS file upgrade command;
BIOS file to be upgraded is obtained from preset BIOS file storage location, and obtains the BIOS file to be upgraded The file information and the first check information;Wherein, first check information be according to the type information of server and it is described to What the file information of upgrading BIOS file pre-generated;
Obtain the type information of the server;
The second check information is obtained according to the type information of the file information of acquisition and server;
When second check information is identical as first check information, risen according to the BIOS file to be upgraded Grade.
10. a kind of computer readable storage medium, which is characterized in that be stored with the executable life of computer on the storage medium It enables, the computer executable command is for executing following steps:
Obtain BIOS file upgrade command;
BIOS file to be upgraded is obtained from preset BIOS file storage location, and obtains the BIOS file to be upgraded The file information and the first check information;Wherein, first check information be according to the type information of server and it is described to What the file information of upgrading BIOS file pre-generated;
Obtain the type information of the server;
The second check information is obtained according to the type information of the file information of acquisition and server;
When second check information is identical as first check information, risen according to the BIOS file to be upgraded Grade.
CN201910561322.6A 2019-06-26 2019-06-26 A kind of upgrade method of BIOS, device and computer readable storage medium Withdrawn CN110377300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910561322.6A CN110377300A (en) 2019-06-26 2019-06-26 A kind of upgrade method of BIOS, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910561322.6A CN110377300A (en) 2019-06-26 2019-06-26 A kind of upgrade method of BIOS, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110377300A true CN110377300A (en) 2019-10-25

Family

ID=68249495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910561322.6A Withdrawn CN110377300A (en) 2019-06-26 2019-06-26 A kind of upgrade method of BIOS, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110377300A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026421A (en) * 2019-11-15 2020-04-17 深圳中电长城信息安全系统有限公司 Upgrading device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026421A (en) * 2019-11-15 2020-04-17 深圳中电长城信息安全系统有限公司 Upgrading device

Similar Documents

Publication Publication Date Title
US8745641B1 (en) Automatic verification and anomaly detection in a representational state transfer (REST) application programming interface
US20150378714A1 (en) Providing Context-Specific Software Updates to Client Applications
WO2019169759A1 (en) Apparatus and method for creating analog interface, and computer-readable storage medium
US20170006083A1 (en) Methods, systems, and computer readable media for on-boarding virtualized network function (vnf) packages in a network functions virtualization (nfv) system
US20160378456A1 (en) Method for offline updating virtual machine images
CN106484453B (en) Method and device for realizing system upgrading
WO2020024419A1 (en) Testing method for service scenario, electronic device and readable storage medium
CN108846753B (en) Method and apparatus for processing data
US20170052884A1 (en) Generic test automation for restful web services applications
WO2018032757A1 (en) Method and device for updating component
WO2019062191A1 (en) Electronic device, method and system for extracting data in data table, and storage medium
CN107463348B (en) Method and system for realizing Web end custom format printing based on B/S architecture
CN104850427B (en) A kind of code upgrade method and device
CN105320553A (en) Method and system for updating network card firmware on basis of domestic processor platform
CN111078262A (en) Application thermal restoration method and device
CN110659569A (en) Electronic signature method, device, storage medium and electronic equipment
WO2019085466A1 (en) Association test method and system, application server, and computer readable storage medium
CN110188159B (en) Credit data access method, device, equipment and computer readable storage medium
CN106709281B (en) Patch granting and acquisition methods, device
CN105930179A (en) Method and apparatus for upgrading transaction terminal
CN104077373A (en) Data consistency checking method
CN109711162A (en) A kind of security application method and system based on block chain
CN109462661B (en) Data synchronization method and device, computer equipment and storage medium
CN110377300A (en) A kind of upgrade method of BIOS, device and computer readable storage medium
US11392539B2 (en) Conversion method, conversion apparatus, and recording 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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20191025