[go: up one dir, main page]

CN113064813A - A kind of onboard firmware version detection method and device - Google Patents

A kind of onboard firmware version detection method and device Download PDF

Info

Publication number
CN113064813A
CN113064813A CN202110239587.1A CN202110239587A CN113064813A CN 113064813 A CN113064813 A CN 113064813A CN 202110239587 A CN202110239587 A CN 202110239587A CN 113064813 A CN113064813 A CN 113064813A
Authority
CN
China
Prior art keywords
firmware
version
bmc
controller
correct
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
CN202110239587.1A
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 CN202110239587.1A priority Critical patent/CN113064813A/en
Publication of CN113064813A publication Critical patent/CN113064813A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3604Analysis of software for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's
    • G06F11/326Display of status information by lamps or LED's for error or online/offline status
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明提供一种板载固件版本检测方法及装置,包括:在BMC内部的暂存器内缓存各控制器的I 2C地址及固件正确的版本需求;系统上电后BMC启动,BMC通过内部暂存器记录的I 2C地址呼叫控制器;判断呼叫是否取得响应:若呼叫取得响应,则对比固件的校验和,若校验和一致则版本正确,反之版本异常;若呼叫无响应表示控制器烧录空白;每个控制器对应加装一颗蜂鸣器,版本异常则通过蜂鸣器鸣响进行告警。本发明利用系统自带的BMC侦查各控制器固件版本正确性,并通过蜂鸣器进行告警;帮助作业人员初步排除问题,加速研发人员定位问题所在,提高服务器产品测试效率及产品竞争力。

Figure 202110239587

The present invention provides a method and device for detecting the version of onboard firmware, including: buffering the I2C address of each controller and the correct version requirements of the firmware in a temporary register inside the BMC; The I2C address recorded in the register calls the controller; judges whether the call gets a response: if the call gets a response, compare the checksum of the firmware, if the checksum is consistent, the version is correct, otherwise the version is abnormal; if there is no response to the call, the controller The programming is blank; each controller should be equipped with a buzzer, and if the version is abnormal, the buzzer will sound an alarm. The invention uses the BMC built in the system to detect the correctness of the firmware versions of each controller, and gives an alarm through a buzzer; it helps operators to preliminarily eliminate problems, accelerates R&D personnel to locate problems, and improves server product testing efficiency and product competitiveness.

Figure 202110239587

Description

Board-mounted firmware version detection method and device
Technical Field
The invention belongs to the technical field of firmware burning, and particularly relates to a method and a device for detecting a board-mounted firmware version.
Background
The architecture of the server is built by boards with different functions, part of the boards are simple in function, such as a front panel, a rear panel, an adapter plate and the like, the boards are only provided with simple logic and power devices, and part of the boards need more functions, such as a fan board, a power control board, a hard disk backboard and the like, and need to carry controllers with different numbers, such as a CPLD, a MCU, a BMC and a BIOS. Different controllers can be matched with different firmware, even if more than two same controllers are arranged on the same board card, the firmware required to be carried is different, for example, the VRD, even if the VRD with the same model is positioned at different positions or output differently, the burned firmware is also different. If the loaded firmware has a fault, the function of the whole server system is affected and the server system cannot operate normally.
In the product development stage, after the board card finishes the part beating, a factory can burn the firmware into the specified chip, and the produced board card is handed over to a test unit for system function test after the system is assembled. The factory test is carried out under the condition of assembly and shipment, basic function verification is carried out, and only normal startup can be confirmed in the development stage, and whether each interface can normally identify a device, such as a hard disk and a PCIE card, is usually carried out. Further functional tests are performed after the transfer to the test unit. When the test has problems, the research and development personnel are required to judge the failure factors of the test failure. But developers often find a situation: because the firmware version is changed frequently in the development stage, the firmware carried by the controller on some board cards is different from the firmware version required by system planning, even the problem of error and leakage caused by no burning occurs, so that the system function can not operate normally, so that research and development personnel need to spend extra time to perform problem positioning, the operation time of research and development personnel and test personnel is wasted, and even the time course of the whole test is prolonged.
Therefore, a direct and fast method is needed to judge whether the firmware loading version of the onboard controller is correct or not in the functional test stage, and remind the tester to update.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method and an apparatus for detecting a board-mounted firmware version, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a method for detecting a board-mounted firmware version, including:
caching the I2C address of each controller and the correct version requirement of the firmware in a register inside the BMC;
after the system is powered on, the BMC is started, and calls the controller through the I2C address recorded by the internal temporary memory;
judging whether the call gets a response: if the call is responded, comparing the checksum of the firmware, if the checksum is consistent, the version is correct, otherwise, the version is abnormal; if the call has no response, the controller is indicated to burn blank;
each controller is correspondingly provided with a buzzer, and the buzzer rings to give an alarm when the version is abnormal.
Further, the method further comprises: and the operator releases the warning after rewriting the firmware with the correct version.
Further, the method further comprises:
a firmware detection I2C channel is respectively arranged between the BMC and each controller;
the BMC may be calling at the same time each firmware detects the I2C channel.
Further, the method further comprises: detection prior to the call ensures that each I2C channel is normal.
Further, the method further comprises: and upgrading and detecting the BMC firmware to ensure that the BMC firmware is correct.
In a second aspect, the present invention provides a device for detecting a version of a firmware on board, including:
BMC, a plurality of controllers and I2C bus; the BMC is connected with the controllers through an I2C bus; the controller includes: CPLD, MCU, VRD and BIOS; and the output ends of the MCU, the VRD and the BIOS are respectively provided with PCIE Switch to be in butt joint with the I2C bus.
The beneficial effect of the invention is that,
the invention provides a board-mounted firmware version detection method and device, which utilizes a BMC (baseboard management controller) of a system to detect the correctness of the firmware version of each controller and alarms through a buzzer; the method helps the operating personnel to preliminarily get rid of the problems, accelerates the research and development personnel to locate the problems, and improves the testing efficiency and the product competitiveness of the server product.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
Fig. 2 is a schematic block diagram of an apparatus of one embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and 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 invention.
The following explains key terms appearing in the present invention.
CPLD: complex Programmed Logic device, Complex programmable Logic device.
MCU: micro Control Unit, microprocessor.
BMC: a Basebard Management Controller, a Baseboard Management Controller.
BIOS: basic Input/Output System, Basic Input/Output System.
VRD: voltage Regulator.
Based on daily development, because a customer needs to directly assemble a prototype for shipment by an assembly factory, and a project is preliminarily finished, research and development personnel do not support online, but when the assembly is finished and the delivery test is carried out, part of machine tables cannot be started. Research personnel remotely command operating personnel to perform detection and debugging, and finally find that the firmware of the fan plate controller is not recorded, so that the fan does not operate, and the system is overheated and cannot be started. Although the problem is eliminated successfully, the delivery time is delayed, and the machine cannot be delivered to the customer on time.
The BMC is often used in a server system to monitor whether the system is operating normally, whether any voltage or temperature changes abnormally, whether the fan is rotating too slowly or too fast, and how many devices are on the system are recorded by the BMC. The BMC is therefore the controller that is the earliest to start after the system is turned on, except for the CPLD. In some system designs, it may even be necessary to wait for the BMC to boot before sequentially booting the remaining controllers. Based on the characteristic of the BMC, namely the supervisor, the BMC can detect whether the other controllers in the system carry the firmware with the normal version.
Generation based on the above structure
The embodiment provides a board-mounted firmware version detection method, which specifically comprises the following steps:
s1, caching the I2C address of each controller and the correct version requirement of the firmware in a temporary memory in the BMC;
s2, after the system is powered on, the BMC starts, and calls the controller through the I2C address recorded by the internal temporary storage;
s3, judging whether the call gets a response: if the call is responded, comparing the checksum of the firmware, if the checksum is consistent, the version is correct, otherwise, the version is abnormal; if the call has no response, the controller is indicated to burn blank or the I2C channel is abnormal;
and S4, correspondingly installing a buzzer on each controller, alarming through buzzer sound when the version is abnormal, and removing the alarm after the operator burns the firmware with the correct version again.
A common warning method usually warns an error through an LED light signal corresponding to a controller, but the meaning of various light signals is unknown for researchers, and the case is closed and the internal condition cannot be observed after the system is assembled. Therefore, there is a need for an alternative method of informing the operator that a firmware version problem has occurred. In this embodiment, a buzzer is additionally arranged beside each controller, and once the version is abnormal, the buzzer rings, so that an operator can immediately know and immediately process the abnormal version, and the abnormal processing efficiency is improved.
In the embodiment, in order to realize the efficiency improvement of the simultaneous detection of a plurality of firmware, a firmware detection I2C channel is respectively arranged between the BMC and each controller; the BMC may be calling at the same time each firmware detects the I2C channel.
In this embodiment, before the call, it is detected that each I2C channel is normal, and when the call is not responded in step S3, it is directly determined that the controller firmware is not burned.
In this embodiment, the firmware upgrade detection of the BMC is performed to ensure that the firmware of the BMC itself is correct, and the firmware detection of other controllers can be correctly performed.
Based on the above method, the present embodiment provides a corresponding structure, as shown in fig. 2, the present embodiment provides a board firmware version detection apparatus, including: BMC, a plurality of controllers and I2C bus; the BMC is connected with the controllers through an I2C bus; the controller includes: CPLD, MCU, VRD and BIOS; the output ends of the MCU, the VRD and the BIOS are respectively provided with a PCIE Switch to be in butt joint with an I2C bus; once the system is powered on, the BMC can obtain the internal information of each controller through the I2C channel, and can know whether the FW version carried by the controller is correct or not recorded after comparison.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1.一种板载固件版本检测方法,其特征在于,包括:1. an onboard firmware version detection method, is characterized in that, comprises: 在BMC内部的暂存器内缓存各控制器的I2C地址及固件正确的版本需求;Cache the I2C address of each controller and the correct firmware version requirements in the temporary register inside the BMC; 系统上电后BMC启动,BMC通过内部暂存器记录的I2C地址呼叫控制器;After the system is powered on, the BMC starts, and the BMC calls the controller through the I2C address recorded in the internal scratchpad; 判断呼叫是否取得响应:若呼叫取得响应,则对比固件的校验和,若校验和一致则版本正确,反之版本异常;若呼叫无响应表示控制器烧录空白;Judging whether the call gets a response: if the call gets a response, compare the checksum of the firmware, if the checksum is consistent, the version is correct, otherwise the version is abnormal; if there is no response to the call, the controller programming is blank; 每个控制器对应加装一颗蜂鸣器,版本异常则通过蜂鸣器鸣响进行告警。Each controller is equipped with a corresponding buzzer. If the version is abnormal, the buzzer will sound an alarm. 2.根据权利要求1所述的板载固件版本检测方法,其特征在于,所述方法还包括:操作人员重新烧录正确版本的固件后解除警告。2 . The method for detecting an onboard firmware version according to claim 1 , wherein the method further comprises: the operator cancels the warning after re-burning the correct version of the firmware. 3 . 3.根据权利要求1所述的板载固件版本检测方法,其特征在于,所述方法还包括:3. The onboard firmware version detection method according to claim 1, wherein the method further comprises: 在BMC与各个控制器之间分别设置固件检测I2C通道;Set the firmware detection I2C channel between BMC and each controller respectively; BMC可在各个固件检测I2C通道同时进行呼叫。The BMC can make calls at the same time as each firmware detects the I2C channel. 4.根据权利要求3所述的板载固件版本检测方法,其特征在于,所述方法还包括:在呼叫之前检测确保各个I2C通道正常。4 . The method for detecting an onboard firmware version according to claim 3 , wherein the method further comprises: detecting and ensuring that each I2C channel is normal before calling. 5 . 5.根据权利要求1所述的板载固件版本检测方法,其特征在于,所述方法还包括:5. The onboard firmware version detection method according to claim 1, wherein the method further comprises: 进行BMC固件升级检测,确保BMC自身固件正确。Check the BMC firmware upgrade to ensure that the BMC firmware is correct. 6.一种板载固件版本检测装置,其特征在于,包括:6. An onboard firmware version detection device is characterized in that, comprising: BMC、若干个控制器及I2C总线;所述BMC与若干个控制器之间通过I2C总线连接;所述控制器包括:CPLD、MCU、VRD以及BIOS;所述MCU、VRD以及BIOS的输出端分别设置PCIE Switch与I2C总线对接。BMC, several controllers and I2C bus; the BMC and several controllers are connected through I2C bus; the controller includes: CPLD, MCU, VRD and BIOS; the output terminals of the MCU, VRD and BIOS are respectively Set the PCIE Switch to connect to the I2C bus.
CN202110239587.1A 2021-03-04 2021-03-04 A kind of onboard firmware version detection method and device Pending CN113064813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110239587.1A CN113064813A (en) 2021-03-04 2021-03-04 A kind of onboard firmware version detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110239587.1A CN113064813A (en) 2021-03-04 2021-03-04 A kind of onboard firmware version detection method and device

Publications (1)

Publication Number Publication Date
CN113064813A true CN113064813A (en) 2021-07-02

Family

ID=76559762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110239587.1A Pending CN113064813A (en) 2021-03-04 2021-03-04 A kind of onboard firmware version detection method and device

Country Status (1)

Country Link
CN (1) CN113064813A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339713A1 (en) * 2012-06-18 2013-12-19 Hon Hai Precision Industry Co., Ltd. Electronic device and method for verifying firmware of the electronic device
CN104834575A (en) * 2015-05-07 2015-08-12 杭州昆海信息技术有限公司 Firmware recovery method and device
CN106776315A (en) * 2016-12-14 2017-05-31 华为技术有限公司 The method and apparatus for detecting version
CN106775877A (en) * 2016-12-22 2017-05-31 郑州云海信息技术有限公司 A kind of firmware method for refreshing and a kind of server
CN107832071A (en) * 2017-11-09 2018-03-23 郑州云海信息技术有限公司 A kind of server power supply automatic program burning system and method
CN108363583A (en) * 2018-02-05 2018-08-03 华勤通讯技术有限公司 A kind of chip update method, equipment and storage medium based on BMC
CN112231140A (en) * 2020-09-18 2021-01-15 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for fault recovery of BMC (baseboard management controller) of storage device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339713A1 (en) * 2012-06-18 2013-12-19 Hon Hai Precision Industry Co., Ltd. Electronic device and method for verifying firmware of the electronic device
CN104834575A (en) * 2015-05-07 2015-08-12 杭州昆海信息技术有限公司 Firmware recovery method and device
CN106776315A (en) * 2016-12-14 2017-05-31 华为技术有限公司 The method and apparatus for detecting version
CN106775877A (en) * 2016-12-22 2017-05-31 郑州云海信息技术有限公司 A kind of firmware method for refreshing and a kind of server
CN107832071A (en) * 2017-11-09 2018-03-23 郑州云海信息技术有限公司 A kind of server power supply automatic program burning system and method
CN108363583A (en) * 2018-02-05 2018-08-03 华勤通讯技术有限公司 A kind of chip update method, equipment and storage medium based on BMC
CN112231140A (en) * 2020-09-18 2021-01-15 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for fault recovery of BMC (baseboard management controller) of storage device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苏振宇: "基于国产BMC的服务器安全启动技术研究与实现", 信息安全研究, vol. 3, no. 9, pages 68 - 69 *

Similar Documents

Publication Publication Date Title
WO2022160756A1 (en) Server fault positioning method, apparatus and system, and computer-readable storage medium
US5543727A (en) Run-in test system for PC circuit board
TWI362588B (en) Monitor apparatus, a monitoring method thereof and computer apparatus therewith
CN104991629B (en) Power-fail detecting system and its method
CN106055438B (en) The method and system of memory bar exception on a kind of quick positioning mainboard
TWI530790B (en) System boot code recovery method, computing system, and controller for use in a system
CN101436154B (en) Computer motherboard startup and shutdown test system and method
CN100517262C (en) Motherboard debugging system and method
CN102402473A (en) Computer hardware and software fault diagnosis and repair system
CN112527575A (en) Hard disk lighting test method, device and equipment and readable storage medium
TW202036293A (en) Computer system and debugging method thereof
CN107832194A (en) A kind of server failure detecting system and method based on onboard BMC
CN116775141A (en) Abnormality detection method, abnormality detection device, computer device, and storage medium
CN113064813A (en) A kind of onboard firmware version detection method and device
CN115525486A (en) SSD SMBUS temperature alarm and low power consumption state test verification method and device
CN112486785B (en) Method, system, terminal and storage medium for positioning downtime phase of server
TW202018312A (en) Testing system
CN119127318A (en) Operating system OS startup method, device and medium
CN218568024U (en) USB port detection device
CN101408860A (en) Monitoring device and monitoring method thereof
CN113076140B (en) A GPIO configuration detection method, device and server
CN112881888B (en) A testing device and method for a server graphics card VGA interface protection circuit
CN109634622A (en) Off line is exempted to tear the automatic method for burn-recording of machine, system and computer readable storage medium open
US8001313B2 (en) Insertion and removal of computing cards in server I/O slots
CN115168146A (en) Anomaly detection method and device

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: 20210702

RJ01 Rejection of invention patent application after publication