CN1584827B - Method for recording testing program - Google Patents

Method for recording testing program Download PDF

Info

Publication number
CN1584827B
CN1584827B CN 03155810 CN03155810A CN1584827B CN 1584827 B CN1584827 B CN 1584827B CN 03155810 CN03155810 CN 03155810 CN 03155810 A CN03155810 A CN 03155810A CN 1584827 B CN1584827 B CN 1584827B
Authority
CN
China
Prior art keywords
test
storer
computer
selftest
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 03155810
Other languages
Chinese (zh)
Other versions
CN1584827A (en
Inventor
黄坤红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to CN 03155810 priority Critical patent/CN1584827B/en
Publication of CN1584827A publication Critical patent/CN1584827A/en
Application granted granted Critical
Publication of CN1584827B publication Critical patent/CN1584827B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A method for recording test program includes setting a signal transmission element and a storage element on an electronic device, setting a recording program between each two test program as recording program being followed always with test program being executed, using signal transmission element to send test code to storage element for having a test record.

Description

The method of record test procedure
Technical field
The present invention relates to a kind of method that writes down test procedure.
Background technology
For the user of computer, opening the power supply of computer, almost is the thing that must do every day to start computer, but computer is showing operating system (Operating System, be called for short: before start-up picture OS), carried out those processing on earth? I believe that most of users may not be clear.For can understand computer from opening power before start-up picture occurs, computer carries out those processing, makes following simple explanation now:
In the start-up course of traditional computer, the very perfect start oneself testing mechanism of a cover is arranged.For the computer that adopts Award BIOS, it begins to start shooting in several seconds of self-testing mechanism from receiving power supply, just can finish more than 100 detection step.
At first, cross the Cheng Qian at the explanation launch computer, must understand two key concepts: first is Basic Input or Output System (BIOS) (Basic Input Output System, be called for short: BIOS), in fact Basic Input or Output System (BIOS) is exactly to be encapsulated in the chip of this computer, it is be responsible for to coordinate and the batch processing of management computer hardware, and provides lowest-order, the most direct hardware controls for this computer.In many hardware of traditional computer, all be provided with Basic Input or Output System (BIOS), and modal hardware as; Motherboard (being also referred to as system's Basic Input or Output System (BIOS)), display card, integrate electronic type driving interface (Integrated Drive Electronics, be called for short: IDB), personal computer system interface (Small Computer System Interface, be called for short: SCSI), networking card (Network Interface Card) ... wait and some other equipment, all there is Basic Input or Output System (BIOS), wherein system's Basic Input or Output System (BIOS) is the part that we will illustrate, because the start-up course of computer is to carry out under the control of system's Basic Input or Output System (BIOS).The boot program of system's Basic Input or Output System (BIOS) generally is in the ROM (read-only memory) (ROM) that is stored at motherboard, so even at shut down of computer or after losing power supply, boot program can not disappear without foundation yet.
Second storage address that key concept is storer usually is equipped with the storer with a constant volume in the computer, and for the ease of the access of the central processing unit of computer, each bit group (byte) of these storeies all has been endowed an address.For example: the address realm of 32 megabit tuples (32MB), be to use sexadecimal number to represent, just it stores the address by 0~1FFFFFFH, wherein the low side IMB storer of 0~FFFFFH is very special, because processor with 32 bits, its can direct access the storer maximum have only 1MB, therefore the low side 640 kilobit tuples (KB) of this 1MB are called as basic storage, to keep by A0000H~BFFFFH and use and store the address to display card, storing the address in addition then is retained to the Basic Input or Output System (BIOS) of computer all hardware by C0000H~FFFFFH and uses, wherein system's Basic Input or Output System (BIOS) generally takies last 64KB or more more space, and the Basic Input or Output System (BIOS) of display card is generally storing address C0000H~C7FFFH place, integrate the Basic Input or Output System (BIOS) of electronic type driving interface, then storing address C8000H~CBFFFH place.
Understood after these key concepts, below we will describe computer in detail and be unlocked behind the power supply before the start-up picture that enters operating system the start-up course of computer:
The first step: when we press the power switch of computer, the power supply that power supply unit provided of this computer, to begin to motherboard and the power supply of other hardware, the voltage that provided this moment is still unstable, its motherboard control chip group (Chipset), can send and keep a replacement (RESET) signal to its CPU (central processing unit) (CPU), allow the CPU (central processing unit) initialization.By the time power supply begins (never to be stabilized to stable voltage behind the stable power-supplying, its process is very of short duration), this control chip group is just cancelled reset signal, identical, restart computer if manually press replacement button set on the computer panel, that is petty unclamp this replacement button after, this control chip group will be cancelled reset signal, make CPU (central processing unit) immediately from storage place FFFFOH, begin execution command, this stores the address in the address realm of the Basic Input or Output System (BIOS) of system, no matter be Award BIOS or AMI is BIOS, be placed on a just jump instruction here, jump to start-up code place real in system's Basic Input or Output System (BIOS).
Second step: the start-up code of system's Basic Input or Output System (BIOS), at first to be exactly selftest (the Power On Self Test that starts shooting, be called for short: POST), the main task of start selftest is that can whether some key equipments in the detection system exist and operate as normal, as storer and display card etc.Because, the testing process of this start selftest is before the display card initialization, therefore, if in the process of start selftest, found some fatal errors, when not finding storer or storer that problem is arranged (start selftest process is only checked the 640K conventional memory), can't on display, be revealed, at this moment the system boot selftest can come the reporting errors situation by the sound horn of this computer, and these loudspeaker have been represented wrong type with the length and the number of times of its sound that sends.So under general normal condition, start selftest process is carried out very soon, we almost can't feel this process.
The 3rd step: system's Basic Input or Output System (BIOS) next, the Basic Input or Output System (BIOS) of display card will be searched, the start address of ROM (read-only memory) of depositing the display card Basic Input or Output System (BIOS) is usually at the C0000H place, system's Basic Input or Output System (BIOS) finds after the video card Basic Input or Output System (BIOS), call its setup code, finish the initialization of display card by the display card Basic Input or Output System (BIOS).Most of display cards can demonstrate the information of some display cards usually on display screen in this process; as: contents such as production firm, graphic chips type, the capacity of display; first picture of being seen when just we generally start shooting; but this picture almost flashes across; the Basic Input or Output System (BIOS) of the display card that also has has been used delay function, so that the user can see the information of demonstration clearly.Follow the Basic Input or Output System (BIOS) program that system's Basic Input or Output System (BIOS) can be searched other hardware, the setup code that will call the Basic Input or Output System (BIOS) inside of these hardware after finding equally comes these hardware of initialization.
The 4th step: searched after the Basic Input or Output System (BIOS) of all other hardware, system's Basic Input or Output System (BIOS) will show its startup picture, comprising contents such as the type that system's Basic Input or Output System (BIOS) is arranged, sequence number and version numbers.Simultaneously the motherboard message code can appear in its lower left corner, display bottom, comprises the recognition coding of control chip group model, motherboard of version date, the motherboard of system's Basic Input or Output System (BIOS) and vendor code etc.
The 5th step: then system's Basic Input or Output System (BIOS) will detect the type and the frequency of operation of CPU (central processing unit), and testing result is presented on the display, the type and the dominant frequency of the CPU (central processing unit) that our start that Here it is is seen.Next system's Basic Input or Output System (BIOS) begins all memory spans of Test Host, and the simultaneously tested capacity numerical value that goes out of display-memory, the just memory counter of generally always rapidly rolling in this display the first half on display.And this process we can in Basic Input or Output System (BIOS) is provided with, select few " fast detecting " consuming time or many " complete detection " modes consuming time.
From the above, in second step of the start-up course of computer, because the testing process of this start selftest was carried out before this display card initialization, the display that is to say computer is in the testing process of this start selftest, be to demonstrate any picture, and under general normal condition, this start selftest process is carried out very soon, we almost can't feel this process, so make user also can't carry out corresponding error exception if found that some mistakes can't be revealed on this display this moment, at this moment, this start selftest is to come the reporting errors situation by the sound horn of this computer.
But, these loudspeaker are represented various type of errors with the length and the number of times of its sound that sends, and according to (as: the AMI of different vendor, Award or Phoenix) Basic Input or Output System (BIOS) of manufacturing, respectively this type of error is not necessarily represented according to the length and the number of times of same sound, this brings considerable puzzlement in the use for the general user, especially, general for the user who is unfamiliar with computer, may not understand the length of all sound of each manufacturer and the type of error of number of times representative fully, even if general computer engineer is the handbook of the corresponding type of error of asonant length and number of times, also can't understand type of error, in addition, the manufacturer of computer is when development, must carry out debug at all parts of computer, and in the start selftest process of computer, this moment is if make a mistake, this type of error is to have reference value, but it also can't directly offer research staff's reference, and the most important thing is the length and the number of times of the sound that these loudspeaker send and be not easy memory and resolution, so, if can be with a kind of more convenient, direct misregistration type mode, make the user of computer can pass through the read error type, and know the type of present mistake, believe be popular find pleasure in see.
Summary of the invention
Because traditional computer utilizes the length and the number of times of the sound that its loudspeaker send to represent various type of errors, and be not easy to remember and differentiate, the inventor is through the permanent research and experiment of making great efforts, finally development and Design goes out a kind of method that writes down test procedure of the present invention, make the user of computer can pass through the read error type, and know the type of present mistake.
It is as follows to realize that the present invention writes down the technical scheme of method of test procedure:
A kind of method that writes down test procedure, it is characterized in that: this method is to be applied on the computer, at least include a direct memory access controller and a nonvolatile storer on the motherboard of this computer, this direct memory access (DMA) controller and nonvolatile storer are electrically connected mutually, this method comprises: between any two test procedures of the start selftest of this computer, be respectively equipped with a logging program; At this computer selftest of starting shooting, and behind every execution one test procedure, carry out this logging program; And by this direct memory memory controller, the selftest of will starting shooting is in regular turn finished the test code of test procedure, is sent in this nonvolatile storer and stores into a test record.
The method of described record test procedure, it is characterized in that: this start selftest is to be provided with one to understand software, make in the process of this start selftest and found mistake, and can't finish when starting shooting selftest, this start selftest will be carried out this deciphering software, reading the test record in this nonvolatile storer by this direct memory access (DMA) controller, and the test code in this test record is exported to the display of this computer.
The method of described record test procedure is characterized in that: the power supply at this computer is unlocked, and between any two test procedures of the selftest of starting shooting, this computer will be handled according to the following step:
Set a direct storage access port,input-output of this direct memory access (DMA) controller, as the passage that receives and transmit this test code;
Carry out this logging program, receive this test code to utilize this direct memory access (DMA) port,input-output;
Again this received test code is sent in this nonvolatile storer, and stores into a test record.
The method of described record test procedure, it is characterized in that: this direct memory access (DMA) controller is the two-way twin wire serial bar of the south bridge control chip on this motherboard, and this nonvolatile storer is the tandem storer on this motherboard, when making this two-way twin wire serial bar that this test code is sent to this tandem storer, this test code is that the agreement according to this two-way twin wire serial bar is stored in this tandem storer.
The method of described record test procedure, it is characterized in that: this direct memory access (DMA) controller is the system management bus-bar on this motherboard, and this nonvolatile storer is the tandem storer on this motherboard, make this system management bus-bar with this test code, when being sent to this tandem storer, this test code is that the agreement according to this system management bus-bar is stored in this tandem storer.
The invention has the advantages that:
This method is to be provided with a logging program between any two test procedures of the start selftest of an electronic installation, when this electronic installation begins to start shooting selftest, behind its every execution one test procedure, can carry out this logging program again, to pass through the set signal conveying element of this electronic installation, to start shooting the in regular turn test code of test procedure that selftest carries out, be sent in the set storage unit of this electronic installation and store into a test record, thereby make the user of computer can pass through the read error type, and know the type of present mistake.
For doing further understanding and understanding, for the embodiment conjunction with figs., be described in detail as follows now purpose of the present invention, shape, constructing apparatus feature and effect thereof:
Description of drawings
Fig. 1 is the basic framework synoptic diagram of computer of the present invention.
Embodiment
The present invention is a kind of method that writes down test procedure, see also shown in Figure 1, this method is that the circuit board 1 (as: motherboard) at an electronic installation (as: computer) is provided with signal conveying element a 10 (as: Inter-Integrated Circuit, be called for short 12C BUS), this signal conveying element 10 can receive the test code of the start selftest that this circuit board 1 transmits, and can transmit this test code, be provided with a storage unit 12 (as: non-volatility memorizer) on this circuit board in addition, this storage unit 12 also is connected with this signal conveying element 10, and at this electronic installation selftest (Power On Self Test that begins to start shooting, be called for short: in the time of POST), behind its every execution one test procedure, can carry out this logging program again, make this signal conveying element 10 can receive the test code of these all test processs of start selftest in regular turn, afterwards, according to its reception order these test codes are sent in this storage unit 12, and store into a test record.So, when this electronic installation makes a mistake in the process of this start selftest, and can't finish when starting shooting selftest, can separate read apparatus by one and understand test record in this storage unit 10, and demonstrate this test code by this display of separating read apparatus, make the test code that can be revealed by observation, understand the mistake that takes place in this start selftest process.
In the method, be to be provided with one to understand software in this start selftest, make in the process of this start selftest and found mistake, and can't finish when starting shooting selftest, this start selftest will be carried out this deciphering software, to read the test record in this storage unit 12 by this signal conveying element 10, and the test code in this test record is exported to the display 14 of this electronic installation, with the test code that is revealed by observation, understand the mistake that takes place in this start selftest process, so, can solve traditional computer and come the reporting errors situation with its sound horn, and sound length and number of times and be not easy the shortcoming remembering and differentiate.
In a preferred embodiment of the present invention, this electronic installation can be a computer, and the motherboard that this circuit board 1 is this computer, this motherboard is provided with a plurality of hardware that make this computer normal operation, this signal conveying element 10 can be direct storage access (the Direct Memory Access of one on this motherboard, be called for short: DMA) controller, and this storage unit 12 can be a storer of tool non-volatile (Non-Volatile) characteristic on this motherboard, the power supply of this electronic installation is unlocked, and between any two test procedures of the selftest that begins to start shooting, this electronic installation will be handled according to the following step:
At first, set a direct storage access port,input-output of this direct memory access (DMA) controller, as the passage that receives and transmit this test code:
Afterwards, carry out this logging program, receive this test code to utilize this direct memory access (DMA) port,input-output;
Again this received test code is sent in this storer, and stores into a test record.
In this embodiment, this signal conveying element 10 can be two-way twin wire serial bar (the Inter-Integrated Circuit of the south bridge control chip on this motherboard, be called for short 12C), or system management bus-bar (System Management Bus, be called for short: SMbus), and this storage unit 12 can be the tandem storer on this motherboard, make this two-way twin wire serial bar or system management bus-bar with this test code, when being sent to this tandem storer, this test code is that the agreement according to this two-way twin wire serial bar or system management bus-bar is stored in this tandem storer.
For the logging program that can more understand is how to be arranged on the wrong content that reaches this test code representative in this start selftest, modern especially exemplified by being the example explanation with Compaq (Compaq) computer, its test code is respectively corresponding test procedure in this computer, and is as follows:
060H ;Start?of?memory?test.
061H ;Enter?protected?mode.
062H ;Start?memory?sizing.
063H ;Get?CMOS?expected?memory?size
064H ;Compare?CMOS?to?detected
065H ;Start?test?of?extended?memory.
052H ;Start?VDU?option?ROM?search.
053H ;Vector?to?VDU?option?ROMs.
OCCH ;Autoconfigure?PCI?devices
Wherein " 060H~OCCH " is test code, and the text description on these test code right sides is wrong content, and the part process of the original start selftest of this computer is as follows:
Call...
mov al,OCCh
out 84h,al
mov al,52h
out 84h,al
mov al,53h
Out 84h,al
Wherein " Call, mov, out " .. etc. is the test instruction of start selftest, and " al; OCCh ", " 84h; al " .. etc. are the test grammer of start selftest, and " 84h " access port,input-output for being set, " OCCh, 52h and 53h... etc. are test code; so; in the present invention; be between above-mentioned any two test procedures, to add this logging program; and this logging program is " call writed_post ", makes the part process of the original start selftest of this computer, will change into as follows:
mov al,OCCh
out 84h,al
Call writed-post
mov al,52h
out 84h,al
Call Writed-post
mov al,53h
out 84h,al
Call Writed-post
And after starting each test code, these test codes (as: OCCh, 52h and 53h ... Deng) all be sent in this storage unit 12, and store into a test record, make and to separate read apparatus or to understand software by this, read the content of this test record, with the test code that is revealed by observation, understand in this start selftest process and make a mistake.By as can be known above-mentioned, the present invention can use on the computer existing element to reach, and need not to add new element or external hardware device, can reach this case, believes making manufacturer, research staff or the general user of computer, will bring greatest benefiting.
The above only is a specific embodiment of the best of the present invention, but structural attitude of the present invention is not limited thereto, and anyly is familiar with this skill person in field of the present invention, can think easily and variation or modification, all can be encompassed in the claim scope of this case.

Claims (5)

1. method that writes down test procedure, it is characterized in that: this method is to be applied on the computer, at least include a direct memory access controller and a nonvolatile storer on the motherboard of this computer, this direct memory access (DMA) controller and nonvolatile storer are electrically connected mutually, and this method comprises:
Between any two test procedures of the start selftest of this computer, be respectively equipped with a logging program;
At this computer selftest of starting shooting, and behind every execution one test procedure, carry out this logging program; And
By this direct memory memory controller, the selftest of will starting shooting is in regular turn finished the test code of test procedure, is sent in this nonvolatile storer and stores into a test record.
2. the method for record test procedure according to claim 1, it is characterized in that: this start selftest is to be provided with one to understand software, make in the process of this start selftest and found mistake, and can't finish when starting shooting selftest, this start selftest will be carried out this deciphering software, reading the test record in this nonvolatile storer by this direct memory access (DMA) controller, and the test code in this test record is exported to the display of this computer.
3. the method for record test procedure according to claim 1 is characterized in that: the power supply at this computer is unlocked, and between any two test procedures of the selftest of starting shooting, this computer will be handled according to the following step:
Set a direct storage access port,input-output of this direct memory access (DMA) controller, as the passage that receives and transmit this test code;
Carry out this logging program, receive this test code to utilize this direct memory access (DMA) port,input-output;
Again this received test code is sent in this nonvolatile storer, and stores into a test record.
4. the method for record test procedure according to claim 3, it is characterized in that: this direct memory access (DMA) controller is the two-way twin wire serial bar of the south bridge control chip on this motherboard, and this nonvolatile storer is the tandem storer on this motherboard, when making this two-way twin wire serial bar that this test code is sent to this tandem storer, this test code is that the agreement according to this two-way twin wire serial bar is stored in this tandem storer.
5. the method for record test procedure according to claim 3, it is characterized in that: this direct memory access (DMA) controller is the system management bus-bar on this motherboard, and this nonvolatile storer is the tandem storer on this motherboard, make this system management bus-bar with this test code, when being sent to this tandem storer, this test code is that the agreement according to this system management bus-bar is stored in this tandem storer.
CN 03155810 2003-08-22 2003-08-22 Method for recording testing program Expired - Fee Related CN1584827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03155810 CN1584827B (en) 2003-08-22 2003-08-22 Method for recording testing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03155810 CN1584827B (en) 2003-08-22 2003-08-22 Method for recording testing program

Publications (2)

Publication Number Publication Date
CN1584827A CN1584827A (en) 2005-02-23
CN1584827B true CN1584827B (en) 2010-04-28

Family

ID=34598205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03155810 Expired - Fee Related CN1584827B (en) 2003-08-22 2003-08-22 Method for recording testing program

Country Status (1)

Country Link
CN (1) CN1584827B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523326B (en) * 2011-12-12 2015-03-18 广东欧珀移动通信有限公司 Method for voice broadcasting initial quality survey
CN103793320B (en) * 2012-10-31 2017-02-08 晨星软件研发(深圳)有限公司 Multi-application matched integrating system and testing system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5600766A (en) * 1994-08-24 1997-02-04 International Business Machines Corporation Method and apparatus for storing and displaying a power-on graphical image
CN1427338A (en) * 2001-12-17 2003-07-02 英业达股份有限公司 System starting up self examination device and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5600766A (en) * 1994-08-24 1997-02-04 International Business Machines Corporation Method and apparatus for storing and displaying a power-on graphical image
CN1427338A (en) * 2001-12-17 2003-07-02 英业达股份有限公司 System starting up self examination device and method

Also Published As

Publication number Publication date
CN1584827A (en) 2005-02-23

Similar Documents

Publication Publication Date Title
CA1330596C (en) Memory cartridge and data processing apparatus
US5237690A (en) System for testing adaptor card upon power up and having disablement, enablement, and reconfiguration options
JP3030342B2 (en) card
JPH0863340A (en) Method and equipment for communication of configuration information of system in network
US20060236087A1 (en) Apparatus and method for testing computer system
US20220358270A1 (en) Chip verification system and verification method therefor
CN114003538A (en) Intelligent network card and identification method thereof
CN106951358A (en) A kind of quick display status information method and system during computer system power-on self-test based on UEFI standards
JP3202700B2 (en) Signal processing device
CN1584827B (en) Method for recording testing program
CN113760800A (en) Serial port path selection method, system, terminal and storage medium based on BMC
CN110347639B (en) System on chip and method of operation thereof
CN1357840A (en) Computer security system
JPS6161424B2 (en)
TWI228219B (en) Method for recording test procedure
JP4083474B2 (en) MEMORY DEVICE CONTROL METHOD, PROGRAM THEREOF, AND RECORDING MEDIUM
CN115827080B (en) Embedded equipment adaptation method and device based on serial port communication and computer equipment
US5797032A (en) Bus for connecting extension cards to a data processing system and test method
JP3331525B2 (en) IC card
JP3447835B2 (en) RAM chip identification method
KR20020096661A (en) computer system and booting control method thereof
KR20230086565A (en) Memory test system and method of thereof
KR19990070341A (en) Computer system for setting settings with software and control method thereof
SU1163328A1 (en) Device for checking microcomputer
JP2531112B2 (en) Information processing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100428

Termination date: 20110822