CN114115977B - BMC mirror image construction method, system, terminal and storage medium - Google Patents

BMC mirror image construction method, system, terminal and storage medium Download PDF

Info

Publication number
CN114115977B
CN114115977B CN202111335532.7A CN202111335532A CN114115977B CN 114115977 B CN114115977 B CN 114115977B CN 202111335532 A CN202111335532 A CN 202111335532A CN 114115977 B CN114115977 B CN 114115977B
Authority
CN
China
Prior art keywords
code
platform
project
bmc
type
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
Application number
CN202111335532.7A
Other languages
Chinese (zh)
Other versions
CN114115977A (en
Inventor
梁盛楠
王文志
王安平
邓朝阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111335532.7A priority Critical patent/CN114115977B/en
Publication of CN114115977A publication Critical patent/CN114115977A/en
Application granted granted Critical
Publication of CN114115977B publication Critical patent/CN114115977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention relates to the technical field of servers, and particularly provides a BMC mirror image construction method, a system, a terminal and a storage medium, wherein the BMC mirror image construction method comprises the following steps: acquiring a general code packet of the BMC mirror image from a pre-constructed general code library; reading a BMC identification signal, wherein the identification signal indicates the platform type and the item type of the BMC; obtaining matched platform code packages from a platform code library storing a plurality of platform code packages according to the identification signals, and obtaining matched project code packages from a project code library storing a plurality of project code packages; and constructing the BMC image based on the universal code package, the matched platform code package and the matched project code package. The invention can greatly improve the software development and maintenance efficiency and the on-line operation and maintenance efficiency.

Description

BMC mirror image construction method, system, terminal and storage medium
Technical Field
The invention relates to the technical field of servers, in particular to a BMC mirror image construction method, a BMC mirror image construction system, a BMC mirror image construction terminal and a BMC storage medium.
Background
The BMC (baseboard management controller) is a control chip capable of remotely operating a CPU on equipment main boards such as a server, a white box switch and an intelligent network card, is a set of system independent of the CPU end, can remotely monitor some performance indexes of the equipment main boards, and performs a series of operations such as startup and shutdown operations, system upgrading and equipment checking on the server, the switch and the intelligent network card. The existing BMC system commonly used in the market, whether commercial or open source community, is an embedded operating system based on a linux kernel, various customized functions are required to be developed on the basis of basic code packages aiming at different hardware platforms, different projects and different products, different system image files are compiled for each different product, and corresponding image files are selected for refreshing according to different types of equipment during refreshing.
The existing BMC mirror image construction mode is more friendly for developers, each product independently develops functions, complex compatibility problems do not need to be considered, each project is provided with a set of codes, and the BMC mirror image construction mode is very convenient to compile and is safer and more reliable. At the same time, however, this approach also brings with it some non-negligible drawbacks: the number of code libraries to be maintained is obviously increased, if a platform-type general function is added later, the content of each code library must be added, and unnecessary manpower and time cost are wasted; if the clients have different types of server products at the same time, even the devices such as a white box switch and an intelligent network card of the same manufacturer can be provided, the operation and maintenance are also under great pressure whenever firmware is required to be upgraded, and each device corresponds to different image files, so that great inconvenience is brought to upgrading operation.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a BMC mirror image construction method, a BMC mirror image construction system, a BMC mirror image construction terminal and a BMC storage medium, so as to solve the technical problems.
In a first aspect, the present invention provides a method for constructing a BMC image, including:
acquiring a general code packet of the BMC mirror image from a pre-constructed general code library;
reading a BMC identification signal, wherein the identification signal indicates the platform type and the item type of the BMC;
obtaining matched platform code packages from a platform code library storing a plurality of platform code packages according to the identification signals, and obtaining matched project code packages from a project code library storing a plurality of project code packages;
and constructing the BMC image based on the universal code package, the matched platform code package and the matched project code package.
Further, obtaining the generic code package of the BMC image from the pre-built generic code library comprises the following steps:
acquiring a general code package of the BMC mirror image from a general code library, wherein the general code package comprises general function code files of various BMCs;
and storing the universal code packet to a designated address, and initializing the universal code packet under the designated address in the starting process.
Further, reading a BMC identification signal, wherein the identification signal indicates a platform type and an item type of the BMC, and the BMC identification signal comprises:
reading an identification signal in the form of a binary string transmitted by a signal definition pin group, wherein the signal definition pin group comprises a plurality of universal pins which are connected with a dial switch;
and analyzing the platform type and the item type from the identification signal according to a set identification signal analysis rule, wherein the identification signal analysis rule limits the binary character string content corresponding to various platform types and item types.
Further, reading a BMC identification signal, wherein the identification signal indicates a platform type and an item type of the BMC, and the BMC identification signal comprises:
the set signal limiting pin group comprises 8 universal pins and generates sequence numbers of the 8 universal pins;
reading the transmission signals of the universal pins according to the sequence numbers to obtain 8-bit binary character strings;
the most significant bit of the binary string defining 8 bits indicates the platform type, and the remaining 7 bit strings indicate the item type.
Further, according to the identification signal, obtaining a matched platform code package from a platform code library storing a plurality of platform code packages, and obtaining a matched project code package from a project code library storing a plurality of project code packages, including:
analyzing the platform type code and the item type code from the identification signal;
retrieving matched platform code packages from a platform code library according to the platform type codes, wherein the platform code library stores special platform code packages of multiple platform types, and the name of each platform code package comprises codes of corresponding platform types;
the matching project code packages are retrieved from a project code library according to the project type codes, the project code library stores special project code packages of a plurality of project types, and the name of each project code package comprises the code of the corresponding project type.
Further, according to the identification signal, obtaining a matched platform code package from a platform code library storing a plurality of platform code packages, and obtaining a matched project code package from a project code library storing a plurality of project code packages, including:
the platform code packet storage address corresponding to each platform type and the project code packet storage address corresponding to each project type are stored in a storage list in advance;
searching a first storage address of a platform code packet matched with the identification signal and a second storage address of a project code packet matched with the identification signal according to the storage list;
the matched platform code package and the matched project code package are loaded from the first storage address and the second storage address, respectively.
In a second aspect, the present invention provides a BMC image building system, including:
the general acquisition unit is used for acquiring a general code packet of the BMC mirror image from a pre-constructed general code library;
the type identification unit is used for reading a BMC identification signal, wherein the identification signal indicates the platform type and the item type of the BMC;
the special acquisition unit is used for acquiring matched platform code packages from a platform code library storing various platform code packages according to the identification signals and acquiring matched project code packages from a project code library storing various project code packages;
and the image construction unit is used for constructing the BMC image based on the universal code package, the matched platform code package and the matched project code package.
Further, the general acquisition unit is configured to:
acquiring a general code package of the BMC mirror image from a general code library, wherein the general code package comprises general function code files of various BMCs;
and storing the universal code packet to a designated address, and initializing the universal code packet under the designated address in the starting process.
Further, the type identification unit is configured to:
reading an identification signal in the form of a binary string transmitted by a signal definition pin group, wherein the signal definition pin group comprises a plurality of universal pins which are connected with a dial switch;
and analyzing the platform type and the item type from the identification signal according to a set identification signal analysis rule, wherein the identification signal analysis rule limits the binary character string content corresponding to various platform types and item types.
Further, the type identification unit is configured to:
the set signal limiting pin group comprises 8 universal pins and generates sequence numbers of the 8 universal pins;
reading the transmission signals of the universal pins according to the sequence numbers to obtain 8-bit binary character strings;
the most significant bit of the binary string defining 8 bits indicates the platform type, and the remaining 7 bit strings indicate the item type.
Further, the special acquisition unit is configured to:
analyzing the platform type code and the item type code from the identification signal;
retrieving matched platform code packages from a platform code library according to the platform type codes, wherein the platform code library stores special platform code packages of multiple platform types, and the name of each platform code package comprises codes of corresponding platform types;
the matching project code packages are retrieved from a project code library according to the project type codes, the project code library stores special project code packages of a plurality of project types, and the name of each project code package comprises the code of the corresponding project type.
Further, the special acquisition unit is configured to:
the platform code packet storage address corresponding to each platform type and the project code packet storage address corresponding to each project type are stored in a storage list in advance;
searching a first storage address of a platform code packet matched with the identification signal and a second storage address of a project code packet matched with the identification signal according to the storage list;
the matched platform code package and the matched project code package are loaded from the first storage address and the second storage address, respectively.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program,
the processor is configured to call and run the computer program from the memory, so that the terminal performs the method of the terminal as described above.
In a fourth aspect, there is provided a computer storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of the above aspects.
The BMC mirror image construction method, the system, the terminal and the storage medium have the advantages that the special storage is realized by orderly dividing the mirror image files, the storage capacity is greatly reduced, then the matched subfiles are acquired according to the identification signal of the BMC, and the mirror image construction of the BMC can be completed after all subfiles are initialized. The invention can greatly improve the software development and maintenance efficiency and the on-line operation and maintenance efficiency.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention.
Fig. 2 is another schematic flow chart of a method of one embodiment of the invention.
FIG. 3 is a schematic diagram of the identification signal generation of a BMC according to a method of one embodiment of the invention.
FIG. 4 is a code storage architecture schematic of a method of one embodiment of the invention.
Fig. 5 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The following explains key terms appearing in the present invention.
BMC, execution server remote management controller, english name Baseboard Management controller. The method can perform firmware upgrade, check machine equipment and other operations on the machine in a state that the machine is not started. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller and RAM for data storage, flash memory for non-volatile data storage, and firmware to provide basic remote manageability in terms of secure remote reboot, secure re-power-up, LAN alerting, and system health monitoring. In addition to the basic IPMI and system operation monitoring functions, the mBMC can also enable BIOS flash element selection and protection by storing the previous BIOS using one of the 2 flash memories. For example, when the system fails to boot after a remote BIOS upgrade, the remote administrator may switch back to the previously-working BIOS image to boot the system. Once BIOS is upgraded, the BIOS image can be locked, so as to effectively prevent virus from invading it.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention. The execution body of fig. 1 may construct a system for a BMC image.
As shown in fig. 1, the method includes:
step 110, obtaining a general code package of the BMC mirror image from a pre-constructed general code library;
step 120, reading a BMC identification signal, wherein the identification signal indicates the platform type and the item type of the BMC;
step 130, obtaining a matched platform code package from a platform code library storing a plurality of platform code packages according to the identification signal, and obtaining a matched project code package from a project code library storing a plurality of project code packages;
and 140, constructing the BMC image based on the universal code package, the matched platform code package and the matched project code package.
In order to facilitate understanding of the present invention, the following describes the method for constructing a BMC image according to the principles of the method for constructing a BMC image according to the present invention, in combination with a process for constructing a BMC image in an embodiment.
Specifically, referring to fig. 2, the method for constructing the BMC image includes:
s1, acquiring a general code packet of the BMC mirror image from a pre-constructed general code library.
Acquiring a general code package of the BMC mirror image from a general code library, wherein the general code package comprises general function code files of various BMCs; and storing the universal code packet to a designated address, and initializing the universal code packet under the designated address in the starting process.
Universal code library: this part is some basic functions common to all platforms, projects, such as a common system initialization module, basic IPMI instructions, log records, alarm modules, web generic interfaces, etc. The universal code library in this embodiment is in the non-volatile memory of the BMC. After the equipment is powered on, the BMC starts to start; and after the kernel is started, firstly, executing the initialization action of the general function, thereby completing the initialization of the BMC general function module.
S2, reading a BMC identification signal, wherein the identification signal indicates the platform type and the item type of the BMC.
Reading an identification signal in the form of a binary string transmitted by a signal definition pin group, wherein the signal definition pin group comprises a plurality of universal pins which are connected with a dial switch; and analyzing the platform type and the item type from the identification signal according to a set identification signal analysis rule, wherein the identification signal analysis rule limits the binary character string content corresponding to various platform types and item types. The identification signal analysis rule setting signal limiting pin group comprises 8 universal pins and generates sequence numbers of the 8 universal pins; reading the transmission signals of the universal pins according to the sequence numbers to obtain 8-bit binary character strings; the most significant bit of the binary string defining 8 bits indicates the platform type, and the remaining 7 bit strings indicate the item type.
Specifically, as shown in fig. 3, from the perspective of hardware, GPIOs of the BMC belong to relatively abundant resources, so that 8 GPIOs of the BMC are reserved and externally connected with a dial switch, a group of 8bit data is provided for the BMC, the 8bit data is used as a mark for distinguishing different platforms and different device models, the highest bit7 is used as a distinguishing mark of a hardware platform (a server, a white box switch and an intelligent network card), and bits 0 to 6 are used as project distinguishing marks. An 8-bit binary character string is generated by controlling the dial switch, and the binary character string is the identification signal (Project ID) of the BMC.
S3, acquiring matched platform code packages from a platform code library storing various platform code packages according to the identification signals, and acquiring matched project code packages from a project code library storing various project code packages.
The architecture of the platform code library storing various platform code packages and the project code library and the general code library storing various project code packages is shown in fig. 4, and the platform code library is as follows: based on unified design of BMC core hardware requirements, aiming at different hardware platforms (servers, white box switches and intelligent network cards), reconstructing middleware related to the platforms, compiling a plurality of unique general functions (FRU configuration, EEPROM configuration management, IPMI OEM commands common to the platforms and the like) of each platform into corresponding shared library files (. So) respectively, and integrating all the shared library files into one BMC image file; project code library: for the application layer functions of different projects, a catalog is built in a code base for each project independently, all customization functions related to the project are developed, codes are placed under the catalog, and finally, when compiling, each project generates a shared library file (so), and the so files of all the projects are integrated into a BMC mirror image file.
The data of the general code library, the platform code library and the project code library are all stored in the nonvolatile memory of the BMC.
In other embodiments of the present invention, the data of the universal code library, the platform code library, and the project code library may also be saved to the remote server, and then the corresponding data is downloaded from the remote server when the BMC image is first constructed, so as to reduce the memory capacity of the BMC locally.
In one BMC image file, all platform and project related code libraries are integrated, and the shared library file occupies little space, so that obvious pressure is not caused on the memory space of the BMC flash. And in the BMC starting stage, the corresponding shared library file is loaded by contacting the platform and item to which the current equipment belongs through the 8bit ProjectID read from the GPIO. The specific file loading method comprises the following steps: the platform code packet storage address corresponding to each platform type and the project code packet storage address corresponding to each project type are stored in a storage list in advance; searching a first storage address of a platform code packet matched with the identification signal and a second storage address of a project code packet matched with the identification signal according to the storage list; the matched platform code package and the matched project code package are loaded from the first storage address and the second storage address, respectively.
In other embodiments of the present invention, the private code may be obtained by means of keyword search, for example: analyzing the platform type code and the item type code from the identification signal; retrieving matched platform code packages from a platform code library according to the platform type codes, wherein the platform code library stores special platform code packages of multiple platform types, and the name of each platform code package comprises codes of corresponding platform types; the matching project code packages are retrieved from the project code library according to the project type codes, the project code library stores specific project code packages of a plurality of project types, and the name of each project code package includes the code of the corresponding project type.
And S4, constructing the BMC mirror image based on the universal code package, the matched platform code package and the matched project code package.
And obtaining the matched platform code package and the matched project code package, continuously executing the initialization operation related to the platform and the project, and completing the construction of the BMC mirror image.
In other modes of the present application, the initialization operation may be performed after all code packages are acquired.
As shown in fig. 5, the system 500 includes:
a general acquisition unit 510, configured to acquire a general code packet of a BMC image from a pre-built general code library;
a type identifying unit 520, configured to read a BMC identifying signal, where the identifying signal indicates a platform type and an item type of the BMC;
a special acquisition unit 530, configured to acquire a matched platform code package from a platform code library storing multiple platform code packages according to the identification signal, and acquire a matched project code package from a project code library storing multiple project code packages;
the image construction unit 540 is configured to construct a BMC image based on the generic code package, the matched platform code package, and the matched project code package.
Alternatively, as an embodiment of the present invention, the general acquisition unit is configured to:
acquiring a general code package of the BMC mirror image from a general code library, wherein the general code package comprises general function code files of various BMCs;
and storing the universal code packet to a designated address, and initializing the universal code packet under the designated address in the starting process.
Alternatively, as an embodiment of the present invention, the type identifying unit is configured to:
reading an identification signal in the form of a binary string transmitted by a signal definition pin group, wherein the signal definition pin group comprises a plurality of universal pins which are connected with a dial switch;
and analyzing the platform type and the item type from the identification signal according to a set identification signal analysis rule, wherein the identification signal analysis rule limits the binary character string content corresponding to various platform types and item types.
Alternatively, as an embodiment of the present invention, the type identifying unit is configured to:
the set signal limiting pin group comprises 8 universal pins and generates sequence numbers of the 8 universal pins;
reading the transmission signals of the universal pins according to the sequence numbers to obtain 8-bit binary character strings;
the most significant bit of the binary string defining 8 bits indicates the platform type, and the remaining 7 bit strings indicate the item type.
Alternatively, as an embodiment of the present invention, the special acquisition unit is configured to:
analyzing the platform type code and the item type code from the identification signal;
retrieving matched platform code packages from a platform code library according to the platform type codes, wherein the platform code library stores special platform code packages of multiple platform types, and the name of each platform code package comprises codes of corresponding platform types;
the matching project code packages are retrieved from a project code library according to the project type codes, the project code library stores special project code packages of a plurality of project types, and the name of each project code package comprises the code of the corresponding project type.
Alternatively, as an embodiment of the present invention, the special acquisition unit is configured to:
the platform code packet storage address corresponding to each platform type and the project code packet storage address corresponding to each project type are stored in a storage list in advance;
searching a first storage address of a platform code packet matched with the identification signal and a second storage address of a project code packet matched with the identification signal according to the storage list;
the matched platform code package and the matched project code package are loaded from the first storage address and the second storage address, respectively.
Fig. 6 is a schematic structural diagram of a terminal 600 according to an embodiment of the present invention, where the terminal 600 may be used to execute the BMC image construction method according to the embodiment of the present invention.
The terminal 600 may include: processor 610, memory 620, and communication unit 630. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the server as shown in the drawings is not limiting of the invention, as it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
The memory 620 may be used to store instructions for execution by the processor 610, and the memory 620 may be implemented by any type of volatile or non-volatile memory terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. The execution of the instructions in memory 620, when executed by processor 610, enables terminal 600 to perform some or all of the steps in the method embodiments described below.
The processor 610 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by running or executing software programs and/or modules stored in the memory 620, and invoking data stored in the memory. The processor may be comprised of an integrated circuit (Integrated Circuit, simply referred to as an IC), for example, a single packaged IC, or may be comprised of a plurality of packaged ICs connected to the same function or different functions. For example, the processor 610 may include only a central processing unit (Central Processing Unit, simply CPU). In the embodiment of the invention, the CPU can be a single operation core or can comprise multiple operation cores.
A communication unit 630, configured to establish a communication channel, so that the storage terminal can communicate with other terminals. Receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium in which a program may be stored, which program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
Therefore, the invention realizes special storage by orderly dividing the image files, greatly reduces the storage amount, then obtains the matched subfiles according to the identification signal of the BMC, and can complete the image construction of the BMC after initializing all subfiles. The invention can greatly improve the software development and maintenance efficiency and the on-line operation and maintenance efficiency, and the technical effects achieved by the embodiment can be seen from the description above, and the description is omitted here.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium such as a U-disc, a mobile hard disc, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc. various media capable of storing program codes, including several instructions for causing a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the terminal embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
Although the present invention has been described in detail by way of preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications and substitutions may be made in the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and it is intended that all such modifications and substitutions be within the scope of the present invention/be within the scope of the present invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. The BMC mirror image construction method is characterized by comprising the following steps:
acquiring a general code package of the BMC mirror image from a pre-constructed general code library, wherein the general code package comprises general function code files of various BMCs;
reading a BMC identification signal, wherein the identification signal indicates the platform type and the item type of the BMC;
obtaining matched platform code packages from a platform code library storing a plurality of platform code packages according to the identification signals, and obtaining matched project code packages from a project code library storing a plurality of project code packages;
constructing a BMC image based on the universal code package, the matched platform code package and the matched project code package;
the platform code bank stores special platform code packages of various platform types, and the name of each platform code package comprises codes of the corresponding platform type; the project code stores specialized project code packages of multiple project types, and the name of each project code package includes an encoding of the corresponding project type.
2. The method of claim 1, wherein retrieving the generic code package of the BMC image from a pre-built generic code library comprises:
acquiring a general code packet of the BMC mirror image from a general code library;
and storing the universal code packet to a designated address, and initializing the universal code packet under the designated address in the starting process.
3. The method of claim 1, wherein reading a BMC identification signal, the identification signal indicating a platform type and an item type of the BMC, comprises:
reading an identification signal in the form of a binary string transmitted by a signal definition pin group, wherein the signal definition pin group comprises a plurality of universal pins which are connected with a dial switch;
and analyzing the platform type and the item type from the identification signal according to a set identification signal analysis rule, wherein the identification signal analysis rule limits the binary character string content corresponding to various platform types and item types.
4. A method according to claim 3, characterized by reading a BMC identification signal indicating the platform type and item type of the BMC, comprising:
the set signal limiting pin group comprises 8 universal pins and generates sequence numbers of the 8 universal pins;
reading the transmission signals of the universal pins according to the sequence numbers to obtain 8-bit binary character strings;
the most significant bit of the binary string defining 8 bits indicates the platform type, and the remaining 7 bit strings indicate the item type.
5. The method of claim 1, wherein retrieving the matched platform code package from a platform code library storing a plurality of platform code packages and retrieving the matched project code package from a project code library storing a plurality of project code packages based on the identification signal comprises:
analyzing the platform type code and the item type code from the identification signal;
retrieving the matched platform code package from the platform code library according to the platform type code;
the matching project code packages are retrieved from the project code library according to the project type codes.
6. The method of claim 1, wherein retrieving the matched platform code package from a platform code library storing a plurality of platform code packages and retrieving the matched project code package from a project code library storing a plurality of project code packages based on the identification signal comprises:
the platform code packet storage address corresponding to each platform type and the project code packet storage address corresponding to each project type are stored in a storage list in advance;
searching a first storage address of a platform code packet matched with the identification signal and a second storage address of a project code packet matched with the identification signal according to the storage list;
the matched platform code package and the matched project code package are loaded from the first storage address and the second storage address, respectively.
7. A BMC image building system, comprising:
the general acquisition unit is used for acquiring a general code packet of the BMC mirror image from a pre-constructed general code library, wherein the general code packet comprises general function code files of various BMCs;
the type identification unit is used for reading a BMC identification signal, wherein the identification signal indicates the platform type and the item type of the BMC;
the special acquisition unit is used for acquiring matched platform code packages from a platform code library storing various platform code packages according to the identification signals and acquiring matched project code packages from a project code library storing various project code packages;
the image construction unit is used for constructing the BMC image based on the universal code package, the matched platform code package and the matched project code package;
the platform code bank stores special platform code packages of various platform types, and the name of each platform code package comprises codes of the corresponding platform type; the project code stores specialized project code packages of multiple project types, and the name of each project code package includes an encoding of the corresponding project type.
8. The system of claim 7, wherein the type identification unit is configured to:
reading an identification signal in the form of a binary string transmitted by a signal definition pin group, wherein the signal definition pin group comprises a plurality of universal pins which are connected with a dial switch;
and analyzing the platform type and the item type from the identification signal according to a set identification signal analysis rule, wherein the identification signal analysis rule limits the binary character string content corresponding to various platform types and item types.
9. A terminal, comprising:
a BMC and a memory for storing execution instructions of the processor; the BMC comprises a signal limiting pin group, wherein a plurality of universal pins of the signal limiting pin group are connected with a dial switch;
wherein the BMC is configured to perform the method of any of claims 1-6.
10. A computer readable storage medium storing a computer program, which when executed by a processor implements the method of any one of claims 1-6.
CN202111335532.7A 2021-11-11 2021-11-11 BMC mirror image construction method, system, terminal and storage medium Active CN114115977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111335532.7A CN114115977B (en) 2021-11-11 2021-11-11 BMC mirror image construction method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111335532.7A CN114115977B (en) 2021-11-11 2021-11-11 BMC mirror image construction method, system, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114115977A CN114115977A (en) 2022-03-01
CN114115977B true CN114115977B (en) 2024-01-12

Family

ID=80378694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111335532.7A Active CN114115977B (en) 2021-11-11 2021-11-11 BMC mirror image construction method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114115977B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436792A (en) * 2017-07-24 2017-12-05 努比亚技术有限公司 ROM adaptation methods, equipment and storage medium
CN108173712A (en) * 2017-12-26 2018-06-15 郑州云海信息技术有限公司 A kind of double-mirror BMC stability test methods
CN111414169A (en) * 2020-02-21 2020-07-14 苏州浪潮智能科技有限公司 BMC (baseboard management controller) image upgrading method and related components

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436792A (en) * 2017-07-24 2017-12-05 努比亚技术有限公司 ROM adaptation methods, equipment and storage medium
CN108173712A (en) * 2017-12-26 2018-06-15 郑州云海信息技术有限公司 A kind of double-mirror BMC stability test methods
CN111414169A (en) * 2020-02-21 2020-07-14 苏州浪潮智能科技有限公司 BMC (baseboard management controller) image upgrading method and related components

Also Published As

Publication number Publication date
CN114115977A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US7293165B1 (en) BMC-hosted boot ROM interface
US9395968B1 (en) Uniquely identifying and validating computer system firmware
US9301164B2 (en) Method, system, and terminal for performing system update between mobile communication terminals
US7099818B1 (en) System and method for automatically matching components in a debugging system
CN109426613B (en) Method for retrieving debugging data in UEFI and computer system thereof
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
CN114003538B (en) Identification method of intelligent network card and intelligent network card
CN101896889A (en) Radio terminal, radio terminal nonvolatile memory, and diagnosis information fail-safe storage method
CN110119623A (en) A kind of credible main board implementation method for realizing that firmware is actively measured using TPCM
CN109426527B (en) Computer system and method for sharing Bluetooth data between UEFI firmware and operating system
US20030188146A1 (en) Method of ordered execution of firmware modules in a pre-memory execution environment
US20230315213A1 (en) Program download method for intelligent terminal and intelligent terminal
CN114385251A (en) Operating system booting method, system, terminal and storage medium based on memory
CN111078305A (en) Information acquisition method and device, server and information management system
WO2016061016A1 (en) Api versioning independent of product releases
CN113626276A (en) Method, system, terminal and storage medium for identifying HBA card model of server
CN114115977B (en) BMC mirror image construction method, system, terminal and storage medium
CN116627472A (en) Firmware program upgrading method and server of high-speed peripheral component equipment
CN110119625A (en) A kind of trusted computing method
CN111709030B (en) Trusted platform module board card
US11354109B1 (en) Firmware updates using updated firmware files in a dedicated firmware volume
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools
CN112667544A (en) Method, device, system and medium for controlling mainboard slot enabling
CN115129384A (en) Electronic equipment and running method of starting program of electronic equipment

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