CN103729221B - A kind of method and device that BIOS Debugging message is put into hard disk - Google Patents
A kind of method and device that BIOS Debugging message is put into hard disk Download PDFInfo
- Publication number
- CN103729221B CN103729221B CN201310744345.3A CN201310744345A CN103729221B CN 103729221 B CN103729221 B CN 103729221B CN 201310744345 A CN201310744345 A CN 201310744345A CN 103729221 B CN103729221 B CN 103729221B
- Authority
- CN
- China
- Prior art keywords
- debugging
- bios
- subregion
- message
- debugging message
- 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
Abstract
The invention discloses a kind of method and device that BIOS Debugging message is put into hard disk, methods described includes:Before BIOS debugging, the debugging subregion for recording BIOS Debugging message is set up in hard disc of computer;After computer booting, start BIOS debugging;While BIOS debugging is started, BIOS sets up the information transfer channel that Debugging message is transmitted to the debugging subregion;The Debugging message produced in start-up course is write the debugging subregion by BIOS via described information transmission channel, forms one or more Debugging message log files.BIOS Debugging message is totally placed in local hard disk by the present invention, convenient and reliable without extra connection debugging cable and debugging main frame.
Description
Technical field
The present invention relates to BIOS debugging techniques, more particularly to a kind of method that BIOS Debugging message is put into hard disk and
Related device.
Background technology
Current UEFI(Unified Extensible Firmware Interface, general extension firmware interface)
BIOS(Basic Input/Output System, basic input output system)Adjustment method is divided into following several:
1st, USB is utilized(Universal Serial Bus, USB)Debugged.
Make in this way, UEFI BIOS recycle USB cable firstly the need of debugging mode is compiled into, then by tune
The USB debugging ports of examination main frame and the USB port of main frame link together, and BIOS Debugging message is transferred to tune by USB cable
Try on main frame screen.
2nd, debugged using serial ports.
Make in this way, UEFI BIOS recycle serial ports cable firstly the need of debugging mode is compiled into, then by tune
The serial ports of the serial ports and main frame that try main frame links together, and BIOS Debugging message is transferred to debugging main frame screen by serial ports cable
On.
3rd, JTAG is utilized(Joint Test Action Group, combined testing action group)Debugged.
Make in this way, UEFI BIOS recycle JTAG cables firstly the need of debugging mode is compiled into, then by tune
The jtag interface of the jtag interface and main frame that try main frame links together, and Debugging message passes through JTAG cable transmissions to debugging main frame
On screen.
The problem of above method is brought is as follows:
1st, UEFI BIOS must be compiled into debugging mode, otherwise can not export Debugging message.
In the formal shipment of computer, the UEFI BIOS used above consider for performance, it is necessary to compiled by normal mode
Translate, compile in such a mode, all Debugging message can be removed, Debugging message can not be just obtained certainly.
2nd, the general character of above-mentioned adjustment method is to have to utilize to debug cable(USB cable, serial ports cable or JTAG cables
Deng)It is attached with another computer, as shown in Figure 1.
Factory is required for tens of machine batch longtime runnings before computer equipment shipment, to detect that machine is reliable
Property.If the anomaly such as occurring crashing, need to be debugged.But under these conditions, it is impossible to be equipped with and adjust for all machines
Try main frame and debugging cable.Especially, if debugged using JTAG, in addition it is also necessary to take machine apart, JTAG cables can be just installed,
It is fairly cumbersome.
The content of the invention
, can be more preferably it is an object of the invention to provide a kind of method and device that BIOS Debugging message is put into hard disk
Ground solves the problems, such as the acquisition of BIOS Debugging message.
According to an aspect of the invention, there is provided a kind of method that BIOS Debugging message is put into hard disk, including:
Before BIOS debugging, the debugging subregion for recording BIOS Debugging message is set up in hard disc of computer;
After computer booting, start BIOS debugging;
While BIOS debugging is started, BIOS, which is set up to the information transfer of the debugging subregion transmission Debugging message, to be led to
Road;
The Debugging message produced in start-up course is write the debugging subregion, shape by BIOS via described information transmission channel
Into one or more Debugging message log files.
Preferably, the debugging subregion is overlapped with the existing subregion of hard disc of computer.
Preferably, the debugging subregion is the boot sector of hard disc of computer.
Preferably, the debugging subregion is the system boot partition of the installation WIN OS institutes band of hard disc of computer.
Preferably, described after computer booting, starting the step of BIOS is debugged includes:
Into BIOS SETUP, program is set;
Selected by the Debugging message output intent option to generation, start BIOS debugging.
Preferably, also include:
Into BIOS SETUP, program is set;
Selected by the Debugging message output intent option to generation, BIOS debugging is closed, so that BIOS was starting
Cheng Zhong, stops to the debugging subregion transmission Debugging message.
According to another aspect of the present invention there is provided a kind of device that BIOS Debugging message is put into hard disk, including:
Debugging subregion sets up module, is used to record BIOS tune for before BIOS is debugged, setting up in hard disc of computer
Try the debugging subregion of information;
BIOS debugs starting module, for after computer booting, starting BIOS debugging;
BIOS transmission channels set up module, for while BIOS debugging is started, setting up to the debugging subregion transmission
The information transfer channel of Debugging message;
BIOS Debugging message writing modules are logical for the Debugging message produced in start-up course to be transmitted via described information
Road writes the debugging subregion, forms one or more Debugging message log files.
Preferably, the debugging subregion that the debugging subregion sets up module foundation is overlapped with the existing subregion of hard disc of computer.
Preferably, the debugging subregion that the debugging subregion sets up module foundation is the boot sector of hard disc of computer.
Preferably, the debugging subregion that the debugging subregion sets up module foundation is the installation WIN OS institutes band of hard disc of computer
System boot partition.
Compared with prior art, the beneficial effects of the present invention are:
1st, by the present invention, all UEFI BIOS Debugging message are all placed into the debugging subregion in local hard disk
Among Debugging message log file, without extra connection debugging cable again(USB cable, serial ports cable or JTAG cables etc.)And adjust
Main frame is tried, it is convenient and reliable;
2nd, by the present invention, factory is carrying out high-volume machine batch testing and exception is occurring, it is necessary to when being debugged, can
Program is set to be set as " Debugging message output intent option " " to start " BIOS debugging by BIOS SETUP, then when machine occurs
When abnormal, you can check Debugging message log file, to help Debugging message when engineer checks machine malfunction, to help to ask
Topic positioning;
3rd, in the formal shipment of computer, if reaching end user in use, occurring starting the phenomenon such as abnormal, dimension can be transferred to
Personnel are repaiied, set program to be set as " Debugging message output intent option " " to start " BIOS debugging by BIOS SETUP, it is then right
The Debugging message log file of generation is analyzed, where decision problem.
Brief description of the drawings
Fig. 1 is the BIOS adjustment method schematic diagrames that prior art is provided;
Fig. 2 is the Method And Principle block diagram provided in an embodiment of the present invention that BIOS Debugging message is put into hard disk;
Fig. 3 is the device block diagram provided in an embodiment of the present invention that BIOS Debugging message is put into hard disk.
Embodiment
Below in conjunction with accompanying drawing to a preferred embodiment of the present invention will be described in detail, it will be appreciated that described below is excellent
Select embodiment to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 2 is the Method And Principle block diagram provided in an embodiment of the present invention that BIOS Debugging message is put into hard disk, such as Fig. 2
Shown, step includes:
Step S201, BIOS debugging before, the debugging for recording BIOS Debugging message is set up in hard disc of computer
Subregion.
Further, the debugging subregion can be overlapped with the existing subregion of hard disc of computer, such as described debugging subregion
Can be hard disc of computer boot sector or hard disc of computer installation WIN OS institutes band system boot partition.
Step S202, after computer booting, start BIOS debugging.
Specifically, first have to enter BIOS SETUP setting programs, then the Debugging message output intent option of generation is entered
Row selection, i.e., be " startup " to debugging information output set of options, to start BIOS debugging.
Step S203, start BIOS debugging while, BIOS set up to it is described debugging subregion transmit Debugging message letter
Cease transmission channel.
Step S204, BIOS adjusts the Debugging message produced in start-up course via the write-in of described information transmission channel is described
Subregion is tried, one or more Debugging message log files are formed.
The Debugging message that the Debugging message log file will be produced in continuous record UEFI BIOS start-up courses, when one
When Debugging message amount in individual Debugging message log file is increased to a certain extent, preceding Debugging message can be covered
Lid, can will regenerate new Debugging message log file, until the debugging pre-set in hard disc of computer subregion is write into full
Untill etc..
During BIOS is debugged, if abnormal, the Debugging message log file of reading debugging subregion occurs in machine, engineer can
By checking and analyzing Debugging message during machine malfunction, positioning problems are effectively carried out.
After step S204 is performed, if BIOS debugging need not be carried out again, it is again introduced into BIOS SETUP and journey is set
Sequence, is then selected by the Debugging message output intent option to generation, i.e., be " closing " to debugging information output set of options,
BIOS debugging is closed, so that BIOS is in start-up course, is stopped to the debugging subregion transmission Debugging message.
BIOS stops to after the debugging subregion transmission Debugging message, the Debugging message in the Debugging message log file
It will not change.
Fig. 3 is the device block diagram provided in an embodiment of the present invention that BIOS Debugging message is put into hard disk, such as Fig. 3 institutes
Show, including debugging subregion sets up module, BIOS debugging starting module, BIOS transmission channels set up module and BIOS Debugging message is write
Enter module.
The debugging subregion, which sets up module, to be used for before BIOS debugging, is set up in hard disc of computer for recording BIOS
The debugging subregion of Debugging message, furtherly, the debugging subregion that the debugging subregion sets up module foundation can be hard with computer
The existing subregion of disk is overlapped, especially, and the debugging subregion can be the boot sector or computer of hard disc of computer
The system boot partition of the installation WIN OS institutes band of hard disk.
BIOS debugging starting module is used for after computer booting, starts BIOS debugging, specifically, first have into
Enter BIOS SETUP and program is set, then the Debugging message output intent option of generation is selected, i.e., to debugging information output choosing
Item is set as " starting ", to start BIOS debugging.Further, the BIOS debugging starting module need not can also entered again
Row BIOS is debugged, and closes BIOS debugging, specifically, first has to be again introduced into BIOS SETUP setting programs, then to producing
Debugging message output intent option selected, i.e., to debugging information output set of options be " closings ", with close BIOS debug,
While closing BIOS debugging, the information transfer channel that Debugging message is transmitted to the debugging subregion that BIOS is set up is deleted, this
Sample, BIOS, will be no longer to the debugging subregion transmission Debugging message in start-up course.
The BIOS transmission channels, which set up module, to be used for while BIOS debugging is started, and BIOS is set up to the debugging point
Transmit the information transfer channel of Debugging message in area.
The BIOS Debugging message writing module is used to pass the Debugging message produced in start-up course via described information
Defeated passage writes the debugging subregion, forms one or more Debugging message log files.Wherein, the Debugging message record text
The Debugging message that part will be produced in continuous record UEFI BIOS start-up courses, the debugging in a Debugging message log file
When information content is increased to a certain extent, preceding Debugging message can be covered, can will regenerate new Debugging message
Log file, untill the debugging pre-set in hard disc of computer subregion is write completely etc..During BIOS is debugged, if machine goes out
It is now abnormal, then the Debugging message log file of debugging subregion is read, engineer can be by checking and analyzing tune during machine malfunction
Information is tried, positioning problems are effectively carried out.Debugging message in the Debugging message log file stops to the debugging in BIOS
It will not change after subregion transmission Debugging message.
By taking certain computer as an example, the flow that BIOS Debugging message is put into hard disk is as follows:
A, in the hard disk provisioned in this computer equipment individually mark one debugging block, referred to as debug subregion.
The debugging subregion can be overlapped with the existing subregion of hard disc of computer, and it is hard disk for example to debug subregion
In the system boot partition of boot sector or installation WIN OS institutes band.
B, UEFI BIOS do not repartition debugging mode and normal mode, need to only be added in BIOS SETUP setting programs
One option.
The project name of the option is " Debugging message output ", is divided into two options:" startup " and " closing ".
C, program set by BIOS SETUP, be " startup ", then UEFI by " Debugging message output " set of options
All startup information can be Debugging message by BIOS, be output in the debugging subregion in the machine hard disk, generate one or several
Debugging message log file.
That is, BIOS is in start, parameter set in BIOS SETUP can be read out, if it find that institute
The parameter of setting is had been set at " starting ", it is possible to directly hard disk sector is written and read.For modern BIOS,
Through the read-write program for having wrapped into hard disk sector, that is to say, that when starting BIOS debugging, BIOS can be set up to the debugging point
The information transfer channel of Debugging message is transmitted in area, and hard disk sector is written and read using described information transmission channel.
Further, the Debugging message log file can constantly record the debugging produced in UEFI BIOS start-up courses
Information, can have various ways to be chosen by BIOS designers, for example Debugging message amount increase to a certain extent when be cover again with
Preceding debugging recording, is override, and new Debugging message log file is still produced again, is completely set in advance in a hard disk until writing
Untill good debugging subregion etc..
Similarly, it is " closing " by " Debugging message output " set of options that program can also be set by BIOS SETUP,
BIOS debugging is closed for example when BIOS debugging need not be carried out, now, UEFI BIOS no longer export any debugging letter in starting
Breath, will not naturally also change Debugging message log file.
It can be seen that, BIOS need to add an option in BIOS SETUP setting programs, and this project is entitled, and " Debugging message is defeated
Go out ", it is divided into two options, " startup " and " closing ".The present invention have modified present UEFI BIOS pattern compilers, extant pattern
It is to be controlled whether to be compiled into Debugging message in BIOS ROM using the overall situation specified in a compiling switch.This hair
It is bright UEFI BIOS export Debugging message when, eliminate the reliance on global switch, but need to check and be carried in BIOS SETUP setting programs
" Debugging message output " the option numerical value supplied, if " startup ", then exports Debugging message into the debugging subregion of local hard disk
In Debugging message log file, if " closing ", then no longer export Debugging message.
In summary, whether in the equipment batch testing before computer dispatches from the factory, or the appearance after computer dispatches from the factory
Start when exception, by BIOS SETUP program can be set " to open " Debugging message output " set of options
It is dynamic ", BIOS Debugging message is written to the Debugging message log file of debugging subregion, so that when equipment malfunctions, by reading
With the Debugging message in the Debugging message log file for analyzing the debugging subregion, fast and effectively where decision problem.
Although the present invention is described in detail above, the invention is not restricted to this, those skilled in the art of the present technique
Various modifications can be carried out according to the principle of the present invention.Therefore, all modifications made according to the principle of the invention, all should be understood to
Fall into protection scope of the present invention.
Claims (9)
1. a kind of method that BIOS Debugging message is put into hard disk, it is characterised in that including:
Before BIOS debugging, the debugging subregion for recording BIOS Debugging message is set up in hard disc of computer;
First have to enter BIOS SETUP setting programs, then the Debugging message output intent option of generation is selected, that is, exchanged
It is " startup " to try information output set of options, to start BIOS debugging;
While BIOS debugging is started, BIOS sets up the information transfer channel that Debugging message is transmitted to the debugging subregion;
The Debugging message produced in start-up course is write the debugging subregion by BIOS via described information transmission channel, forms one
Individual or multiple Debugging message log files.
2. according to the method described in claim 1, it is characterised in that the existing subregion weight of the debugging subregion and hard disc of computer
Close.
3. method according to claim 2, it is characterised in that the debugging subregion is the boot sector of hard disc of computer.
4. method according to claim 2, it is characterised in that the debugging subregion is the installation WIN OS of hard disc of computer
The system boot partition of institute's band.
5. according to the method described in claim 1, it is characterised in that also include:
Into BIOS SETUP, program is set;
Selected by the Debugging message output intent option to generation, close BIOS debugging, so that BIOS is in start-up course,
Stop to the debugging subregion transmission Debugging message.
6. a kind of device that BIOS Debugging message is put into hard disk, it is characterised in that including:
Debugging subregion sets up module, is used to record BIOS debugging letters for before BIOS is debugged, setting up in hard disc of computer
The debugging subregion of breath;
BIOS debugs starting module, then defeated to the Debugging message of generation for first having to enter BIOS SETUP setting programs
Go out option to be selected, i.e., be " startup " to debugging information output set of options, to start BIOS debugging;
BIOS transmission channels set up module, for while BIOS debugging is started, setting up to the debugging subregion transmission debugging
The information transfer channel of information;
BIOS Debugging message writing modules, for the Debugging message produced in start-up course to be write via described information transmission channel
Enter the debugging subregion, form one or more Debugging message log files.
7. device according to claim 6, it is characterised in that the debugging subregion set up the debugging subregion of module foundation with
The existing subregion of hard disc of computer is overlapped.
8. device according to claim 7, it is characterised in that the debugging subregion that the debugging subregion sets up module foundation is
The boot sector of hard disc of computer.
9. device according to claim 7, it is characterised in that the debugging subregion that the debugging subregion sets up module foundation is
The system boot partition of the installation WIN OS institutes band of hard disc of computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310744345.3A CN103729221B (en) | 2013-12-30 | 2013-12-30 | A kind of method and device that BIOS Debugging message is put into hard disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310744345.3A CN103729221B (en) | 2013-12-30 | 2013-12-30 | A kind of method and device that BIOS Debugging message is put into hard disk |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103729221A CN103729221A (en) | 2014-04-16 |
CN103729221B true CN103729221B (en) | 2017-07-18 |
Family
ID=50453305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310744345.3A Active CN103729221B (en) | 2013-12-30 | 2013-12-30 | A kind of method and device that BIOS Debugging message is put into hard disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103729221B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391765A (en) * | 2014-10-27 | 2015-03-04 | 浪潮电子信息产业股份有限公司 | Method for automatically diagnosing boot failure of server |
CN106033378A (en) * | 2015-03-20 | 2016-10-19 | 昆达电脑科技(昆山)有限公司 | Debug information storage method |
CN106201790B (en) * | 2015-05-08 | 2019-07-16 | 深圳市祈飞科技有限公司 | A kind of adjustment method and debugging system based on DSDT table |
CN105389260A (en) * | 2015-12-15 | 2016-03-09 | 合肥联宝信息技术有限公司 | Basic input/output system (BIOS) debugging system and method |
CN107894934A (en) * | 2017-10-10 | 2018-04-10 | 曙光信息产业(北京)有限公司 | Control the method, apparatus and server of BIOS Debugging message output |
CN107908547A (en) * | 2017-10-10 | 2018-04-13 | 曙光信息产业(北京)有限公司 | Control the method, apparatus and server of BIOS Debugging message output |
CN109697144B (en) * | 2018-11-22 | 2022-09-23 | 合肥联宝信息技术有限公司 | Hard disk detection method of electronic equipment and electronic equipment |
CN109710319B (en) * | 2018-12-06 | 2022-07-19 | 郑州云海信息技术有限公司 | Method and system for identifying in-place hard disk of computer |
CN113064749B (en) * | 2021-04-26 | 2023-02-28 | 山东英信计算机技术有限公司 | Method for controlling debugging information output at runtime stage through BIOS |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201867793U (en) * | 2010-07-06 | 2011-06-15 | 北京研华兴业电子科技有限公司 | Debugging system of basic input/output system |
CN102385545A (en) * | 2010-08-30 | 2012-03-21 | 鸿富锦精密工业(深圳)有限公司 | BIOS (Basic Input Output System) debugger and debugging method |
US8886996B2 (en) * | 2012-04-02 | 2014-11-11 | Compal Electronics, Inc. | Debugging device and method for performing a debugging process to a target system |
CN103049380B (en) * | 2012-12-22 | 2016-02-17 | 中国船舶重工集团公司第七0九研究所 | A kind of VBIOS adjustment method of special display controller |
-
2013
- 2013-12-30 CN CN201310744345.3A patent/CN103729221B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103729221A (en) | 2014-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103729221B (en) | A kind of method and device that BIOS Debugging message is put into hard disk | |
CN105302950B (en) | A kind of programmable logic device crosslinking emulation test method of soft and hardware collaboration | |
CN104407980B (en) | Mobile solution automatic test device and method | |
CN104200172B (en) | A kind of safe gatherer of usb data, system and method | |
RU2473115C2 (en) | Method for automatic generation of scenario for validation of functional software installed on-board aircraft, and apparatus for implementing said method | |
CN102279789B (en) | Debugging system and debugging method for embedded system of production phase | |
CN104156311B (en) | A kind of embedded type C language target code level unit test method based on CPU emulator | |
CN104965776B (en) | Mobile terminal checks the method and system of daily record in recovery mode | |
CN103838653A (en) | Register automatic authentication method based on VMM RAL | |
CN110297470B (en) | Lightweight cross-platform rail transit storage battery data monitoring upper computer platform | |
CN108829594A (en) | The method and system of automatic test BMC web assets information function under a kind of Linux | |
GB2522628A (en) | Software tracing using extensible markup language messages | |
CN104050069B (en) | A kind of automated testing method realizing MIPS processor correctness based on Mars judge Verilog | |
CN103218297A (en) | Screening method and device of test data | |
CN108572895A (en) | Automatically the stability test method of software and hardware configuration is checked under a kind of Linux | |
CN103530166B (en) | Verification platform and verification method for multi-channel chip based on virtual RAM | |
JP2011113277A (en) | Apparatus, method and program for testing program | |
CN105389260A (en) | Basic input/output system (BIOS) debugging system and method | |
CN106855712B (en) | Method, apparatus and system for multi-module process control management | |
CN106528414B (en) | Processor chips emulator | |
US10970442B1 (en) | Method of debugging hardware and firmware of data storage | |
US20150286557A1 (en) | Embedded instruction sets for use in testing and error simulation of computing programs | |
CN102279797A (en) | Method and system for detecting memory leakage | |
CN109240872A (en) | A kind of chip checking key signal coverage rate statistical analysis technique and storage medium | |
CN101714114A (en) | Device and method for supporting processor silicon post debugging |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |