CN111857847A - Method, device, equipment and storage medium for dynamically configuring BIOS character string - Google Patents

Method, device, equipment and storage medium for dynamically configuring BIOS character string Download PDF

Info

Publication number
CN111857847A
CN111857847A CN202010606830.4A CN202010606830A CN111857847A CN 111857847 A CN111857847 A CN 111857847A CN 202010606830 A CN202010606830 A CN 202010606830A CN 111857847 A CN111857847 A CN 111857847A
Authority
CN
China
Prior art keywords
character string
bios
byte
string
custom
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010606830.4A
Other languages
Chinese (zh)
Inventor
王兵
钱慧娟
姚藩益
张宏博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou 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 CN202010606830.4A priority Critical patent/CN111857847A/en
Publication of CN111857847A publication Critical patent/CN111857847A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for dynamically configuring BIOS character strings, wherein the method comprises the following steps: updating a customized character string area of the electrified erasable programmable read-only memory of the baseboard management controller; starting a BIOS, reading and judging whether the data length byte and the effective mark byte of the custom character string area are effective or not; when the judgment result is valid, processing the data bytes of the customized character string; and updating the BIOS by using the processed customized character string and displaying the BIOS. The device comprises: the device comprises a custom character string updating module, a custom character string judging module, a custom character string processing module and a BIOS updating module. The invention can reduce the time and labor input of software personnel for modifying, developing and releasing the BIOS version, reduce the cost of batch operation and maintenance of customers, reduce the cost of managing and controlling the BIOS version and software research and development, improve the software reuse and flexibly meet different customization requirements.

Description

Method, device, equipment and storage medium for dynamically configuring BIOS character string
Technical Field
The invention relates to the field of server firmware, in particular to a method, a device, equipment and a storage medium for dynamically configuring a BIOS character string.
Background
In the modern times, due to rapid development of science and technology and society, the application of IT technologies such as internet and big data is more and more extensive, and a server is used as an important infrastructure of the technologies, so that a large amount of deployment and application are obtained, no matter whether calculation or storage is carried out, the dependence on a server system cannot be avoided, and most of data used for exchange and processing are also stored in the server. With the increase of server manufacturers and the refinement of client applications, in recent years, more and more server clients put forward different customized demands for server products, such as personalized design and implementation of the whole server, and private customization of a character string, even a plurality of indexes are included in the range of collection tests. Therefore, for server design and manufacturers, how to make a product meet the requirements of different customers as much as possible becomes an important design consideration.
Currently, System Management BIOS (SMBIOS) character strings in most Basic Input Output Systems (BIOS) of servers already support static modification by a tool provided by an Independent BIOS Vendor (IBV), but need to be modified one by one; some of the strings may be designed to be read from Field Replaceable Unit (FRU) information of a Baseboard Management Controller (BMC), but the FRU defines only a limited string, and cannot be updated by the BMC if the FRU does not include the string. However, many clients require personalized batch update of BIOS strings other than FRUs at present, some BIOS strings even cannot be modified and satisfied by IBV tools, and server manufacturers often reuse existing server products or BIOS versions as much as possible in order to reduce development cost, save labor, satisfy different customization requirements of different clients, and facilitate version management.
The default of character strings displayed in the server system BIOS is stored in the BIOS file of the server, the character strings are generated when the BIOS is compiled, if the character strings are required to be changed, the first method is to modify the BIOS code again and generate a new BIOS file; in the second method, if the character string can support IBV tool modification, the tool can be installed in the system environment of each machine for corresponding modification; third, if the string exists in the FRU, the string may be updated by the FRU. For the BIOS strings outside the FRU, no matter recompiling the BIOS code or modifying the BIOS strings by using the IBV tool, the requirements of all clients for personalized customization and batch deployment cannot be met, the management and control cost of the server manufacturer version and the time investment of software research and development personnel can be greatly increased, the software research and development cost is increased, and the costs of the test personnel and the time of the client operation and maintenance are also increased.
Disclosure of Invention
In order to solve the technical problems, the invention provides a method, a device, equipment and a storage medium for dynamically configuring BIOS character strings, which can reduce the cost of managing and controlling BIOS versions and software research and development, improve software reuse and flexibly meet different customization requirements.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method of dynamically configuring a BIOS string, comprising:
updating a customized character string area of the electrified erasable programmable read-only memory of the baseboard management controller;
starting a BIOS, reading and judging whether the data length byte and the effective mark byte of the custom character string area are effective or not;
when the judgment result is valid, processing the data bytes of the customized character string;
and updating the BIOS by using the processed customized character string and displaying the BIOS.
And further, updating the customized character string area of the electrified erasable programmable read-only memory of the baseboard management controller through an intelligent platform management interface command.
Further, the condition for determining whether the data length byte and the valid flag byte of the custom character string region are valid is specifically: and when the data length byte is larger than 2 and the valid flag byte is not equal to 0, judging that the data length byte is valid.
Further, the custom string region stores ASCII codes.
Further, the processing of the customized character string specifically includes:
and performing numerical system conversion, judgment and interception on the data bytes in the customized character string area to generate a data byte character string, and judging the validity of the generated data byte character string.
Further, when the length of the generated data byte character string is smaller than the specified length, an error prompt is performed.
Further, when the data bytes ASCII code characters are invisible characters, an error prompt is performed.
The invention also provides a device for dynamically configuring the BIOS character string, which comprises:
the customized character string updating module is used for updating a customized character string area of the electrified erasable programmable read-only memory of the baseboard management controller;
the custom character string judging module is used for reading and judging whether the data length byte and the effective mark byte of the custom character string area are effective or not;
the custom character string processing module is used for processing the data bytes of the custom character string;
and the BIOS updating module is used for updating and displaying the BIOS by using the processed customized character string.
The invention also provides a device for dynamically configuring the BIOS character string, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the method for dynamically configuring the BIOS string as described above when executing the computer program.
The present invention also proposes a storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of dynamically configuring a BIOS string as described above.
The invention has the beneficial effects that:
the invention provides a method, a device, equipment and a storage medium for dynamically configuring BIOS character strings, which meet the personalized customization requirements of different customers, can dynamically configure the BIOS by using a BIOS file on the same type of machine without recompiling and releasing the BIOS version, and can meet the requirement of modifying the character strings in batches by the customers; the invention can also be designed into a universal code, and is suitable for a plurality of products. The invention can reduce the time and labor input of software personnel for modifying, developing and releasing the BIOS version, reduce the cost of batch operation and maintenance of customers, reduce the cost of managing and controlling the BIOS version and software research and development, improve the reuse of software and flexibly meet the customization requirements of different customers.
Drawings
FIG. 1 is a flow chart illustrating a method for dynamically configuring BIOS strings according to an embodiment of the present invention;
FIG. 2 is a block diagram of an embodiment of a device for dynamically configuring BIOS strings.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
The embodiment of the invention discloses a method for dynamically configuring BIOS character strings, which comprises the following steps:
updating a customized character string area of the electrified erasable programmable read-only memory of the baseboard management controller;
starting a BIOS, reading and judging whether the data length byte and the effective mark byte of the custom character string area are effective or not;
when the judgment result is valid, processing the data bytes of the customized character string;
and updating the BIOS by using the processed customized character string and displaying the BIOS.
Specifically, fig. 1 shows an embodiment of a method for dynamically configuring a BIOS string, which specifically includes:
s11: updating a custom character string area of an Electrically Erasable Programmable Read Only Memory (EEPROM) of the BMC through an Intelligent Platform Management Interface (IPMI) command, wherein the custom character string area is an N-byte area for storing ASCII codes and is used for meeting the customization requirements of different customers.
The custom string region includes Byte0, Byte1, Byte2-Byte (N-1), where Byte0 is a data length Byte N, Byte1 is a valid flag Byte, and Byte2-Byte (N-1) is a data Byte.
S12: and reading the EEPROM contents through an IPMI command in the starting process of the BIOS.
S13: and judging whether the Byte0 and the Byte1 in the read EEPROM contents are valid or not.
Specifically, the Byte0 and the Byte1 are converted from ASCII code to decimal values, and then a judgment is made:
if the Byte0 is greater than 2 and the Byte1 is not equal to 0, then Byte0, Byte1 are valid, go to S14; if the Byte0 is less than or equal to 2 or the Byte1 is equal to 0, then the Byte0 and the Byte1 are invalidated, and S16 is performed.
S14: carrying out number system conversion, judgment and interception on the Byte2-Byte (N-1) of the EEPROM to generate a final data Byte character string; and if the length of the generated data byte character string is less than the specified length or the data byte is an invalid byte, carrying out error prompt.
Specifically, the specified length M may be specified by the customer, M >0 and M < N, if not specified by the customer, M ═ 1; the invalid bytes include ASCII invisible characters (ASCII code greater than 126 or less than 33) and the range of invalid characters may also be specified by the client.
S15: and updating and displaying the character string of the BIOS by using the processed customized character string.
S16: and displaying by using the default character string of the BIOS, and ending.
The embodiment has expandability and portability, has a general reference application value on a server product supporting BMC management by using other BIOS codes, and is not limited to a Whitley platform and the BIOS of AMI.
As shown in fig. 2, an embodiment of the present invention further provides an apparatus for dynamically configuring a BIOS string, including:
the customized character string updating module is used for updating a customized character string area of the electrified erasable programmable read-only memory of the baseboard management controller;
the custom character string judging module is used for reading and judging whether the data length byte and the effective mark byte of the custom character string area are effective or not;
the custom character string processing module is used for processing the data bytes of the custom character string;
and the BIOS updating module is used for updating and displaying the BIOS by using the processed customized character string.
The embodiment of the present invention further provides a device for dynamically configuring BIOS strings, including:
a memory for storing a computer program;
a processor for implementing the steps of the method for dynamically configuring the BIOS string as described above when executing the computer program.
The embodiment of the present invention further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the method for dynamically configuring the BIOS character string are implemented as described above.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, the scope of the present invention is not limited thereto. Various modifications and alterations will occur to those skilled in the art based on the foregoing description. And are neither required nor exhaustive of all embodiments. On the basis of the technical scheme of the invention, various modifications or changes which can be made by a person skilled in the art without creative efforts are still within the protection scope of the invention.

Claims (10)

1. A method for dynamically configuring a BIOS string, comprising:
updating a customized character string area of the electrified erasable programmable read-only memory of the baseboard management controller;
starting a BIOS, reading and judging whether the data length byte and the effective mark byte of the custom character string area are effective or not;
when the judgment result is valid, processing the data bytes of the customized character string;
and updating the BIOS by using the processed customized character string and displaying the BIOS.
2. The method of claim 1, wherein the updating of the custom string region of the bmc with eeprom is commanded by the ipmi command.
3. The method according to claim 1, wherein the condition for determining whether the data length byte and the valid flag byte of the custom string region are valid is specifically: and when the data length byte is larger than 2 and the valid flag byte is not equal to 0, judging that the data length byte is valid.
4. The method of dynamically configuring a BIOS string of claim 1, wherein the custom string region stores ASCII code.
5. The method of claim 4, wherein the processing the custom string specifically comprises:
and performing numerical system conversion, judgment and interception on the data bytes in the customized character string area to generate a data byte character string, and judging the validity of the generated data byte character string.
6. The method of claim 5, wherein an error prompt is performed when the length of the generated data byte string is less than a specified length.
7. The method of claim 5, wherein an error prompt is generated when the data bytes are ASCII characters that are invisible.
8. An apparatus for dynamically configuring a BIOS string, comprising:
the customized character string updating module is used for updating a customized character string area of the electrified erasable programmable read-only memory of the baseboard management controller;
the custom character string judging module is used for reading and judging whether the data length byte and the effective mark byte of the custom character string area are effective or not;
the custom character string processing module is used for processing the data bytes of the custom character string;
And the BIOS updating module is used for updating and displaying the BIOS by using the processed customized character string.
9. An apparatus for dynamically configuring a BIOS string, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of dynamically configuring BIOS strings according to any one of claims 1 to 7 when executing said computer program.
10. A storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of dynamically configuring a BIOS string as claimed in any one of claims 1 to 7.
CN202010606830.4A 2020-06-29 2020-06-29 Method, device, equipment and storage medium for dynamically configuring BIOS character string Withdrawn CN111857847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010606830.4A CN111857847A (en) 2020-06-29 2020-06-29 Method, device, equipment and storage medium for dynamically configuring BIOS character string

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010606830.4A CN111857847A (en) 2020-06-29 2020-06-29 Method, device, equipment and storage medium for dynamically configuring BIOS character string

Publications (1)

Publication Number Publication Date
CN111857847A true CN111857847A (en) 2020-10-30

Family

ID=72989365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010606830.4A Withdrawn CN111857847A (en) 2020-06-29 2020-06-29 Method, device, equipment and storage medium for dynamically configuring BIOS character string

Country Status (1)

Country Link
CN (1) CN111857847A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114397851A (en) * 2021-11-23 2022-04-26 青岛奥利普自动化控制系统有限公司 Method, device and equipment for processing invalid characters in PLC character string
TWI807521B (en) * 2021-12-07 2023-07-01 神雲科技股份有限公司 Warning method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145455A (en) * 2017-04-19 2017-09-08 深圳市国鑫恒宇科技有限公司 A kind of method that machine system updates SMBIOS static informations
CN109086082A (en) * 2018-06-29 2018-12-25 深圳市同泰怡信息技术有限公司 A kind of method, system and medium using SMBIOS expanded BIOS function

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145455A (en) * 2017-04-19 2017-09-08 深圳市国鑫恒宇科技有限公司 A kind of method that machine system updates SMBIOS static informations
CN109086082A (en) * 2018-06-29 2018-12-25 深圳市同泰怡信息技术有限公司 A kind of method, system and medium using SMBIOS expanded BIOS function

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114397851A (en) * 2021-11-23 2022-04-26 青岛奥利普自动化控制系统有限公司 Method, device and equipment for processing invalid characters in PLC character string
TWI807521B (en) * 2021-12-07 2023-07-01 神雲科技股份有限公司 Warning method

Similar Documents

Publication Publication Date Title
US6158001A (en) Automatic configuration generation
US6754848B1 (en) Method, system and program products for operationally migrating a cluster through emulation
CN110515647B (en) Static resource management method, device, equipment and storage medium
CN115204423A (en) Equipment management method and management server
CN112083971B (en) Component processing method, device and storage medium
CN107608681A (en) Installation method of operating system, device and server
CN101268442B (en) Method and system for configuration of remote data processing systems
CN110688096B (en) Method and device for constructing application program containing plug-in, medium and electronic equipment
CN111857847A (en) Method, device, equipment and storage medium for dynamically configuring BIOS character string
CN112527281A (en) Operator upgrading method and device based on artificial intelligence, electronic equipment and medium
CN111966382A (en) Online deployment method and device of machine learning model and related equipment
CN112988583A (en) Method and device for testing syntax compatibility of database
CN112835568A (en) Project construction method and device
CN112052039A (en) Method and device for synchronously constructing multiple projects and electronic equipment
CN111880822A (en) Dynamic updating method and system based on BIOS Setup interface information
WO2023151397A1 (en) Application program deployment method and apparatus, device, and medium
CN110599112B (en) Network page development and maintenance method and device
CN114968386A (en) Equipment information management method, device and equipment of electronic equipment
CN114356379A (en) Backup-based service upgrading method, device, equipment and storage medium
CN114896317A (en) Data structure conversion method and device, electronic equipment and storage medium
CN111414175A (en) Network installation method, system and device of operating system and readable storage medium
CN113312900A (en) Data verification method and device
CN112559006A (en) Enterprise client automatic upgrading method, system, equipment and storage medium
WO2021230879A1 (en) Generating executables for target operational environments
CN111400319A (en) Method, device and equipment for realizing data processing framework and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20201030