CN101359304A - Starting up method and system - Google Patents

Starting up method and system Download PDF

Info

Publication number
CN101359304A
CN101359304A CNA2007101383720A CN200710138372A CN101359304A CN 101359304 A CN101359304 A CN 101359304A CN A2007101383720 A CNA2007101383720 A CN A2007101383720A CN 200710138372 A CN200710138372 A CN 200710138372A CN 101359304 A CN101359304 A CN 101359304A
Authority
CN
China
Prior art keywords
test
mentioned
stage
hardware
phase
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
CNA2007101383720A
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.)
Asustek Computer Inc
Original Assignee
Asustek Computer Inc
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 Asustek Computer Inc filed Critical Asustek Computer Inc
Priority to CNA2007101383720A priority Critical patent/CN101359304A/en
Publication of CN101359304A publication Critical patent/CN101359304A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention judges if the specified test phase is the subordinate test phase when the specified test time of the specified test phase exceeds the corresponding expiration time in the hardware test program of the computer system; if the specified test phase is the subordinate test phase, an error massage is prompted and other hard test programs are executed continuously. Conversely, if the specified test phase is not the subordinate test phase, the computer system is restarted. In this way, when error occurs in the hardware test program, the computer system can respond properly to avoid the situation that the hardware test program cannot be executed continuously because the starting program interrupts in a phase.

Description

Starting-up method and system
Technical field
The present invention relates to a kind of starting-up method and system, and be particularly related to a kind of starting-up method and system that checks the computer system power-on program correctness.
Background technology
Generally speaking, computer system is when start, at first can pass through Basic Input or Output System (BIOS) (BasicInputOutputSystem, hereinafter to be referred as BIOS) execution startup selftest (PowerOnSelfTest, POST), with each hardware unit in the initializing computer system, central processing unit (CenterProcessUnit for example, CPU), peripheral controller interface (Peripheral ControllerInterface, hereinafter to be referred as PCI), (Random Access Memory is RAM) with north and south bridge chip group (chipset) or the like for random access memory.Hardware device in computing machine is by after check and testing, and BIOS just can give operating system with the hardware information in the computing machine, allows operating system continue to finish the action of start.
In the process of above-mentioned selftest, BIOS sends the instruction of test in regular turn to each hardware unit, and the wait hardware unit is replied (acknowledge is hereinafter to be referred as the ACK) information of replying.For instance, when BIOS will test when being subjected to measurement unit, will send the instruction of test earlier to being subjected to measurement unit.Then, it is normal to be subjected to measurement unit can send the tested unit operations of an ACK information representation.Yet unusual when the hardware unit generation of computer system, unusual hardware unit can't send ACK information, cause BIOS to sink into the situation of infinite wait, and can't normal boot-strap.
In addition, check in the method for BIOS image file in tradition, generally be check cyclic redundancy check (CRC) code in the image file (Cyclic Redundancy Check, CRC) or verification and yard (checksum) whether detect the BIOS image file complete.Therefore, if when logicality mistake (for example infinite circulation or the like) appears in the program code of BIOS image file, the cyclic redundancy check (CRC) code in checking the BIOS image file or check verification and during sign indicating number, can't check out this mistake.But in start process, the program code of logicality mistake still can be performed, thereby causes the computer system can't normal boot-strap.
Summary of the invention
The invention provides a kind of starting-up method and system, make when hardware test program makes a mistake, computer system can in time be made suitable reaction, can't continue to carry out hardware test program to avoid boot program to be stuck in certain stage.
The present invention proposes a kind of starting-up method, is used to start computer system.At first, carry out hardware test program, wherein hardware test program comprises a plurality of test phases, and all corresponding expiration time of each test phase.Then, in these test phases, when the fc-specific test FC time in a fc-specific test FC stage surpasses corresponding expiration time, judge whether this fc-specific test FC stage is less important test phase.When this fc-specific test FC stage is less important test phase, the prompting error message, and other hardware test program is carried out in continuation; When this fc-specific test FC stage is not less important test phase, restart computer system.
In one embodiment of this invention, starting-up method also is included in when beginning to carry out each test phase, timer is reset (reset), with the test duration of counting test phase correspondence.On the other hand, starting-up method also comprises sets up the test form, the expiration time and the corresponding important stage field of each test phase correspondence of record in this test form.And,, judge whether the fc-specific test FC stage is less important test phase according to the important stage field of fc-specific test FC stage correspondence.
In one embodiment of this invention, the step of above-mentioned execution hardware test program comprises and carries out each test phase in regular turn.Then, according to the test form, judge whether the test duration of each test phase correspondence surpasses corresponding expiration time.When the test duration surpasses expiration time, produce look-at-me, to start Interrupt Service Routine; When the test duration does not surpass expiration time, then continue to carry out hardware test program.
In one embodiment of this invention, above-mentionedly judge that whether the fc-specific test FC stage is that the step of less important test phase comprises the execution Interrupt Service Routine.Then, in Interrupt Service Routine,, judge whether the fc-specific test FC stage is less important test phase according to the test form.When the fc-specific test FC stage is less important test phase, then by Interrupt Service Routine, the prompting error message, and leave Interrupt Service Routine, to continue to carry out other hardware test program; Otherwise, when the fc-specific test FC stage is not less important test phase,, restart computer system by Interrupt Service Routine.
In one embodiment of this invention, starting-up method also comprises provides a sign, whether starts success with the logger computer system.When the fc-specific test FC stage is less important test phase, sign then is set, and when this stage finishes, removes it, fail with logger computer system start-up.In addition, before the step of carrying out hardware test program, also comprise checkmark.When sign is set up, the image file that is used to carry out hardware test program will be required to upgrade; When sign is not set up, then carry out hardware test program.
From another viewpoint, the present invention proposes a kind of boot system, is used to start computer system.This boot system comprises hardware testing module and timer.And timer is coupled to the hardware testing module.The hardware testing module is used to carry out hardware test program, and wherein hardware test program comprises a plurality of test phases, all corresponding expiration time of each test phase.Timer is used to count the test duration of each test phase correspondence.In these test phases, when the fc-specific test FC time in fc-specific test FC stage surpassed corresponding expiration time, the hardware testing module judged whether the fc-specific test FC stage is less important test phase.When the fc-specific test FC stage is less important test phase, then points out error message, and continues to carry out other hardware test program; On the contrary, when the fc-specific test FC stage is not less important test phase, restart computer system.
In one embodiment of this invention, boot system also comprises test form, interruptable controller, processing unit and sign.The test form is used to write down the expiration time and the corresponding important stage field of each test phase correspondence.Interruptable controller is coupled to timer, is used to produce look-at-me and is sent to processing unit.Processing unit is used to start Interrupt Service Routine, with the important stage field of foundation fc-specific test FC stage correspondence, judges whether the fc-specific test FC stage is less important test phase.Sign then is used for the logger computer system and whether starts success.
In one embodiment of this invention, above-mentioned when interrupting service routine when judging that the fc-specific test FC stage is less important test phase, the prompting error message; When the interruption service routine judges that the fc-specific test FC stage is not less important test phase, sign then is set, and restarts computer system.
In one embodiment of this invention, above-mentioned hardware testing module also comprises checkmark.When sign was set up, the hardware testing module was used to renewal to carry out the image file of hardware test program.And the hardware testing module for example is a Basic Input or Output System (BIOS).
In one embodiment of this invention, above-mentioned timer comprises that also whether the test duration of judging each test phase surpass corresponding expiration time, judges the test duration when surpassing expiration time when timer, then drives interruptable controller, to produce look-at-me.
The present invention makes that by each test phase being provided with the expiration time of a correspondence working as each test phase can't be finished in the expiration time of correspondence, judge just whether this test phase is less important test phase, whether will continue to carry out hardware test program with decision.Therefore, when hardware test program made a mistake, computer system just can in time be made suitable reaction, can't continue to carry out hardware test program to avoid boot program to be stuck in certain stage.
For above-mentioned feature and advantage of the present invention can be become apparent, preferred embodiment cited below particularly, and cooperate appended graphicly, be described in detail below.
Description of drawings
Fig. 1 is the calcspar according to the boot system shown in the first embodiment of the invention.
Fig. 2 is the process flow diagram according to the starting-up method shown in the first embodiment of the invention.
Fig. 3 is the calcspar according to the boot system shown in the second embodiment of the invention.
Fig. 4 is the synoptic diagram according to the test form shown in the second embodiment of the invention.
Fig. 5 is the process flow diagram according to the starting-up method shown in the second embodiment of the invention.
Embodiment
First embodiment:
Fig. 1 is the calcspar according to the boot system shown in the first embodiment of the invention.Please refer to Fig. 1, boot system 100 comprises hardware testing module 110 and timer 120.And timer 120 is coupled to hardware testing module 110.Below promptly begin to introduce the function of boot system 100 each member.
Hardware testing module 110 is used for carrying out hardware test program, by carrying out a plurality of test phases in the hardware test program, so that hardware unit is carried out a succession of test action.Each above-mentioned test phase is all distinguished a corresponding expiration time, and expiration time for example is each test phase the longest required test duration.With present computer system, hardware testing module 110 for example is Basic Input or Output System (BIOS) (BasicInputOutputSystem is hereinafter to be referred as BIOS), above-mentioned hardware test program for example be start selftest (PowerOnSelfTest, POST).And behind the electric power starting of computer system, BIOS will start selftest, and after finishing the startup selftest, BIOS is written into operating system again.Yet, these those skilled in the art can look its demand and with the invention process in various application, so above-mentioned hypothesis can not be used to limit the present invention.
Timer 120 is the test durations that are used for counting each test phase correspondence.In hardware test program, whenever hardware testing module 110 when carrying out one of them test phase, timer 120 just begin to measure this test phase test duration of process.And hardware testing module 110 before each test phase, is incited somebody to action (reset) timer 120 of resetting earlier in carrying out hardware test program, to count the test duration of each test phase again.In addition, timer 120 also be used to judge test duration of process whether surpass the expiration time of this test phase correspondence.
In detail, in start process, hardware testing module 110 will be carried out each test phase in the hardware test program in regular turn.Before hardware testing module 110 will enter some fc-specific test FCs stage, will set this pairing expiration time of fc-specific test FC stage earlier to timer 120, and replacement timer 120.When hardware testing module 110 begins to carry out this fc-specific test FC during the stage, timer 120 also begins to count the fc-specific test FC time that this fc-specific test FC stage is spent simultaneously.Therefore, if timer 120 count down to fc-specific test FC time that this fc-specific test FC stage spent when having surpassed the expiration time that is provided with, just notify hardware testing module 110.
After hardware testing module 110 learns that the fc-specific test FC time in this fc-specific test FC stage has surpassed expiration time, hardware testing module 110 will judge whether this fc-specific test FC stage is less important test phase.With regard to present computer system, the hardware unit that above-mentioned less important test phase is tested then can be the hardware unit that USB (universal serial bus) (UniversalSerialBus is hereinafter to be referred as USB) or floppy disk (floppy) or the like do not influence the computer system normal running.On the other hand, at present in the test phase of calculator system, the hardware unit of testing in contrast to the test phase of non accented phase can be central processing unit (CenterProcessUnit, CPU), random access memory (RandomAccessMemory, RAM), north and south bridge chip group (chipset) and the main hardware unit that influences the computer system normal running of peripheral controller interface (PeripheralControllerInterface is hereinafter to be referred as PCI) bus or the like.
Therefore, if hardware testing module 110 judge when these fc-specific test FC stages are not less important test phases, then restart computer system, with the interrupt hardware test procedure.For instance, if the test phase that this fc-specific test FC stage is a pci bus, when pci bus initialization failure, the hardware unit that then utilizes pci bus to connect also can't be used, just thereby this fc-specific test FC stage be judged to be non-less important test phase.On the other hand,, then point out error message, and continue to carry out hardware test program if hardware testing module 110 judges that this fc-specific test FC stage is less important test phase.In other words, if the test phase that makes a mistake is less important test phase, down carry out hardware test program just can ignore this test phase.For instance, when the test phase of floppy disk makes a mistake, follow-up hardware test program can't be affected, therefore just point out an error message after, continue subsequent action.
From another viewpoint, can summarize a starting-up method according to above-mentioned boot system.Fig. 2 is the process flow diagram according to the starting-up method shown in the first embodiment of the invention.Please be simultaneously with reference to Fig. 1 and Fig. 2, at first, in step S201, hardware testing module 110 is carried out hardware test program.Wherein, hardware test program comprises a plurality of test phases, and the corresponding expiration time of each test phase.When carrying out hardware test program, hardware testing module 110 will be carried out each test phase in the hardware test program in regular turn.And before beginning to carry out each test phase, hardware testing module 110 makes timer 120 be counted the test duration of test phase again replacement timer 120.
Then, shown in step S203, when the fc-specific test FC time in the fc-specific test FC stage in the hardware test program surpasses corresponding expiration time, hardware testing module 110 will judge whether this fc-specific test FC stage is less important test phase.That is to say, when the test duration that timer 120 count down to the fc-specific test FC stage arrives corresponding expiration time, hardware testing module 110 does not execute this fc-specific test FC stage yet, then hardware testing module 110 can judge just whether this fc-specific test FC stage is less important test phase, continue to carry out follow-up hardware test program with decision, or start again.
In step S203, if hardware testing module 110 judges that these fc-specific test FC stages are less important test phases, execution in step S205 then, the 110 prompting error messages of hardware testing module, and continue to carry out hardware test program.For example, hardware testing module 110 utilizes text prompt that the fc-specific test FC stage of making a mistake is presented on the screen.On the other hand, if hardware testing module 110 judges that these fc-specific test FC stages are not less important test phases, execution in step S207 then, 110 of hardware testing modules restart computer system.In other words, when this fc-specific test FC stage is not less important test phase, continue hardware test program is finished if ignore this fc-specific test FC stage, computer system also can't normally start.
With present computer system is example, when the situation that the above-mentioned fc-specific test FC stage surpasses expiration time takes place start process, may be because the hardware unit tested of fc-specific test FC stage is unusual, also might be the program code mistake in logic in the BIOS image file, derive the situation of wireless circulation or the like.Therefore, after computer system restarted, BIOS can enter startup block (bootblock) and upgrade the BIOS image file, to solve the wrong in logic situation of program code that takes place in the BIOS image file.
In sum, present embodiment is in the computer system power-on process, in case test phase takes place unusual, computer system will in time be made suitable reaction, determine whether starting shooting again or continuing hardware test program, make computer system be unlikely to be parked on a certain test phase, work as machine and cause.
Because computer system is the accurate system of a division of labor at present, so the present invention will have more detailed step and member in practical application.In order to be illustrated more clearly in spirit of the present invention, illustrate with second embodiment again with next.
Second embodiment:
Fig. 3 is the calcspar according to the boot system shown in the second embodiment of the invention.Please refer to Fig. 3, boot system 300 comprises hardware testing module 310, chipset 320, processing unit 330, sign 340 and internal memory 350.Chipset 320 is coupled to hardware testing module 310 and processing unit 330, and sign 340 is coupled to hardware testing module 310, and internal memory 350 then is coupled to processing unit 330.
With regard to computer system architecture now, the hardware testing module 310 of present embodiment for example is BIOS, and chipset 320 for example is a north and south bridge chip group, and processing unit 330 for example be central processing unit (CenterProcessUnit, CPU).In practical application, timer 321 and interruptable controller 323 are configurable in chipset 320.And, a test form 311 is set in hardware testing module 310.When computer system starting, CPU will carry out unpressed program code in the BIOS image file, with the test action at the initial stage of carrying out.Then control the boot action of computer system, and begin to carry out the hard disk test program by BIOS.After BIOS finished internal memory 350 initialization, CPU was just with the program code that compresses in the BIOS image file, and decompress(ion) contracts to be written in the internal memory 350 and carries out.Yet, at this only for convenience of description, do not limit the mode of practical application of the present invention.
In the present embodiment, the hardware testing module 110 of the function of hardware testing module 310 and the foregoing description is same or similar, is used to carry out hardware test program.Different is to be provided with a test form 311 in the hardware testing module 310 of present embodiment, the expiration time of each test phase correspondence of record and corresponding important stage field in test form 311.Below the employed test form 311 of hypothesis present embodiment as shown in Figure 4.Fig. 4 is the synoptic diagram according to the test form 311 shown in the second embodiment of the invention.Please refer to Fig. 4, in test form 311, each test phase in the hardware test program all has its corresponding expiration time and important stage field.In the important stage field, then represent less important test phase, the non-less important test phase of " 1 " representative with " 0 ".In the present embodiment, hardware unit that less important test phase is tested and computer system normal running are irrelevant, can be USB or floppy disk or the like.
During practical application, test form 311 can be stored in BIOS ROM (read-only memory) (ReadOnlyMemory, ROM) or the arbitrary storer in the computer system.In addition, test form 311 can be to develop period at BIOS, by BIOS slip-stick artist hardware test program is divided into a plurality of test phases, the longest required test duration was recorded in the test form 311 when each test phase was carried out, and in the important stage field with each test phase correspondence, importance according to each test phase writes down it, does not limit usefulness " 0 " and represents its importance with " 1 ".
Next, when hardware testing module 310 is carried out hardware test program, at first, with replacement timer 321.The function of the timer 321 of present embodiment and the timer 120 of first embodiment is same or similar, so be not described in detail in this.In actual applications, timer 321 can couple an interruptable controller 323 and uses.That is to say that surpass fc-specific test FC stage of carrying out at present during pairing expiration time when the fc-specific test FC time that timer 321 is measured, timer 321 will drive interruptable controller 323 generation look-at-mes.And interruptable controller 323 is after producing look-at-me, just look-at-me is sent to processing unit 330, make and started Interrupt Service Routine by processing unit 330 (InterruptServiceRoutine ISR), judges whether the fc-specific test FC stage is less important test phase.
When processing unit 330 receives interrupting information, just can start Interrupt Service Routine and serve this interrupting information.At this moment, Interrupt Service Routine then according to fc-specific test FC stage pairing important stage field in test form 311, judges whether the fc-specific test FC stage is less important test phase.In detail, the important stage field of the fc-specific test FC stage correspondence of Interrupt Service Routine in hardware testing module 310 read test forms 311, when the fc-specific test FC stage is less important test phase, Interrupt Service Routine is just pointed out error message, and control is returned hardware testing module 310, to continue to carry out hardware test program.On the other hand, when writing down the less important test phase of fc-specific test FC stage right and wrong in the important stage field of fc-specific test FC stage correspondence, Interrupt Service Routine just is provided with sign 340, and restarts computer system.
In addition, in the present embodiment, also include sign 340 in the boot system 300, whether start success with the logger computer system.For example, sign 340 is represented start success and boot failure respectively with " 0 " and " 1 ", and under sign 340 situations about not being set up, its preset value is " 0 ", the default last computer system power-on success of expression.That is to say, when the Interrupt Service Routine that is started when processing unit 330 determines the less important test phase of fc-specific test FC stage right and wrong, indicate that then 340 will be set to " 1 ", represent boot failure.Otherwise the Interrupt Service Routine that is started when processing unit 330 determines the fc-specific test FC stage when being less important test phase, indicates that then 340 will can not be set up, and makes its value maintain preset value " 0 ", represents to start shooting successfully.Therefore, come checkmark 340 whether to be set up by hardware testing module 310, whether successful with the start of judging the computer system last time.
Below promptly utilize the test form 311 among above-mentioned Fig. 4, the operation of each element in the boot system 300 among Fig. 3 is described.At first, suppose that test phase 1 and 2 finished (just internal memory 350 and chipset 320 initialization being finished) all in expiration time.Then, hardware testing module 310 just begins to enter test phase 3 (just testing pci bus), with the pairing expiration time 300ms of test phase (millisecond, ms) be set to the timer 321 and the timer 321 of resetting, count the test duration that test phase 3 is spent to allow timer begin.Next, just begin to carry out test phase 3.When test phase 3 is carried out, if the test duration surpasses 300ms, timer 321 will drive interruptable controller 323 and send look-at-me to processing unit 330.Processing unit 330 will start Interrupt Service Routine, and according to test phase 3 corresponding important stage field in test form 311, determine test phase 3 and be non-less important test phase.In this time, sign 340 will be set up, and computer system just can restart.Restart back hardware testing module 310 in computer system and will read sign 340 and be set up, and enter the promoter region piece, upgrading the program code of its interior liabilities hardware testing module, and prevent that the start that is caused because of program code logic error from interrupting.
On the other hand, suppose that above-mentioned test phase 3 finished test in expiration time, then hardware testing module 310 just begins to enter test phase 4.If when carrying out test phase 4, its test duration surpasses 100ms, and processing unit 330 will start Interrupt Service Routine and judge whether test phase 4 is less important test phase.According to the test form 311 among Fig. 4 as can be known, test phase 4 will carry out the test of usb bus, and test phase 4 is less important test phase.Therefore, hardware testing module 310 is just pointed out error message, and continues to carry out next test phase 5, with test and initialization floppy disk.
In order more clearly to express above-mentioned notion, below the above-mentioned boot system 300 of promptly arranging in pairs or groups describe each steps of starting-up methods in detail.Fig. 5 is the process flow diagram according to the starting-up method shown in the second embodiment of the invention.Please be simultaneously with reference to Fig. 3, Fig. 4 and Fig. 5, at first, in step S501, when the user opens the power supply of computer system, computer system will start.
Then, shown in step S503, hardware testing module 310 meeting checkmarks 340, whether successful to judge last computer system power-on.For instance, sign 340 definition " 0 " are represented last computer system power-on success and failure respectively with " 1 ".Therefore, in step S503, if hardware testing module 310 checkmarks 340 are " 1 ", execution in step S505 then; If hardware testing module 310 checkmarks 340 are " 0 ", then execution in step S507.
In step S505, hardware testing module 310 is used for carrying out the program code of hardware test program with renewal, is example with the computer system, and step S505 promptly is the program code that directly upgrades BIOS.That is to say that if last computation machine system boot failure, sign 340 will be set to " 1 ", with when computer system restarts, directly enter the pattern of refresh routine code, with the boot failure that prevents to cause because of program code logic error.Program code upgrade finish after, execution in step S501 is with again with computer system starting.At this moment, after program code upgraded and finishes, the setting value of sign 340 also reverted to preset value " 0 ".
Otherwise, if in step S503, judge the success of last computation machine system boot, in step S507, hardware testing module 310 will begin to carry out the test phase 1~5 in the hardware test program in regular turn.And in step S509, hardware testing module 310 replacement timers 321 are to begin to count the fc-specific test FC time in the fc-specific test FC stage of this moment in the hardware test program.For example, hardware testing module 310 makes zero timer 321, and beginning is counted the test duration again.
Then, in step S511, timer 321 is in the process of carrying out the fc-specific test FC stage, the counting test duration, whether the fc-specific test FC time of judging the cost of fc-specific test FC stage surpasses corresponding expiration time, meaning be hardware testing module 310 whether within the expiration time of this fc-specific test FC stage correspondence, finish this fc-specific test FC stage.If hardware testing module 310 is finished on schedule fc-specific test FC during the stage, i.e. the fc-specific test FC time does not surpass corresponding expiration time, execution in step S513.
Then, in step S513, hardware testing module 310 judges whether hardware test program is finished, and in other words, judges exactly whether this fc-specific test FC stage is last test phase in the hardware test program.If the fc-specific test FC stage of this moment is last test phase, then in step S515, hardware testing module 310 will be written into operating system.In addition,, then continue to get back to step S507, continue to carry out next test phase if the test phase of this moment is not last test phase.
Please get back to step S511, judge the test duration when timer 321 and surpassed expiration time, then at step S517, timer 321 will drive interruptable controller 323 and produce look-at-me to processing unit 330, start Interrupt Service Routine to drive processing unit 330.Next, in step S519, processing unit 330 will begin to carry out Interrupt Service Routine, and in Interrupt Service Routine, according to the important stage field of fc-specific test FC stage correspondence in the test form 311, judge whether the fc-specific test FC stage is less important test phase.With present computer system, when processing unit 330 receives the look-at-me that interruptable controller 323 sent, will start Interrupt Service Routine and serve this look-at-me.In this time, processing unit 330 facilities are checked the important stage field of fc-specific test FC stage correspondence with Interrupt Service Routine, judge whether the fc-specific test FC stage is non-less important test phase.
If the less important test phase of fc-specific test FC stage right and wrong shown in step S521, indicates that 340 setting value is boot failure (for example being set to " 1 ") just Interrupt Service Routine can go to be provided with, step S501 is returned in start again afterwards.Otherwise if the fc-specific test FC stage is less important test phase, shown in step S523, Interrupt Service Routine is then pointed out error message.Then, processing unit 330 is got back to step S513 with the end interrupt service routine, judges by hardware testing module 310 whether this fc-specific test FC stage is last test phase.If judge this fc-specific test FC stage is not last test phase, and then hardware testing module 310 will be got back to step S507 continuation and be carried out next test phase.
In sum, starting-up method of the present invention and system have following advantage at least:
1. whether surpass corresponding expiration time by the test duration of judging each test phase, and when the test duration surpasses expiration time, can in time make suitable reaction, can't normal boot-strap to avoid hardware test program to be stuck in certain stage.
2. when the test phase that makes a mistake is less important test phase, behind the test phase that prompting makes a mistake, allow user or the slip-stick artist of R﹠D and production can learn the device that makes a mistake, reduce and look for the wrong time.
3. when the non-less important test phase of hardware test program makes a mistake, computer system will be started shooting again, allow computer system can upgrade the program code of hardware test program, with the boot failure that prevents that computer system from being caused because of program code logic error.
Though the present invention discloses as above with preferred embodiment; but it is not to be used to limit the present invention; any person of ordinary skill in the field; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is as the criterion when looking claims person of defining.

Claims (10)

1. a starting-up method is used to start a computer system, it is characterized in that, comprises the following steps:
Carry out a hardware test program, wherein above-mentioned hardware test program comprises a plurality of test phases, and the corresponding expiration time of each above-mentioned test phase; And
In above-mentioned test phase, when a fc-specific test FC time in a fc-specific test FC stage surpasses corresponding above-mentioned expiration time, judge whether the above-mentioned fc-specific test FC stage is a less important test phase, wherein, when the above-mentioned fc-specific test FC stage is above-mentioned less important test phase, point out an error message, and continue to carry out above-mentioned hardware test program.
2. starting-up method according to claim 1 is characterized in that, also comprises when the above-mentioned fc-specific test FC stage is not above-mentioned less important test phase, restarts aforementioned calculation machine system.
3. starting-up method according to claim 2 is characterized in that, also comprises:
One timer is provided; And
When beginning to carry out each above-mentioned test phase, the above-mentioned timer of resetting is to count a test duration of each above-mentioned test phase correspondence.
4. starting-up method according to claim 3 is characterized in that, also comprises:
Set up a test form, the above-mentioned expiration time of each above-mentioned test phase correspondence of record and a corresponding important stage field in the above-mentioned test form.
5. starting-up method according to claim 4 is characterized in that, judges wherein whether the above-mentioned fc-specific test FC stage is the step of above-mentioned less important test phase, comprising:
According to the above-mentioned important stage field of above-mentioned fc-specific test FC stage correspondence, judge whether the above-mentioned fc-specific test FC stage is above-mentioned less important test phase.
6. starting-up method according to claim 4 is characterized in that, wherein carries out the step of above-mentioned hardware test program, comprising:
Carry out each above-mentioned test phase in regular turn;
According to above-mentioned test form, judge whether the above-mentioned test duration of each above-mentioned test phase correspondence surpasses corresponding above-mentioned expiration time;
When the above-mentioned test duration surpasses above-mentioned expiration time, produce a look-at-me, to start an Interrupt Service Routine; And
When the above-mentioned test duration does not surpass above-mentioned expiration time, continue to carry out above-mentioned hardware test program.
7. starting-up method according to claim 6 is characterized in that, judges wherein whether the above-mentioned fc-specific test FC stage is the step of a less important test phase, comprising:
Carry out above-mentioned Interrupt Service Routine; And
In above-mentioned Interrupt Service Routine,, judge whether the above-mentioned fc-specific test FC stage is a less important test phase according to the above-mentioned important stage field in the above-mentioned test form;
When the above-mentioned fc-specific test FC stage is above-mentioned less important test phase, by above-mentioned Interrupt Service Routine, point out above-mentioned error message, leave above-mentioned Interrupt Service Routine, to continue to carry out above-mentioned hardware test program;
When the above-mentioned fc-specific test FC stage is not above-mentioned less important test phase,, restart aforementioned calculation machine system by above-mentioned Interrupt Service Routine.
8. starting-up method according to claim 1 is characterized in that, also comprises:
One sign is provided, wherein when the above-mentioned fc-specific test FC stage is not above-mentioned less important test phase, also comprises:
Above-mentioned sign is set, with record aforementioned calculation machine system start-up failure.
9. starting-up method according to claim 8 is characterized in that, wherein before the step of carrying out above-mentioned hardware test program, also comprises:
Check above-mentioned sign;
When above-mentioned sign is set up, renewal is used to carry out a program code of above-mentioned hardware test program; And
When above-mentioned sign is not set up, carry out above-mentioned hardware test program.
10. a boot system is used to start a computer system, it is characterized in that, comprising:
One hardware testing module is used to carry out a hardware test program, and wherein above-mentioned hardware test program comprises a plurality of test phases, the corresponding expiration time of each above-mentioned test phase; And
One timer is coupled to above-mentioned hardware testing module, is used to count a test duration of each above-mentioned test phase correspondence;
Wherein, in above-mentioned test phase, when a fc-specific test FC time in a fc-specific test FC stage surpasses corresponding above-mentioned expiration time, above-mentioned hardware testing module judges whether the above-mentioned fc-specific test FC stage is a less important test phase, when the above-mentioned fc-specific test FC stage is above-mentioned less important test phase, then points out an error message, and continue to carry out above-mentioned hardware test program, when the above-mentioned fc-specific test FC stage is not above-mentioned less important test phase, restart aforementioned calculation machine system.
CNA2007101383720A 2007-08-01 2007-08-01 Starting up method and system Pending CN101359304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101383720A CN101359304A (en) 2007-08-01 2007-08-01 Starting up method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101383720A CN101359304A (en) 2007-08-01 2007-08-01 Starting up method and system

Publications (1)

Publication Number Publication Date
CN101359304A true CN101359304A (en) 2009-02-04

Family

ID=40331760

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101383720A Pending CN101359304A (en) 2007-08-01 2007-08-01 Starting up method and system

Country Status (1)

Country Link
CN (1) CN101359304A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087625A (en) * 2009-12-04 2011-06-08 鸿富锦精密工业(深圳)有限公司 Boot test system and test method
CN104699569A (en) * 2015-03-24 2015-06-10 积成电子股份有限公司 MQX operating system mapping structure, MQX operating system, electric energy data acquire terminal and mapping updating method
CN107749286A (en) * 2017-11-16 2018-03-02 青岛海信电器股份有限公司 Display screen parameter read-in method and device
CN109189690A (en) * 2018-09-17 2019-01-11 郑州云海信息技术有限公司 A kind of stage test method and device
CN109828858A (en) * 2019-01-17 2019-05-31 广东小天才科技有限公司 Method and system for preventing system startup from being locked
CN113127277A (en) * 2021-03-26 2021-07-16 山东英信计算机技术有限公司 Equipment testing method and device, electronic equipment and readable storage medium
CN114385247A (en) * 2020-10-21 2022-04-22 环达电脑(上海)有限公司 Starting-up method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087625A (en) * 2009-12-04 2011-06-08 鸿富锦精密工业(深圳)有限公司 Boot test system and test method
CN104699569A (en) * 2015-03-24 2015-06-10 积成电子股份有限公司 MQX operating system mapping structure, MQX operating system, electric energy data acquire terminal and mapping updating method
CN104699569B (en) * 2015-03-24 2017-12-08 积成电子股份有限公司 A kind of MQX operation system images structure, MQX operating systems, power information acquisition terminal and image update method
CN107749286A (en) * 2017-11-16 2018-03-02 青岛海信电器股份有限公司 Display screen parameter read-in method and device
CN109189690A (en) * 2018-09-17 2019-01-11 郑州云海信息技术有限公司 A kind of stage test method and device
CN109828858A (en) * 2019-01-17 2019-05-31 广东小天才科技有限公司 Method and system for preventing system startup from being locked
CN114385247A (en) * 2020-10-21 2022-04-22 环达电脑(上海)有限公司 Starting-up method
CN113127277A (en) * 2021-03-26 2021-07-16 山东英信计算机技术有限公司 Equipment testing method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN101359304A (en) Starting up method and system
CN102053875B (en) Method for recovering basic input-output system (BIOS) of computer system and computer system
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
CN102541690B (en) Intelligent card and method for recovering data
CN103823769A (en) Computer system and data recovery method
CN110058973B (en) Test system and test method for data storage device
CN103150188A (en) Quick initialization method for x86 compatible display card of non-x86 instruction set computer
CN106990985A (en) Apparatus and method based on BMC renewals and standby system UEFI firmwares
CN102880527A (en) Data recovery method of baseboard management controller
TWI534707B (en) Computer system, shutdown and boot method thereof
CN114138527A (en) Method, device and medium for improving performance of server
CN101206599B (en) Method for diagnosis and insulation of computer mainboard equipment
TWI515557B (en) Computer system and control method
CN111708662A (en) Debugging method and device
CN112035171A (en) Factory setting restoration method and system based on UEFI firmware
CN109117299A (en) The error detecting device and its debugging method of server
CN110083393B (en) Flash memory and implantable medical device
CN113778814A (en) Computer hardware fault alarm system and method
JP6217086B2 (en) Information processing apparatus, error detection function diagnosis method, and computer program
JP2005352591A (en) Multiprocessor system, debugging method, and program
CN1287252C (en) Re-starting card and method for determining test moment of re-starting mechanism
CN102023916A (en) Computer system detection method
CN101488089A (en) Computer system and its starting method
JP2017102887A (en) Information processing device, start method, and start program
CN107450894A (en) Notify the method and server system of start-up phase

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090204