CN106909468A - A kind of computer fault diagnosis method based on UEFI firmwares - Google Patents
A kind of computer fault diagnosis method based on UEFI firmwares Download PDFInfo
- Publication number
- CN106909468A CN106909468A CN201510969186.6A CN201510969186A CN106909468A CN 106909468 A CN106909468 A CN 106909468A CN 201510969186 A CN201510969186 A CN 201510969186A CN 106909468 A CN106909468 A CN 106909468A
- Authority
- CN
- China
- Prior art keywords
- computer
- self
- module
- layer
- fault diagnosis
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0763—Error or fault detection not based on redundancy by bit configuration check, e.g. of formats or tags
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a kind of method of the computer fault diagnosis based on UEFI firmwares, the method is using the computer based on UEFI firmwares, firmware layer wherein in computer has the module for equipment fault diagnosis, including equipment self-inspection module, device diagnostic module, apparatus information acquiring and transport module, for in the computer booting stage, self-inspection is carried out to hardware device, when hardware device failure is found, firmware layer will obtain corresponding device diagnostic result, carry out classification treatment, and stored the operating system layer of the incoming computer of device diagnostic result, there is fault diagnosis software in computer application layer, fault diagnosis software passes through information receiving interface, read device diagnostic result of the storage in operating system layer.
Description
Technical field
The invention belongs to computer firmware technical field, it is related to a kind of home brewed computer fault diagnosis based on UEFI firmwares
Method.
Background technology
UEFI (Unified Extensible Firmware Interface, unified Extensible Firmware Interface) specification
It is to be developed from EFI (Extensible Firmware Interface, Extensible Firmware Interface).EFI is that Intel is
The recommended standard that the architecture of PC firmwares (or being BIOS), interface and service are proposed.UEFI is sent out by based on EFI1.10
Exhibition, its owner has no longer been Intel, but an international organization for being referred to as Unified UEFI Form.
At present, the fault diagnosis of domestic computer system is mainly the fault diagnosis middleware by being run in operating system
Or similar software completion.After os starting, fault diagnosis middleware can real-time collecting fault message, and to failure
Positioned and investigated.But, fault diagnosis middleware needs to be run after os starting, it is impossible to establish machine by cable upper
Failure is positioned and investigated during to os starting.
Firmware is to establish the first software performed after machine on computer by cable, and hardware can be completed before os starting
Initialization and status checkout.
At present, the domestic fault detect for being used for electronic equipment generally by automatic trouble diagnosis card in firmware layer.But
Diagnosis calorie requirement insertion computer system, and is only capable of displaying corresponding DTC, using not being very convenient.
The content of the invention
In view of this, the invention provides a kind of computer fault diagnosis method based on UEFI firmwares, on computers
After establishing machine by cable, key hardware is diagnosed, and facility information and fault message are passed into operating system, be soft fault diagnosis
Part provides beneficial support;Even if operating system cannot start because of key equipment failure, firmware can also enter to failure
Row classification is processed, and points out or show feasible malfunction elimination method to fault alarm by display or buzzer.
In order to achieve the above object, the technical scheme is that:Using the computer based on UEFI firmwares, wherein in meter
The firmware layer of calculation machine has the module for equipment fault diagnosis, including equipment self-inspection module, device diagnostic module, facility information
Obtain and transport module, in the computer booting stage, self-inspection being carried out to hardware device, when hardware device failure is found,
Firmware layer will obtain corresponding device diagnostic result, carry out classification treatment, and by the operation of the incoming computer of device diagnostic result
System layer is stored, and has fault diagnosis software in computer application layer, and fault diagnosis software passes through information receiving interface,
Read device diagnostic result of the storage in operating system layer.
The method comprises the following steps:
Established by cable on step one, computer after machine, firmware layer is scanned and loads to the hardware device for accessing computer
Each hardware device drivers.
Hardware equipment information acquisition module is handled as follows:Enumerate the hardware device in system and store each hardware device
Information, obtains the hardware equipment information for accessing computer, and whether the hardware device that detection is enumerated has self-inspection interface, if do not had
Self-inspection interface, then recorded the hardware equipment information for not having self-inspection interface.
Step 2, equipment self-inspection module carry out self-inspection to hardware device by equipment self-inspection interface, obtain self-detection result;
If self-detection result is normal, continue the startup of operating system layer;Otherwise, by the incoming device diagnostic of the failure code of hardware device
Module.
Step 3, device diagnostic module after the incoming failure code of equipment self-inspection module is received, according to the failure for carrying
Code library, inquires about corresponding fault type, carries out troubleshooting;If inquiry is less than corresponding fault type, by failure generation
The incoming facility information transport module of code, preserves troubleshooting log;If operating system cannot start because of equipment fault, Gu
Part layer will be pointed out failure by buzzer or display.
Facility information and failure diagnosis information are transmitted to operation system by step 4, facility information transport module by coffret
System layer.
Step 5, operating system layer are parsed and stored to facility information and fault diagnosis result.
Step 6, after operating system layer startup, the fault diagnosis software of application layer is obtained by information receiving interface and set
Standby diagnostic result.
Beneficial effect:
The benefit of the method is highly versatile, can be applied to X86, Godson, Shen Wei, various domestic processors such as soar and put down
Platform;Meanwhile, the method deployment is simple, it is not necessary to the diagnosis of computer key hardware is completed by adding ancillary equipment;Also, the party
Method can be not actuated in operating system, when fault diagnosis middleware or similar software failure, failure sorted can be processed,
And point out feasible malfunction elimination method.
Brief description of the drawings
Fig. 1 is firmware failure diagnostic software frame diagram;
Fig. 2 is firmware failure diagnostic flow chart.
Specific embodiment
Develop simultaneously embodiment below in conjunction with the accompanying drawings, and the present invention will be described in detail.
A kind of method of the computer fault diagnosis based on UEFI firmwares, the method is using the calculating based on UEFI firmwares
Machine, module in computer as shown in figure 1, wherein computer firmware layer have for equipment fault diagnosis module, including
Equipment self-inspection module, device diagnostic module, apparatus information acquiring and transport module, in the computer booting stage, to hardware
Equipment carries out self-inspection, and when hardware device failure is found, firmware layer will obtain corresponding device diagnostic result, carry out at classification
Reason, and the operating system layer of the incoming computer of device diagnostic result is stored, examined with failure in computer application layer
Disconnected software, fault diagnosis software reads device diagnostic result of the storage in operating system layer by information receiving interface.
The method comprises the following steps:
Established by cable on step one, computer after machine, firmware layer is scanned and loads to the hardware device for accessing computer
Each hardware device drivers;
Hardware equipment information acquisition module is handled as follows:Enumerate the hardware device in system and store each hardware device
Information, obtains the hardware equipment information for accessing computer, and whether the hardware device that detection is enumerated has self-inspection interface, if do not had
Self-inspection interface, then recorded the hardware equipment information for not having self-inspection interface;
Step 2, equipment self-inspection module carry out self-inspection to hardware device by equipment self-inspection interface, obtain self-detection result;
If self-detection result is normal, continue the startup of operating system layer;Otherwise, by the incoming device diagnostic of the failure code of hardware device
Module;
Step 3, device diagnostic module after the incoming failure code of equipment self-inspection module is received, according to the failure for carrying
Code library, inquires about corresponding fault type, carries out troubleshooting;If inquiry is less than corresponding fault type, by failure generation
The incoming facility information transport module of code, preserves troubleshooting log;If operating system cannot start because of equipment fault, Gu
Part layer will be pointed out failure by buzzer or display;
Facility information and failure diagnosis information are transmitted to operation system by step 4, facility information transport module by coffret
System layer;
Step 5, operating system layer are parsed and stored to facility information and fault diagnosis result;
Step 6, after operating system layer startup, the fault diagnosis software of application layer is obtained by information receiving interface and set
Standby diagnostic result.
To sum up, presently preferred embodiments of the present invention is these are only, is not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent substitution and improvements made etc. should be included in protection of the invention
Within the scope of.
Claims (1)
1. a kind of method of the computer fault diagnosis based on UEFI firmwares, it is characterised in that the method uses solid based on UEFI
The computer of part, wherein the firmware layer in computer has module for equipment fault diagnosis, including equipment self-inspection module, sets
Standby diagnostic module, apparatus information acquiring and transport module, in the computer booting stage, self-inspection being carried out to hardware device,
It was found that during hardware device failure, firmware layer will obtain corresponding device diagnostic result, classification treatment is carried out, and by device diagnostic knot
The operating system layer of really incoming computer is stored, and has fault diagnosis software in computer application layer, and fault diagnosis is soft
Part reads device diagnostic result of the storage in operating system layer by information receiving interface;
The method comprises the following steps:
Established by cable on step one, computer after machine, firmware layer is scanned to the hardware device for accessing computer and loads each hard
Part device drives;
The hardware equipment information acquisition module is handled as follows:Enumerate the hardware device in system and store each hardware device
Information, obtains the hardware equipment information for accessing computer, and whether the hardware device that detection is enumerated has self-inspection interface, if do not had
Self-inspection interface, then recorded the hardware equipment information for not having self-inspection interface;
Step 2, the equipment self-inspection module carry out self-inspection to hardware device by equipment self-inspection interface, obtain self-detection result;
If self-detection result is normal, continue the startup of operating system layer;Otherwise, by the incoming device diagnostic of the failure code of hardware device
Module;
Step 3, the device diagnostic module after the incoming failure code of equipment self-inspection module is received, according to the failure for carrying
Code library, inquires about corresponding fault type, carries out troubleshooting;If inquiry is less than corresponding fault type, by failure generation
The incoming facility information transport module of code, preserves troubleshooting log;If operating system cannot start because of equipment fault, Gu
Part layer will be pointed out failure by buzzer or display;
Facility information and failure diagnosis information are transmitted to operation system by step 4, the facility information transport module by coffret
System layer;
Step 5, operating system layer are parsed and stored to facility information and fault diagnosis result;
Step 6, after operating system layer startup, the fault diagnosis software of application layer is examined by information receiving interface acquisition equipment
Disconnected result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510969186.6A CN106909468A (en) | 2015-12-22 | 2015-12-22 | A kind of computer fault diagnosis method based on UEFI firmwares |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510969186.6A CN106909468A (en) | 2015-12-22 | 2015-12-22 | A kind of computer fault diagnosis method based on UEFI firmwares |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106909468A true CN106909468A (en) | 2017-06-30 |
Family
ID=59200388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510969186.6A Pending CN106909468A (en) | 2015-12-22 | 2015-12-22 | A kind of computer fault diagnosis method based on UEFI firmwares |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106909468A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109660335A (en) * | 2017-10-11 | 2019-04-19 | 科大国盾量子技术股份有限公司 | A kind of self-check system, quantum key distribution equipment and self-sensing method |
CN109918239A (en) * | 2017-12-13 | 2019-06-21 | 纬创资通股份有限公司 | Computer equipment, diagnostic method and non-transitory computer-readable storage media |
CN109992971A (en) * | 2019-04-03 | 2019-07-09 | 中电科技(北京)有限公司 | Computer batch firmware safety detection method and system in local area network |
CN112395166A (en) * | 2020-11-27 | 2021-02-23 | 中电科技(北京)有限公司 | Method for reading system log, UEFI and computer |
CN113377566A (en) * | 2021-06-22 | 2021-09-10 | 新华三技术有限公司合肥分公司 | UEFI (unified extensible firmware interface) -based server starting method and device and storage medium |
CN113407399A (en) * | 2021-06-11 | 2021-09-17 | 浪潮电子信息产业股份有限公司 | Method, device, equipment and storage medium for diagnosing startup hardware fault |
CN115729220A (en) * | 2022-11-29 | 2023-03-03 | 重庆长安汽车股份有限公司 | Vehicle diagnostic system, method and storage medium |
CN117389816A (en) * | 2023-12-08 | 2024-01-12 | 国网江西省电力有限公司电力科学研究院 | Interface detection device and method based on UEFI firmware detection |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100042821A1 (en) * | 2008-08-13 | 2010-02-18 | Harmer Tracy D | Methods and systems for providing manufacturing mode detection and functionality in a UEFI BIOS |
CN103678053A (en) * | 2012-09-07 | 2014-03-26 | 研祥智能科技股份有限公司 | Computer self-check method and system |
CN104063297A (en) * | 2014-07-16 | 2014-09-24 | 合肥联宝信息技术有限公司 | Method and device capable of diagnosing computer hardware through USB interfaces |
CN104915280A (en) * | 2015-06-03 | 2015-09-16 | 浪潮集团有限公司 | Method for acquiring computer hardware information based on UEFI (unified extensible firmware interface) driving mode |
-
2015
- 2015-12-22 CN CN201510969186.6A patent/CN106909468A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100042821A1 (en) * | 2008-08-13 | 2010-02-18 | Harmer Tracy D | Methods and systems for providing manufacturing mode detection and functionality in a UEFI BIOS |
CN103678053A (en) * | 2012-09-07 | 2014-03-26 | 研祥智能科技股份有限公司 | Computer self-check method and system |
CN104063297A (en) * | 2014-07-16 | 2014-09-24 | 合肥联宝信息技术有限公司 | Method and device capable of diagnosing computer hardware through USB interfaces |
CN104915280A (en) * | 2015-06-03 | 2015-09-16 | 浪潮集团有限公司 | Method for acquiring computer hardware information based on UEFI (unified extensible firmware interface) driving mode |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109660335A (en) * | 2017-10-11 | 2019-04-19 | 科大国盾量子技术股份有限公司 | A kind of self-check system, quantum key distribution equipment and self-sensing method |
CN109918239A (en) * | 2017-12-13 | 2019-06-21 | 纬创资通股份有限公司 | Computer equipment, diagnostic method and non-transitory computer-readable storage media |
CN109918239B (en) * | 2017-12-13 | 2023-04-14 | 纬创资通股份有限公司 | Computer apparatus, diagnostic method, and non-transitory computer-readable storage medium |
CN109992971A (en) * | 2019-04-03 | 2019-07-09 | 中电科技(北京)有限公司 | Computer batch firmware safety detection method and system in local area network |
CN109992971B (en) * | 2019-04-03 | 2023-05-02 | 昆仑太科(北京)技术股份有限公司 | Method and system for detecting batch firmware security of computer in local area network |
CN112395166A (en) * | 2020-11-27 | 2021-02-23 | 中电科技(北京)有限公司 | Method for reading system log, UEFI and computer |
CN113407399A (en) * | 2021-06-11 | 2021-09-17 | 浪潮电子信息产业股份有限公司 | Method, device, equipment and storage medium for diagnosing startup hardware fault |
CN113377566B (en) * | 2021-06-22 | 2024-07-05 | 新华三技术有限公司合肥分公司 | UEFI-based server starting method, device and storage medium |
CN113377566A (en) * | 2021-06-22 | 2021-09-10 | 新华三技术有限公司合肥分公司 | UEFI (unified extensible firmware interface) -based server starting method and device and storage medium |
CN115729220A (en) * | 2022-11-29 | 2023-03-03 | 重庆长安汽车股份有限公司 | Vehicle diagnostic system, method and storage medium |
CN115729220B (en) * | 2022-11-29 | 2024-05-31 | 重庆长安汽车股份有限公司 | Vehicle diagnostic system, method and storage medium |
CN117389816B (en) * | 2023-12-08 | 2024-04-02 | 国网江西省电力有限公司电力科学研究院 | Interface detection device and method based on UEFI firmware detection |
CN117389816A (en) * | 2023-12-08 | 2024-01-12 | 国网江西省电力有限公司电力科学研究院 | Interface detection device and method based on UEFI firmware detection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106909468A (en) | A kind of computer fault diagnosis method based on UEFI firmwares | |
US20090287962A1 (en) | Solution for automatically incorporating diagnostic data within screen capture images | |
WO2017124808A1 (en) | Fault information reproduction method and reproduction apparatus | |
CN107463455B (en) | Method and device for detecting memory fault | |
US20170097880A1 (en) | Method for monitoring server, monitoring device and monitoring system | |
US20080270827A1 (en) | Recovering diagnostic data after out-of-band data capture failure | |
US9489465B2 (en) | Dynamically generating an information code | |
US20200301811A1 (en) | System log collection method | |
CN104536875A (en) | IPMI-based method for carrying out automatic restart test on server | |
CN103809967A (en) | Application and data removal system | |
CN107133117B (en) | Automatic serial number testing system and method | |
CN106598796A (en) | Method for testing hardware information stability in reboot | |
CN101201776A (en) | Method for integrating and testing platform of multiple operating systems | |
CN108009067A (en) | A kind of method and system that RAID card details are checked under server | |
CN106021066A (en) | Fault information detection method and electronic device | |
CN104809057A (en) | Application test system, application test method and storage medium | |
CN112817831A (en) | Application performance monitoring method, device, computer system and readable storage medium | |
US20170017561A1 (en) | Software detection method and device | |
US20130159770A1 (en) | System and method for acquiring basic input/output system debug codes | |
CN114996103A (en) | Page abnormity detection method and device, electronic equipment and storage medium | |
CN104750600B (en) | Equipment state recording method and system | |
CN107908490A (en) | GPU registers reliability verification method and system in a kind of server DC tests | |
CN107590017A (en) | The detection method and device of a kind of electronic equipment | |
US9348728B2 (en) | Trace capture of successfully completed transactions for trace debugging of failed transactions | |
US10437706B2 (en) | Debugging system and method for embedded 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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170630 |