CN107957925B - System information access method for computer device - Google Patents

System information access method for computer device Download PDF

Info

Publication number
CN107957925B
CN107957925B CN201610901246.5A CN201610901246A CN107957925B CN 107957925 B CN107957925 B CN 107957925B CN 201610901246 A CN201610901246 A CN 201610901246A CN 107957925 B CN107957925 B CN 107957925B
Authority
CN
China
Prior art keywords
system information
memory module
volatile memory
management control
computer device
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.)
Expired - Fee Related
Application number
CN201610901246.5A
Other languages
Chinese (zh)
Other versions
CN107957925A (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.)
Shencloud Technology Co Ltd
Shunda Computer Factory Co Ltd
Original Assignee
Shencloud Technology Co Ltd
Shunda Computer Factory 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 Shencloud Technology Co Ltd, Shunda Computer Factory Co Ltd filed Critical Shencloud Technology Co Ltd
Priority to CN201610901246.5A priority Critical patent/CN107957925B/en
Publication of CN107957925A publication Critical patent/CN107957925A/en
Application granted granted Critical
Publication of CN107957925B publication Critical patent/CN107957925B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
    • G06F11/3079Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting the data filtering being achieved by reporting only the changes of the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Stored Programmes (AREA)

Abstract

A system information access method is implemented by a baseboard management control system of a computer device, the computer device further comprises a first non-volatile memory module, the system information access method comprises the following steps: (A) after the baseboard management control system is started or restarted, whether a flag value of a power-on reset flag is a first preset value indicating that the baseboard management control system is in a power-on reset state is judged; (B) when the judgment result is yes, when the system information related to the computer device is received, judging whether the system information is consistent with the previous system information which is stored in the first non-volatile memory module previously; and (C) when the judgment result is negative, storing the system information received in the step (B) in the first non-volatile memory module.

Description

System information access method for computer device
Technical Field
The present invention relates to system information of a computer device, and more particularly, to a system information accessing method for a computer device.
Background
A computer device currently used as a server usually includes a baseboard management control system (BMC) for assisting a manager in managing the computer device.
The cpu of the computer device executes a Basic Input/Output System (BIOS) program to transmit System information related to the computer device and including System configuration information such as Dual In-line Memory modules (Dual In-line Memory modules) and Peripheral Component Interconnect (Peripheral Component Interconnect) cards (pci) to the bmc through an IPMI OEM Command during a Power-On-Self Test (POST) phase of the computer device, and the bmc stores the System information In a volatile Memory Module (nvm) within the bmc In a variable form.
However, during the process of restarting or updating the firmware of the bmc, the system information stored in the volatile memory module in the bmc in a variable form is reset, so that the bmc cannot monitor or even generate an abnormality because correct system information related to the computer device cannot be obtained when the bmc needs to monitor the computer device according to the system information.
Disclosure of Invention
Therefore, the present invention provides a system information access method.
Therefore, the system information access method of the present invention is implemented by a baseboard management control system included in a computer device, the computer device further includes a first non-volatile memory module electrically connected to the baseboard management control system, the baseboard management control system stores a power-on reset flag, a flag value of the power-on reset flag is one of a first predetermined value indicating that the baseboard management control system is in a power-on reset state and a second predetermined value different from the first predetermined value and indicating that the baseboard management control system is not in the power-on reset state, the system information access method includes the following steps:
(A) after the baseboard management control system is started or restarted, determining whether the flag value of the power-on reset flag is the first predetermined value;
(B) when the flag value of the power-on reset flag is determined to be the first predetermined value, when system information related to the computer device is received, determining whether the received system information is consistent with previous system information which is previously stored in the first non-volatile memory module; and
(C) when the system information received in the step (B) is determined not to be consistent with the previous system information, storing the system information received in the step (B) in the first non-volatile memory module.
The invention has the following effects: the system information is backed up in the first non-volatile memory module to ensure that the baseboard management control system can also obtain the system information from the first non-volatile memory module after the baseboard management control system is restarted or firmware is updated.
[ description of the drawings ]
FIG. 1 is a block diagram illustrating a baseboard management control system of a computer device for executing the system information access method of the present invention electrically connected to a CPU, a first non-volatile memory module and a second non-volatile memory module of the computer device; and
fig. 2 and fig. 3 cooperatively illustrate an embodiment of the information access method of the present invention.
[ detailed description ] embodiments
Referring to fig. 1, the embodiment of the system information access method of the present invention is implemented by a baseboard management control system 11 included in a computer device 1. The computer device 1 further includes a central processing unit 12 electrically connected to the baseboard management control system 11, a first non-volatile memory module 13 electrically connected to the baseboard management control system 11, and a second non-volatile memory module 14 electrically connected to the baseboard management control system 11.
In this embodiment, the computer device 1 is, for example, a server, and the baseboard management control system 11 includes, for example, a volatile memory module 111 and a processing module 112 electrically connected to the volatile memory module 111. The first non-volatile Memory module 13 includes, for example, an Electrically Erasable-Erasable Programmable Read-Only Memory (eeprom), and is configured to store System information and Field-Replaceable Unit (Field-Replaceable Unit) configuration information related to the computer device 1, where the System information includes System configuration information, such as configuration information of the dual in-line Memory module, and peripheral component interconnect card configuration information, obtained by the cpu 12 executing a Basic Input/Output System (bios) program and transmitted to the bmc 11. The second non-volatile Memory module 14 includes, for example, a Flash Memory (Flash Memory) and is used for storing the system information and storing the firmware of the baseboard management control system 11. The processing module 112 includes a chip register (not shown) that stores a Power On Reset (Power On Reset) flag. A flag value of the power-on reset flag is one of a first predetermined value indicating that the bmc 11 is in the power-on reset state and a second predetermined value different from the first predetermined value and indicating that the bmc 11 is not in the power-on reset state. The volatile Memory module 111 includes, for example, a Random Access Memory (Random Access Memory) and is used for storing the system information. The data stored in the first non-volatile memory module 13 and the second non-volatile memory module 14 will not disappear after the power supply is interrupted; however, after the power supply is interrupted, the volatile memory module 111 will reset the stored data to the default data.
Referring to fig. 1, 2 and 3, the system information access method of the present invention includes the following steps.
In step 21, after the bmc 11 is started or restarted, the processing module 112 of the bmc 11 determines whether the flag value of the power-on reset flag is the first predetermined value (i.e., determines whether the start of the bmc 11 is due to a start of a system after the initial system boot is performed by the AC power line or a restart of the bmc after the system boot is performed). When the processing module 112 of the bmc 11 determines that the flag value of the power-on reset flag is the first predetermined value (i.e. determines that the bmc 11 is started at this time, i.e. during the initial system startup process immediately after the AC power is supplied), the process proceeds to step 22. Otherwise, the flow proceeds to step 26.
In step 22, when the processing module 112 of the bmc 11 receives the system information related to the computer device 1 through a Keyboard Controller Style (Keyboard Controller Style) interface, the processing module 112 of the bmc 11 stores the received system information in the second non-volatile memory module 14 and the volatile memory module 111.
In this embodiment, when the processing module 112 of the bmc 11 stores the received system information in the second non-volatile memory module 14, if the second non-volatile memory module 14 previously stores the previous system information, the processing module 112 of the bmc 11 stores the system information received in step 22 by updating the previous system information previously stored in the second non-volatile memory module 14 to the system information received in step 22; if the second non-volatile memory module 14 does not store any system information, the processing module 112 of the bmc 11 directly stores the system information received in step 22 in the second non-volatile memory module 14. In addition, when the processing module 112 of the bmc 11 stores the received system information in the volatile memory module 111, the processing module 112 of the bmc 11 stores the system information received in step 22 by updating the previous system information previously stored in the volatile memory module 111 to the system information received in step 22, wherein the previous system information previously stored in the volatile memory module 111 is reset to the preset data because the bmc is in the power-on reset state.
In step 23, the processing module 112 of the bmc 11 determines whether the system information received in step 22 matches the previous system information previously stored in the first nonvolatile memory module 13. When the processing module 112 of the bmc 11 determines that the system information received in step 22 does not match the previous system information, the flow proceeds to step 24. Otherwise, the flow proceeds to step 25. In this embodiment, when the processing module 112 of the bmc 11 receives the system information related to the computer device 1, the processing module 112 of the bmc 11 stores the received system information in the second non-volatile memory module 14 and the volatile memory module 111, and then determines whether the received system information matches the previous system information stored in the first non-volatile memory module 13. However, in other embodiments of the present invention, the processing module 112 of the bmc 11 may also first determine whether the received system information matches the previous system information that has been previously stored in the first non-volatile memory module 13, and then store the received system information in the second non-volatile memory module 14 and the volatile memory module 111, or simultaneously determine whether the received system information matches the previous system information that has been previously stored in the first non-volatile memory module 13, and store the received system information in the second non-volatile memory module 14 and the volatile memory module 111, which is not limited thereto.
In step 24, the processing module 112 of the bmc 11 stores the system information received in step 22 in the first non-volatile memory module 13. In the present embodiment, the processing module 112 of the bmc 11 stores the system information received in step 22 by updating the previous system information previously stored in the first non-volatile memory module 13 to the system information received in step 22.
In step 25, when the processing module 112 of the bmc 11 determines that the system information received in step 22 matches the previous system information, the processing module 112 of the bmc 11 does not store the system information received in step 22 in the first non-volatile memory module 13. In other words, the baseboard management control system 11 does not write the system information received in step 22 into the first non-volatile memory module 13, so as to reduce the wear of the lifetime of the EEPROM due to erasing.
It should be noted that, during the process of restarting the bmc 11, the bmc 111 destroys/resets the system information stored in the volatile memory module 111 because the bmc 11 reloads/stores the firmware stored in the second non-volatile memory module 14 into the volatile memory module 111, and because the characteristics of the second non-volatile memory module 14 are such that the internal storage data will remain unaffected even if the power is lost, the system information will not be cleared due to the restart of the bmc 11 by backing up the system information in the second non-volatile memory module 14. However, during the firmware update process of the baseboard management control system 11, the processing module 112 of the baseboard management control system 11 will clear the system information stored in the second non-volatile memory module 14, and the volatile memory module 111 will destroy/reset the system information stored in the volatile memory module 111 because the baseboard management control system 11 reloads/stores the updated firmware stored in the second non-volatile memory module 14 into the volatile memory module 111, and after the firmware update is completed, the baseboard management control system 11 will be restarted. Therefore, the processing module 112 of the bmc 11 further backs up the system information in the first non-volatile memory module 13, and since the first non-volatile memory module 13 does not store the firmware of the bmc 11, the bmc 11 does not clear the system information stored in the first non-volatile memory module 13 during the firmware update of the bmc 11, so that the system information backed up in the first non-volatile memory module 13 cannot be cleared no matter when the bmc 11 is restarted or when the bmc 11 performs the firmware update. Therefore, after the bmc 11 is restarted or firmware is updated, the bmc 11 can also read the system information from the first non-volatile memory module 13. In addition, the system information is stored in the volatile memory module 111 in, for example, a variable form, stored in the second nonvolatile memory module 14 in, for example, a file form, and stored in the first nonvolatile memory module 13 in, for example, a Raw Data form. For example, the system information includes dual in-line memory module configuration information indicating, for example, the insertion of four memory slots A, B, C, D of the computer device 1, and if the memory slots A, C, D are all inserted with memory, the system information is stored in the volatile memory module 111 in the form of a variable with a value of 0B1011, stored in the second nonvolatile memory module 14 in the form of a text file with a =1, B =0, C =1, and D =1, and stored in the first nonvolatile memory module 13 at four predetermined memory addresses, such as 0x10, 0x11, 0x12, and 0x13, in the form of raw data with a =1, 0, 1, and 1.
In step 26, the processing module 112 of the bmc 11 determines whether the second nonvolatile memory module 14 stores any system information. When the processing module 112 of the bmc 11 determines that the second non-volatile memory module 14 stores the system information related to the computer device 1, the process proceeds to step 27. Otherwise, the flow proceeds to step 28.
In step 27, the processing module 112 of the baseboard management control system 11 reads the system information stored in the second nonvolatile memory module 14, and stores the system information read from the second nonvolatile memory module 14 in the volatile memory module 111. In the present embodiment, the baseboard management control system 11 reads the system information from the second nonvolatile memory module 14 through, for example, a Serial Peripheral Interface (Serial Peripheral Interface)
In step 28, when the processing module 112 of the bmc 11 determines that the second non-volatile memory module 14 does not store any system information, the system information stored in the first non-volatile memory module 13 is read, and the system information read from the first non-volatile memory module 13 is stored in the volatile memory module 111 and the second non-volatile memory module 14. In the present embodiment, the bmc 11 reads the system information from the first nonvolatile memory module 13 through an Inter Integrated Circuit (I2C) interface, for example.
Whether the baseboard management control system 11 is restarted due to, for example, firmware update or IPMI Command reception, or is started just after the AC power line of the baseboard management control system 11 is plugged, the system information accessing method of the present invention can ensure that the volatile memory module 111 stores the correct system information related to the computer device 1. In detail, if the reboot of the bmc 11 does not involve firmware update, the bmc 11 can read the system information from the second non-volatile memory module 14 and store the system information in the volatile memory module 111. If the reboot of the baseboard management control system 11 involves firmware update, the baseboard management control system 11 can read the system information from the first non-volatile memory module 13 and store the system information into the volatile memory module 111. If the bmc 11 is started up just after the AC power line is plugged, the bmc 11 receives the system information related to the computer device 1 and stores the received system information in the second non-volatile memory module 14 and the volatile memory module 111. Therefore, it can be ensured that the volatile memory module 111 stores the correct system information related to the computer device 1, so that the baseboard management control system 11 can directly read the system information stored in the volatile memory module 111 when the computer device 1 needs to be monitored according to the system information. In addition, since the volatile memory module 111 is included in the bmc 11 and the system information is stored in the volatile memory module 111 in a variable form, the time required for the bmc 11 to read the system information from the volatile memory module 111 is relatively shortest.
In summary, the system information access method of the present invention is to backup the system information in the first non-volatile memory module 13 and the second non-volatile memory module 14, so as to ensure that the baseboard management control system 11 can also read the system information from the first non-volatile memory module 13 or the second non-volatile memory module 14 and store the system information in the volatile memory module 111 after the baseboard management control system 11 is restarted or firmware is updated, thereby achieving the purpose of the present invention.
The detailed description and examples of the present invention are given above with reference to the accompanying drawings, but the scope of the present invention is not limited thereto, and the equivalent modifications and variations within the scope of the claims of the present invention should be considered as falling within the scope of the present invention.

Claims (8)

1. A system information access method is implemented by a baseboard management control system included in a computer device, the computer device further includes a first non-volatile memory module electrically connected with the baseboard management control system, the baseboard management control system stores a power-on reset flag, a flag value of the power-on reset flag is one of a first predetermined value indicating that the baseboard management control system is in a power-on reset state and a second predetermined value different from the first predetermined value and indicating that the baseboard management control system is not in the power-on reset state, the method is characterized in that: the system information access method comprises the following steps:
(A) determining the flag value of the power-on reset flag to be the first predetermined value when the baseboard management control system is powered on and is started for the first time;
(B) when the flag value of the power-on reset flag is determined to be the first predetermined value, when system information related to the computer device is received, determining whether the received system information is consistent with previous system information which is previously stored in the first non-volatile memory module; and
(C) when the system information received in the step (B) is determined not to be consistent with the previous system information, storing the system information received in the step (B) in the first non-volatile memory module.
2. The system information access method of claim 1, wherein: the computer device also comprises a central processing unit electrically connected with the baseboard management control system, and in the step (B), the system information comprises system configuration information which is obtained by the central processing unit executing a basic input/output system program and is transmitted to the baseboard management control system.
3. The system information access method of claim 1, wherein: in step (B), the system information includes dual inline memory module configuration information, and peripheral component interconnect card configuration information.
4. The system information access method of claim 1, wherein: after the step (C), further comprising the steps of:
(D) when the system information received in the step (B) is determined to be consistent with the previous system information, the system information received in the step (B) is not stored in the first non-volatile memory module.
5. The system information access method of claim 1, wherein: the computer device also comprises a second non-volatile memory module electrically connected with the substrate management control system, the substrate management control system comprises a volatile memory module used for storing the system information, and in the step (B), when the system information related to the computer device is received, the substrate management control system also stores the received system information in the second non-volatile memory module and the volatile memory module.
6. The system information access method of claim 5, wherein: after the step (A), further comprising the steps of:
(E) when the flag value of the power-on reset flag is determined to be the second predetermined value, determining whether the second non-volatile memory module stores any system information; and
(F) when the system information related to the computer device is judged to be stored in the second non-volatile memory module, the system information stored in the second non-volatile memory module is read, and the system information read from the second non-volatile memory module is stored in the volatile memory module.
7. The system information access method of claim 6, wherein: after the step (E), further comprising the steps of:
(G) when the second non-volatile memory module is judged not to store any system information, the system information stored in the first non-volatile memory module is read, and the system information read from the first non-volatile memory module is stored in the volatile memory module.
8. The system information access method of claim 7, wherein: in step (G), the bmc system further stores the system information read from the first non-volatile memory module in the second non-volatile memory module.
CN201610901246.5A 2016-10-17 2016-10-17 System information access method for computer device Expired - Fee Related CN107957925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610901246.5A CN107957925B (en) 2016-10-17 2016-10-17 System information access method for computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610901246.5A CN107957925B (en) 2016-10-17 2016-10-17 System information access method for computer device

Publications (2)

Publication Number Publication Date
CN107957925A CN107957925A (en) 2018-04-24
CN107957925B true CN107957925B (en) 2021-03-26

Family

ID=61954030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610901246.5A Expired - Fee Related CN107957925B (en) 2016-10-17 2016-10-17 System information access method for computer device

Country Status (1)

Country Link
CN (1) CN107957925B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10030991A1 (en) * 2000-06-30 2002-01-10 Bosch Gmbh Robert Microcontroller and watchdog operation synchronization method for vehicle control device, involves operating watchdog based on time period elapsed after booting up to resetting operation of microcontroller
JP2007122627A (en) * 2005-10-31 2007-05-17 Toshiba Corp Information processor and memory initialization method
TW200840358A (en) * 2007-03-16 2008-10-01 Benq Corp Method for managing a scheduling system and related scheduling system
CN101840365B (en) * 2010-04-30 2012-08-29 广州广电运通金融电子股份有限公司 Safe protection method and system for BIOS (Basic Input/Output System)
CN104572365B (en) * 2013-10-18 2017-12-01 中国长城科技集团股份有限公司 A kind of internal memory is from adaptation method and device

Also Published As

Publication number Publication date
CN107957925A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
US8943302B2 (en) Method of flashing bios using service processor and computer system using the same
US8918778B2 (en) Method of fail safe flashing management device and application of the same
US9507604B2 (en) Boot method and boot system
US9910664B2 (en) System and method of online firmware update for baseboard management controller (BMC) devices
US8423991B2 (en) Embedded network device and firmware upgrading method
US9298470B2 (en) Method and apparatus for selecting bios program for a processor
US20150154092A1 (en) Bios maintenance method
US20100125752A1 (en) System for auto-operating backup firmware and method thereof
US20120023320A1 (en) Bios chip recovery system and computer thereof
US11789820B2 (en) Methods and systems for preventing hangup in a post routine from faulty bios settings
US20140143477A1 (en) Computer system and data recovery method thereof
WO2016206514A1 (en) Startup processing method and device
CN109582332B (en) System upgrading method and device for Internet camera
US10824517B2 (en) Backup and recovery of configuration files in management device
CN107015878B (en) System repair method and system for computer
CN104679622A (en) BIOS (basic input/output system) maintenance method
TW201435575A (en) Boot fault tolerant device and method thereof
CN113190256B (en) Upgrading method, device and equipment
TWI607381B (en) Method of accessing system information for computer device
US10198270B2 (en) Dynamic hardware configuration via firmware interface at computing device boot
US20080201572A1 (en) Method and system for uniformizing product data embedded in a computer platform
CN107957925B (en) System information access method for computer device
US10691465B2 (en) Method for synchronization of system management data
CN105677414A (en) Method for achieving dual boot in Hostboot
US20240012572A1 (en) Operationalization of memories using memory information sets

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210326

CF01 Termination of patent right due to non-payment of annual fee