CN113127044A - BMC upgrading method and device and related components - Google Patents

BMC upgrading method and device and related components Download PDF

Info

Publication number
CN113127044A
CN113127044A CN202110395854.4A CN202110395854A CN113127044A CN 113127044 A CN113127044 A CN 113127044A CN 202110395854 A CN202110395854 A CN 202110395854A CN 113127044 A CN113127044 A CN 113127044A
Authority
CN
China
Prior art keywords
bmc
image file
upgrade
flash
burning
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.)
Pending
Application number
CN202110395854.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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110395854.4A priority Critical patent/CN113127044A/en
Publication of CN113127044A publication Critical patent/CN113127044A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Landscapes

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

Abstract

The application discloses a BMC upgrading method, which comprises the following steps: the upgrading image file of the BMC is written into the PCH Flash in a flashing mode; when the BMC is restarted, detecting whether an upgrade image file exists in PCH Flash; if so, burning the upgrade image file into the BMC Flash so that the BMC is started through the upgrade image file. According to the method and the system, asynchronous BMC upgrading can be realized, and the BMC does not need to be forced to restart immediately, so that external service of the BMC cannot be influenced. The application also discloses a BMC upgrading device, electronic equipment and a computer readable storage medium, which have the beneficial effects.

Description

BMC upgrading method and device and related components
Technical Field
The present application relates to the field of servers, and in particular, to a BMC upgrading method, apparatus, and related components.
Background
With the increase of user demands, the functional complexity of the BMC (Baseboard Management Controller) on the server is higher and higher, and more scenes requiring upgrading of the BMC are required, such as modifying the BUG or adding a new function, which requires upgrading of the BMC. In the prior art, when upgrading the BMC, the upgrade image file needs to be written into the BMC Flash and the BMC is forced to be restarted immediately, and in the writing process and the restarting process, the BMC cannot provide services to the outside, which can cause service interruption.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a BMC upgrading method, a BMC upgrading device, an electronic device and a computer readable storage medium, asynchronous BMC upgrading can be achieved, and BMC restarting is not required to be forced immediately, so that external service of BMC is not affected.
In order to solve the above technical problem, the present application provides a BMC upgrading method, including:
the upgrading image file of the BMC is written into the PCH Flash in a flashing mode;
when the BMC is restarted, detecting whether the updating image file exists in the PCH Flash;
and if so, burning the upgrade image file into a BMC Flash so as to enable the BMC to be started through the upgrade image file.
Preferably, before the upgrade image file is burned into the BMC Flash, the BMC upgrade method further includes:
verifying the upgrade image file;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the successfully verified upgrade image file into BMC Flash.
Preferably, the BMC upgrading method further includes:
and when the upgrade image file fails to be checked, starting the BMC through the initial image file.
Preferably, before the upgrade image file is burned into the BMC Flash, the BMC upgrade method further includes:
integrating the upgrade image files to obtain target image files;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the target image file into BMC Flash.
In order to solve the above technical problem, the present application further provides a BMC upgrading apparatus, including:
the Flash module is used for flashing an upgrade image file of the BMC into the PCH Flash;
the detection module is used for detecting whether the upgrade image file exists in the PCH Flash when the BMC is restarted, and if so, triggering the burning module;
and the burning module is used for burning the upgrade image file into the BMC Flash so as to enable the BMC to be started through the upgrade image file.
Preferably, the BMC upgrading apparatus further includes:
the verification module is used for verifying the upgrade image file;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the successfully verified upgrade image file into BMC Flash.
Preferably, the BMC upgrading apparatus further includes:
and the control module is used for enabling the BMC to be started through the initial image file when the upgrade image file fails to be checked.
Preferably, the BMC upgrading apparatus further includes:
the integration module is used for integrating the upgrade image files to obtain target image files;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the target image file into BMC Flash.
In order to solve the above technical problem, the present application further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the BMC upgrade method as claimed in any one of the above when executing said computer program.
To solve the above technical problem, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the BMC upgrading method according to any one of the above.
The application provides a BMC upgrading method, when BMC is required to be upgraded, an upgrading image file of BMC is firstly flashed into PCH Flash, normal use of BMC is not affected in the flashing process, whether the upgrading image file exists in the PCH Flash or not is detected in any subsequent BMC restarting process, if yes, the upgrading image file is burnt into BMC Flash, BMC upgrading is completed, the whole upgrading process is asynchronous upgrading, BMC restarting is not required to be forced immediately, and therefore external service of BMC is not affected. The application also provides a BMC upgrading device, electronic equipment and a computer readable storage medium, and the BMC upgrading method has the same beneficial effects as the BMC upgrading method.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a flowchart illustrating steps of a BMC upgrade method provided in the present application;
fig. 2 is a schematic structural diagram of a BMC upgrading device provided in the present application.
Detailed Description
The core of the application is to provide a BMC upgrading method, device, electronic equipment and computer readable storage medium, which can realize asynchronous BMC upgrading without forcing BMC restart immediately, thereby not affecting external service of BMC.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a BMC upgrading method provided in the present application, where the BMC upgrading method includes:
s101: the upgrading image file of the BMC is written into the PCH Flash in a flashing mode;
specifically, an area for storing an upgrade image file of BMC is divided in PCH (platform memory controller Hub, an integrated south bridge of intel corporation) Flash in advance, when the BMC needs to be upgraded, the upgrade image file is firstly written into the PCH Flash through an in-band tool, the writing speed is improved, and meanwhile, the upgrade image file of the BMC does not need to be directly written into the BMC Flash, so that the BMC can normally operate, and the normal work of the BMC cannot be influenced.
S102: when the BMC is restarted, detecting whether an upgrade image file exists in the PCH Flash, if so, executing S103;
s103: and burning the upgrade image file into the BMC Flash so as to enable the BMC to be started through the upgrade image file.
It can be understood that there are various operating conditions that require BMC restart, and therefore, in this embodiment, in the process of BMC restart each time, it is detected whether an upgrade image file exists in PCH Flash, and if so, the upgrade image file is burned into BMC Flash, and the upgrade of BMC is completed in the process of BMC restart, so that BMC is started according to the upgrade image file. The whole upgrading process is asynchronous upgrading, and the BMC does not need to be forced to restart immediately, so that the external service of the BMC cannot be influenced.
As a preferred embodiment, before burning the upgrade image file into the BMC Flash, the BMC upgrade method further includes:
verifying the upgrade image file;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the successfully verified upgrade image file into the BMC Flash.
Specifically, in order to ensure the operation stability and the safety of the server, the upgrade image file needs to be checked, so that potential safety hazards caused by malicious tampering of the upgrade file are avoided, the checking mode can be md5 or hash, and the checking mode can be selected according to actual engineering requirements, which is not specifically limited herein.
Specifically, the upgrade image file which is successfully checked is burned into the BMC Flash, so that the BMC can be started through the upgrade image file, the upgrade image file which is failed in checking is discarded, and the BMC is still started according to the initial image file which is used before the upgrade image file is received.
As a preferred embodiment, before burning the upgrade image file into the BMC Flash, the BMC upgrade method further includes:
integrating the upgrade image files to obtain a target image file;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the target image file into the BMC Flash.
It can be understood that, in the present application, the upgrade image file is stored in the PCH Flash in advance, and in the process of restarting the BMC, the upgrade image file is detected to exist in the PCH Flash, and after the upgrade image file is acquired, the upgrade image file is integrated into a target image file meeting the storage requirement of the BMC Flash, and then the target image file is burned into the BMC Flash, so that the BMC is started according to the target image file to complete BMC upgrade.
In the application, it is considered that the PCH Flash can be originally accessed in-band, and therefore, an area, such as 32M, in which the upgrade image file of the BMC can be stored is divided in the PCH Flash. Under an OS (Operation System), the image file is updated and written into the PCH Flash, so that the normal use of BMC is not influenced, and the writing speed can be increased. When the BMC is restarted next time, the BMC reads the upgrade image file from the PCH Flash first, performs integrity check, and if the check is passed, the upgrade image file is flushed into the BMC Flash, thereby completing the upgrade. According to the method and the system, BMC can be upgraded quickly, the whole upgrading process is asynchronous upgrading, the BMC is not required to be forced to restart, integrity verification of the upgrade image file is added, and the safety is high.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a BMC upgrading device provided in the present application, where the BMC upgrading device includes:
the Flash module 1 is used for flashing an upgrade image file of the BMC into the PCH Flash;
the detection module 2 is used for detecting whether an upgrade image file exists in the PCH Flash when the BMC is restarted, and if so, the burning module 3 is triggered;
and the burning module 3 is used for burning the upgrade image file into the BMC Flash so as to enable the BMC to be started through the upgrade image file.
It can be seen that, in this embodiment, when BMC needs to be upgraded, the upgrade image file of BMC is first written into PCH Flash, the normal use of BMC is not affected during the writing process, and in any subsequent restart process of BMC, it is detected whether there is an upgrade image file in PCH Flash, if there is an upgrade image file, the upgrade image file is burned into BMC Flash to complete BMC upgrade, the whole upgrade process is asynchronous upgrade, and BMC does not need to be immediately forced to restart, so that external services of BMC are not affected.
As a preferred embodiment, the BMC upgrading apparatus further includes:
the verification module is used for verifying the upgrade image file;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the successfully verified upgrade image file into the BMC Flash.
As a preferred embodiment, the BMC upgrading apparatus further includes:
and the control module is used for starting the BMC through the initial image file when the verification of the upgrading image file fails.
As a preferred embodiment, the BMC upgrading apparatus further includes:
the integration module is used for integrating the upgrade image files to obtain target image files;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the target image file into the BMC Flash.
In another aspect, the present application further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the BMC upgrade method as described in any one of the above embodiments when executing the computer program.
For an introduction of an electronic device provided in the present application, please refer to the above embodiments, which are not described herein again.
The electronic equipment provided by the application has the same beneficial effects as the BMC upgrading method.
In another aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the BMC upgrading method as described in any one of the above embodiments.
For the introduction of a computer-readable storage medium provided in the present application, please refer to the above embodiments, which are not described herein again.
The computer-readable storage medium provided by the application has the same beneficial effects as the BMC upgrading method.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A BMC upgrading method is characterized by comprising the following steps:
the upgrading image file of the BMC is written into the PCH Flash in a flashing mode;
when the BMC is restarted, detecting whether the updating image file exists in the PCH Flash;
and if so, burning the upgrade image file into a BMC Flash so as to enable the BMC to be started through the upgrade image file.
2. The BMC upgrade method according to claim 1, wherein before burning the upgrade image file into BMC Flash, the BMC upgrade method further comprises:
verifying the upgrade image file;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the successfully verified upgrade image file into BMC Flash.
3. The BMC upgrade method of claim 2, further comprising:
and when the upgrade image file fails to be checked, starting the BMC through the initial image file.
4. The BMC upgrade method according to claim 1, wherein before burning the upgrade image file into BMC Flash, the BMC upgrade method further comprises:
integrating the upgrade image files to obtain target image files;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the target image file into BMC Flash.
5. A BMC upgrade apparatus, comprising:
the Flash module is used for flashing an upgrade image file of the BMC into the PCH Flash;
the detection module is used for detecting whether the upgrade image file exists in the PCH Flash when the BMC is restarted, and if so, triggering the burning module;
and the burning module is used for burning the upgrade image file into the BMC Flash so as to enable the BMC to be started through the upgrade image file.
6. The BMC upgrade device of claim 5, further comprising:
the verification module is used for verifying the upgrade image file;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the successfully verified upgrade image file into BMC Flash.
7. The BMC upgrade device of claim 6, further comprising:
and the control module is used for enabling the BMC to be started through the initial image file when the upgrade image file fails to be checked.
8. The BMC upgrade device of claim 6, further comprising:
the integration module is used for integrating the upgrade image files to obtain target image files;
the process of burning the upgrade image file into the BMC Flash comprises the following steps:
and burning the target image file into BMC Flash.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the BMC upgrade method as claimed in any one of claims 1-4 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the BMC upgrade method according to any one of claims 1 to 4.
CN202110395854.4A 2021-04-13 2021-04-13 BMC upgrading method and device and related components Pending CN113127044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110395854.4A CN113127044A (en) 2021-04-13 2021-04-13 BMC upgrading method and device and related components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110395854.4A CN113127044A (en) 2021-04-13 2021-04-13 BMC upgrading method and device and related components

Publications (1)

Publication Number Publication Date
CN113127044A true CN113127044A (en) 2021-07-16

Family

ID=76776142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110395854.4A Pending CN113127044A (en) 2021-04-13 2021-04-13 BMC upgrading method and device and related components

Country Status (1)

Country Link
CN (1) CN113127044A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886441A (en) * 2017-02-28 2017-06-23 郑州云海信息技术有限公司 A kind of server system and FLASH collocation methods
CN109885530A (en) * 2019-02-27 2019-06-14 苏州浪潮智能科技有限公司 A kind of the operation management framework and server of server
CN111176701A (en) * 2019-12-13 2020-05-19 苏州浪潮智能科技有限公司 Firmware upgrading method and device based on external memory card
CN111475215A (en) * 2020-04-08 2020-07-31 苏州浪潮智能科技有限公司 Server starting method, device and related equipment
CN112596742A (en) * 2020-11-30 2021-04-02 新华三云计算技术有限公司 BMC software upgrading method, device, equipment and machine readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106886441A (en) * 2017-02-28 2017-06-23 郑州云海信息技术有限公司 A kind of server system and FLASH collocation methods
CN109885530A (en) * 2019-02-27 2019-06-14 苏州浪潮智能科技有限公司 A kind of the operation management framework and server of server
CN111176701A (en) * 2019-12-13 2020-05-19 苏州浪潮智能科技有限公司 Firmware upgrading method and device based on external memory card
CN111475215A (en) * 2020-04-08 2020-07-31 苏州浪潮智能科技有限公司 Server starting method, device and related equipment
CN112596742A (en) * 2020-11-30 2021-04-02 新华三云计算技术有限公司 BMC software upgrading method, device, equipment and machine readable storage medium

Similar Documents

Publication Publication Date Title
CN102262574B (en) Boot protecting method and device of operating system
CN107729198B (en) Android system firmware verification method and device
CN106775610B (en) Electronic equipment starting method and electronic equipment
CN107783776B (en) Processing method and device of firmware upgrade package and electronic equipment
CN110162429B (en) System repair method, server and storage medium
WO2016206514A1 (en) Startup processing method and device
US20170242685A1 (en) Updating of firmware
CN111625295A (en) Embedded system starting method, device, equipment and storage medium
CN110780942A (en) System starting method and device, node equipment and computer readable storage medium
CN116932010B (en) System firmware upgrading method, device and server
CN102262573B (en) Operating system (OS) start-up protecting method and device
CN113032183A (en) System management method, device, computer equipment and storage medium
CN117130672A (en) Server start flow control method, system, terminal and storage medium
CN114793196B (en) Firmware upgrading method, device, equipment and storage medium
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN113127044A (en) BMC upgrading method and device and related components
CN114237722B (en) System starting method, device, equipment and engineering vehicle
CN111783162B (en) Data protection implementation method and device and computer equipment
CN113626792B (en) PCIe Switch firmware secure execution method, device, terminal and storage medium
CN103309769A (en) Operation system starting protection method and device
CN113377425B (en) BMC firmware generation method and device, BMC starting method and device and storage medium
CN115658152A (en) Firmware upgrading method, firmware, electronic device and computer readable storage medium
CN114356658A (en) Processing method of firmware upgrading exception, computer equipment and readable storage medium
CN114579971A (en) Starting method of safety control module and related device
CN114153503A (en) BIOS control method, device and 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