CN111124460A - Online updating method for BMC (baseboard management controller) of autonomous controllable server based on P2A bridge - Google Patents

Online updating method for BMC (baseboard management controller) of autonomous controllable server based on P2A bridge Download PDF

Info

Publication number
CN111124460A
CN111124460A CN201911211313.0A CN201911211313A CN111124460A CN 111124460 A CN111124460 A CN 111124460A CN 201911211313 A CN201911211313 A CN 201911211313A CN 111124460 A CN111124460 A CN 111124460A
Authority
CN
China
Prior art keywords
bmc
bridge
updating
flash
firmware
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
CN201911211313.0A
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.)
Beijing Institute of Computer Technology and Applications
Original Assignee
Beijing Institute of Computer Technology and Applications
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 Beijing Institute of Computer Technology and Applications filed Critical Beijing Institute of Computer Technology and Applications
Priority to CN201911211313.0A priority Critical patent/CN111124460A/en
Publication of CN111124460A publication Critical patent/CN111124460A/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

Landscapes

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

Abstract

The invention relates to an online updating method of an autonomous controllable server BMC (baseboard management controller) based on a P2A bridge, which comprises the following steps: step 1: searching a PCI device corresponding to the BMC in a PCI device list of the server operating system, if the PCI device is found, continuing, and if not, finishing updating; step 2: initializing the found PCI equipment, and enabling the CPU to access a register of the BMC through the P2A bridge; and step 3: determining an updating mode, if all updating is needed, continuing to perform the following steps, otherwise, jumping to the step 5; and 4, step 4: operating a flash controller of the BMC, and writing all the firmware content into the flash; modifying the starting parameters stored in the flash to enable the BMC to start normally next time, and skipping to the step 6; and 5: determining a starting position and an ending position to be updated, and writing the firmware into the flash according to the starting position and the ending position; step 6: and operating a reset register of the BMC, controlling the BMC to reset, and finishing updating. The invention facilitates firmware update of BMCs with P2A bridges.

Description

Online updating method for BMC (baseboard management controller) of autonomous controllable server based on P2A bridge
Technical Field
The invention relates to a server technology of a domestic processor, in particular to an online updating method of an autonomous controllable server BMC (baseboard management controller) based on a P2A bridge.
Background
With the gradual promotion and vigorous support of the independent controllable industry by the country, the independent controllable server based on the domestic processor is popularized and applied in various fields. Due to the fact that requirements for stability and function diversification of the autonomous controllable server are higher and higher, at present, a BMC (baseboard Manager controller) function is commonly carried on the autonomous controllable server to achieve functions of server health state monitoring, remote management, ikvm and the like, and a VGA (video graphics array) controller is commonly integrated in the BMC and can be connected with a CPU (central processing unit) through a PCI (peripheral component interconnect) bus to serve as a display card of the server to provide a display output function of the server.
In the debugging and production stages of the autonomous controllable server, a compiling and programming method is mostly adopted at present. After source code compiling is completed, a designer detaches a flash firmware memory of the server, performs firmware burning through a flash burner, configures starting parameters through a debugging serial port, and restarts the server to perform function verification.
In the existing method for updating the firmware by using the burner, the flash needs to be detached in the firmware updating process, a special burner needs to be used, and the starting parameters are configured by debugging the serial port after the burning is finished.
Disclosure of Invention
The invention aims to provide an online updating method for an autonomous controllable server BMC (baseboard management controller) based on a P2A bridge, which is used for solving the problems in the prior art.
The invention discloses an online updating method of an autonomous controllable server BMC (baseboard management controller) based on a P2A bridge, which comprises the following steps: step 1: searching a PCI device corresponding to the BMC in a PCI device list of the server operating system, if the PCI device is found, continuing, and if not, finishing updating; step 2: initializing the found PCI equipment, and enabling the CPU to access a register of the BMC through the P2A bridge; and step 3: determining an updating mode, if all updating is needed, continuing to perform the following steps, otherwise, jumping to the step 5; and 4, step 4: operating a flash controller of the BMC, and writing all the firmware content into the flash; modifying the starting parameters stored in the flash to enable the BMC to start normally next time, and skipping to the step 6; and 5: determining a starting position and an ending position to be updated, and writing the firmware into the flash according to the starting position and the ending position; step 6: and operating a reset register of the BMC, controlling the BMC to reset, and finishing updating.
According to an embodiment of the P2A bridge-based BMC online updating method for the autonomous controllable server, according to the present invention, for the BMC chip with the P2A bridge, the CPU accesses the BMC register through the PCI bus and the P2A bridge according to the P2A bridge inside the BMC chip.
The invention provides a BMC (baseboard management controller) online updating method based on a P2A Bridge (PCI to AHB Bus Bridge), which is mainly used for debugging and production stages of an autonomous controllable server BMC, can burn and configure starting parameters of firmware under the conditions of not restarting the server and not disassembling a flash, simplifies a BMC updating process, overcomes the defects of low efficiency and complicated steps of the original updating method, and provides convenience for updating the firmware of the BMC with the P2A Bridge.
Drawings
Fig. 1 is a main flow chart of the technical scheme of the invention.
Detailed Description
In order to make the objects, contents, and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be made in conjunction with the accompanying drawings and examples.
Fig. 1 is a main flow chart of the technical solution of the present invention, and as shown in fig. 1, the BMC online updating method provided by the present invention includes the following steps:
step 1: searching a PCI device corresponding to the BMC in a PCI device list of the server operating system, if the PCI device is found, continuing, and if not, finishing updating;
step 2: initializing the found PCI equipment, and enabling the CPU to access a register of the BMC through the P2A bridge;
and step 3: determining an updating mode, if all updating is needed, continuing to perform the following steps, otherwise, jumping to the step 5;
and 4, step 4: operating a flash controller of the BMC, and writing all the firmware content into the flash; modifying the starting parameters stored in the flash to enable the BMC to start normally next time, and skipping to the step 6;
and 5: determining a starting position and an ending position to be updated, and writing the firmware into the flash according to the starting position and the ending position;
step 6: and operating a reset register of the BMC, controlling the BMC to reset, and finishing updating.
According to the P2A bridge inside the BMC chip, for the BMC chip with the P2A bridge, the CPU accesses the BMC register through the PCI bus and the P2A bridge, so that the BMC is controlled to read and write the flash memory, and the purposes of updating firmware and configuring parameters are achieved.
Compared with the prior art, the BMC firmware updating method provided by the invention can update the firmware without powering off or detaching the flash, configures the starting parameters without debugging a cable, and simultaneously supports 2 updating modes of total updating and updating according to partitions. Compared with the traditional scheme, the method does not need a debugging tool and a burner, has simpler and more efficient process, is more flexible according to partition updating, and provides convenience for equipment debugging and production.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (2)

1. An online updating method for a BMC (baseboard management controller) of an autonomous controllable server based on a P2A bridge is characterized by comprising the following steps:
step 1: searching a PCI device corresponding to the BMC in a PCI device list of the server operating system, if the PCI device is found, continuing, and if not, finishing updating;
step 2: initializing the found PCI equipment, and enabling the CPU to access a register of the BMC through the P2A bridge;
and step 3: determining an updating mode, if all updating is needed, continuing to perform the following steps, otherwise, jumping to the step 5;
and 4, step 4: operating a flash controller of the BMC, and writing all the firmware content into the flash; modifying the starting parameters stored in the flash to enable the BMC to start normally next time, and skipping to the step 6;
and 5: determining a starting position and an ending position to be updated, and writing the firmware into the flash according to the starting position and the ending position;
step 6: and operating a reset register of the BMC, controlling the BMC to reset, and finishing updating.
2. The P2A bridge-based autonomous controllable server BMC online update method of claim 1, wherein the CPU accesses the BMC register through the PCI bus and the P2A bridge for the BMC chip with the P2A bridge according to the P2A bridge inside the BMC chip.
CN201911211313.0A 2019-12-02 2019-12-02 Online updating method for BMC (baseboard management controller) of autonomous controllable server based on P2A bridge Pending CN111124460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911211313.0A CN111124460A (en) 2019-12-02 2019-12-02 Online updating method for BMC (baseboard management controller) of autonomous controllable server based on P2A bridge

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911211313.0A CN111124460A (en) 2019-12-02 2019-12-02 Online updating method for BMC (baseboard management controller) of autonomous controllable server based on P2A bridge

Publications (1)

Publication Number Publication Date
CN111124460A true CN111124460A (en) 2020-05-08

Family

ID=70496519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911211313.0A Pending CN111124460A (en) 2019-12-02 2019-12-02 Online updating method for BMC (baseboard management controller) of autonomous controllable server based on P2A bridge

Country Status (1)

Country Link
CN (1) CN111124460A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060212694A1 (en) * 2005-03-16 2006-09-21 Fujitsu Limited Method of updating firmware in computer server systems
CN102467399A (en) * 2010-11-18 2012-05-23 鸿富锦精密工业(深圳)有限公司 Firmware updating system and method for baseboard management controller
CN102855146A (en) * 2011-06-30 2013-01-02 鸿富锦精密工业(深圳)有限公司 Firmware updating system and method
CN103488494A (en) * 2013-08-12 2014-01-01 浪潮电子信息产业股份有限公司 Multi-firmware synchronous updating and upgrading method for blade server
US20160306623A1 (en) * 2015-04-16 2016-10-20 Aic Inc. Control module of node and firmware updating method for the control module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060212694A1 (en) * 2005-03-16 2006-09-21 Fujitsu Limited Method of updating firmware in computer server systems
CN102467399A (en) * 2010-11-18 2012-05-23 鸿富锦精密工业(深圳)有限公司 Firmware updating system and method for baseboard management controller
CN102855146A (en) * 2011-06-30 2013-01-02 鸿富锦精密工业(深圳)有限公司 Firmware updating system and method
CN103488494A (en) * 2013-08-12 2014-01-01 浪潮电子信息产业股份有限公司 Multi-firmware synchronous updating and upgrading method for blade server
US20160306623A1 (en) * 2015-04-16 2016-10-20 Aic Inc. Control module of node and firmware updating method for the control module

Similar Documents

Publication Publication Date Title
TWI543175B (en) Method and apparatus for memory access
CN105354070B (en) A method of passing through I2C updating apparatus firmware
US9298470B2 (en) Method and apparatus for selecting bios program for a processor
JP2016058083A (en) System and method for managing plurality of bios default setting
US7822964B2 (en) Booting apparatus for booting a computer and method therefor and computer with a booting apparatus
US9753824B2 (en) Diagnosis for a server motherboard
TWI707274B (en) A computer-implemented method, a computer system, and a computer-readable storage medium for updating the rom code of a system
TW201423436A (en) Bridging device, automated system and method thereof for automatically manufacturing a storage device
WO2017202338A1 (en) Method and system for loading drive to set-top box
CN105718281A (en) Touch screen firmware upgrading method and device
WO2007056343A2 (en) Networked linux machine and windows software development system
WO2016033941A1 (en) Boot on-line upgrading apparatus and method
CN114661368B (en) Chip and starting method thereof
TWI464583B (en) Method of obtaining command for triggering function
CN113656076A (en) BIOS starting method and device based on hardware multiplexing channel
CN114153477B (en) PCIE driving card firmware upgrading method, device, system, equipment and medium
TWI515557B (en) Computer system and control method
CN104158709A (en) Optical module identification method and port extender
CN105677429A (en) Program burning method, processor and electronic circuit
CN111124460A (en) Online updating method for BMC (baseboard management controller) of autonomous controllable server based on P2A bridge
TW201441932A (en) Processing devices and system program updating methods
TWI482090B (en) System capable of booting through a universal serial bus device and method thereof
CN107544812B (en) Method for realizing remote reading of CPLD version
TWI748241B (en) Debug message automatically providing method of bios
EP3891594B1 (en) Memory control system with a sequence processing unit

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200508

RJ01 Rejection of invention patent application after publication