CN1331050C - Method for starting basic input and output system - Google Patents

Method for starting basic input and output system Download PDF

Info

Publication number
CN1331050C
CN1331050C CNB2004100955381A CN200410095538A CN1331050C CN 1331050 C CN1331050 C CN 1331050C CN B2004100955381 A CNB2004100955381 A CN B2004100955381A CN 200410095538 A CN200410095538 A CN 200410095538A CN 1331050 C CN1331050 C CN 1331050C
Authority
CN
China
Prior art keywords
boot
expansion
program
starts
main bootstrap
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2004100955381A
Other languages
Chinese (zh)
Other versions
CN1783001A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100955381A priority Critical patent/CN1331050C/en
Publication of CN1783001A publication Critical patent/CN1783001A/en
Application granted granted Critical
Publication of CN1331050C publication Critical patent/CN1331050C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a method for staring a basic input and output system. A system has two BIOS programs, one is a main guiding program, and the other is an expansion guiding program. The expansion guiding program can be updated in an on-line way, and thereby, the update of the BIOS programs of the system is completed conveniently. The main guiding program can not be updated optionally, and can not be damaged. Because of the existence of the main guiding program, the system can run normally under the guide of the main guiding program even if the update of the BIOS programs is failed. The method avoids the risk brought by the update of the BIOS programs, and simultaneously, the maintenance cost and the update cost of the BIOS programs are reduced.

Description

A kind of method of starting basic input and output system
Technical field
The present invention relates to Basic Input or Output System (BIOS) (BIOS) technology, refer to a kind of method of starting basic input and output system especially.
Background technology
As everyone knows, Basic Input or Output System (BIOS) (BIOS) is a program, and the major function of bios program is that hardware is managed.Bios program is first program of start operation, it generally is solidificated in the chip that is called bootstrap memory (BOOTROM), and this chip mainly is ultraviolet erasing EPROM (EPROM) or electrically erasable programmable ROM (E2PROM).Bios program is being born important missions such as system boot self check, initiating hardware.The startup of system application guides by bios program, claims that traditionally bios program is a boot.
Bios program is a software eventually, and it certainly exists BUG maybe needs to increase newly or delete some function, so just need upgrade existing bios program.Renewal can be adopted bios program chip or the two kinds of methods of online download changed.Wherein online download is meant long-rangely to be upgraded the erasable program of removing the memory block, download finish after, can adopt the bios program guidance system after the renewal to start by long-range warm reset.
Because bios program is the most basic assurance of system start-up, after the update BIOS program, whether BIOS can normally start, and can directly have influence on system normally move.
At present, the guiding work of system is finished by a bios program, and Fig. 1 is that the prior art bios program starts process flow diagram, supposes that here this boot can the normal boot system.The startup flow process of Fig. 1 comprises the steps:
Step 101: system power on hard reboot or system reset soft start.
Step 102: the operation boot, finish startup self-detection, initiating hardware etc.
Step 103 is to step 104: application program is moved in the Installed System Memory, and application program brings into operation.
From prior art bios program startup method as can be seen, because the guiding work of system is finished by a boot, when system needs update BIOS program, if this boot is because the online updating failure, can not normally start after the system reset so, cause systemic breakdown.At this moment, has only staff's ability restarting systems after the BOOTROM chip is changed at the scene again.
As seen, this bios program startup method has the risk that starts failure when bios program upgrades, and in case start failure, could recover operate as normal after just needing the staff to arrive on-the-spot replacing chip, increase staff's workload like this, also increase maintenance cost.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of method of starting basic input and output system.This method can guarantee even upgrade failure, can guarantee that still system can successfully start safely after bios program upgrades.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
The method that a kind of basic input-output system BIOS starts is characterized in that: in system main bootstrap program and two bios programs of expansion boot are set, start flow process and comprise the steps:
A. after the system reset, main bootstrap program carries out the minimum system initialization to system, judges that then whether the expansion boot exists, and then enters step b if exist; Otherwise enter step c;
B. judge whether main bootstrap program starts the expansion boot successful, if success is then expanded boot system hardware is carried out initialization and guiding application program; Otherwise, execution in step c;
C. main bootstrap program carries out initialization and guiding application program to system hardware.
The method whether described judgement expansion of step a boot exists comprises:
A1. judge whether the extension storage district exists and formatd banner word,, enter step a2 if exist; Otherwise the district formats to extension storage, and judges that the expansion boot does not exist;
A2. judge whether the extension storage district exists file header,, judge that then the expansion boot exists if exist; If file header does not exist, judge that then the expansion boot does not exist.
Among the step b, described main bootstrap program starts the expansion boot and takes a step forward the expansion boot is carried out verification, if by verification, main bootstrap program starts expands execution in step b after the boot; Otherwise, execution in step c.
Among the step b, before the described main bootstrap program startup expansion boot expansion boot is carried out verification, if by verification, execution in step b after the main bootstrap program startup expansion boot; Otherwise, execution in step c.
It is that the banner word and the file header information of expansion boot are carried out verification that described main bootstrap program carries out verification to the expansion boot.
When starting the expansion boot, further writes down described main bootstrap program the number of starts:
When the expansion boot starts failure, judge further whether the number of starts surpasses pre-determined number, if surpass execution in step c; Otherwise, re-execute step b.
Described step b further comprises: the expansion boot is moved Installed System Memory with application program, and the number of starts that resets when application program brings into operation and note;
Described step c further comprises: main bootstrap program is moved Installed System Memory with application program, and the number of starts that resets when application program brings into operation and note;
If there is not application program in system, system will rest under the expansion boot, and the number of starts that resets when the setting residence time arrives.
The described minimum system initialization of step a1 is that main bootstrap program is only to the CPU initialization.Described main bootstrap program is stored in and can not wipes in the non-volatility memorizer by electricity; The expansion boot is stored in erasable removing in the non-volatility memorizer, adopts the method for online download to upgrade described expansion boot.
As seen from the above technical solutions, this bios program startup method of the present invention, be by main bootstrap program and expansion boot two boot are set in system, and take on the method for guidance system by main bootstrap program and two bios programs of expansion boot.This method is meant expanding the renewal of boot the renewal of system bios program, and main bootstrap program can not be by arbitrarily change of online updating, so no matter whether the bios program renewal is successful, the present invention can both the normal boot system, reduced because system bios upgrades the risk of bringing, be a kind of safe and reliable bios program startup method, guaranteed the correct guiding of system.Reduce the bios program maintenance simultaneously and upgraded cost.
Description of drawings
Fig. 1 is that the prior art bios program starts process flow diagram;
Fig. 2 is that bios program of the present invention starts process flow diagram.
Embodiment
Core concept of the present invention is: system adopts main bootstrap program and the common guidance system of expansion boot, and main bootstrap program can not online updating, and the expansion boot can be passed through online updating.Under the normal condition, start the expansion boot and come guidance system, after the failure of system update bios program, start main bootstrap program and come guidance system.
Bios program startup method of the present invention is provided with two bios program storage spaces in system, one of them storage space is can not to wipe and nonvolatile chip by electricity as EPROM is this, is referred to as the main storage area, at main storage area storage main bootstrap program.Another storage space is as E2PROM, nonvolatile memory (NVRAM), short-access storage electric erasable non-volatile memory chips such as (FLASHRAM), is referred to as the extension storage district, storage expansion boot in the extension storage district.
The virgin state in extension storage district can be to store the bios program the same with main bootstrap program, also can just keep an extension storage space, again the extension storage district is carried out online download when needing.
In the time need upgrading,,, can guarantee that like this main bootstrap program is not destroyed so main bootstrap program can not online updating because the main storage area storer is not supported electric erasable operation to the bios program of system.And the expansion boot can be carried out online updating easily, as the remote download business that can utilize application program the expansion boot is upgraded.
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
Fig. 2 is that bios program of the present invention starts process flow diagram.Here suppose: stored the correctly main bootstrap program of guidance system in the EPROM chip of this system; The expansion boot is stored in certain E2PROM chip and has just upgraded bios program by remote download.At this moment, restarting systems, concrete implementation step is as follows:
Step 201: system power on hard reboot or system reset soft start.
Step 202: system's operation main bootstrap program, main bootstrap program are finished some minimum system initialization that can allow the expansion boot move, as the simple initialization of CPU.
Step 203: main bootstrap program is read the extension storage district, judges that whether the expansion boot exists, and specifically comprises the steps:
A. main bootstrap program is read the extension storage district, and whether the judgement symbol word exists.If banner word exists, the formatted mistake in expression extension storage district enters B; If banner word does not exist, then expansion guiding memory block to be formatd, banner word had just write the extension storage district after format was finished, and entered step 209;
B. main bootstrap program is read the extension storage district, judges whether file header information exists.If file header information exists, expression extension storage district was loaded, and entered step 204; Otherwise enter step 209.
Step 204: main bootstrap program carries out verification to the expansion boot, can use verification and or the mode of Cyclic Redundancy Check etc. banner word, the first-class extender information of file are carried out verification, if by verification then enter step 205; Otherwise enter step 209.
Step 205~step 206: main bootstrap program startup expansion boot, and note the number of starts, judge whether the expansion boot starts successful, if success then enters step 208; Otherwise enter step 207.
Step 207: judge that whether the expansion boot number of starts transfinites, if do not transfinite, returns step 205; Otherwise enter step 209.
Why write down the expansion boot number of starts in this step, purpose is: if cause and can't start through still having problems after the verification in the expansion boot, main bootstrap program thinks promptly that after its number of starts is surpassed setting value the expansion boot has problems, withdraw from startup to the expansion boot, and coming guiding application program by main bootstrap program, the system that guaranteed can be by normal boot.
Step 208: operation expansion boot,, carry out entering step 210 after the initialization to hardware by the expansion boot as communication port, network interface, business chip, fpga chip etc.
Step 209: the operation main bootstrap program, to hardware, carry out initialization as communication port, network interface, business chip, fpga chip etc. by main bootstrap program.
Step 210 is to step 211: boot is moved application program in the Installed System Memory, when application program begins other service operation, with the expansion boot number of starts zero clearing of noting.
If do not cause expanding boot or main bootstrap program guiding failure owing to application program itself does not exist, system will rest under expansion boot or the main bootstrap program always, when the residence time to the stipulated time, by expanding boot or main bootstrap program with number of starts zero clearing, the program normal termination.
In the above step, main bootstrap program only carries out just entering step 203 startup expansion boot after the simple hardware initialization in the step 202, doing like this is for more guiding work is finished by the expansion boot after upgrading, thereby has farthest guaranteed to bring into play the effect of new bios program.
Step 203 is to the processing of step 207, by inquiry and verification to banner word and file header, when the expansion boot does not exist, perhaps expanding boot upgrades when getting nowhere, system all can change over to by main bootstrap program and come guidance system, thereby guaranteed the normal operation of system effectively, system just can not paralyse because bios program upgrades failure yet.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (10)

1. the method that basic input-output system BIOS starts is characterized in that: in system main bootstrap program and two bios programs of expansion boot are set, start flow process and comprise the steps:
A. after the system reset, main bootstrap program carries out the minimum system initialization to system, judges that then whether the expansion boot exists, and then enters step b if exist; Otherwise enter step c;
B. judge whether main bootstrap program starts the expansion boot successful, if success is then expanded boot system hardware is carried out initialization and guiding application program; Otherwise, execution in step c;
C. main bootstrap program carries out initialization and guiding application program to system hardware.
2. method according to claim 1 is characterized in that, the method whether described judgement expansion of step a boot exists comprises:
A1. judge whether the extension storage district exists and formatd banner word,, enter step a2 if exist; Otherwise the district formats to extension storage, and judges that the expansion boot does not exist;
A2. judge whether the extension storage district exists file header,, judge that then the expansion boot exists if exist; If file header does not exist, judge that then the expansion boot does not exist.
3. method according to claim 1 is characterized in that, among the step b, described main bootstrap program starts the expansion boot and takes a step forward the expansion boot is carried out verification, if by verification, main bootstrap program starts expands execution in step b after the boot; Otherwise, execution in step c.
4. method according to claim 2 is characterized in that, among the step b, before the described main bootstrap program startup expansion boot expansion boot is carried out verification, if by verification, and execution in step b after the main bootstrap program startup expansion boot; Otherwise, execution in step c.
5. method according to claim 4 is characterized in that, it is that the banner word and the file header information of expansion boot are carried out verification that described main bootstrap program carries out verification to the expansion boot.
6. method according to claim 1 is characterized in that, further writes down the number of starts when described main bootstrap program starts the expansion boot:
When the expansion boot starts failure, judge further whether the number of starts surpasses pre-determined number, if surpass execution in step c; Otherwise, re-execute step b.
7. method according to claim 6 is characterized in that,
Described step b further comprises: the expansion boot is moved Installed System Memory with application program, and the number of starts that resets when application program brings into operation and note;
Described step c further comprises: main bootstrap program is moved Installed System Memory with application program, and the number of starts that resets when application program brings into operation and note;
8. method according to claim 7 is characterized in that, if there is not application program in system, system will rest under the expansion boot, and the number of starts that resets when the setting residence time arrives.
9. method according to claim 1 is characterized in that, the described minimum system initialization of step a1 is that main bootstrap program is only to the CPU initialization.
10. method according to claim 1 is characterized in that, described main bootstrap program is stored in and can not wipes in the non-volatility memorizer by electricity; The expansion boot is stored in erasable removing in the non-volatility memorizer, adopts the method for online download to upgrade described expansion boot.
CNB2004100955381A 2004-11-29 2004-11-29 Method for starting basic input and output system Active CN1331050C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100955381A CN1331050C (en) 2004-11-29 2004-11-29 Method for starting basic input and output system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100955381A CN1331050C (en) 2004-11-29 2004-11-29 Method for starting basic input and output system

Publications (2)

Publication Number Publication Date
CN1783001A CN1783001A (en) 2006-06-07
CN1331050C true CN1331050C (en) 2007-08-08

Family

ID=36773235

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100955381A Active CN1331050C (en) 2004-11-29 2004-11-29 Method for starting basic input and output system

Country Status (1)

Country Link
CN (1) CN1331050C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667133B (en) * 2009-09-30 2012-09-05 威盛电子股份有限公司 Method for updating firmware and chip updating firmware by using same
CN102033767B (en) * 2010-12-08 2015-08-12 中兴通讯股份有限公司 A kind of method of veneer and veneer online upgrading
CN102830986A (en) * 2011-06-17 2012-12-19 中兴通讯股份有限公司 Method and device for turning on system in double-BOOT program condition
CN102662749B (en) * 2012-03-23 2018-02-13 天津中兴智联科技有限公司 A kind of implementation method and device of double Boot switchings
CN102662695B (en) * 2012-03-26 2016-03-30 华为终端有限公司 A kind of method that system starts and device
CN108427885B (en) * 2017-02-13 2022-11-25 中兴通讯股份有限公司 Basic input output system updating method and device
TWI743480B (en) * 2019-05-17 2021-10-21 英商鼎通盛股份有限公司 Computer system and a booting method for the same
CN112379932B (en) * 2020-11-23 2023-05-23 歌尔科技有限公司 Boot method and device of electronic equipment and electronic equipment
CN113885950B (en) * 2021-12-06 2022-03-01 中国电子科技集团公司第十五研究所 Quick starting method and device of control panel, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1017838B (en) * 1989-08-25 1992-08-12 国际商业机器公司 Initial bios load for personal computer system
CN1254129A (en) * 1998-11-12 2000-05-24 英业达集团(西安)电子技术有限公司 Device for safely updating read-only memory and its method
CN1423199A (en) * 2001-12-04 2003-06-11 英业达股份有限公司 Method for updating basic output-input system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1017838B (en) * 1989-08-25 1992-08-12 国际商业机器公司 Initial bios load for personal computer system
CN1254129A (en) * 1998-11-12 2000-05-24 英业达集团(西安)电子技术有限公司 Device for safely updating read-only memory and its method
CN1423199A (en) * 2001-12-04 2003-06-11 英业达股份有限公司 Method for updating basic output-input system

Also Published As

Publication number Publication date
CN1783001A (en) 2006-06-07

Similar Documents

Publication Publication Date Title
TWI384367B (en) System of updating firmware and method thereof
CN104102518B (en) double-CPU system and program upgrading method thereof
CN103365696B (en) BIOS image file acquisition methods and device
US9858067B2 (en) Electronic system with update control mechanism and method of operation thereof
CN109240720B (en) Firmware upgrading method of android system and storage device
CN1331050C (en) Method for starting basic input and output system
CN105511976A (en) Embedded system application program self-recovery operation method and device
WO2016078060A1 (en) Multi-system terminal system updating method, updating device and terminal
CN113064604B (en) Firmware upgrading method and device
US20170242685A1 (en) Updating of firmware
CN103365676B (en) The method for upgrading software of communication equipment and device
CN111142911A (en) Embedded system with abnormal recovery function and upgrading method thereof
CN103092659A (en) Digital signal processor (DSP) software upgrading system and upgrading method separated from support environment of emulator
CN102081539A (en) Reliable software upgrade method for dual-mode terminal
CN101697132A (en) Method, device and network equipment for quickly restarting operating system
CN112433769A (en) BMC starting method and device, computer equipment and storage medium
CN111090537B (en) Cluster starting method and device, electronic equipment and readable storage medium
CN116991328A (en) Volume formatting control method, device, system, equipment and medium of disk array
CN110928727A (en) Method for rapidly restoring factory settings of operating system
JP2005284902A (en) Terminal device, control method and control program thereof, host device, control method and control program thereof, and method, system, and program for remote updating
CN114996717A (en) Upgrade program design method for preventing error erasure
CN113377425B (en) BMC firmware generation method and device, BMC starting method and device and storage medium
CN102184115B (en) Method for updating system software and terminal device
CN104636574A (en) Terminal device upgrade method and terminal device
CN111190627A (en) System upgrading method and 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