CN106909382B - Method and device for outputting different types of system starting information - Google Patents
Method and device for outputting different types of system starting information Download PDFInfo
- Publication number
- CN106909382B CN106909382B CN201710104149.8A CN201710104149A CN106909382B CN 106909382 B CN106909382 B CN 106909382B CN 201710104149 A CN201710104149 A CN 201710104149A CN 106909382 B CN106909382 B CN 106909382B
- Authority
- CN
- China
- Prior art keywords
- information
- output
- starting
- module
- compiling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000008569 process Effects 0.000 claims description 25
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 claims description 9
- 238000009960 carding Methods 0.000 claims description 8
- 230000006698 induction Effects 0.000 claims description 7
- 230000001939 inductive effect Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- 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/4406—Loading of operating system
- G06F9/441—Multiboot arrangements, i.e. selecting an operating system to be loaded
-
- 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/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1417—Boot up procedures
Abstract
The invention relates to the technical field of servers, and discloses a method for outputting starting information of different types of systems, which comprises the following steps: writing and compiling a BIOS program; burning the compiled BIOS program to a server; the BIOS program outputs different types of system starting information according to different commands of a user. Also disclosed is an apparatus for outputting different types of system startup information, including: the compiling module is used for compiling the BIOS program and compiling; the burning module is used for burning the compiled BIOS program to the server; and the output module is used for outputting different types of system starting information by the BIOS program according to different commands of a user. The invention realizes that a user can freely select whether to output the information to the serial port and what type of information to output after balancing the necessity of starting time and outputting the starting information to the serial port under different scene requirements.
Description
Technical Field
The present invention relates to the technical field of servers, and in particular, to a method and an apparatus for outputting different types of system startup information.
Background
With the continuous development of servers, various industries have higher and higher requirements on the stability and reliability of server systems, but with the more and more powerful functions of servers, the system boot time is longer and longer. The key to the rapid and normal operation of the server is to shorten the startup time as much as possible and to quickly diagnose the cause when the system fails.
The BIOS on the server generally has two types, one is to close the BIOS of the Debug mode, namely the boot time is minimized as much as possible, and the boot information is not output as much as possible; a BIOS for turning on a Debug mode is convenient for a user to quickly diagnose a failed server, but can prolong the boot time. The conventional BIOS has already determined whether and what type of boot information to output when producing an executable binary document.
In the process of research and development of a server and use of a client, if a BIOS with a Debug mode closed is used, when the system is abnormally started and a single function of the system is abnormal, the BIOS with the Debug mode opened needs to be burnt again, the collected serial port information is analyzed and positioned, for example, a memory, a PCIE card inserted in a mainboard and the like cause downtime, and after the problem is solved, the BIOS with the Debug mode closed needs to be burnt. If the BIOS opened by the Debug mode is used in the process of server development and client use, the fault cause can be diagnosed relatively quickly each time, but the time for starting up each time is increased, which causes time waste.
When a fault occurs in the system starting process, the commonly used Debug method is to output the starting information to the serial port, but the system starting time is increased by outputting the starting information to the serial port. The more information that is output, the longer the start-up time. When a conventional BIOS generates an executable binary document, it has been determined whether to output start-up information and what type of start-up information is output, and flexible selection cannot be made in shortening the boot time and quickly diagnosing a system failure.
Disclosure of Invention
The invention provides a method and a device for outputting different types of system starting information aiming at the current requirements and the defects of the prior art development.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method of outputting different types of system startup information, comprising the steps of:
writing and compiling a BIOS program;
burning the compiled BIOS program to a server;
the BIOS program outputs different types of system starting information according to different commands of a user.
Preferably, writing and compiling the BIOS program includes:
on the basis of the existing BIOS code of the server system, the starting information output to the serial port in the starting process of the system is combed out;
induction and classification are carried out on the starting information output in the starting process of the system;
adding different execution conditions for the classified starting information output in the starting process of the system, and respectively controlling each type of information;
and compiling the written BIOS program.
Preferably, the writing of the compiled BIOS program to the server means writing the compiled BIOS program to a ROM chip of a server motherboard.
Preferably, before the BIOS program outputs different types of system boot information according to different commands of a user, the method further includes:
the user sets the type of output information through an IPMI command, and the type of the output information comprises that no system starting information is output, one type of system starting information is output, a plurality of types of system starting information or all types of system starting information are output.
The invention also provides a device for outputting the starting information of the different types of systems based on the method for outputting the starting information of the different types of systems, which comprises the following steps:
the compiling module is used for compiling the BIOS program and compiling;
the burning module is used for burning the compiled BIOS program to the server;
and the output module is used for outputting different types of system starting information by the BIOS program according to different commands of a user.
Preferably, writing the compiling module further comprises:
the carding module is used for carding out starting information output to the serial port in the starting process of the system on the basis of the existing BIOS code of the server system;
the induction classification module is used for inducing and classifying the starting information output in the starting process of the system;
the control module is used for adding different execution conditions for the classified starting information output in the starting process of the system and respectively controlling each type of information;
and the compiling module is used for compiling the compiled BIOS program.
Preferably, the method further comprises the following steps:
the setting module is used for setting the type of output information through an IPMI command by a user, wherein the type of the output information comprises the steps of not outputting any system starting information, outputting one type of system starting information, outputting a plurality of types of system starting information or all types of system starting information.
The invention has the beneficial effects that:
the invention provides a program for outputting different system starting information, which realizes that a user can freely select whether to output the starting information and what type of information to output after balancing the necessity of starting time and outputting the starting information to a serial port under different scene requirements. When the system is normally started, the BMC can set out of band to not output any system starting information to the serial port or only output one type of starting information, so as to shorten the starting time to the maximum. When the system has a starting-up fault, various system starting information can be selected to be output to the serial port to diagnose as soon as possible, and the method can compatibly shorten the starting-up time and diagnose the system fault quickly.
Drawings
Fig. 1 is a flowchart illustrating a method for outputting different types of system startup information according to the present invention.
Fig. 2 is a schematic structural diagram of an apparatus for outputting different types of system startup information according to the present invention.
Fig. 3 is a second flowchart illustrating a method for outputting different types of system boot information according to the present invention.
Fig. 4 is a second schematic structural diagram of the apparatus for outputting different types of system startup information according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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.
For ease of understanding, some of the terms appearing in the present invention are explained below:
BIOS: abbreviation of Basic Input Output System, Basic Input Output System. The system is a group of programs solidified on a ROM chip on a mainboard in a computer, stores the most important basic input and output programs of the computer, a self-checking program after startup and a system self-starting program, can read and write specific information set by the system from a CMOS, and has the main function of providing the bottommost and most direct hardware setting and control for the computer.
Burning: the software solidified in hardware is written into an integrated circuit or a singlechip to realize some basic functions.
BMC: an acronym for Baseboard Management Controller, is a Controller that provides intelligent Management under an IPMI structure.
IPMI: an Intelligent Platform Management Interface, an abbreviation of Intelligent Platform Management Interface, is an industrial standard adopted for managing peripheral equipment used in an enterprise system based on an Intel structure, defines a specific method for communication of an embedded Management subsystem, and IPMI information is communicated through BMC.
The following detailed description of embodiments of the invention is provided in connection with the accompanying drawings and examples:
the first embodiment is as follows:
as shown in fig. 1, a method for outputting different types of system startup information according to the present invention includes the following steps:
step S101: on the basis of the existing BIOS code of the server system, the starting information output to the serial port in the starting process of the system is combed out.
Step S102: and carrying out induction and classification on the starting information output in the starting process of the system.
Step S103: and adding different execution conditions for the classified starting information output in the starting process of the system, and respectively controlling each type of information.
Step S104: and compiling the written BIOS program.
Step S105: and burning the compiled BIOS program onto a ROM chip of the server mainboard.
Step S106: the user sets the type of output information through an IPMI command, and the type of the output information comprises that no system starting information is output, one type of system starting information is output, a plurality of types of system starting information or all types of system starting information are output.
Step S107: the BIOS program outputs different types of system starting information according to different commands of a user.
As a practical way, the start information output in the system start process is classified into three categories: BIOS Debug information, BIOS Progress information, and BIOS Error information. The BIOS debug information is used for debugging of an engineer and comprehensively checking the starting process of the system; BIOS Progress information used for checking the stage to which the system is started; and BIOS Error information used for checking Error information detected in the system starting process.
Example two:
as shown in fig. 2, an apparatus for outputting different types of system startup information according to the present invention includes: the carding module 201 in the compiling module, the induction classification module 202 in the compiling module, the control module 203 in the compiling module, the compiling module 204 in the compiling module, the burning module 205, the setting module 206 and the output module 207 are sequentially connected, and the carding module 201 in the compiling module is sequentially connected with the induction classification module 202 in the compiling module, the control module 203 in the compiling module, the compiling module 204 in the compiling module, the burning module 205, the setting module 206 and the output module 207.
The carding module 201 in the compiling module is compiled and used for carding out the starting information output to the serial port in the starting process of the system on the basis of the existing BIOS code of the server system; an induction classification module 202 in the compiling module is compiled and used for inducing and classifying the starting information output in the starting process of the system; a control module 203 in the compiling module is compiled and used for adding different execution conditions for the classified starting information output in the starting process of the system and respectively controlling each type of information; a compiling module 204 in the compiling module is compiled and used for compiling the compiled BIOS program; a burning module 205, configured to burn the compiled BIOS program onto the server; the setting module 206 is configured to set, by an IPMI command, a type of output information, where the type of output information includes no system startup information output, one type of system startup information output, a plurality of types of system startup information output, or all types of system startup information output; and the output module 207 is used for outputting different types of system starting information by the BIOS program according to different commands of a user.
Example three:
as shown in fig. 3, another method for outputting different types of system startup information according to the present invention includes the following steps:
step S301: and writing and compiling a BIOS program.
Step S302: and burning the compiled BIOS program to a server.
Step S303: the BIOS program outputs different types of system starting information according to different commands of a user.
Example four:
as shown in fig. 4, another apparatus for outputting different types of system startup information according to the present invention includes: the writing and compiling module 401, the burning module 402 and the output module 403, wherein the writing and compiling module 401 is connected with the burning module 402 and the output module 403 in sequence.
A compiling module 401 for compiling a BIOS program and compiling; a burning module 402, configured to burn the compiled BIOS program onto the server; the output module 403 is used for the BIOS program to output different types of system start information according to different commands of the user.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above shows only the preferred embodiments of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.
Claims (6)
1. A method for outputting different types of system startup information, comprising the steps of:
writing and compiling a BIOS program; the method comprises the following steps: on the basis of the existing BIOS code of the server system, the starting information output to the serial port in the starting process of the system is combed out; the starting information output in the starting process of the system is classified into three types: the system comprises BIOS Debug information, BIOS Progress information and BIOS Error information, wherein the BIOS Debug information is used for debugging of an engineer and comprehensively checking the starting process of the system; adding different execution conditions for the classified starting information output in the starting process of the system, and respectively controlling each type of information; compiling the compiled BIOS program;
burning the compiled BIOS program to a server;
the BIOS program outputs different types of system starting information according to different commands of a user.
2. The method of claim 1, wherein burning the compiled BIOS program onto the server means burning the compiled BIOS program onto a ROM chip of a motherboard of the server.
3. The method of claim 1, wherein before the BIOS program outputs the different types of system boot information according to different commands from the user, the method further comprises:
the user sets the type of output information through an IPMI command, and the type of the output information comprises that no system starting information is output, one type of system starting information is output, a plurality of types of system starting information or all types of system starting information are output.
4. The apparatus for outputting different types of system booting information according to any one of claims 1 to 3, comprising:
the compiling module is used for compiling the BIOS program and compiling;
the burning module is used for burning the compiled BIOS program to the server;
and the output module is used for outputting different types of system starting information by the BIOS program according to different commands of a user.
5. The apparatus for outputting different types of system boot information according to claim 4, wherein the compiling module is further composed of:
the carding module is used for carding out starting information output to the serial port in the starting process of the system on the basis of the existing BIOS code of the server system;
the induction classification module is used for inducing and classifying the starting information output in the starting process of the system;
the control module is used for adding different execution conditions for the classified starting information output in the starting process of the system and respectively controlling each type of information;
and the compiling module is used for compiling the compiled BIOS program.
6. The apparatus for outputting different types of system boot information according to claim 4, further comprising:
the setting module is used for setting the type of output information through an IPMI command by a user, wherein the type of the output information comprises the steps of not outputting any system starting information, outputting one type of system starting information, outputting a plurality of types of system starting information or all types of system starting information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710104149.8A CN106909382B (en) | 2017-02-24 | 2017-02-24 | Method and device for outputting different types of system starting information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710104149.8A CN106909382B (en) | 2017-02-24 | 2017-02-24 | Method and device for outputting different types of system starting information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106909382A CN106909382A (en) | 2017-06-30 |
CN106909382B true CN106909382B (en) | 2020-03-10 |
Family
ID=59209029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710104149.8A Active CN106909382B (en) | 2017-02-24 | 2017-02-24 | Method and device for outputting different types of system starting information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106909382B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107818032A (en) * | 2017-10-24 | 2018-03-20 | 郑州云海信息技术有限公司 | A kind of mainboard, information Method of printing, system, device and storage medium |
CN108845825B (en) * | 2018-06-25 | 2021-12-03 | 郑州云海信息技术有限公司 | Storage system configuration method, device, equipment and readable storage medium |
CN109032867A (en) * | 2018-07-25 | 2018-12-18 | 郑州云海信息技术有限公司 | A kind of method for diagnosing faults, device and equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391765A (en) * | 2014-10-27 | 2015-03-04 | 浪潮电子信息产业股份有限公司 | Method for automatically diagnosing boot failure of server |
CN105389260A (en) * | 2015-12-15 | 2016-03-09 | 合肥联宝信息技术有限公司 | Basic input/output system (BIOS) debugging system and method |
CN105677546A (en) * | 2016-02-22 | 2016-06-15 | 合肥联宝信息技术有限公司 | Method for displaying BIOS debugging information and computer equipment applying method |
CN106155713A (en) * | 2015-03-27 | 2016-11-23 | 联想(北京)有限公司 | Start approaches to IM and device |
-
2017
- 2017-02-24 CN CN201710104149.8A patent/CN106909382B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391765A (en) * | 2014-10-27 | 2015-03-04 | 浪潮电子信息产业股份有限公司 | Method for automatically diagnosing boot failure of server |
CN106155713A (en) * | 2015-03-27 | 2016-11-23 | 联想(北京)有限公司 | Start approaches to IM and device |
CN105389260A (en) * | 2015-12-15 | 2016-03-09 | 合肥联宝信息技术有限公司 | Basic input/output system (BIOS) debugging system and method |
CN105677546A (en) * | 2016-02-22 | 2016-06-15 | 合肥联宝信息技术有限公司 | Method for displaying BIOS debugging information and computer equipment applying method |
Also Published As
Publication number | Publication date |
---|---|
CN106909382A (en) | 2017-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10353779B2 (en) | Systems and methods for detection of firmware image corruption and initiation of recovery | |
CN103748569B (en) | The system and method without driving operation of USB device | |
CN109670319B (en) | Server flash safety management method and system thereof | |
CN111694760B (en) | Server system, flash memory module and method for updating firmware mapping file | |
CN109587331B (en) | Method and system for automatically repairing cloud mobile phone fault | |
WO2018095107A1 (en) | Bios program abnormal processing method and apparatus | |
CN111143132B (en) | BIOS recovery method, device, equipment and readable storage medium | |
US7536604B2 (en) | Method and system for reconfiguring functional capabilities in a data processing system with dormant resources | |
CN106909382B (en) | Method and device for outputting different types of system starting information | |
CN104572387A (en) | Method and device for debugging terminal in engineering mode | |
KR20100050380A (en) | Automated firmware recovery | |
CN108292342B (en) | Notification of intrusions into firmware | |
TW202030602A (en) | The method and system of bios recovery and update | |
CN112100027A (en) | Server maintenance method, device, equipment and machine readable storage medium | |
CN111897686A (en) | Server cluster hard disk fault processing method and device, electronic equipment and storage medium | |
CN101989220A (en) | Pressure testing method | |
US10824517B2 (en) | Backup and recovery of configuration files in management device | |
CN116662050A (en) | Error injection support function verification method, device, terminal and medium | |
CN107168819B (en) | Method and device for restarting operating system | |
KR20130075807A (en) | An atm with back-up hdd for booting and the booting method there of | |
CN111737130B (en) | Public cloud multi-tenant authentication service testing method, device, equipment and storage medium | |
US10216525B1 (en) | Virtual disk carousel | |
US20220006863A1 (en) | Method for processing application programs in a distributed automation system | |
CN114978891B (en) | Processing method, device and storage medium for BIOS configuration of network device | |
CN113867812B (en) | Method, system, equipment and medium for BMC to acquire link information |
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 |