CN113238778B - Method, system, equipment and medium for upgrading BIOS firmware - Google Patents
Method, system, equipment and medium for upgrading BIOS firmware Download PDFInfo
- Publication number
- CN113238778B CN113238778B CN202110561826.5A CN202110561826A CN113238778B CN 113238778 B CN113238778 B CN 113238778B CN 202110561826 A CN202110561826 A CN 202110561826A CN 113238778 B CN113238778 B CN 113238778B
- Authority
- CN
- China
- Prior art keywords
- bios
- firmware
- image file
- partition
- mirror image
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
- G06F9/4406—Loading of operating system
-
- 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)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明公开了一种升级BIOS固件的方法、系统、设备和存储介质,方法包括:响应于对BIOS固件进行更新,开启BIOS镜像档并判断所述BIOS镜像档是否包括BIOS固件的属性;响应于所述BIOS镜像档包括BIOS固件的属性,确定所述BIOS镜像档中签名的位置,根据所述签名的位置确定固件卷头,并根据所述固件卷头获取实际分区的偏移量和大小;基于所述固件卷头的属性判断所述实际分区是否为所述BIOS固件的配置分区;以及响应于所述实际分区是所述BIOS固件的配置分区,使用所述偏移量和大小对所述BIOS固件的配置分区进行更新。本发明通过与BIOS解耦,无需因为BIOS配置分区偏移量的改变,而造成BMC在更新BIOS固件时无法保留配置,并且还可以完整的保留BIOS所有的配置项。
The invention discloses a method, system, equipment and storage medium for upgrading BIOS firmware. The method includes: in response to updating the BIOS firmware, opening a BIOS image file and determining whether the BIOS image file includes attributes of the BIOS firmware; in response to The BIOS image file includes attributes of the BIOS firmware, determines the location of the signature in the BIOS image file, determines the firmware volume header based on the location of the signature, and obtains the offset and size of the actual partition based on the firmware volume header; Determine whether the actual partition is a configuration partition of the BIOS firmware based on the attributes of the firmware volume header; and in response to the actual partition being a configuration partition of the BIOS firmware, use the offset and size to The configuration partition of the BIOS firmware is updated. By decoupling from the BIOS, the present invention eliminates the need for the BMC to be unable to retain the configuration when updating the BIOS firmware due to changes in the BIOS configuration partition offset, and can also completely retain all configuration items of the BIOS.
Description
技术领域Technical field
本发明涉及服务器领域,更具体地,特别是指一种升级BIOS固件的方法、系统、计算机设备及可读介质。The present invention relates to the field of servers, and more specifically, to a method, system, computer equipment and readable medium for upgrading BIOS firmware.
背景技术Background technique
现行服务器,不管Intel(英特尔)还是AMD(Advanced Micro Devices,超微半导体公司)平台,均使用BIOS(Basic Input/Output System,基本输入/输出系统)固件来使能服务器。除了通过OS(Operating System,操作系统)或是UEFI(Unified ExtensibleFirmware Interface,统一可延伸固件界面)shell(外壳)相关工具来更新BIOS固件之外,一般还可以通过BMC(Baseboard Management Controller,基板管理控制器)固件来做远程BIOS固件更新,除了full(全部)BIOS固件更新之外,理论上还可以支持保留BIOS相关配置。但BIOS相关配置保留,目前都没有办法很有效的保留所有设定,往往都要通过与BIOS之间的沟通,定制可以保留的配置项,或是如果存在flash(闪存)layout(布局)的BIOS配置偏移量改变了位置,BMC在更新BIOS固件时就没有办法完全保证BIOS配置可以被保留下来。Current servers, regardless of Intel or AMD (Advanced Micro Devices, AMD) platforms, use BIOS (Basic Input/Output System) firmware to enable the server. In addition to updating BIOS firmware through OS (Operating System, operating system) or UEFI (Unified Extensible Firmware Interface, unified extensible firmware interface) shell (shell) related tools, you can generally also update BIOS firmware through BMC (Baseboard Management Controller, baseboard management control) remote BIOS firmware update. In addition to full (all) BIOS firmware update, it can theoretically also support retaining BIOS related configurations. However, there is currently no way to effectively retain all settings related to BIOS configuration retention. It is often necessary to communicate with the BIOS to customize the configuration items that can be retained, or if there is a flash (flash memory) layout (layout) of the BIOS The configuration offset changes the position, and BMC has no way to completely guarantee that the BIOS configuration can be preserved when updating the BIOS firmware.
目前的做法是通过BIOS工程师事前告知固定偏移量来找,而这样的设计迫使BMC和BIOS无法解耦,只要BIOS因为配置项更新而改变偏移量,BMC也要随着同步更新。即使通过BIOS与BMC的沟通,对BIOS配置项进行定制,也使得BMC和BIOS无法解耦,或者无法达成所有的配置项都予以保留的效果。The current method is to find the fixed offset by informing the BIOS engineer in advance. This design forces the BMC and BIOS to be unable to be decoupled. As long as the BIOS changes the offset due to configuration item updates, the BMC must also be updated simultaneously. Even if BIOS configuration items are customized through communication between BIOS and BMC, BMC and BIOS cannot be decoupled, or all configuration items cannot be retained.
发明内容Contents of the invention
有鉴于此,本发明实施例的目的在于提出一种升级BIOS固件的方法、系统、计算机设备及计算机可读存储介质,本发明通过固件卷头获取实际分区的偏移量和大小,并使用偏移量和大小对BIOS固件的配置分区进行更新从而实现了与BIOS解耦,无需因为BIOS配置分区偏移量的改变,而造成BMC在更新BIOS固件时无法保留配置,并且还可以完整的保留BIOS所有的配置项。In view of this, the purpose of embodiments of the present invention is to propose a method, system, computer equipment and computer-readable storage medium for upgrading BIOS firmware. The present invention obtains the offset and size of the actual partition through the firmware volume header, and uses the offset The offset and size are used to update the configuration partition of the BIOS firmware to achieve decoupling from the BIOS. There is no need for the BMC to be unable to retain the configuration when updating the BIOS firmware due to changes in the offset of the BIOS configuration partition, and the BIOS can also be completely retained. All configuration items.
基于上述目的,本发明实施例的一方面提供了一种升级BIOS固件的方法,包括如下步骤:响应于对BIOS固件进行更新,开启BIOS镜像档并判断所述BIOS镜像档是否包括BIOS固件的属性;响应于所述BIOS镜像档包括BIOS固件的属性,确定所述BIOS镜像档中签名的位置,根据所述签名的位置确定固件卷头,并根据所述固件卷头获取实际分区的偏移量和大小;基于所述固件卷头的属性判断所述实际分区是否为所述BIOS固件的配置分区;以及响应于所述实际分区是所述BIOS固件的配置分区,使用所述偏移量和大小对所述BIOS固件的配置分区进行更新。Based on the above purpose, one aspect of the embodiment of the present invention provides a method for upgrading BIOS firmware, including the following steps: in response to updating the BIOS firmware, opening the BIOS image file and determining whether the BIOS image file includes attributes of the BIOS firmware. ; In response to the BIOS image file including the attributes of the BIOS firmware, determine the location of the signature in the BIOS image file, determine the firmware volume header based on the location of the signature, and obtain the offset of the actual partition based on the firmware volume header and size; determining whether the actual partition is a configuration partition of the BIOS firmware based on the attributes of the firmware volume header; and in response to the actual partition being a configuration partition of the BIOS firmware, using the offset and size Update the configuration partition of the BIOS firmware.
在一些实施方式中,方法还包括:在所述BIOS固件中给不同的分区分配对应的标识,根据所述标识创建属性表,并将所述属性表同步到所述BIOS镜像档。In some implementations, the method further includes: assigning corresponding identifiers to different partitions in the BIOS firmware, creating an attribute table according to the identifiers, and synchronizing the attribute table to the BIOS image file.
在一些实施方式中,所述确定所述BIOS镜像档中签名的位置包括:从所述BIOS镜像档的头部开始向尾部依次匹配签名,响应于匹配成功,记录所述签名在所述BIOS镜像档中所在的位置。In some embodiments, determining the location of the signature in the BIOS image file includes: matching signatures in sequence from the head to the tail of the BIOS image file, and in response to a successful match, recording the signature in the BIOS image file. The location in the file.
在一些实施方式中,所述根据所述签名的位置确定固件卷头包括:确定所述签名的映射关系,并基于所述签名的位置和所述映射关系确定所述固件卷头。In some embodiments, determining the firmware volume header according to the location of the signature includes: determining a mapping relationship of the signature, and determining the firmware volume header based on the location of the signature and the mapping relationship.
在一些实施方式中,所述基于所述固件卷头的属性判断所述实际分区是否为所述BIOS固件的配置分区包括:判断所述镜像档中的属性表是否存在所述配置分区的标识。In some embodiments, determining whether the actual partition is a configuration partition of the BIOS firmware based on the attributes of the firmware volume header includes: determining whether an identifier of the configuration partition exists in the attribute table in the image file.
在一些实施方式中,方法还包括:响应于存在多个BIOS镜像档,读取每个BIOS镜像档中实际分区的偏移量和大小对应的时间戳,并根据所述时间戳确定用于更新的BIOS镜像档。In some embodiments, the method further includes: in response to the existence of multiple BIOS image files, reading the timestamp corresponding to the offset and size of the actual partition in each BIOS image file, and determining the time stamp for updating based on the timestamp. BIOS image file.
在一些实施方式中,所述根据所述时间戳确定用于更新的BIOS镜像档包括:响应于更新后BIOS固件出现异常,还原更新项并再次根据所述时间戳确定新的用于更新的BIOS镜像档。In some embodiments, determining the BIOS image file for update based on the timestamp includes: in response to an abnormality in the BIOS firmware after the update, restoring the update item and determining a new BIOS for update based on the timestamp again. Mirror file.
本发明实施例的另一方面,提供了一种升级BIOS固件的系统,包括:开启模块,配置用于响应于对BIOS固件进行更新,开启BIOS镜像档并判断所述BIOS镜像档是否包括BIOS固件的属性;采集模块,配置用于响应于所述BIOS镜像档包括BIOS固件的属性,确定所述BIOS镜像档中签名的位置,根据所述签名的位置确定固件卷头,并根据所述固件卷头获取实际分区的偏移量和大小;判断模块,配置用于基于所述固件卷头的属性判断所述实际分区是否为所述BIOS固件的配置分区;以及执行模块,配置用于响应于所述实际分区是所述BIOS固件的配置分区,使用所述偏移量和大小对所述BIOS固件的配置分区进行更新。Another aspect of the embodiment of the present invention provides a system for upgrading BIOS firmware, including: an opening module configured to respond to updating the BIOS firmware, opening a BIOS image file and determining whether the BIOS image file includes BIOS firmware. attributes; a collection module configured to respond to the BIOS image file including attributes of the BIOS firmware, determine the location of the signature in the BIOS image file, determine the firmware volume header according to the location of the signature, and determine the firmware volume header according to the location of the signature. header to obtain the offset and size of the actual partition; a judgment module configured to judge whether the actual partition is a configuration partition of the BIOS firmware based on the attributes of the firmware volume header; and an execution module configured to respond to the The actual partition is a configuration partition of the BIOS firmware, and the offset and size are used to update the configuration partition of the BIOS firmware.
本发明实施例的又一方面,还提供了一种计算机设备,包括:至少一个处理器;以及存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现如上方法的步骤。In yet another aspect of the embodiment of the present invention, a computer device is provided, including: at least one processor; and a memory, where the memory stores computer instructions that can be run on the processor, and the instructions are generated by the The steps to implement the above method are implemented when the processor executes.
本发明实施例的再一方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时实现如上方法步骤的计算机程序。In another aspect of the embodiment of the present invention, a computer-readable storage medium is also provided. The computer-readable storage medium stores a computer program that implements the above method steps when executed by a processor.
本发明具有以下有益技术效果:通过固件卷头获取实际分区的偏移量和大小,并使用偏移量和大小对BIOS固件的配置分区进行更新从而实现了与BIOS解耦,无需因为BIOS配置分区偏移量的改变,而造成BMC在更新BIOS固件时无法保留配置,并且还可以完整的保留BIOS所有的配置项。The present invention has the following beneficial technical effects: it obtains the offset and size of the actual partition through the firmware volume header, and uses the offset and size to update the configuration partition of the BIOS firmware, thereby achieving decoupling from the BIOS without having to configure the partition for the BIOS. The change in offset causes BMC to be unable to retain the configuration when updating the BIOS firmware, and it can also retain all BIOS configuration items completely.
附图说明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 diagram of an embodiment of a method for upgrading BIOS firmware provided by the present invention;
图2为本发明提供的升级BIOS固件的计算机设备的实施例的硬件结构示意图;Figure 2 is a schematic diagram of the hardware structure of an embodiment of a computer device for upgrading BIOS firmware provided by the present invention;
图3为本发明提供的升级BIOS固件的计算机存储介质的实施例的示意图。FIG. 3 is a schematic diagram of an embodiment of a computer storage medium for upgrading BIOS firmware provided by 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.
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities or parameters with the same name but not the same, so it can be seen that "first" and "second" It is only for the convenience of description and should not be understood as a limitation on the embodiments of the present invention, and subsequent embodiments will not describe this one by one.
本发明实施例的第一个方面,提出了一种升级BIOS固件的方法的实施例。图1示出的是本发明提供的升级BIOS固件的方法的实施例的示意图。如图1所示,本发明实施例包括如下步骤:A first aspect of the embodiment of the present invention provides an embodiment of a method for upgrading BIOS firmware. Figure 1 shows a schematic diagram of an embodiment of a method for upgrading BIOS firmware provided by the present invention. As shown in Figure 1, the embodiment of the present invention includes the following steps:
S1、响应于对BIOS固件进行更新,开启BIOS镜像档并判断所述BIOS镜像档是否包括BIOS固件的属性;S1. In response to updating the BIOS firmware, open the BIOS image file and determine whether the BIOS image file includes attributes of the BIOS firmware;
S2、响应于所述BIOS镜像档包括BIOS固件的属性,确定所述BIOS镜像档中签名的位置,根据所述签名的位置确定固件卷头,并根据所述固件卷头获取实际分区的偏移量和大小;S2. In response to the BIOS image file including the attributes of the BIOS firmware, determine the location of the signature in the BIOS image file, determine the firmware volume header based on the location of the signature, and obtain the offset of the actual partition based on the firmware volume header. quantity and size;
S3、基于所述固件卷头的属性判断所述实际分区是否为所述BIOS固件的配置分区;以及S3. Determine whether the actual partition is the configuration partition of the BIOS firmware based on the attributes of the firmware volume header; and
S4、响应于所述实际分区是所述BIOS固件的配置分区,使用所述偏移量和大小对所述BIOS固件的配置分区进行更新。S4. In response to the actual partition being the configuration partition of the BIOS firmware, update the configuration partition of the BIOS firmware using the offset and size.
BIOS,即基础输入输出系统,是刻在主板ROM(Read Only Memory,只读存储器)芯片上不可篡改的启动程序,BIOS负责计算系统自检程序(POST,Power On Self Test)和系统自启动程序,因此是计算机系统启动后的第一道程式。由于不可篡改性,故程序存储在ROM芯片中,并且在断电后,依然可以维持原有设置。BIOS, or Basic Input and Output System, is an untamperable startup program engraved on the motherboard ROM (Read Only Memory) chip. BIOS is responsible for computing the system self-test program (POST, Power On Self Test) and system self-startup program. , so it is the first program after the computer system is started. Because it cannot be tampered with, the program is stored in the ROM chip, and the original settings can still be maintained after the power is turned off.
BMC,即基板管理控制器,是独立于服务器系统之外的小型操作系统,是一个集成在主板上的芯片,也有产品是通过PCIE(Peripheral Component Interface Express,总线和接口标准)等形式插在主板上,对外表现形式只是一个标准的RJ45网口,拥有独立IP(Internet Protocol,互联网协议)的固件系统。服务器集群一般使用BMC指令进行大规模无人值守操作,包括服务器的远程管理、监控、安装和重启等。BMC, or Baseboard Management Controller, is a small operating system independent of the server system. It is a chip integrated on the motherboard. There are also products that are plugged into the motherboard through PCIE (Peripheral Component Interface Express, bus and interface standard). On the outside, the external manifestation is just a standard RJ45 network port and a firmware system with an independent IP (Internet Protocol). Server clusters generally use BMC instructions to perform large-scale unattended operations, including remote management, monitoring, installation and restart of servers.
一个对象,往往需要跟其他对象打交道,既包括获知其他对象的状态,也包括依赖其他对象的行为,而一旦发生了依赖关系,则认为该对象依赖于另一对象,只要两个对象之间存在一方依赖另一方的关系,就认为这两个对象之间存在耦合。现有技术中,只要BIOS因为配置项更新而改变偏移量,BMC也要随着同步更新,也即是BIOS和BMC之间存在耦合关系。An object often needs to deal with other objects, including knowing the status of other objects and relying on the behavior of other objects. Once a dependency relationship occurs, the object is considered to be dependent on another object, as long as there is a relationship between the two objects. A relationship in which one party is dependent on the other is considered to be coupled between the two objects. In the existing technology, as long as the BIOS changes the offset due to the configuration item update, the BMC will also be updated synchronously, that is, there is a coupling relationship between the BIOS and the BMC.
为了避免出现这种关系,实现BMC与BIOS之间解耦的方法主要包括以下几种:In order to avoid this relationship, the methods to achieve decoupling between BMC and BIOS mainly include the following:
第一种方法是通过扩充结构体的方式实现。定义BIOS与BMC之间交互的数据结构,当一方新增需求的时候,则在结构体的最后进行相应的数据扩充,如果BIOS扩充结构体,搭配老版本的BMC时,BMC不解析新扩充的内容即可,如果BMC扩充结构体,搭配老版本的BIOS时,则BMC收不到BIOS发送的扩充结构体的内容,按照默认策略执行即可。此种方式易于实现BIOS与BMC之间数据的整体性处理,但是BIOS与BMC之间交互的信息比较多,很多情况下需要针对不同的信息类型进行分类处理,因此这种方法缺乏灵活性和易扩展性;The first method is to expand the structure. Define the data structure for interaction between BIOS and BMC. When one party adds new requirements, the corresponding data will be expanded at the end of the structure. If the BIOS expands the structure and is paired with an old version of BMC, BMC will not parse the newly expanded data. The content is sufficient. If the BMC expands the structure and is paired with an old version of BIOS, the BMC will not receive the content of the expanded structure sent by the BIOS, and it can be executed according to the default policy. This method is easy to realize the overall processing of data between BIOS and BMC, but there is a lot of information exchanged between BIOS and BMC. In many cases, different information types need to be classified and processed, so this method lacks flexibility and ease. scalability;
第二种方法是将BMC和BIOS的交互信息进行分类,比方说fru信息,CPU资产信息,PCIE资产信息等,每个类型对应一个编码,每次只传输一种类型的信息,当需要扩充其中一种类型的结构体的时候,不在该结构上进行扩充,而是新增一种类型编码,重新组织该种类型的数据。这种方法保证了之前原有数据的完整性,但是当BMC不支持新扩充的数据类型而BIOS支持的时候,BIOS盲目发送给BMC或会造成BMC无法正常返回,BIOS进行重试等操作会影响服务器的开机速度,严重者还会导致直接触发IPMI(Intelligent PlatformManagement Interface,智能平台管理接口)Watchdog(看门狗)出现服务器重启关机等严重后果。The second method is to classify the interactive information between BMC and BIOS, such as fru information, CPU asset information, PCIE asset information, etc. Each type corresponds to a code. Only one type of information is transmitted at a time. When it is necessary to expand it When a type of structure is created, the structure is not expanded, but a new type of encoding is added to reorganize the data of that type. This method ensures the integrity of the original data. However, when the BMC does not support the newly expanded data type but the BIOS does, blindly sending the BIOS to the BMC may cause the BMC to fail to return normally, and the BIOS may retry and other operations. The startup speed of the server, in severe cases, may directly trigger IPMI (Intelligent Platform Management Interface, Intelligent Platform Management Interface) Watchdog (watchdog), resulting in serious consequences such as server restart and shutdown.
本发明实施例提出一种动态查找BIOS配置分区的方法,帮助BMC不用因为BIOS配置的偏移量改变,或是配置项的定制增加/減少,而需修改相关代码,与BIOS同步发行,无法实现解耦的目的。The embodiment of the present invention proposes a method for dynamically searching BIOS configuration partitions to help BMC without having to modify relevant codes due to changes in the offset of the BIOS configuration or the customization of configuration items to increase/decrease and release them simultaneously with the BIOS, which cannot be achieved. The purpose of decoupling.
响应于对BIOS固件进行更新,开启BIOS镜像档并判断所述BIOS镜像档是否包括BIOS固件的属性。当用户要做BIOS固件更新时会上传一个BIOS镜像档,BIOS镜像档可以是记录BIOS镜像信息的文档。在上传过程中可以实时判断是否上传成功,在BIOS镜像档上传成功后,BMC会开启上传的BIOS镜像档。In response to updating the BIOS firmware, the BIOS image file is opened and it is determined whether the BIOS image file includes attributes of the BIOS firmware. When a user wants to update the BIOS firmware, he or she will upload a BIOS image file. The BIOS image file can be a document that records BIOS image information. During the upload process, you can determine whether the upload is successful in real time. After the BIOS image file is successfully uploaded, the BMC will open the uploaded BIOS image file.
本发明实施例中在所述BIOS固件中给不同的分区分配对应的标识,根据所述标识创建属性表,并将所述属性表同步到所述BIOS镜像档。例如:BIOS的属性(attribute)分区的标识为0x10000000,BIOS的引导程序(bootloader)分区的标识是0x10000001,BIOS的配置(NVRAM,Non-Volatile Random Access Memory,非易失随机存取存储器)分区的标识为0x10000002,BIOS的备份(Backup)配置分区的标识为0x10000004,具体可以参见下表:In the embodiment of the present invention, corresponding identifiers are assigned to different partitions in the BIOS firmware, an attribute table is created according to the identifiers, and the attribute table is synchronized to the BIOS image file. For example: the ID of the BIOS attribute partition is 0x10000000, the ID of the BIOS bootloader partition is 0x10000001, and the ID of the BIOS configuration (NVRAM, Non-Volatile Random Access Memory, non-volatile random access memory) partition. The identification is 0x10000002, and the identification of the BIOS backup (Backup) configuration partition is 0x10000004. For details, please refer to the following table:
响应于所述BIOS镜像档包括BIOS固件的属性,确定所述BIOS镜像档中签名的位置,根据所述签名的位置确定固件卷头,并根据所述固件卷头获取实际分区的偏移量和大小。先确定此镜像档中0x10000000标识对应的是否为为BIOS固件属性分区,如果是,则可以确定BIOS镜像档中的签名的位置。In response to the BIOS image file including attributes of the BIOS firmware, determine the location of the signature in the BIOS image file, determine the firmware volume header based on the location of the signature, and obtain the offset and sum of the actual partition based on the firmware volume header. size. First determine whether the 0x10000000 mark in this image file corresponds to the BIOS firmware attribute partition. If so, you can determine the location of the signature in the BIOS image file.
在创建BIOS镜像档时可以对BIOS的镜像进行数字签名以得到加密的镜像,数字签名的内容可以不做具体的限制,容易理解的是,其至少包括镜像运行加密算法后得到的签名值等加密信息,除此之外,数字签名还可以包括BIOS固件的信息,例如,BIOS镜像的创建时间以及BIOS镜像的大小。When creating a BIOS image file, you can digitally sign the BIOS image to obtain an encrypted image. The content of the digital signature does not need to be specifically limited. It is easy to understand that it at least includes encryption such as the signature value obtained after running the encryption algorithm on the image. Information, in addition, the digital signature can also include information about the BIOS firmware, such as the creation time of the BIOS image and the size of the BIOS image.
本实施例并不限定加密算法的类型,本实施例只是示例性的提供一种设置数字签名的方法,对BIOS的配置分区使用预设算法生成摘要信息,利用私钥对摘要信息加密,将加密后的密文与BIOS的配置分区打包得到配置包,将镜像包发送到检测模块以判断数字签名是否可信。检测模块可以是RTU(Root of Trust for Update,更新的信任根),RTU可以是单独的模块,也可以是服务器中可信任的元器件或模块,如果RTU是单独的模块,其一端需要与BIOS Flash(闪存)相连,另一端与服务器的处理端相连,这里的处理端包括但不限于BMC。This embodiment does not limit the type of encryption algorithm. This embodiment only provides an exemplary method for setting a digital signature. It uses a preset algorithm to generate summary information for the configuration partition of the BIOS, uses a private key to encrypt the summary information, and encrypts the summary information. The final ciphertext is packaged with the BIOS configuration partition to obtain a configuration package, and the image package is sent to the detection module to determine whether the digital signature is trustworthy. The detection module can be RTU (Root of Trust for Update, updated root of trust). RTU can be a separate module or a trusted component or module in the server. If RTU is a separate module, one end of it needs to be connected to the BIOS. Flash (flash memory) is connected, and the other end is connected to the processing end of the server. The processing end here includes but is not limited to BMC.
在一些实施方式中,所述确定所述BIOS镜像档中签名的位置包括:从所述BIOS镜像档的头部开始向尾部依次匹配签名,响应于匹配成功,记录所述签名在所述BIOS镜像档中所在的位置。如果确认此镜像档为BIOS固件后,开始从镜像档的头到尾寻找签名。本发明实施例中可以采用RTU对配置包进行解密,RTU利用私钥对应的公钥对配置包进行解密,得到实际摘要信息;判断实际摘要信息和BIOS镜像档中的摘要信息是否一致,如果一致,则配置包可信,对应的签名匹配成功。具体的,在实际的操作中,可以判断当前是否到达BIOS镜像档的最末端,如果没有,则判断当前位置是否有签名,如果有,是否匹配成功,如果匹配成功,记录当前位置。In some embodiments, determining the location of the signature in the BIOS image file includes: matching signatures in sequence from the head to the tail of the BIOS image file, and in response to a successful match, recording the signature in the BIOS image file. The location in the file. If you confirm that the image file is BIOS firmware, start looking for signatures from the beginning to the end of the image file. In the embodiment of the present invention, RTU can be used to decrypt the configuration package. The RTU uses the public key corresponding to the private key to decrypt the configuration package to obtain the actual summary information; it is judged whether the actual summary information is consistent with the summary information in the BIOS image file. If they are consistent, , then the configuration package is trusted and the corresponding signature matches successfully. Specifically, in actual operation, it can be judged whether the end of the BIOS image file has been reached. If not, it is judged whether there is a signature at the current position. If so, whether the match is successful. If the match is successful, the current position is recorded.
在一些实施方式中,所述根据所述签名的位置确定固件卷头包括:确定所述签名的映射关系,并基于所述签名的位置和所述映射关系确定所述固件卷头。当找到签名后,同时也会映射到一个数据结构体(即firmware volume header,固件卷头),而这个数据结构体里面包含了有签名、属性、偏移量和分区大小等信息。基于所述固件卷头的属性判断所述实际分区是否为所述BIOS固件的配置分区。在一些实施方式中,所述基于所述固件卷头的属性判断所述实际分区是否为所述BIOS固件的配置分区包括:判断所述镜像档中的属性表是否存在所述配置分区的标识。此时BMC开始检测镜像档中的属性表是否存在所述配置分区的标识,如果存在配置分区的标识,例如NVRAM或者Backup NVRAM,或者0x10000002或0x10000004,此时就可以记录分区的偏移量和分区的大小。In some embodiments, determining the firmware volume header based on the location of the signature includes: determining a mapping relationship of the signature, and determining the firmware volume header based on the location of the signature and the mapping relationship. When the signature is found, it will also be mapped to a data structure (i.e., firmware volume header, firmware volume header), and this data structure contains information such as signature, attributes, offset, and partition size. Determine whether the actual partition is a configuration partition of the BIOS firmware based on the attributes of the firmware volume header. In some embodiments, determining whether the actual partition is a configuration partition of the BIOS firmware based on the attributes of the firmware volume header includes: determining whether an identifier of the configuration partition exists in the attribute table in the image file. At this time, BMC begins to detect whether the attribute table in the image file contains the identifier of the configuration partition. If there is the identifier of the configuration partition, such as NVRAM or Backup NVRAM, or 0x10000002 or 0x10000004, the offset and partition of the partition can be recorded at this time. the size of.
响应于所述实际分区是所述BIOS固件的配置分区,使用所述偏移量和大小对所述BIOS固件的配置分区进行更新。In response to the actual partition being a configuration partition of the BIOS firmware, the configuration partition of the BIOS firmware is updated using the offset and size.
在实际将BIOS固件更新到SPI(Serial Peripheral Interface,串行外设接口)flash时,可以套用一样的方式来确定BIOS配置信息。如果用户决定保留BIOS配置分区的话,就可以在更新过程中,根据记录的分区信息,来跳过对应的分区以保留BIOS配置。When actually updating the BIOS firmware to SPI (Serial Peripheral Interface, Serial Peripheral Interface) flash, the same method can be applied to determine the BIOS configuration information. If the user decides to retain the BIOS configuration partition, he can skip the corresponding partition according to the recorded partition information during the update process to retain the BIOS configuration.
在一些实施方式中,方法还包括:响应于存在多个BIOS镜像档,读取每个BIOS镜像档中实际分区的偏移量和大小对应的时间戳,并根据所述时间戳确定用于更新的BIOS镜像档。如果同时打开了多个BIOS镜像档,在上述步骤不变的情况下可以获取多组偏移量和大小,可以同时获取每组偏移量和大小对应的时间戳,时间戳上表示的时刻距离当前时刻越近就表明偏移量和大小的数据越新。如果需要最新的数据则可以采用距离当前时刻最近的偏移量和大小来更新BIOS中的配置分区。In some embodiments, the method further includes: in response to the existence of multiple BIOS image files, reading the timestamp corresponding to the offset and size of the actual partition in each BIOS image file, and determining the time stamp for updating based on the timestamp. BIOS image file. If multiple BIOS image files are opened at the same time, multiple sets of offsets and sizes can be obtained while the above steps remain unchanged. The timestamp corresponding to each set of offsets and sizes can be obtained at the same time, and the time distance represented on the timestamp The closer the current time is, the more recent the offset and size data are. If you need the latest data, you can use the offset and size closest to the current moment to update the configuration partition in the BIOS.
在一些实施方式中,所述根据所述时间戳确定用于更新的BIOS镜像档包括:响应于更新后BIOS固件出现异常,还原更新项并再次根据所述时间戳确定新的用于更新的BIOS镜像档。如果更新后BIOS固件出现异常,表明可能某些配置项与BIOS固件不兼容,可以再次选择BIOS镜像档对BIOS固件的配置分区进行更新。In some embodiments, determining the BIOS image file for update based on the timestamp includes: in response to an abnormality in the BIOS firmware after the update, restoring the update item and determining a new BIOS for update based on the timestamp again. Mirror file. If the BIOS firmware is abnormal after the update, it indicates that some configuration items may be incompatible with the BIOS firmware. You can select the BIOS image file again to update the configuration partition of the BIOS firmware.
本发明实施例通过查找BIOS固件镜像档是否包含对应的签名,进而根据签名得知BIOS配置分区的属性,与BIOS固件比对BIOS配置分区的属性的正确性之后,确保此分区实际为BIOS配置分区,即可得知此分区偏移量位置及计算出分区的大小,实际在操作更新BIOS固件时,可跳过此分区不做更新动作,以达到完整保留BIOS配置的目的。另外也可让BMC记录此分区的信息,如果使用者因为调整了某些配置项而造成不能开机的问题时,也可以将此配置项还原,确保服务器能正常运作。The embodiment of the present invention searches whether the BIOS firmware image file contains a corresponding signature, and then learns the attributes of the BIOS configuration partition based on the signature. After comparing the correctness of the attributes of the BIOS configuration partition with the BIOS firmware, it is ensured that this partition is actually a BIOS configuration partition. , you can know the offset position of this partition and calculate the size of the partition. When actually updating the BIOS firmware, you can skip this partition and not perform the update action to achieve the purpose of completely retaining the BIOS configuration. In addition, BMC can also be used to record the information of this partition. If the user cannot boot due to adjusting certain configuration items, the user can also restore the configuration items to ensure that the server can operate normally.
需要特别指出的是,上述升级BIOS固件的方法的各个实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于升级BIOS固件的方法也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在实施例之上。It should be particularly pointed out that each step in each embodiment of the method for upgrading BIOS firmware can be crossed, replaced, added, or deleted. Therefore, these reasonable permutations and combinations should also be included in the method for upgrading BIOS firmware. protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
基于上述目的,本发明实施例的第二个方面,提出了一种升级BIOS固件的系统,包括:开启模块,配置用于响应于对BIOS固件进行更新,开启BIOS镜像档并判断所述BIOS镜像档是否包括BIOS固件的属性;采集模块,配置用于响应于所述BIOS镜像档包括BIOS固件的属性,确定所述BIOS镜像档中签名的位置,根据所述签名的位置确定固件卷头,并根据所述固件卷头获取实际分区的偏移量和大小;判断模块,配置用于基于所述固件卷头的属性判断所述实际分区是否为所述BIOS固件的配置分区;以及执行模块,配置用于响应于所述实际分区是所述BIOS固件的配置分区,使用所述偏移量和大小对所述BIOS固件的配置分区进行更新。Based on the above purpose, a second aspect of the embodiment of the present invention proposes a system for upgrading BIOS firmware, including: an opening module configured to open a BIOS image file and determine the BIOS image file in response to updating the BIOS firmware. whether the file includes the attributes of the BIOS firmware; the acquisition module is configured to determine the location of the signature in the BIOS image file in response to the BIOS image file including the attributes of the BIOS firmware, determine the firmware volume header according to the location of the signature, and Obtain the offset and size of the actual partition according to the firmware volume header; a determination module configured to determine whether the actual partition is a configuration partition of the BIOS firmware based on the attributes of the firmware volume header; and an execution module configured In response to the actual partition being a configuration partition of the BIOS firmware, use the offset and the size to update the configuration partition of the BIOS firmware.
在一些实施方式中,系统还包括创建模块,配置用于:在所述BIOS固件中给不同的分区分配对应的标识,根据所述标识创建属性表,并将所述属性表同步到所述BIOS镜像档。In some implementations, the system further includes a creation module configured to: assign corresponding identifiers to different partitions in the BIOS firmware, create an attribute table according to the identifier, and synchronize the attribute table to the BIOS. Mirror file.
在一些实施方式中,所述采集模块配置用于:从所述BIOS镜像档的头部开始向尾部依次匹配签名,响应于匹配成功,记录所述签名在所述BIOS镜像档中所在的位置。In some embodiments, the collection module is configured to: match signatures in sequence from the head to the end of the BIOS image file, and record the location of the signature in the BIOS image file in response to a successful match.
在一些实施方式中,所述采集模块配置用于:确定所述签名的映射关系,并基于所述签名的位置和所述映射关系确定所述固件卷头。In some implementations, the collection module is configured to: determine a mapping relationship of the signature, and determine the firmware volume header based on the location of the signature and the mapping relationship.
在一些实施方式中,所述判断模块配置用于:判断所述镜像档中的属性表是否存在所述配置分区的标识。In some implementations, the determination module is configured to determine whether the attribute table in the image file contains the identifier of the configuration partition.
在一些实施方式中,系统还包括读取模块,配置用于:响应于存在多个BIOS镜像档,读取每个BIOS镜像档中实际分区的偏移量和大小对应的时间戳,并根据所述时间戳确定用于更新的BIOS镜像档。In some embodiments, the system further includes a reading module configured to: in response to the existence of multiple BIOS image files, read the offset and timestamp corresponding to the size of the actual partition in each BIOS image file, and read the timestamp according to the The timestamp above determines the BIOS image file used for the update.
在一些实施方式中,所述读取模块配置用于:响应于更新后BIOS固件出现异常,还原更新项并再次根据所述时间戳确定新的用于更新的BIOS镜像档。In some implementations, the reading module is configured to: in response to an abnormality in the BIOS firmware after the update, restore the update item and determine a new BIOS image file for update based on the timestamp again.
基于上述目的,本发明实施例的第三个方面,提出了一种计算机设备,包括:至少一个处理器;以及存储器,存储器存储有可在处理器上运行的计算机指令,指令由处理器执行以实现如下步骤:S1、响应于对BIOS固件进行更新,开启BIOS镜像档并判断所述BIOS镜像档是否包括BIOS固件的属性;S2、响应于所述BIOS镜像档包括BIOS固件的属性,确定所述BIOS镜像档中签名的位置,根据所述签名的位置确定固件卷头,并根据所述固件卷头获取实际分区的偏移量和大小;S3、基于所述固件卷头的属性判断所述实际分区是否为所述BIOS固件的配置分区;以及S4、响应于所述实际分区是所述BIOS固件的配置分区,使用所述偏移量和大小对所述BIOS固件的配置分区进行更新。Based on the above purpose, a third aspect of the embodiment of the present invention proposes a computer device, including: at least one processor; and a memory, the memory stores computer instructions that can be run on the processor, and the instructions are executed by the processor to Implement the following steps: S1. In response to updating the BIOS firmware, open the BIOS image file and determine whether the BIOS image file includes the attributes of the BIOS firmware; S2. In response to the BIOS image file including the attributes of the BIOS firmware, determine whether the BIOS image file includes the attributes of the BIOS firmware. The location of the signature in the BIOS image file, determine the firmware volume header based on the location of the signature, and obtain the offset and size of the actual partition based on the firmware volume header; S3. Determine the actual partition based on the attributes of the firmware volume header. Whether the partition is the configuration partition of the BIOS firmware; and S4, in response to the actual partition being the configuration partition of the BIOS firmware, update the configuration partition of the BIOS firmware using the offset and size.
在一些实施方式中,步骤还包括:在所述BIOS固件中给不同的分区分配对应的标识,根据所述标识创建属性表,并将所述属性表同步到所述BIOS镜像档。In some implementations, the step further includes: assigning corresponding identifiers to different partitions in the BIOS firmware, creating an attribute table according to the identifiers, and synchronizing the attribute table to the BIOS image file.
在一些实施方式中,所述确定所述BIOS镜像档中签名的位置包括:从所述BIOS镜像档的头部开始向尾部依次匹配签名,响应于匹配成功,记录所述签名在所述BIOS镜像档中所在的位置。In some embodiments, determining the location of the signature in the BIOS image file includes: matching signatures in sequence from the head to the tail of the BIOS image file, and in response to a successful match, recording the signature in the BIOS image file. The location in the file.
在一些实施方式中,所述根据所述签名的位置确定固件卷头包括:确定所述签名的映射关系,并基于所述签名的位置和所述映射关系确定所述固件卷头。In some embodiments, determining the firmware volume header based on the location of the signature includes: determining a mapping relationship of the signature, and determining the firmware volume header based on the location of the signature and the mapping relationship.
在一些实施方式中,所述基于所述固件卷头的属性判断所述实际分区是否为所述BIOS固件的配置分区包括:判断所述镜像档中的属性表是否存在所述配置分区的标识。In some embodiments, determining whether the actual partition is a configuration partition of the BIOS firmware based on the attributes of the firmware volume header includes: determining whether an identifier of the configuration partition exists in the attribute table in the image file.
在一些实施方式中,步骤还包括:响应于存在多个BIOS镜像档,读取每个BIOS镜像档中实际分区的偏移量和大小对应的时间戳,并根据所述时间戳确定用于更新的BIOS镜像档。In some embodiments, the step further includes: in response to the existence of multiple BIOS image files, reading the timestamp corresponding to the offset and size of the actual partition in each BIOS image file, and determining the time stamp for updating based on the timestamp. BIOS image file.
在一些实施方式中,所述根据所述时间戳确定用于更新的BIOS镜像档包括:响应于更新后BIOS固件出现异常,还原更新项并再次根据所述时间戳确定新的用于更新的BIOS镜像档。In some embodiments, determining the BIOS image file for update based on the timestamp includes: in response to an abnormality in the BIOS firmware after the update, restoring the update item and determining a new BIOS for update based on the timestamp again. Mirror file.
如图2所示,为本发明提供的上述升级BIOS固件的计算机设备的一个实施例的硬件结构示意图。As shown in Figure 2, it is a schematic diagram of the hardware structure of one embodiment of the computer device for upgrading BIOS firmware provided by the present invention.
以如图2所示的装置为例,在该装置中包括一个处理器201以及一个存储器202,并还可以包括:输入装置203和输出装置204。Taking the device shown in Figure 2 as an example, the device includes a processor 201 and a memory 202, and may also include: an input device 203 and an output device 204.
处理器201、存储器202、输入装置203和输出装置204可以通过总线或者其他方式连接,图2中以通过总线连接为例。The processor 201, the memory 202, the input device 203 and the output device 204 can be connected through a bus or other means. In Figure 2, connection through a bus is taken as an example.
存储器202作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的升级BIOS固件的方法对应的程序指令/模块。处理器201通过运行存储在存储器202中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的升级BIOS固件的方法。As a non-volatile computer-readable storage medium, the memory 202 can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the method for upgrading BIOS firmware in the embodiment of the present application. Program instructions/modules. The processor 201 executes various functional applications and data processing of the server by running non-volatile software programs, instructions and modules stored in the memory 202, that is, implementing the method of upgrading BIOS firmware in the above method embodiment.
存储器202可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据升级BIOS固件的方法的使用所创建的数据等。此外,存储器202可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器202可选包括相对于处理器201远程设置的存储器,这些远程存储器可以通过网络连接至本地模块。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 202 may include a program storage area and a data storage area, where the program storage area may store an operating system and an application program required for at least one function; the storage data area may store data created according to the use of the method of upgrading BIOS firmware, etc. In addition, the memory 202 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 202 optionally includes memory located remotely relative to processor 201, and these remote memories may be connected to local modules through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
输入装置203可接收输入的用户名和密码等信息。输出装置204可包括显示屏等显示设备。The input device 203 can receive input information such as user name and password. The output device 204 may include a display device such as a display screen.
一个或者多个升级BIOS固件的方法对应的程序指令/模块存储在存储器202中,当被处理器201执行时,执行上述任意方法实施例中的升级BIOS固件的方法。Program instructions/modules corresponding to one or more methods for upgrading BIOS firmware are stored in the memory 202. When executed by the processor 201, the method for upgrading BIOS firmware in any of the above method embodiments is executed.
执行上述升级BIOS固件的方法的计算机设备的任何一个实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Any embodiment of a computer device that performs the above method for upgrading BIOS firmware can achieve the same or similar effects as the corresponding any of the foregoing method embodiments.
本发明还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时执行如上方法的计算机程序。The present invention also provides a computer-readable storage medium, which stores a computer program that performs the above method when executed by a processor.
如图3所示,为本发明提供的上述升级BIOS固件的计算机存储介质的一个实施例的示意图。以如图3所示的计算机存储介质为例,计算机可读存储介质3存储有被处理器执行时执行如上方法的计算机程序31。As shown in Figure 3, it is a schematic diagram of one embodiment of the computer storage medium for upgrading BIOS firmware provided by the present invention. Taking the computer storage medium as shown in FIG. 3 as an example, the computer-readable storage medium 3 stores a computer program 31 that performs the above method when executed by a processor.
最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,升级BIOS固件的方法的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,程序的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Finally, 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 program of the method of upgrading BIOS firmware can be stored in a computer-readable file. When the program is retrieved from the storage medium and executed, it may include the processes of the above-mentioned method embodiments. Among them, the storage medium of the program can be a magnetic disk, an optical disk, a read-only memory (ROM) or a 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.
以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。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 (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110561826.5A CN113238778B (en) | 2021-05-23 | 2021-05-23 | Method, system, equipment and medium for upgrading BIOS firmware |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110561826.5A CN113238778B (en) | 2021-05-23 | 2021-05-23 | Method, system, equipment and medium for upgrading BIOS firmware |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113238778A CN113238778A (en) | 2021-08-10 |
| CN113238778B true CN113238778B (en) | 2024-02-13 |
Family
ID=77138307
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110561826.5A Active CN113238778B (en) | 2021-05-23 | 2021-05-23 | Method, system, equipment and medium for upgrading BIOS firmware |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113238778B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114995893B (en) * | 2022-08-01 | 2022-11-01 | 摩尔线程智能科技(北京)有限责任公司 | Firmware management method, flash memory, host and storage medium |
| CN118394368B (en) * | 2024-06-27 | 2024-10-01 | 苏州元脑智能科技有限公司 | Basic input output system layout information generating method, updating method and product |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111381850A (en) * | 2020-02-21 | 2020-07-07 | 苏州浪潮智能科技有限公司 | BIOS firmware upgrading method, device, equipment and medium |
| CN111414174A (en) * | 2020-03-13 | 2020-07-14 | 苏州浪潮智能科技有限公司 | A server firmware upgrade method, device and related equipment |
| CN112507343A (en) * | 2020-12-11 | 2021-03-16 | 浪潮电子信息产业股份有限公司 | BIOS updating method, device, equipment and medium |
| CN112817621A (en) * | 2021-01-22 | 2021-05-18 | 浪潮电子信息产业股份有限公司 | BIOS firmware refreshing method and device and related components |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8589302B2 (en) * | 2009-11-30 | 2013-11-19 | Intel Corporation | Automated modular and secure boot firmware update |
-
2021
- 2021-05-23 CN CN202110561826.5A patent/CN113238778B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111381850A (en) * | 2020-02-21 | 2020-07-07 | 苏州浪潮智能科技有限公司 | BIOS firmware upgrading method, device, equipment and medium |
| CN111414174A (en) * | 2020-03-13 | 2020-07-14 | 苏州浪潮智能科技有限公司 | A server firmware upgrade method, device and related equipment |
| CN112507343A (en) * | 2020-12-11 | 2021-03-16 | 浪潮电子信息产业股份有限公司 | BIOS updating method, device, equipment and medium |
| CN112817621A (en) * | 2021-01-22 | 2021-05-18 | 浪潮电子信息产业股份有限公司 | BIOS firmware refreshing method and device and related components |
Non-Patent Citations (1)
| Title |
|---|
| ‘BIOS采样分析系统的设计与实现’;王晓箴 等;《计算机工程》;第37卷(第11期);第7-9页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113238778A (en) | 2021-08-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9195451B2 (en) | Server system and update method thereof | |
| EP2472402B1 (en) | Remote management systems and methods for mapping operating system and management controller located in a server | |
| WO2019184164A1 (en) | Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium | |
| CN108509215B (en) | System software replacing method and device, terminal equipment and storage medium | |
| WO2020224238A1 (en) | Blockchain node depolyment method, device and equipment, and storage medium | |
| CN113238778B (en) | Method, system, equipment and medium for upgrading BIOS firmware | |
| CN112235136B (en) | Network file system backup method, system, terminal and storage medium | |
| US11354259B1 (en) | Computer system configurations based on accessing data elements presented by baseboard management controllers | |
| CN110968477B (en) | A method, device and medium for obtaining backup BMC version information | |
| CN115756496B (en) | Mirror image compiling method and device, computer readable storage medium and electronic equipment | |
| CN113986835A (en) | Management method, device, equipment and storage medium for FastDFS distributed files | |
| US20200342109A1 (en) | Baseboard management controller to convey data | |
| US12067121B2 (en) | Trusted boot method and apparatus, electronic device, and readable storage medium | |
| CN112099902A (en) | Network adapter configuration method and device of virtual machine, electronic device and storage medium | |
| US12175257B2 (en) | Provisioning DPU management operating systems using host and DPU boot coordination | |
| CN111913719B (en) | Deployment method, device and apparatus of high-availability software and computer storage medium | |
| CN114115955B (en) | Method, system, terminal and storage medium for upgrading FPGA firmware of server resource box | |
| TWI514279B (en) | Server system and firmware update method | |
| US9230121B1 (en) | Techniques for persistently toggling a FIPS-140 cryptographic mode of a clustered storage system | |
| TWI501090B (en) | Server system and node detection method | |
| US20250252188A1 (en) | Firmware update method for embedded device, and embedded device | |
| CN113900890B (en) | Server component information collection method, device, equipment and medium | |
| CN111901325B (en) | Service extension method, device, electronic device and storage medium of honeypot node | |
| CN120371328B (en) | Image generation method, apparatus, device, storage medium, and program product | |
| US20250138948A1 (en) | Managing data backup for data processing systems using out-of-band methods |
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 |