CN104778050A - Debugging method of basic input-output system - Google Patents

Debugging method of basic input-output system Download PDF

Info

Publication number
CN104778050A
CN104778050A CN201410013202.XA CN201410013202A CN104778050A CN 104778050 A CN104778050 A CN 104778050A CN 201410013202 A CN201410013202 A CN 201410013202A CN 104778050 A CN104778050 A CN 104778050A
Authority
CN
China
Prior art keywords
stage
basic input
output system
bios
gpio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410013202.XA
Other languages
Chinese (zh)
Inventor
曹登云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunda Computer Technology Kunshan Co Ltd
Mitac International Corp
Original Assignee
Kunda Computer Technology Kunshan Co Ltd
Mitac International Corp
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 Kunda Computer Technology Kunshan Co Ltd, Mitac International Corp filed Critical Kunda Computer Technology Kunshan Co Ltd
Priority to CN201410013202.XA priority Critical patent/CN104778050A/en
Publication of CN104778050A publication Critical patent/CN104778050A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a debugging method of a basic input-output system. The debugging method of the basic input-output system comprises the following steps: a) the basic input-output system executes a startup program; b) obtaining a GPIO (General Purpose Input/Output) status value; c) judging whether the GPIO status value is a default or not, if the GPIO status value is the default, executing a step d), if the GPIO status value is not the default, returning to the step a), and continuously executing the startup program; and d) according to each stage of the prestored startup program and the character sketch of execution action corresponding to each stage, outputting a stage in which the executed startup program is positioned and the character sketch of the execution action corresponding to each stage. Through the above steps, misjudgment can be avoided, and error removal cost and time can be greatly reduced.

Description

Basic Input or Output System (BIOS) debug method
[technical field]
The present invention is a kind of Basic Input or Output System (BIOS) debug method.
[background technology]
Basic Input or Output System (BIOS) (the BASIC INPUT/OUTPUT SYSTEM of computer installation; BIOS) can read and write by the produced random access memory of CMOS (RAM) .BIOS via reading and writing CMOS to learn the running configuration of current computer installation, or the setting value of some computing machine configuration is recorded to CMOS, and make suitable start environment set.
What stage the code that system can utilize seven-segment display or Debug Board to demonstrate start at present in plank Porting process performs, and the mode of this display is at present the numeral (Post code) of display 16 carries, following several shortcomings are had: 1. allow system shuts down when system goes wrong in performance history, now often all must be transmitted through inquiry BIOS developer this numeral is which is representative system be parked in put the place of system problem in order in stage, this is except causing the burden of BIOS developer, also time of Resolving probiems can elongate and then have influence on the schedule of whole case.2. when system is parked in inner Postcode, BIOS developer also cannot singly from Post code to know system problem place, often all must just can be further analyzed to obtain more information by the person of the asking someone BIOS that refreshes Debug version, because Debug version cannot disengage, if this system is in client, then system must to be returned or the BIOS person of sending someone goes to Debug, sizable cost can be spent like this with the time.3. the Post code of system may cause erroneous judgement according to the difference of design.
In view of this, the invention provides a kind of debug method of Basic Input or Output System (BIOS), it can avoid erroneous judgement, greatly reduces debug cost and time.
[summary of the invention]
Fundamental purpose of the present invention is the debug method providing a kind of Basic Input or Output System (BIOS), and it can avoid erroneous judgement, greatly reduces debug cost and time.
For reaching above-mentioned purpose, the debug method that the invention provides a kind of Basic Input or Output System (BIOS) comprises following steps: a. Basic Input or Output System (BIOS) performs boot program; B. a GPIO state value is obtained; C. judge whether described GPIO state value is a default value, if it is performs steps d, if otherwise return step a continuation execution boot program; D. according to boot program each stage of prestoring and the text summary performed an action corresponding to each stage, the stage that the boot program performed by output is present at present and the text summary performed an action corresponding to this stage.
Preferably, in stepb, described Basic Input or Output System (BIOS) obtains described GPIO state value from a GPIO interface, and this general input and output interfaces connects a button, and it is logical one or logical zero that the opening or closing of described button represents GPIO state value.
Preferably, in step c, described default value is logical one.
Preferably, described button is be connected to the Jumper between GPIO interface and described Basic Input or Output System (BIOS).
Preferably, after steps d, step b is returned.
Preferably, in steps d, the stage that the boot program performed by being exported by display screen is at present present and the text summary performed an action corresponding to this stage.
Preferably, in steps d, the stage at present present by the boot program performed by printer output and the text summary performed an action corresponding to this stage.
Compared with prior art, the stage that boot program performed by the debug method of Basic Input or Output System (BIOS) of the present invention exported according to the boot program prestored each stage and the text summary performed an action corresponding to each stage is present at present and the text summary performed an action corresponding to this stage, judging that the state value of GPIO is the stage and the text summary performed an action corresponding to this stage that default value exports that current procedure performs, erroneous judgement can be avoided by this, greatly reduce debug cost and time.
[accompanying drawing explanation]
Fig. 1 is the process flow diagram of the debug method of a kind of Basic Input or Output System (BIOS) of the present invention.
[embodiment]
Refer to shown in Fig. 1, the debug method of a kind of Basic Input or Output System (BIOS) of the present invention comprises following steps:
Step 100: Basic Input or Output System (BIOS) performs boot program;
Step 200: obtain a GPIO state value:
In this step, Basic Input or Output System (BIOS) is from a general input and output interfaces (General Purpose I/O; GPIO) GPIO state value is obtained, this general input and output interfaces (GPIO) connects a button, user can manipulate the change opening or closing to realize GPIO state value of this button, this GPIO state value is that logical one or logical zero representative open or close two kinds of different states, in the present embodiment, described button can be the Jumper be connected between GPIO and Basic Input or Output System (BIOS), changes GPIO state value by operation jumper.
Step 300: judge whether described GPIO state value is a default value, if it is performs step 4, if otherwise return step 1 continuation execution boot program:
Basic Input or Output System (BIOS) judges whether the GPIO state value obtained is default value, as being logical one, if it is performs step 5, if not, then returns step 2 and continues to perform boot program.
Step 400: according to the boot program prestored each stage and the text summary performed an action corresponding to each stage, the stage that boot program performed by output is at present present and the text summary performed an action corresponding to this stage, as, the PEI stage 1: start central processing unit (Initializing CPU); The PEI stage 2: start internal memory (Initializing memory); The DXE stage 1: start I/O equipment (Initializing I/O device); The DXE stage 2: during option ROM is loaded into (Loading OPROM); In the BDS stage 1: (Boot order setting) and BDS stage 2 during start-up routine is arranged: starter gear (Boot to device), after the at present present stage of the boot program performed by exporting and the text summary performed an action corresponding to this stage, return step 2 again obtain the state value of GPIO and judge.
It should be noted that, the mode that the mode that shown by display screen or printer can be selected to print exports performed boot program stage present at present and the text summary performed an action corresponding to this stage, due to output is the text summary performed an action in this stage, so developer can know the concrete condition in the stage that program is made mistakes and this stage straightforwardly, avoid erroneous judgement, greatly reduce the cost of system debug and the time of debug.
In sum, the various embodiments described above and diagram are only the preferred embodiment of the present invention, when can not with the scope of restriction the invention process, the equalization change namely generally done according to the present patent application the scope of the claims with modify, all should be covered by the present invention within the scope of the patent.

Claims (7)

1. the debug method of a Basic Input or Output System (BIOS) comprises following steps:
A. Basic Input or Output System (BIOS) performs boot program;
B. a GPIO state value is obtained;
C. judge whether described GPIO state value is a default value, if it is performs steps d, if otherwise return step a continuation execution boot program;
D. according to boot program each stage of prestoring and the text summary performed an action corresponding to each stage, the stage that the boot program performed by output is present at present and the text summary performed an action corresponding to this stage.
2. the debug method of Basic Input or Output System (BIOS) according to claim 1, it is characterized in that, in stepb, described Basic Input or Output System (BIOS) obtains described GPIO state value from a GPIO interface, this general input and output interfaces connects a button, and it is logical one or logical zero that the opening or closing of described button represents GPIO state value.
3. the debug method of Basic Input or Output System (BIOS) according to claim 2, is characterized in that, in step c, described default value is logical one.
4. the debug method of Basic Input or Output System (BIOS) according to claim 2, is characterized in that, described button is be connected to the Jumper between GPIO interface and described Basic Input or Output System (BIOS).
5. the debug method of Basic Input or Output System (BIOS) according to claim 1, is characterized in that, after steps d, return step b.
6. the debug method of Basic Input or Output System (BIOS) according to claim 1, is characterized in that, in steps d, and the stage that the boot program performed by being exported by display screen is at present present and the text summary performed an action corresponding to this stage.
7. the debug method of Basic Input or Output System (BIOS) according to claim 1, is characterized in that, in steps d, and the stage at present present by the boot program performed by printer output and the text summary performed an action corresponding to this stage.
CN201410013202.XA 2014-01-13 2014-01-13 Debugging method of basic input-output system Pending CN104778050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410013202.XA CN104778050A (en) 2014-01-13 2014-01-13 Debugging method of basic input-output system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410013202.XA CN104778050A (en) 2014-01-13 2014-01-13 Debugging method of basic input-output system

Publications (1)

Publication Number Publication Date
CN104778050A true CN104778050A (en) 2015-07-15

Family

ID=53619536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410013202.XA Pending CN104778050A (en) 2014-01-13 2014-01-13 Debugging method of basic input-output system

Country Status (1)

Country Link
CN (1) CN104778050A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802809A (en) * 2015-11-26 2017-06-06 昆达电脑科技(昆山)有限公司 Startup display method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425030A (en) * 2007-10-29 2009-05-06 环隆电气股份有限公司 Debugging method for basic I/O system
CN101902355A (en) * 2009-05-27 2010-12-01 宏正自动科技股份有限公司 Server, computer system, and method for monitoring computer system
US20120306456A1 (en) * 2011-06-03 2012-12-06 Hon Hai Precision Industry Co., Ltd. Charging circuit
CN102929817A (en) * 2012-10-12 2013-02-13 浪潮电子信息产业股份有限公司 Heterogeneous model information automatic configuring method based on GPIO (general purpose input/output)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425030A (en) * 2007-10-29 2009-05-06 环隆电气股份有限公司 Debugging method for basic I/O system
CN101902355A (en) * 2009-05-27 2010-12-01 宏正自动科技股份有限公司 Server, computer system, and method for monitoring computer system
US20120306456A1 (en) * 2011-06-03 2012-12-06 Hon Hai Precision Industry Co., Ltd. Charging circuit
CN102929817A (en) * 2012-10-12 2013-02-13 浪潮电子信息产业股份有限公司 Heterogeneous model information automatic configuring method based on GPIO (general purpose input/output)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802809A (en) * 2015-11-26 2017-06-06 昆达电脑科技(昆山)有限公司 Startup display method

Similar Documents

Publication Publication Date Title
US8572437B2 (en) Multi-platform test automation enhancement
CN109669873B (en) User interface automatic test method and device, electronic equipment and storage medium
US6349393B1 (en) Method and apparatus for training an automated software test
US9158662B1 (en) Automated operating system installation on multiple drives
CN110704304A (en) Application program testing method and device, storage medium and server
US20120191963A1 (en) BIOS Updating System, BIOS Updating Method, and Related Computer Program Product
US7356684B2 (en) Booting system and/or method for initializing peripherals
US9542304B1 (en) Automated operating system installation
CN113342590B (en) NVMe device debugging function implementation method, device, equipment and storage medium
US10642678B1 (en) PCI/PCIe-non-compliance-vulnerability detection apparatus and method
US20200183809A1 (en) Usage amount monitoring method and monitoring unit of electronic control unit for vehicle
CN107450953B (en) Method and device for updating BIOS
US6401218B1 (en) Method and system for functional kernel verification testing within a data processing system
CN113377586B (en) Automatic detection method and device for server and storage medium
CN106126425B (en) Function traversal method and system based on Android automated test frame
CN107766240A (en) UEFI Shell internal command automatic running detection methods and system
CN113315675B (en) White box switch U-Boot automatic testing method, system and storage medium
US7856622B2 (en) Computer program runtime bottleneck diagnostic method and system
US11494289B2 (en) Automatic framework to create QA test pass
CN107451043A (en) A kind of detection method and device of server stability
CN104778050A (en) Debugging method of basic input-output system
CN107229457B (en) Electronic controller, guide loading method and device thereof and automobile
JP4558376B2 (en) controller
CN113076140B (en) GPIO (general purpose input/output) configuration detection method and device and server
US20040205730A1 (en) System and method for building libraries and groups of computer programs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150715

WD01 Invention patent application deemed withdrawn after publication