CN113064617B - Method, system and storage medium for updating SMBIOS information - Google Patents
Method, system and storage medium for updating SMBIOS information Download PDFInfo
- Publication number
- CN113064617B CN113064617B CN202110338469.6A CN202110338469A CN113064617B CN 113064617 B CN113064617 B CN 113064617B CN 202110338469 A CN202110338469 A CN 202110338469A CN 113064617 B CN113064617 B CN 113064617B
- Authority
- CN
- China
- Prior art keywords
- information
- smbios
- hardware
- adaptation
- model
- 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; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明涉及一种进行SMBIOS信息更新的方法、系统及存储介质,该方法包括以下步骤:S1:BIOS在基础代码中增加统一板级架构模块,在统一板级架构模块中增加多个机型适配单元;S2:BIOS分别在各机型适配单元中增加SMBIOS硬件适配信息表;S3:BIOS开机过程中读取主板ID号来判断当前机型,然后加载对应机型适配单元;S4:BIOS提取SMBIOS硬件适配信息表的信息,将信息添加到统一板级架构协议中;S5:BIOS加载统一板级架构协议并进行SMBIOS信息更新。本发明能够完成不同机型产品的硬件描述信息在SMBIOS中的更新,解决使用AMI厂商架构基础代码静态表描述硬件信息无法兼容多个机型产品的问题。
The invention relates to a method, system and storage medium for updating SMBIOS information. The method includes the following steps: S1: BIOS adds a unified board-level architecture module to the basic code, and adds multiple machine models to the unified board-level architecture module. Adaptation unit; S2: BIOS adds SMBIOS hardware adaptation information table to each model adaptation unit; S3: BIOS reads the motherboard ID number during startup to determine the current model, and then loads the corresponding model adaptation unit; S4 : BIOS extracts the information from the SMBIOS hardware adaptation information table and adds the information to the unified board-level architecture protocol; S5: BIOS loads the unified board-level architecture protocol and updates the SMBIOS information. The invention can complete the updating of hardware description information of different models of products in SMBIOS, and solves the problem that using the AMI manufacturer architecture basic code static table to describe hardware information cannot be compatible with multiple models of products.
Description
技术领域Technical field
本发明属于计算机技术领域,具体涉及一种进行SMBIOS信息更新的方法、系统及存储介质。The invention belongs to the field of computer technology, and specifically relates to a method, system and storage medium for updating SMBIOS information.
背景技术Background technique
基本输入输出系统(英文:Basic Input Output System,简称BIOS)是服务器主板最底层的、最直接的硬件设置和控制的管理者,能够为计算机提供最底层的、最直接的硬件设置和控制,并将硬件信息填入到SMBIOS中,供服务器使用者在操作系统下通过相关工具获取到SMBIOS信息以便对服务器硬件信息有更好的了解。The Basic Input Output System (English: Basic Input Output System, BIOS for short) is the lowest and most direct hardware settings and control manager of the server motherboard. It can provide the lowest and most direct hardware settings and control for the computer, and Fill in the hardware information into SMBIOS so that server users can obtain SMBIOS information through relevant tools under the operating system to have a better understanding of the server hardware information.
通常情况下SMBIOS中有些硬件信息在不同机型产品上的设定是不同的,如主板的连接器个数以及连接器的丝印名称,或者主板的跳线个数以及跳线的脚位名称等等。AMI厂商提供的基础代码一般是在代码中提供一个静态表文件,在静态表中将上述提到的硬件连接器、跳线的个数以及丝印信息等填入,然后通过编译将SMBIOS的上述硬件描述信息生成在镜像中。这种方法仅适用于单个机型产品,对于不同机型产品工程师需要按照本机型产品硬件设计进行静态表修改,然后重新编译,但是对于一套基础代码兼容多个不同机型产品来说,这种静态表描述硬件信息的方式就无法使用了。Usually some hardware information in SMBIOS has different settings on different models, such as the number of connectors on the motherboard and the silk-screen names of the connectors, or the number of jumpers on the motherboard and the pin names of the jumpers, etc. wait. The basic code provided by AMI manufacturers generally provides a static table file in the code. In the static table, the above-mentioned hardware connectors, the number of jumpers, and silk screen information are filled in, and then the above hardware of SMBIOS is compiled through compilation. Description information is generated in the image. This method is only applicable to a single model of product. For different models of products, engineers need to modify the static table according to the hardware design of the product model and then recompile. However, for a set of basic code to be compatible with multiple different models of products, This static table method of describing hardware information cannot be used.
有鉴于此,本发明提供一种进行SMBIOS信息更新的方法、系统及存储介质,以解决现有技术中存在的缺陷。In view of this, the present invention provides a method, system and storage medium for updating SMBIOS information to solve the defects existing in the existing technology.
发明内容Contents of the invention
针对现有技术存在的缺陷,本发明提供一种进行SMBIOS信息更新的方法、系统及存储介质,完成不同机型产品的硬件描述信息在SMBIOS中的更新,解决使用AMI厂商架构基础代码静态表描述硬件信息无法兼容多个机型产品的问题。In view of the shortcomings of the existing technology, the present invention provides a method, system and storage medium for updating SMBIOS information, completing the updating of hardware description information of different models of products in SMBIOS, and solving the problem of using AMI vendor architecture basic code static table description The hardware information is not compatible with multiple models of products.
为实现上述目的,本发明给出以下技术方案:In order to achieve the above objects, the present invention provides the following technical solutions:
第一方面,本发明提供一种进行SMBIOS信息更新的方法,该方法包括以下步骤:In a first aspect, the present invention provides a method for updating SMBIOS information, which method includes the following steps:
S1:BIOS在基础代码中增加统一板级架构模块,在统一板级架构模块中增加多个机型适配单元;S1: BIOS adds a unified board-level architecture module to the basic code, and adds multiple model adaptation units to the unified board-level architecture module;
S2:BIOS分别在各机型适配单元中增加SMBIOS硬件适配信息表;S2: BIOS adds SMBIOS hardware adaptation information tables to the adaptation units of each model;
S3:BIOS开机过程中读取主板ID号来判断当前机型,然后加载对应机型适配单元;S3: During the boot process, the BIOS reads the motherboard ID number to determine the current model, and then loads the corresponding model adaptation unit;
S4:BIOS提取SMBIOS硬件适配信息表的信息,将信息添加到统一板级架构协议中;S4: BIOS extracts the information from the SMBIOS hardware adaptation information table and adds the information to the unified board-level architecture protocol;
S5:BIOS加载统一板级架构协议并进行SMBIOS信息更新;S5: BIOS loads the unified board-level architecture protocol and updates SMBIOS information;
作为优选,所述步骤S2中SMBIOS硬件适配信息表中的信息包括:硬件信息所属的SMBIOS Type类型,Type类型下的硬件数目,每个硬件的丝印信息;不同机型产品SMBIOS硬件信息的设定是不同的,通过SMBIOS硬件适配信息表记录本机型产品的硬件数目和每个硬件的丝印信息。Preferably, the information in the SMBIOS hardware adaptation information table in step S2 includes: the SMBIOS Type to which the hardware information belongs, the number of hardware under the Type type, the silk screen information of each hardware; the settings of SMBIOS hardware information for different models of products. It must be different. Use the SMBIOS hardware adaptation information table to record the number of hardware of this model and the silk screen information of each hardware.
作为优选,所述步骤S5包括以下步骤:Preferably, step S5 includes the following steps:
S5.1:BIOS加载统一板级架构协议,获取机型适配单元中增加的SMBIOS硬件适配信息;S5.1: BIOS loads the unified board-level architecture protocol and obtains the SMBIOS hardware adaptation information added in the model adaptation unit;
S5.2:判断是否获取到本机型产品的SMBIOS硬件适配信息,如果没有获取到,则通过原有的静态表方式更新SMBIOS信息,如果成功获取本机型产品的SMBIOS硬件适配信息,则进入步骤S5.3;S5.2: Determine whether the SMBIOS hardware adaptation information of this model of product has been obtained. If not, update the SMBIOS information through the original static table. If the SMBIOS hardware adaptation information of this model of product is successfully obtained, Then enter step S5.3;
S5.3:删除原有静态表的SMBIOS信息,然后通过SMBIOS协议中的添加SMBIOS表的函数把获取到的SMBIOS硬件适配信息添加到SMBIOS表中;S5.3: Delete the SMBIOS information of the original static table, and then add the obtained SMBIOS hardware adaptation information to the SMBIOS table through the function of adding SMBIOS table in the SMBIOS protocol;
S5.4:增加标记位,当成功更新SMBIOS信息后设置该标记位,否则不设置,后续开机过程中检测到该标记位被设置则不再去更新SMBIOS信息,避免重复更新。S5.4: Add a flag bit. When the SMBIOS information is successfully updated, the flag bit is set. Otherwise, it is not set. If it is detected that the flag bit is set during the subsequent boot process, the SMBIOS information will not be updated to avoid repeated updates.
通过加载统一板级架构协议获取SMBIOS硬件适配信息,根据不同机型产品记录的硬件适配信息进行SMBIOS信息更新,能够解决基础代码静态表描述硬件信息无法兼容多个机型产品的问题。Obtaining SMBIOS hardware adaptation information by loading the unified board-level architecture protocol, and updating SMBIOS information based on the hardware adaptation information recorded by different models of products, can solve the problem that the static table of basic code describing hardware information is not compatible with multiple models of products.
作为优选,所述步骤S5中进行信息更新的过程中将会生成日志,日志记录有SMBIOS信息更新的方式以及SMBIOS信息更新是否成功;通过生成日志记录SMBIOS信息更新过程,方便后续出现问题时进行追踪。Preferably, a log will be generated during the information update process in step S5. The log records the manner in which the SMBIOS information is updated and whether the SMBIOS information update is successful. By generating a log to record the SMBIOS information update process, it is convenient to track any subsequent problems. .
第二方面,本发明提供一种进行SMBIOS信息更新的系统,该系统包括:In a second aspect, the present invention provides a system for updating SMBIOS information. The system includes:
统一板级架构模块:用于添加机型产品的硬件适配信息,其中设置有多个机型适配单元分别添加不同机型产品的硬件适配信息;Unified board-level architecture module: used to add hardware adaptation information of product models, in which multiple model adaptation units are set up to add hardware adaptation information of different models of products;
适配信息添加模块:分别在各机型适配单元中增加SMBIOS硬件适配信息表;Adaptation information adding module: Add SMBIOS hardware adaptation information tables to the adaptation units of each model;
机型识别模块:BIOS开机过程中读取主板ID号来判断当前机型,然后加载对应机型适配单元;Model identification module: During the BIOS boot process, it reads the motherboard ID number to determine the current model, and then loads the corresponding model adaptation unit;
信息提取模块:能够提取SMBIOS硬件适配信息表的信息,将信息添加到统一板级架构协议中;Information extraction module: capable of extracting information from the SMBIOS hardware adaptation information table and adding the information to the unified board-level architecture protocol;
信息更新模块:加载统一板级架构协议并进行SMBIOS信息更新;Information update module: loads the unified board-level architecture protocol and updates SMBIOS information;
作为优选,所述适配信息添加模块将硬件信息所属的SMBIOS Type类型、Type类型下的硬件数目以及每个硬件的丝印信息添加到SMBIOS硬件适配信息表中;不同机型产品SMBIOS硬件信息的设定是不同的,通过SMBIOS硬件适配信息表记录本机型产品的硬件数目和每个硬件的丝印信息。Preferably, the adaptation information adding module adds the SMBIOS Type type to which the hardware information belongs, the number of hardware under the Type type, and the silk screen information of each hardware to the SMBIOS hardware adaptation information table; the SMBIOS hardware information of different models of products The settings are different. The SMBIOS hardware adaptation information table records the number of hardware of this model and the silk screen information of each hardware.
作为优选,所述信息更新模块包括:Preferably, the information update module includes:
更新启动单元:BIOS加载统一板级架构协议,获取机型适配单元中增加的SMBIOS硬件适配信息;Update the startup unit: BIOS loads the unified board-level architecture protocol and obtains the SMBIOS hardware adaptation information added in the model adaptation unit;
判断选择单元:判断是否获取到本机型产品的SMBIOS硬件适配信息,如果没有获取到,则通过原有的静态表方式更新SMBIOS信息,如果成功获取本机型产品的SMBIOS硬件适配信息,则进入更新替换单元;Judgment selection unit: determines whether the SMBIOS hardware adaptation information of this model of product is obtained. If not, the SMBIOS information is updated through the original static table. If the SMBIOS hardware adaptation information of this model of product is successfully obtained, Then enter the update replacement unit;
更新替换单元:删除原有静态表的SMBIOS信息,然后通过SMBIOS协议中的添加SMBIOS表的函数把获取到的SMBIOS硬件适配信息添加到SMBIOS表中;Update the replacement unit: delete the SMBIOS information of the original static table, and then add the obtained SMBIOS hardware adaptation information to the SMBIOS table through the add SMBIOS table function in the SMBIOS protocol;
标记单元:增加标记位,当成功更新SMBIOS信息后设置该标记位,否则不设置,后续开机过程中检测到该标记位被设置则不再去更新SMBIOS信息,避免重复更新。Flag unit: Add a flag bit. When the SMBIOS information is successfully updated, the flag bit is set. Otherwise, it is not set. If the flag bit is set during the subsequent boot process, the SMBIOS information will not be updated to avoid repeated updates.
所述信息更新模块根据不同机型产品记录的硬件适配信息进行SMBIOS信息更新,能够解决基础代码静态表描述硬件信息无法兼容多个机型产品的问题。The information update module updates SMBIOS information based on the hardware adaptation information recorded by different models of products, which can solve the problem that the static table of basic code describing hardware information is not compatible with multiple models of products.
作为优选,该系统还包括日志记录模块,所述日志记录模块记录SMBIOS信息更新的方式以及SMBIOS信息更新是否成功;通过日志记录模块记录SMBIOS信息更新过程,方便后续出现问题时进行追踪。Preferably, the system also includes a logging module, which records the manner in which the SMBIOS information is updated and whether the SMBIOS information update is successful; the logging module records the SMBIOS information update process to facilitate tracking of subsequent problems.
第三方面,本发明提供一种计算机存储介质,所述计算机存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述方法。In a third aspect, the present invention provides a computer storage medium in which instructions are stored, which when run on a computer, cause the computer to execute the above method.
第四方面,提供一种终端,包括:The fourth aspect provides a terminal including:
处理器和存储器,其中,所述存储器用于存储计算机程序,所述处理器用于从存储器中调用并运行该计算机程序,使得终端执行上述方法。A processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the terminal executes the above method.
本发明的有益效果在于,在BIOS基础代码中增加统一板级架构模块,在统一板级架构模块中增加多个机型产品的机型适配单元,将不同机型产品的SMBIOS硬件适配信息分别添加到机型适配单元,然后各机型产品基于本机型适配单元的硬件适配信息进行SMBIOS信息更新;解决了AMI厂商架构基础代码静态表描述硬件信息无法兼容多个机型产品的问题,实现多个机型产品的硬件描述信息在SMBIOS中的更新,大大减少了BIOS工程师在SMBIOS更新方面代码开发维护的工作。The beneficial effects of the present invention are that a unified board-level architecture module is added to the BIOS basic code, model adaptation units for multiple models of products are added to the unified board-level architecture module, and SMBIOS hardware adaptation information of different models of products is added. Add them to the model adaptation unit respectively, and then each model product updates the SMBIOS information based on the hardware adaptation information of the model adaptation unit; it solves the problem that the AMI manufacturer architecture basic code static table description hardware information cannot be compatible with multiple models of products. To solve the problem, the hardware description information of multiple models of products can be updated in SMBIOS, which greatly reduces the code development and maintenance work of BIOS engineers in SMBIOS updates.
由此可见,本发明与现有技术相比,具有突出的实质性特点和显著的进步,其实施的有益效果也是显而易见的。It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those of ordinary skill in the art, It is said that other drawings can also be obtained based on these drawings without exerting creative work.
图1是本发明实施例1提供的一种进行SMBIOS信息更新的方法流程图。Figure 1 is a flow chart of a method for updating SMBIOS information provided in Embodiment 1 of the present invention.
图2是图1中步骤S5的流程图。FIG. 2 is a flow chart of step S5 in FIG. 1 .
图3是本发明实施例2提供的一种进行SMBIOS信息更新的系统原理框图。Figure 3 is a functional block diagram of a system for updating SMBIOS information provided in Embodiment 2 of the present invention.
图4是图3中信息更新模块的原理框图。Figure 4 is a functional block diagram of the information update module in Figure 3.
其中,1-统一板级架构模块,2-适配信息添加模块,3-机型识别模块,4-信息提取模块,5-信息更新模块,5.1-更新启动单元,5.2-判断选择单元,5.3-更新替换单元,5.4-标记单元。Among them, 1-unified board-level architecture module, 2-adaptation information addition module, 3-model identification module, 4-information extraction module, 5-information update module, 5.1-update startup unit, 5.2-judgment selection unit, 5.3 - Updated replacement units, 5.4-marked units.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of the present invention.
下面对本发明中出现的关键术语进行解释:The key terms appearing in the present invention are explained below:
BIOS(Basic Input Output System,基本输入输出系统),它是固化在计算机内主板ROM芯片上的一段程序,它保存着计算机最重要的基本输入输出的程序、系统设置信息、开机后自检程序和系统自启动程序,其主要功能是为计算机提供最底层的、最直接的硬件设置和控制。BIOS (Basic Input Output System, Basic Input Output System) is a program solidified on the motherboard ROM chip in the computer. It saves the computer's most important basic input and output programs, system setting information, self-test programs after power-on and The main function of the system self-starting program is to provide the lowest and most direct hardware settings and control for the computer.
SMBIOS(System Management BIOS,系统管理BIOS)是主板或系统制造者以标准格式显示产品管理信息所需遵循的统一规范,目的是在英特尔架构系统中向系统管理软件提供主板和硬件广商信息,根据SMBIOS规范,BIOS开发者可以创建包含硬件和其他系统信息的SMBIOS表。SMBIOS (System Management BIOS, System Management BIOS) is a unified specification that motherboard or system manufacturers need to follow to display product management information in a standard format. The purpose is to provide motherboard and hardware information to system management software in Intel architecture systems. According to SMBIOS specification allows BIOS developers to create SMBIOS tables that contain hardware and other system information.
实施例1:Example 1:
如图1至2所示,本实施例提供一种进行SMBIOS信息更新的方法,该方法包括以下步骤:As shown in Figures 1 to 2, this embodiment provides a method for updating SMBIOS information. The method includes the following steps:
S1:BIOS在基础代码中增加统一板级架构模块,在统一板级架构模块中增加多个机型适配单元;S1: BIOS adds a unified board-level architecture module to the basic code, and adds multiple model adaptation units to the unified board-level architecture module;
S2:BIOS分别在各机型适配单元中增加SMBIOS硬件适配信息表,SMBIOS硬件适配信息表中的信息包括:硬件信息所属的SMBIOS Type类型,Type类型下的硬件数目,每个硬件的丝印信息;其中硬件信息所属的SMBIOS Type类型有Type8、Type9、Type12、Type38、Type41等;不同机型产品SMBIOS硬件信息的设定是不同的,通过SMBIOS硬件适配信息表记录本机型产品的硬件数目和每个硬件的丝印信息。S2: The BIOS adds an SMBIOS hardware adaptation information table to each model adaptation unit. The information in the SMBIOS hardware adaptation information table includes: the SMBIOS Type type to which the hardware information belongs, the number of hardware under the Type type, and the number of each hardware Silk screen information; the SMBIOS Types to which the hardware information belongs include Type8, Type9, Type12, Type38, Type41, etc.; the SMBIOS hardware information settings of different models are different, and the SMBIOS hardware adaptation information table is used to record the SMBIOS hardware information of this model. Hardware number and silk screen information for each piece of hardware.
S3:BIOS开机过程中读取主板ID号来判断当前机型,然后加载对应机型适配单元;S3: During the boot process, the BIOS reads the motherboard ID number to determine the current model, and then loads the corresponding model adaptation unit;
S4:BIOS提取SMBIOS硬件适配信息表的信息,提取相关特征值如硬件信息所属的SMBIOS Type类型,这个Type类型下总共多少个硬件连接器,这个Type类型下总共多少个跳线,每个硬件连接器的丝印信息,每个跳线的丝印信息等,然后将信息添加到统一板级架构协议中;S4: BIOS extracts information from the SMBIOS hardware adaptation information table, and extracts relevant feature values such as the SMBIOS Type to which the hardware information belongs, the total number of hardware connectors under this Type, the total number of jumpers under this Type, and each hardware The silk screen information of the connector, the silk screen information of each jumper, etc., and then add the information to the unified board level architecture protocol;
S5:BIOS加载统一板级架构协议并进行SMBIOS信息更新,具体包括以下步骤:S5: BIOS loads the unified board-level architecture protocol and updates SMBIOS information, including the following steps:
S5.1:BIOS加载统一板级架构协议,获取机型适配单元中增加的SMBIOS硬件适配信息;S5.1: BIOS loads the unified board-level architecture protocol and obtains the SMBIOS hardware adaptation information added in the model adaptation unit;
S5.2:判断是否获取到本机型产品的SMBIOS硬件适配信息,如果没有获取到,则通过原有的静态表方式更新SMBIOS信息,如果成功获取本机型产品的SMBIOS硬件适配信息,则进入步骤S5.3;S5.2: Determine whether the SMBIOS hardware adaptation information of this model of product has been obtained. If not, update the SMBIOS information through the original static table. If the SMBIOS hardware adaptation information of this model of product is successfully obtained, Then enter step S5.3;
S5.3:删除原有静态表的SMBIOS信息,然后通过SMBIOS协议中的添加SMBIOS表的函数把获取到的SMBIOS硬件适配信息添加到SMBIOS表中;S5.3: Delete the SMBIOS information of the original static table, and then add the obtained SMBIOS hardware adaptation information to the SMBIOS table through the function of adding SMBIOS table in the SMBIOS protocol;
S5.4:增加标记位,当成功更新SMBIOS信息后设置该标记位,否则不设置,后续开机过程中检测到该标记位被设置则不再去更新SMBIOS信息,避免重复更新。S5.4: Add a flag bit. When the SMBIOS information is successfully updated, the flag bit is set. Otherwise, it is not set. If it is detected that the flag bit is set during the subsequent boot process, the SMBIOS information will not be updated to avoid repeated updates.
步骤S5通过加载统一板级架构协议获取SMBIOS硬件适配信息,根据不同机型产品记录的硬件适配信息进行SMBIOS信息更新,能够解决基础代码静态表描述硬件信息无法兼容多个机型产品的问题。Step S5 obtains the SMBIOS hardware adaptation information by loading the unified board-level architecture protocol, and updates the SMBIOS information according to the hardware adaptation information recorded by different models of products, which can solve the problem that the static table of the basic code describing the hardware information is not compatible with multiple models of products. .
所述步骤S5中进行信息更新的过程中将会生成日志,日志记录有SMBIOS信息更新的方式以及SMBIOS信息更新是否成功;通过生成日志记录SMBIOS信息更新过程,方便后续出现问题时进行追踪。During the information update process in step S5, a log will be generated. The log records the method of updating the SMBIOS information and whether the SMBIOS information update is successful. By generating a log to record the SMBIOS information update process, it is convenient to track subsequent problems when they arise.
实施例2:Example 2:
如图3至4所示,本实施例提供一种进行SMBIOS信息更新的系统,该系统包括:As shown in Figures 3 to 4, this embodiment provides a system for updating SMBIOS information. The system includes:
统一板级架构模块1:用于添加机型产品的硬件适配信息,其中设置有多个机型适配单元如A机型适配单元、B机型适配单元和C机型适配单元,分别添加不同机型产品的硬件适配信息;Unified board-level architecture module 1: used to add hardware adaptation information of model products, in which there are multiple model adaptation units such as model A adaptation unit, model B adaptation unit and model C adaptation unit , add hardware adaptation information for different models of products respectively;
适配信息添加模块2:分别在各机型适配单元中增加SMBIOS硬件适配信息表,将硬件信息所属的SMBIOS Type类型、Type类型下的硬件数目以及每个硬件的丝印信息添加到SMBIOS硬件适配信息表中;不同机型产品SMBIOS硬件信息的设定是不同的,通过SMBIOS硬件适配信息表记录本机型产品的硬件数目和每个硬件的丝印信息。Adaptation information adding module 2: Add the SMBIOS hardware adaptation information table to the adaptation unit of each model, and add the SMBIOS Type type to which the hardware information belongs, the number of hardware under the Type type, and the silk screen information of each hardware to the SMBIOS hardware In the adaptation information table, the SMBIOS hardware information settings of different models are different. The SMBIOS hardware adaptation information table records the number of hardware of this model and the silk screen information of each hardware.
机型识别模块3:BIOS开机过程中读取主板ID号来判断当前机型,然后加载对应机型适配单元;Model identification module 3: During the BIOS boot process, the motherboard ID number is read to determine the current model, and then the corresponding model adaptation unit is loaded;
信息提取模块4:能够提取SMBIOS硬件适配信息表的信息,将信息添加到统一板级架构协议中;Information extraction module 4: Able to extract information from the SMBIOS hardware adaptation information table and add the information to the unified board-level architecture protocol;
信息更新模块5:加载统一板级架构协议并进行SMBIOS信息更新;Information update module 5: Load the unified board-level architecture protocol and update SMBIOS information;
其中,信息更新模块5包括:Among them, the information update module 5 includes:
更新启动单元5.1:BIOS加载统一板级架构协议,获取机型适配单元中增加的SMBIOS硬件适配信息;Update startup unit 5.1: BIOS loads the unified board-level architecture protocol and obtains the SMBIOS hardware adaptation information added in the model adaptation unit;
判断选择单元5.2:判断是否获取到本机型产品的SMBIOS硬件适配信息,如果没有获取到,则通过原有的静态表方式更新SMBIOS信息,如果成功获取本机型产品的SMBIOS硬件适配信息,则进入更新替换单元5.3;Judgment selection unit 5.2: Determine whether the SMBIOS hardware adaptation information of this model of product has been obtained. If not, update the SMBIOS information through the original static table method. If the SMBIOS hardware adaptation information of this model of product is successfully obtained, , then enter update replacement unit 5.3;
更新替换单元5.3:删除原有静态表的SMBIOS信息,然后通过SMBIOS协议中的添加SMBIOS表的函数把获取到的SMBIOS硬件适配信息添加到SMBIOS表中;Update replacement unit 5.3: Delete the SMBIOS information of the original static table, and then add the obtained SMBIOS hardware adaptation information to the SMBIOS table through the function of adding SMBIOS table in the SMBIOS protocol;
标记单元5.4:增加标记位,当成功更新SMBIOS信息后设置该标记位,否则不设置,后续开机过程中检测到该标记位被设置则不再去更新SMBIOS信息,避免重复更新。Flag unit 5.4: Add a flag bit. When the SMBIOS information is successfully updated, the flag bit is set. Otherwise, it is not set. If the flag bit is set during the subsequent boot process, the SMBIOS information will not be updated to avoid repeated updates.
所述信息更新模块5根据不同机型产品记录的硬件适配信息进行SMBIOS信息更新,能够解决基础代码静态表描述硬件信息无法兼容多个机型产品的问题。The information update module 5 updates SMBIOS information based on the hardware adaptation information recorded by different models of products, which can solve the problem that the static table of basic code describing hardware information is not compatible with multiple models of products.
该系统还包括日志记录模块,所述日志记录模块记录SMBIOS信息更新的方式以及SMBIOS信息更新是否成功;通过日志记录模块记录SMBIOS信息更新过程,方便后续出现问题时进行追踪。The system also includes a logging module that records the manner in which the SMBIOS information is updated and whether the SMBIOS information update is successful; the logging module records the SMBIOS information update process to facilitate tracking when subsequent problems occur.
实施例3:Example 3:
本实施例提供一种计算机存储介质,所述计算机存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述方法。This embodiment provides a computer storage medium that stores instructions, which when run on a computer, cause the computer to execute the above method.
实施例4:Example 4:
本实施例提供一种终端,包括:This embodiment provides a terminal, including:
处理器和存储器,其中,所述存储器用于存储计算机程序,所述处理器用于从存储器中调用并运行该计算机程序,使得终端执行上述方法。A processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the terminal executes the above method.
尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。Although the present invention has been described in detail with reference to the accompanying drawings in conjunction with preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the invention, those of ordinary skill in the art can make various equivalent modifications or substitutions to the embodiments of the invention, and these modifications or substitutions should be within the scope of the invention/any Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention, and they should all be covered by the protection scope of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110338469.6A CN113064617B (en) | 2021-03-30 | 2021-03-30 | Method, system and storage medium for updating SMBIOS information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110338469.6A CN113064617B (en) | 2021-03-30 | 2021-03-30 | Method, system and storage medium for updating SMBIOS information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113064617A CN113064617A (en) | 2021-07-02 |
CN113064617B true CN113064617B (en) | 2023-10-03 |
Family
ID=76564395
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110338469.6A Active CN113064617B (en) | 2021-03-30 | 2021-03-30 | Method, system and storage medium for updating SMBIOS information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113064617B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118377513B (en) * | 2024-06-26 | 2024-09-27 | 苏州元脑智能科技有限公司 | Information management method and device of server |
CN118689660B (en) * | 2024-08-28 | 2024-12-20 | 苏州元脑智能科技有限公司 | Method, apparatus, medium and computer program product for dynamically displaying management information |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101086708A (en) * | 2006-06-07 | 2007-12-12 | 戴尔产品有限公司 | System and method for uniquely identifying peripheral component devices |
CN104111857A (en) * | 2014-08-13 | 2014-10-22 | 浪潮电子信息产业股份有限公司 | Method for automatically configuring parameters of multi-model BIOS |
CN104679566A (en) * | 2015-03-13 | 2015-06-03 | 华为技术有限公司 | Method and terminal equipment for updating SMBIOS (System Management Basic Input/Output System) |
CN107015812A (en) * | 2017-04-14 | 2017-08-04 | 广东浪潮大数据研究有限公司 | A kind of bios code design method based on INTEL ME |
CN107491293A (en) * | 2017-04-14 | 2017-12-19 | 广东浪潮大数据研究有限公司 | A kind of BIOS foundation code design methods based on Board ID |
CN109766147A (en) * | 2019-01-31 | 2019-05-17 | 郑州云海信息技术有限公司 | A method for updating PCIE silkscreen information in SMBIOS |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060026415A1 (en) * | 2004-07-28 | 2006-02-02 | Inventec Corporation | Method of updating a portion BIOS |
TWI296778B (en) * | 2006-01-26 | 2008-05-11 | Asustek Comp Inc | Method and system for maintaining smbios |
-
2021
- 2021-03-30 CN CN202110338469.6A patent/CN113064617B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101086708A (en) * | 2006-06-07 | 2007-12-12 | 戴尔产品有限公司 | System and method for uniquely identifying peripheral component devices |
CN104111857A (en) * | 2014-08-13 | 2014-10-22 | 浪潮电子信息产业股份有限公司 | Method for automatically configuring parameters of multi-model BIOS |
CN104679566A (en) * | 2015-03-13 | 2015-06-03 | 华为技术有限公司 | Method and terminal equipment for updating SMBIOS (System Management Basic Input/Output System) |
CN107015812A (en) * | 2017-04-14 | 2017-08-04 | 广东浪潮大数据研究有限公司 | A kind of bios code design method based on INTEL ME |
CN107491293A (en) * | 2017-04-14 | 2017-12-19 | 广东浪潮大数据研究有限公司 | A kind of BIOS foundation code design methods based on Board ID |
CN109766147A (en) * | 2019-01-31 | 2019-05-17 | 郑州云海信息技术有限公司 | A method for updating PCIE silkscreen information in SMBIOS |
Non-Patent Citations (2)
Title |
---|
刘泽申 等.PC新中枢――EFI技术浅析.大众硬件.2006,(第12期),全文. * |
孙亮 等.面向多处理器的内网计算机BIOS口令集中管理机制研究.信息安全与通信保密.2021,(第2期),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN113064617A (en) | 2021-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9558016B2 (en) | Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product | |
CN113064617B (en) | Method, system and storage medium for updating SMBIOS information | |
CN111831345B (en) | Management method and device of server hard disk backboard, storage medium and equipment | |
CN106850650B (en) | Method for accessing data by game client and client game system | |
CN109408393A (en) | Application testing method, device and equipment and computer readable storage medium | |
CN111736884A (en) | Componentization method and system | |
WO2024055757A1 (en) | Automatic hardware resource configuration method, device and system for driver, and medium | |
CN111381895A (en) | Identification information setting method, apparatus, device, and computer-readable storage medium | |
CN114385251A (en) | Operating system booting method, system, terminal and storage medium based on memory | |
CN113778391A (en) | Page processing method, device and equipment for native application program | |
CN119065694A (en) | A cross-platform visual server firmware concurrent update method and device | |
CN111399871B (en) | System updating method, device, equipment and medium of HBA card | |
CN112306550A (en) | One version of firmware is compatible with multiple board methods, devices, storage media and terminals | |
CN104991774B (en) | The system and method that interception system guides under a kind of UEFI platforms | |
CN116560739A (en) | Boot sign customization method, device, equipment and storage medium | |
CN113900934B (en) | Multi-mirror hybrid refresh test method, system, terminal and storage medium | |
CN112486578B (en) | A method, system, terminal and storage medium for dynamically loading sensors by BMC | |
CN114185522A (en) | Page theme customizing method and device, electronic equipment and storage medium | |
CN114461531A (en) | Platform adaptability testing method, device, equipment and storage medium of test case | |
CN114143187A (en) | Intelligent platform interface network address management method, system, terminal and storage medium | |
CN102629209B (en) | Method, single board and system for realizing plug-and-play of single board | |
CN118409780B (en) | Method and device for generating kernel hot patch file, electronic equipment, storage medium and computer program product | |
CN102053885A (en) | Test system and test method of computer device without storage equipment | |
CN111475208A (en) | Disk device naming method, system, terminal and storage medium | |
CN111143193A (en) | Big data service testing method, system, terminal and storage medium based on RobotFramework |
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 |