CN1294481C - Method for updating and recovering system by bootstrap program - Google Patents

Method for updating and recovering system by bootstrap program Download PDF

Info

Publication number
CN1294481C
CN1294481C CNB031453139A CN03145313A CN1294481C CN 1294481 C CN1294481 C CN 1294481C CN B031453139 A CNB031453139 A CN B031453139A CN 03145313 A CN03145313 A CN 03145313A CN 1294481 C CN1294481 C CN 1294481C
Authority
CN
China
Prior art keywords
boot
computer system
flag value
upgraded
memory cell
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
CNB031453139A
Other languages
Chinese (zh)
Other versions
CN1567184A (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 CNB031453139A priority Critical patent/CN1294481C/en
Publication of CN1567184A publication Critical patent/CN1567184A/en
Application granted granted Critical
Publication of CN1294481C publication Critical patent/CN1294481C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention relates to a system and a method for the update and recovery of bootstrap programs, which confirms the state of update programs by using the flag value when a computer system executes the update of a bootstrap program. Before the computer system is started and executes the BIOS, the state of the bootstrap program is determined through a flag value detection comparison mode, and the bootstrap program is automatically recovered to finish the start-up.

Description

Boot is upgraded recovery system and method thereof
Technical field
The present invention relates to a kind of the detection and upgrade the system and method that recovers, particularly a kind of computer system that is used for is carried out the system and method that boot is upgraded, recovered by being provided with, detecting flag value (flag value).
Background technology
Basic input/output (BIOS) is the important procedure that computer system starts operation, and whether the boot that BIOS needs to use in the process of implementation can satisfy the hsrdware requirements of computer system, whether perhaps can be carried out by complete, startup normally, also be to influence the most critical factor that computer system starts operation.
Because therefore the hardware day crescent benefit in the computer system usually needs more to change the boot of legacy version, and provides new boot can make new hardware bring into play its maximum effect; In addition; the phenomenon of interrupt run takes place in regular meeting during computer system because of some unartificial factors; and the boot damage that causes stored boot or upgrading; and then cause computer system can't normally start operation, therefore the mechanism that boot is upgraded or recovered need be set in computer system.
The update method of past for boot has many kinds, the simplest is to take traditional approach, exactly the ROM (read-only memory) (BIOS ROM) of whole storage boot is changed, replace with the ROM (read-only memory) that contains new boot, but such mode not only needs to spend extra acquisition cost, and also quite complicated on refresh routine, often bring inconvenience to the user; And on the restoration methods of boot, common then is to utilize to install a plurality of ROM (read-only memory) simultaneously in computer system, realizes recovering the purpose of boot then by the mode of circuit judges.
Yet aforementioned these existing modes, all must increase the original hardware that is used for storing new boot of buying of extra one-tenth, no matter these costs are to be paid or absorbed voluntarily during fabrication by manufacturer by the user, in fact getting off for a long time all can be a no small burden usually; And except the extra-pay cost,, cause when starting computer system also must spended time judging the work of detection sometimes because the damage user of boot can't be known state in the very first time, wasted the time.
Therefore, be necessary to design complete renewal recovery system and the method for a cover, can allow the user not need to spend under the prerequisite of extra cost and time, renewal that can automatically channeling conduct program recovers and keeps at any time the system and method for the normal startup operation of computer system, is engaged in one of solution that is needed most on the correlative computer system R﹠D direction just at present.
Summary of the invention
The present invention proposes a kind of boot and upgrades recovery system and method, utilizes the flag value that stores is done to detect relatively, confirms the state of boot.
According to a scheme of the present invention, provide a kind of boot to upgrade recovery system, this system comprises: a programmable memory cell comprises the boot that the brain system of can powering is started shooting; One loading unit according to a update signal or a restoring signal, loads this boot from an external source end, and uses the mode of a pair of programmable memory cell programming that this boot is written in this programmable memory cell; One dynamic access storage unit in order to store a flag value, can be removed this flag value according to this update signal, and carries out this flag value and set when receiving setting signal; One detects setup unit, upgrade to carry out boot in order to produce this update signal, can when computer system boot-strap, detect this flag value state in addition and produce this restoring signal when relatively more unusual and recover, and upgrade or recover to finish this setting signal of back generation in boot to carry out boot in detecting; Wherein, above-mentioned respectively this unit all carries out data transfer and signal communication by a processing unit when computer system is moved.
According to another aspect of the present invention, provide a kind of boot to upgrade restoration methods, can be in the loading renewal of computer system execution boot in service and the setting of flag state, this method comprises the following step: when the operation start instruction boot that receives the user is upgraded, by detecting setup unit original stored flag value is removed; According to a update signal or a restoring signal, load the boot that to upgrade by loading unit, and use mode that this boot is written in the programmable memory cell the programmable memory cell programming from an external source end; And judge to load and whether finish smoothly; If finish smoothly, then reset this flag value by detecting setup unit.
According to a scheme more of the present invention, provide a kind of boot to upgrade restoration methods, can be when computer system boot-strap the loading of computer system channeling conduct program with unusual flag state be recovered, this method comprises the following step: when computer system boot-strap starts BIOS, read a flag value by detecting setup unit; Judge relatively whether this flag value is identical with the fixed numbers that had before set; When this flag value is identical with this fixed numbers, represent that state is normal, then finish the step that boot is recovered; And when this flag value be one to represent abnormal state during with the different random number of this fixed numbers, then load the boot that to recover, and use the mode of a pair of programmable memory cell programming that this boot is written in this programmable memory cell from an external source end; And after finishing loading, carry out BIOS.
When computer system starts operation, can carry out BIOS smoothly and finish the startup operation if flag value is normally then represented computer system, if the unusual then expression of flag value needs the recovery of channeling conduct program, so that computer system can start operation smoothly; When computer system channeling conduct program updates, same removing, the setting of passing through the flag value that stores, the state that decides boot to upgrade.
By system and method for the present invention, just can be under the situation that does not need the user to get involved, the abnormality of active detecting and discovery boot is also carried out the action that boot is recovered, and realizes the purpose and the effect of saving user's time and avoiding the user to perplex; And the action that the renewal that can finish boot under the prerequisite that need not increase additional hardware in computer system recovers more can realize reducing another purpose and the effect that spends cost.
The feasible embodiment of relevant the present invention, conjunction with figs. is described as follows:
Description of drawings
Fig. 1 is the system architecture diagram that boot of the present invention is upgraded recovery system and method thereof;
Fig. 2 is the boot renewal process flow diagram that boot of the present invention is upgraded recovery system and method thereof; And
Fig. 3 is the boot recovery process flow diagram that boot of the present invention is upgraded recovery system and method thereof.
Embodiment
The present invention is that a kind of boot is upgraded recovery system and method thereof, it mainly is the state of confirming boot according to flag value stored in the computer system 10, decide boot whether to upgrade success, perhaps whether need the action of channeling conduct program recovery.
Fig. 1 is a system architecture diagram of the present invention, mainly comprises following plurality of units, is described as follows:
(1) detecting setup unit 30, is core cell of the present invention.Main function is divided into two parts:
(a) start the renewal boot, it produces update signal to loading unit 60 according to user's operational order, (comprising: source end A 81, source end B 82 one of from the source end 80 of computer system 10 outsides by bus 70 by loading unit 60 ... source end N 83) obtaining the boot that will upgrade passes to programmable memory cell 50 and upgrades, this detection setup unit 30 can produce setting signal and give dynamic access storage unit 40 after renewal is finished, and includes predefined flag fixed numbers in the setting signal.
Wherein, update signal also can send dynamic access storage unit 40 to simultaneously, mainly is that the flag value that requirement will originally store is removed, and upgrades the update mode that can reset boot when finishing with box lunch.
(b) start the recovery boot, when BIOS is carried out in computer system 10 starts, can detect the flag value state that is stored in the dynamic access storage unit 40 earlier automatically, when detect finding that comparative result occurs just producing restoring signal when unusual and gives loading unit 60, and equally obtain the boot that to upgrade one of from the source end 80 of computer system 10 outsides by bus 70 and pass to programmable memory cell 50 and recover by loading unit 60, after recovery is finished, also produce setting signal and carry out the flag value setting for dynamic access storage unit 40, recover to carry out the action of BIOS then.
(2) the dynamic access storage unit 40, in order to store flag value, can remove flag value according to update signal, and carry out flag value and set when receiving setting signal.In general, the dynamic access storage unit is random access memory (RAM), the present invention utilizes to divide the block that a pocket is used as storing flag value in RAM, and remaining other RAM block then can be used as when computer system 10 starting up BIOS when programmable memory cell 50 loading boot are started shooting and use.
Wherein, stored flag value can be predefined fixed numbers, and state is normal through renewal or after recovering for the expression boot; Perhaps flag value is being a random number when setting, expression boot abnormal state.
(3) programmable memory cell 50, generally claim programmable read-only memory (prom) again, mainly in order to store the boot of brain system 10 starts of can powering, boot normally exists with the form of compressed image file (compressed image file), when computer system 10 starts BIOS, again boot is sent to aforesaid dynamic access storage unit 40 after compressed image file can being decompressed.
So-called programmable memory cell 50, expression can utilize electronic signal to wipe or ultraviolet ray irradiation such as wipes at mode, the action that data are wherein done removing and write will be stored in, the purpose of upgrading or recovering boot can be realized carrying out by this mode.
(4) loading unit 60, in order to load the boot that will upgrade or recover by bus 70 and to use mode (as: electronic signal erase mode, the ultraviolet ray irradiation erase mode that programmable memory cell is programmed from the end 80 of originating according to update signal or restoring signal ...) boot that will upgrade or recover is written in the programmable memory cell 50.
Source end 80 is often referred to the External memory equipment (as: disc driver, CD-ROM drive, the displacement disc that have boot and be connected with computer system 10 ...); Network (as: INTERNET, the Intranet that also can refer to have boot and be connected with computer system 10 ...) or (as: the PXE System of remote boot system ...) etc.
In fact, the mutual operation between whole computer system 10 and above-mentioned each unit must be undertaken by processing unit 20, and all data transfer and signal communication all are responsible for by processing unit 20, but this is general existing knowledge, so this no longer giving unnecessary details more.
Fig. 2 is that boot of the present invention is upgraded process flow diagram, illustrates how computer system 10 carries out the control of flag value and the renewal of carrying out boot.
At first, when the operation start instruction boot that receives the user is upgraded, by detecting setup unit 30 original stored flag value is removed (step 100) earlier; Then the boot that just will upgrade from the end of source by loading unit 60 loads (step 110) by bus 70; Judge to load whether finish smoothly, boot whether complete (step 120); Deposit in to programmable memory cell 50 if finish (being that boot is complete) smoothly, then reset flag value (step 130) by detecting setup unit 30, the flag value that sets is a pre-set fixed numbers, finishes more new technological process then; If taking place in the renewal process, the interruption situation of non-artificial factor (as: has a power failure, works as machine ...), then the loading procedure of step 110 can't be finished, also not having the flag value of execution in step 130 sets, just directly finish more new technological process, this moment, flag value should be random number (this random number must be different with fixed numbers) arbitrarily.
Fig. 3 is that boot of the present invention is recovered process flow diagram, when computer system 10 starting up BIOS, can read flag value (step 200) by detecting setup unit 30; Relatively judge flag value whether correct and identical with the fixed numbers that had before set (step 210); If carrying out BIOS (step 240), identical then continuation finishes the process step that boot is recovered then, if expression boot inequality has unusually, just need the channeling conduct program recovery this moment, therefore just begin to load the boot (step 220) that to recover from source end 80; Judge whether equally to load and finish (step 230) smoothly; If finish smoothly, then enter step 240 and carry out the process step that follow-up BIOS finishes the boot recovery then, if can not finish smoothly, no required boot or the transmission channel between source end 80 and the computer system 10 have unusually in the end 80 of the present source of expression, therefore this method will be searched other source end 80, so that can finish the work that boot is recovered, when finding next source to hold 80, just get back to step 220 place once again, continue to carry out the related procedure step that loads boot.
Wherein, search the mode of other source end 80 and can carry out in the mode of sequential search (sequential search) according to the basic setting in the computer system 10 usually, this also is general prior art.
The above is preferred embodiment of the present invention only, is not to be used for limiting practical range of the present invention; All equivalences that the claim scope is done according to the present invention change and modify, and all should be covered by within the scope of the present invention.

Claims (10)

1, a kind of boot is upgraded recovery system, and this system comprises:
One programmable memory cell comprises the boot that the brain system of can powering is started shooting;
One loading unit according to a update signal or a restoring signal, loads this boot from an external source end, and uses the mode of a pair of programmable memory cell programming that this boot is written in this programmable memory cell;
One dynamic access storage unit in order to store a flag value, can be removed this flag value according to this update signal, and carries out this flag value and set when receiving setting signal;
One detects setup unit, upgrade to carry out boot in order to produce this update signal, can when computer system boot-strap, detect this flag value state in addition and produce this restoring signal when relatively more unusual and recover, and upgrade or recover to finish this setting signal of back generation in boot to carry out boot in detecting;
Wherein, above-mentioned respectively this unit all carries out data transfer and signal communication by a processing unit when computer system is moved.
2, boot as claimed in claim 1 is upgraded recovery system, it is characterized in that described boot is a compressed image file.
3, boot as claimed in claim 1 is upgraded recovery system, it is characterized in that described external source end is the network that computer system connects.
4, boot as claimed in claim 1 is upgraded recovery system, it is characterized in that described external source end is the remote boot system that computer system connects.
5, boot as claimed in claim 1 is upgraded recovery system, it is characterized in that described external source end is the External memory equipment that computer system connects.
6, boot as claimed in claim 1 is upgraded recovery system, it is characterized in that described mode to the programmable memory cell programming is electronic signal erase mode/ultraviolet ray irradiation erase mode.
7, a kind of boot is upgraded restoration methods, can be in the loading renewal of computer system execution boot in service and the setting of flag state, and this method comprises the following step:
When the operation start instruction boot that receives the user is upgraded, original stored flag value is removed by detecting setup unit;
According to a update signal or a restoring signal, load the boot that to upgrade by loading unit, and use mode that this boot is written in the programmable memory cell the programmable memory cell programming from an external source end; And
Judge to load whether finish smoothly; If finish smoothly, then reset this flag value by detecting setup unit.
8, boot as claimed in claim 7 is upgraded restoration methods, it is characterized in that loading the step of this boot that will upgrade from this external source end described, described external source end is computer system external network, outer remote guidance system or External memory equipment, and the mode of described programmable memory cell programming is the mode that electronic signal is wiped or the ultraviolet ray irradiation is wiped.
9, a kind of boot is upgraded restoration methods, can be when computer system boot-strap the loading of computer system channeling conduct program with unusual flag state be recovered, and this method comprises the following step:
When computer system boot-strap starts BIOS, read a flag value by detecting setup unit;
Judge relatively whether this flag value is identical with the fixed numbers that had before set;
When this flag value is identical with this fixed numbers, represent that state is normal, then finish the step that boot is recovered;
And when this flag value be one to represent abnormal state during with the different random number of this fixed numbers, then load the boot that to recover, and use the mode of a pair of programmable memory cell programming that this boot is written in this programmable memory cell from an external source end; And
After finishing loading, carry out BIOS.
10, boot as claimed in claim 9 is upgraded restoration methods, it is characterized in that described method also comprises when loading the step failure of this boot that will recover from this external source end, the step that continuation is searched other external source end in mode in proper order.
CNB031453139A 2003-07-03 2003-07-03 Method for updating and recovering system by bootstrap program Expired - Fee Related CN1294481C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031453139A CN1294481C (en) 2003-07-03 2003-07-03 Method for updating and recovering system by bootstrap program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031453139A CN1294481C (en) 2003-07-03 2003-07-03 Method for updating and recovering system by bootstrap program

Publications (2)

Publication Number Publication Date
CN1567184A CN1567184A (en) 2005-01-19
CN1294481C true CN1294481C (en) 2007-01-10

Family

ID=34471394

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031453139A Expired - Fee Related CN1294481C (en) 2003-07-03 2003-07-03 Method for updating and recovering system by bootstrap program

Country Status (1)

Country Link
CN (1) CN1294481C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100394392C (en) * 2005-12-09 2008-06-11 英业达股份有限公司 Computer programe reduction-mode automatic starting control method and system
CN102799499B (en) * 2012-06-15 2016-05-18 深圳乐投卡尔科技有限公司 Method and vehicle-mounted Android equipment that vehicle-mounted Android device systems recovers
CN103995712B (en) * 2014-04-16 2018-05-04 潍柴动力股份有限公司 A kind of bootloader devices automatically updated and update method
CN109697079A (en) * 2018-12-13 2019-04-30 杭州迪普科技股份有限公司 The update method and device of bootstrap loader

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1423199A (en) * 2001-12-04 2003-06-11 英业达股份有限公司 Method for updating basic output-input system
US20030120908A1 (en) * 2001-12-21 2003-06-26 Inventec Corporation Basic input/output system updating method
CN1427338A (en) * 2001-12-17 2003-07-02 英业达股份有限公司 System starting up self examination device and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1423199A (en) * 2001-12-04 2003-06-11 英业达股份有限公司 Method for updating basic output-input system
CN1427338A (en) * 2001-12-17 2003-07-02 英业达股份有限公司 System starting up self examination device and method
US20030120908A1 (en) * 2001-12-21 2003-06-26 Inventec Corporation Basic input/output system updating method

Also Published As

Publication number Publication date
CN1567184A (en) 2005-01-19

Similar Documents

Publication Publication Date Title
US8621452B2 (en) Device driver rollback
CN1026625C (en) Method for reconfiguration of computer, device and system
CN1200341C (en) Method for realizing flush type system firmware program online updating
EP1873638A1 (en) Portable apparatus supporting multiple operating systems and supporting method therefor
US7512777B2 (en) Method and system for maintaining system management BIOS
CN1648863A (en) Portable software application method
WO2000019317A1 (en) Protection of boot block code while allowing write accesses to the boot block
CN1902595A (en) Coordinated storage management operations in replication environment
CN1262480A (en) Method and device for mounting restorable software of computer system
CN1398371A (en) System and method for altering operating system start-up sequence prior to operating system loading
JP7002358B2 (en) Information processing system, information processing device, BIOS update method of information processing device, and BIOS update program of information processing device
US20090271602A1 (en) Method for Recovering Data Processing System Failures
CN111045712A (en) Single system upgrading method and system with backup function
CN1955925A (en) TV system software updating method with power-off protection
US20070050612A1 (en) Boot program update and restoration system and method thereof
CN1294481C (en) Method for updating and recovering system by bootstrap program
CN1885268A (en) Secure storage system and method for data
CN1214328C (en) Guide memory and its construction method and usage
CN102629209B (en) Method, single board and system for realizing plug-and-play of single board
CN1517865A (en) Method of loading upgrade single board start program
US8392901B2 (en) Replacing a ROM image in a computer's ROM
JP2005050079A (en) Server device, bios updating program, bootstrap program, and bios updating method
JP2008217202A (en) Disk array device and firmware update method
CN1261872C (en) Method for detecting computer operating system normal start
JP4165423B2 (en) System board with core I / O card

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: 20070110

Termination date: 20100703