CN107092509B - Method for updating firmware by using BMC - Google Patents

Method for updating firmware by using BMC Download PDF

Info

Publication number
CN107092509B
CN107092509B CN201710256566.4A CN201710256566A CN107092509B CN 107092509 B CN107092509 B CN 107092509B CN 201710256566 A CN201710256566 A CN 201710256566A CN 107092509 B CN107092509 B CN 107092509B
Authority
CN
China
Prior art keywords
bmc
firmware
flash
chip
updating
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
CN201710256566.4A
Other languages
Chinese (zh)
Other versions
CN107092509A (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.)
Shandong Inspur Science Research Institute Co Ltd
Original Assignee
Inspur Group 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 Inspur Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201710256566.4A priority Critical patent/CN107092509B/en
Publication of CN107092509A publication Critical patent/CN107092509A/en
Application granted granted Critical
Publication of CN107092509B publication Critical patent/CN107092509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The invention discloses a method for updating firmware by using BMC, which comprises the following steps: in the server, updating through a network to enable the BMC to be a burner, updating firmware of Flash with the same type as the BMC, starting the BMC in an SPI Flash mode, and fixing the SPI Flash on the PCB by using a chip holder. Compared with the prior art, the method for updating the firmware by using the BMC can enable the BMC to become a burner (only Flash of the same type is burnt) without a third-party tool, so that the firmware is updated, and the method has the advantages of strong practicability, low firmware updating cost, easiness in implementation, wide application range and good popularization and application values.

Description

Method for updating firmware by using BMC
Technical Field
The invention relates to the technical field of server management, in particular to a method for updating firmware by using BMC.
Background
The BMC executes a server remote management controller, which is called Basebard management controller in English. The method can perform operations such as firmware upgrading, machine equipment checking and the like on the machine in a state that the machine is not started.
There are various ways for the BMC to update the firmware, such as updating via a network, updating via a programmer, etc. Under certain conditions (for example, when Flash is erased in the network updating process, the updating is interrupted due to careless power failure, and the original system cannot be restarted), the burner is required to update the firmware, and if the burner or the burner seat is not available at the moment, the updating work is inconvenient.
Based on this, the invention provides a method for updating firmware by using BMC.
Disclosure of Invention
The technical task of the invention is to provide a method for updating firmware by using BMC aiming at the defects.
A method for updating firmware by using BMC is implemented by the following steps: in the server, updating through a network to enable the BMC to be a burner, updating firmware of Flash with the same model as the BMC, starting the BMC in an SPI Flash mode, and fixing the SPIFlash on the PCB board by using a chip holder.
The detailed process comprises the following steps:
firstly, installing a Flash A on a chip holder, and configuring a BMC into a burner mode after a server system is started based on the Flash A;
taking out the Flash A chip and replacing the Flash A chip with a Flash B chip of firmware of the same model to be programmed;
the BMC starts to update the firmware and starts to write the Flash B chip;
and after the updating is finished, the Flash A chip is replaced, and the uploaded firmware is burnt into the Flash B chip.
The process of configuring the BMC into the burner mode is as follows:
firstly, burning BMC firmware into Flash A, and entering a Web management page after a system is started;
selecting a burner mode in a Web management page, and entering a firmware updating stage;
the Web page sends a command for updating to the BMC, the BMC executes the command after receiving the command, and returns an execution state to the Web page after the execution is finished;
after the Web page acquires the state, if the execution is successful, popping up an uploading firmware dialog box, and at the moment, successfully configuring the BMC into a burner mode; and if the execution fails, restarting the system.
The server is provided with a Linux system, and correspondingly, when the Web page sends a preparation updating command to the BMC, the preparation updating command comprises the following steps: all client requests, kill firmware update independent processes, rmmod all modules, unmount firmware update independent file systems, mount/dev/shm devices to/mnt directories and format as tmpfs file systems are closed.
The process of programming the firmware with the same model number written by the BMC to the Flash B chip is as follows:
firstly, selecting firmware to be programmed, uploading selected information to a Web page, and sending a firmware verification command to a BMC by the Web page;
the BMC receives the verification command, reads the size of the uploaded firmware and starts to update the firmware;
the Web page reads the update progress of the BMC at regular time and displays the update progress on the Web;
and after the updating is finished, taking out the Flash B chip in the BMC chip holder, replacing the Flash B chip with the Flash A chip, burning the uploaded firmware into the Flash B chip, and restarting the BMC to finish the updating work.
When the BMC updates the firmware, the Flash size is erased according to the size of the uploaded firmware.
The Web page and the BMC updating process adopt an HTTP/HTTPs protocol, and information interaction is carried out through inter-process communication.
Compared with the prior art, the method for updating the firmware by using the BMC has the following beneficial effects:
according to the method for updating the firmware by using the BMC, disclosed by the invention, the BMC can be a burner (only Flash of the same type is burnt) without a third-party tool, so that the firmware is updated, the practicability is high, the firmware updating cost is lower, the implementation is easy, the application range is wide, and the method has good popularization and application values.
Drawings
FIG. 1 is a flow chart of the implementation of the method of the present invention.
Detailed Description
The invention is further described with reference to the following figures and specific embodiments.
As shown in fig. 1, a method for updating firmware using BMC adopts HTTP/HTTPs protocol to update through a network, so that BMC becomes a burner and can update firmware of BMC Flash.
The realization process is as follows: in the server, updating through a network to enable the BMC to be a burner, updating firmware of Flash with the same type as the BMC, starting the BMC in an SPI Flash mode, and fixing the SPI Flash on the PCB by using a chip holder.
The scheme is characterized in that the BMC is started in an SPI Flash mode, and the SPI Flash uses a chip holder instead of being directly welded on a PCB. The Flash updating steps are as follows:
burning the BMC firmware with the function into Flash A, and entering a Web to enter a management page after a system is started;
selecting a burner mode in a firmware updating page, and entering a firmware updating stage;
the Web page sends a command for updating to the BMC, the BMC executes the command after receiving the command, and returns an execution state to the Web after the execution is finished;
the server is provided with a Linux system, and correspondingly, the Web page sends a command for preparing update to the BMC. The BMC executes the prepare update command. The main operations include: closing all client requests, processes irrelevant to kill firmware update, all rmmod modules, file systems irrelevant to unmount firmware update, mounting/dev/shm equipment to/mnt directories, formatting the devices into tmpfs file systems and the like;
after the Web acquires the state, if the execution is successful, popping up an uploading firmware dialog box; if the execution fails, the system is restarted;
taking out the Flash A chip in the BMC chip holder, and replacing the Flash A chip with the same model to be programmed with the Flash B chip;
selecting firmware to be programmed in the firmware uploading dialog box, and after uploading is finished, sending a firmware verification command to the BMC by the Web;
the BMC receives the verification command, reads the size of the uploaded firmware and starts to update the firmware;
the Web reads the update progress of the BMC at regular time and displays the update progress on the Web;
after the updating is finished, taking out the Flash B chip in the BMC chip holder, then replacing the Flash B chip with the Flash A chip, burning the uploaded firmware into the Flash B, restarting the BMC to finish the updating operation, and burning the uploaded firmware into the Flash B to finish the updating work;
when the BMC updates the firmware, the Flash size is erased according to the size of the uploaded firmware, so that the time is saved.
And the Web and the BMC updating process carry out information interaction through interprocess communication.
The present invention can be easily implemented by those skilled in the art from the above detailed description. It should be understood, however, that the intention is not to limit the invention to the particular embodiments described. On the basis of the disclosed embodiments, a person skilled in the art can combine different technical features at will, thereby implementing different technical solutions.
In addition to the technical features described in the specification, the technology is known to those skilled in the art.

Claims (4)

1. A method for updating firmware by using BMC is characterized by comprising the following steps: in the server, updating through a network to enable the BMC to be a burner, updating firmware of Flash with the same type as the BMC, starting the BMC in an SPI Flash mode, and fixing the SPI Flash on a PCB (printed Circuit Board) by using a chip holder;
the detailed process comprises the following steps:
firstly, installing Flash A on a chip holder, and configuring the BMC into a burner mode after a server system is started based on the Flash A;
taking out the Flash A chip and replacing the Flash A chip with a Flash B chip of firmware of the same model to be programmed;
the BMC starts to update the firmware and starts to write the Flash B chip;
after the updating is finished, the Flash A chip is replaced, and the uploaded firmware is burnt into the Flash B chip;
the process of configuring the BMC into the burner mode is as follows:
firstly, burning BMC firmware into Flash A, and entering a Web management page after a system is started;
selecting a burner mode in a Web management page, and entering a firmware updating stage;
the Web page sends a command for updating to the BMC, the BMC executes the command after receiving the command, and returns an execution state to the Web page after the execution is finished;
after the Web page acquires the state, if the execution is successful, popping up an uploading firmware dialog box, and at the moment, successfully configuring the BMC into a burner mode; if the execution fails, the system is restarted;
the process of programming the firmware with the same model number written by the BMC to the Flash B chip is as follows:
firstly, selecting firmware to be programmed, uploading selected information to a Web page, and sending a firmware verification command to a BMC by the Web page;
the BMC receives the verification command, reads the size of the uploaded firmware and starts to update the firmware;
the Web page reads the update progress of the BMC at regular time and displays the update progress on the Web;
and after the updating is finished, taking out the Flash B chip in the BMC chip holder, replacing the Flash B chip with the Flash A chip, burning the uploaded firmware into the Flash B chip, and restarting the BMC to finish the updating work.
2. The method of claim 1, wherein the server is installed in a Linux system, and the Web page sends the update preparation command to the BMC, and the update preparation command comprises: all client requests, kill firmware update independent processes, rmmod all modules, unmount firmware update independent file systems, mount/dev/shm devices to/mnt directories and format as tmpfs file systems are closed.
3. The method of claim 1, wherein when the BMC updates the firmware, the Flash size is erased according to the size of the uploaded firmware.
4. The method of claim 1, wherein the Web page and the BMC update process use HTTP/HTTPs protocol for information interaction via interprocess communication.
CN201710256566.4A 2017-04-19 2017-04-19 Method for updating firmware by using BMC Active CN107092509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710256566.4A CN107092509B (en) 2017-04-19 2017-04-19 Method for updating firmware by using BMC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710256566.4A CN107092509B (en) 2017-04-19 2017-04-19 Method for updating firmware by using BMC

Publications (2)

Publication Number Publication Date
CN107092509A CN107092509A (en) 2017-08-25
CN107092509B true CN107092509B (en) 2020-05-08

Family

ID=59636953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710256566.4A Active CN107092509B (en) 2017-04-19 2017-04-19 Method for updating firmware by using BMC

Country Status (1)

Country Link
CN (1) CN107092509B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851138A (en) * 2019-11-06 2020-02-28 山东超越数控电子股份有限公司 BMC software development method for separating kernel and application
CN111399883A (en) * 2020-03-20 2020-07-10 苏州浪潮智能科技有限公司 BMC firmware updating method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750155A (en) * 2011-04-19 2012-10-24 鸿富锦精密工业(深圳)有限公司 Control board for updating firmware as well as firmware updating system and method
US8549277B2 (en) * 2010-07-12 2013-10-01 Hon Hai Precision Industry Co., Ltd. Server system including diplexer
CN103412775A (en) * 2013-08-12 2013-11-27 浪潮电子信息产业股份有限公司 Method for refreshing BMC firmware intelligently and automatically
CN103970565A (en) * 2014-04-24 2014-08-06 浪潮电子信息产业股份有限公司 Method for implementing FPGA multi-path downloading configuration in server system
CN104834543A (en) * 2015-04-24 2015-08-12 曙光信息产业(北京)有限公司 Method and device for externally refreshing BIOS (basic input/output system) firmware
CN105867949A (en) * 2016-04-29 2016-08-17 中国人民解放军国防科学技术大学 Online BIOS (basic input/output system) refreshing method for multi-node server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8549277B2 (en) * 2010-07-12 2013-10-01 Hon Hai Precision Industry Co., Ltd. Server system including diplexer
CN102750155A (en) * 2011-04-19 2012-10-24 鸿富锦精密工业(深圳)有限公司 Control board for updating firmware as well as firmware updating system and method
CN103412775A (en) * 2013-08-12 2013-11-27 浪潮电子信息产业股份有限公司 Method for refreshing BMC firmware intelligently and automatically
CN103970565A (en) * 2014-04-24 2014-08-06 浪潮电子信息产业股份有限公司 Method for implementing FPGA multi-path downloading configuration in server system
CN104834543A (en) * 2015-04-24 2015-08-12 曙光信息产业(北京)有限公司 Method and device for externally refreshing BIOS (basic input/output system) firmware
CN105867949A (en) * 2016-04-29 2016-08-17 中国人民解放军国防科学技术大学 Online BIOS (basic input/output system) refreshing method for multi-node server

Also Published As

Publication number Publication date
CN107092509A (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN101241364B (en) Local controller, remote management controller and method for automatically updating the local controller of an air conditioner system
EP2456257B1 (en) Method and system for upgrading wireless data card
CN108170451B (en) Method and system for controlling BIOS version upgrading by server BMC
CN107092509B (en) Method for updating firmware by using BMC
US10698678B2 (en) Method for online updating firmware of complex programmable logic device
CN104216749A (en) Updating method and updating device for applications
CN103246583A (en) Electronic device with bulk molding compound (BMC) firmware repairing function and repairing method
CN103970565A (en) Method for implementing FPGA multi-path downloading configuration in server system
CN105912365A (en) Method and system for updating mobile terminal system
US20190205109A1 (en) Computer system, baseboard management controller, and os installation method
CN105512026A (en) Automatic batch testing method
CN103997684A (en) Method and device for updating operating system
CN106775590B (en) Method for updating BIOS (basic input/output system) firmware of mainboard by BMC (baseboard management controller)
CN105893072A (en) Chip firmware upgrading method and apparatus
CN109634631A (en) Firmware restoration method, apparatus, electronic equipment and firmware restoration system
WO2023226670A1 (en) Esim firmware upgrade method and apparatus, and device and medium
CN103970556A (en) Updating method and system for power amplification software in radio remote equipment
CN105354068A (en) Network-based robot system software batch installing and upgrading method
CN106484442B (en) Server system and method for updating startup mapping file
CN104469278A (en) Method and device for upgrading monitoring system
CN110737444A (en) Remote self-adaptive dynamic deployment method and system for operating system based on firmware
CN106980792B (en) Control method of application permission, electronic equipment and server
CN110647343B (en) OpenPower server and system deployment method thereof
CN112203170B (en) Upgrading method, device, medium and equipment of optical network unit
CN112152832B (en) Management object processing method and device, related equipment and 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200415

Address after: 250100 Ji'nan high tech Zone, Shandong, No. 1036 wave road

Applicant after: INSPUR GROUP Co.,Ltd.

Address before: 250100, Ji'nan province high tech Zone, Sun Village Branch Road, No. 2877, building, floor, building, on the first floor

Applicant before: JINAN INSPUR HIGH-TECH TECHNOLOGY DEVELOPMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230418

Address after: 250000 building S02, No. 1036, Langchao Road, high tech Zone, Jinan City, Shandong Province

Patentee after: Shandong Inspur Scientific Research Institute Co.,Ltd.

Address before: No. 1036, Shandong high tech Zone wave road, Ji'nan, Shandong

Patentee before: INSPUR GROUP Co.,Ltd.