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

Method for starting basic input and output system Download PDF

Info

Publication number
CN1783001A
CN1783001A CN 200410095538 CN200410095538A CN1783001A CN 1783001 A CN1783001 A CN 1783001A CN 200410095538 CN200410095538 CN 200410095538 CN 200410095538 A CN200410095538 A CN 200410095538A CN 1783001 A CN1783001 A CN 1783001A
Authority
CN
China
Prior art keywords
boot
expansion
starts
main bootstrap
expansion boot
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.)
Granted
Application number
CN 200410095538
Other languages
Chinese (zh)
Other versions
CN1331050C (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

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention discloses a kind of BIOS starting method. The system has two BIOS programs, including one main bootstrap and one expanding bootstrap. The expanding bootstrap may be on-line updated so as to complete the updating of the system BIOS program; while the main bootstrap may be not updated arbitrarily to avoid destruction. Owing to the main bootstrap, the system can run normally under the booting of the main bootstrap even in case of failed BIOS program updating. The method avoids the risk caused by BIOS program updating and reduces greatly the BIOS program maintaining and updating cost.

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. main bootstrap program starts the expansion boot, and the expansion boot is carried out initialization and guiding application program to system hardware;
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.
Among the step b, described main bootstrap program judges that further whether the expansion boot starts success, if start successfully, then expands boot system hardware is carried out initialization and guiding application program after starting the expansion boot; Otherwise, execution in step c.
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 (11)

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. main bootstrap program starts the expansion boot, and the expansion boot is carried out initialization and guiding application program to system hardware;
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. according to claim 1,2 or 3 described methods, it is characterized in that, among the step b, described main bootstrap program judges further whether the expansion boot starts success after starting the expansion boot, if start successfully, then expand boot system hardware is carried out initialization and guiding application program; Otherwise, execution in step c.
7. method according to claim 6 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.
8. method according to claim 7 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;
9. method according to claim 8 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.
10. 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.
11. 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 true CN1783001A (en) 2006-06-07
CN1331050C 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033767A (en) * 2010-12-08 2011-04-27 中兴通讯股份有限公司 Single plate and method for upgrading same on line
CN101667133B (en) * 2009-09-30 2012-09-05 威盛电子股份有限公司 Method for updating firmware and chip updating firmware by using same
CN102662695A (en) * 2012-03-26 2012-09-12 华为终端有限公司 Method and device for starting system
CN102662749A (en) * 2012-03-23 2012-09-12 中兴通讯股份有限公司 Method and device for realizing switching between dual Boots
CN102830986A (en) * 2011-06-17 2012-12-19 中兴通讯股份有限公司 Method and device for turning on system in double-BOOT program condition
CN108427885A (en) * 2017-02-13 2018-08-21 中兴通讯股份有限公司 Updating BIOS method and apparatus
CN112379932A (en) * 2020-11-23 2021-02-19 歌尔科技有限公司 Boot method and Boot device of electronic equipment and electronic equipment
TWI743480B (en) * 2019-05-17 2021-10-21 英商鼎通盛股份有限公司 Computer system and a booting method for the same
CN113885950A (en) * 2021-12-06 2022-01-04 中国电子科技集团公司第十五研究所 Quick starting method and device of control panel, terminal equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5210875A (en) * 1989-08-25 1993-05-11 International Business Machines Corporation Initial bios load for a 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

Cited By (11)

* 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
CN102033767A (en) * 2010-12-08 2011-04-27 中兴通讯股份有限公司 Single plate and method for upgrading same on line
CN102830986A (en) * 2011-06-17 2012-12-19 中兴通讯股份有限公司 Method and device for turning on system in double-BOOT program condition
CN102662749A (en) * 2012-03-23 2012-09-12 中兴通讯股份有限公司 Method and device for realizing switching between dual Boots
CN102662695A (en) * 2012-03-26 2012-09-12 华为终端有限公司 Method and device for starting system
CN102662695B (en) * 2012-03-26 2016-03-30 华为终端有限公司 A kind of method that system starts and device
CN108427885A (en) * 2017-02-13 2018-08-21 中兴通讯股份有限公司 Updating BIOS method and apparatus
TWI743480B (en) * 2019-05-17 2021-10-21 英商鼎通盛股份有限公司 Computer system and a booting method for the same
CN112379932A (en) * 2020-11-23 2021-02-19 歌尔科技有限公司 Boot method and Boot device of electronic equipment and electronic equipment
CN112379932B (en) * 2020-11-23 2023-05-23 歌尔科技有限公司 Boot method and device of electronic equipment and electronic equipment
CN113885950A (en) * 2021-12-06 2022-01-04 中国电子科技集团公司第十五研究所 Quick starting method and device of control panel, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN1331050C (en) 2007-08-08

Similar Documents

Publication Publication Date Title
CN1222873C (en) Modular BIOS update mechanism
US8918778B2 (en) Method of fail safe flashing management device and application of the same
TWI384367B (en) System of updating firmware and method thereof
US8499295B2 (en) Microcontroller firmware running from RAM and applications of the same
US7725440B2 (en) Restoring a database using fuzzy snapshot techniques
CN100340982C (en) After-error recovery method of transmission equipment card software on-line update
CN1834915A (en) Method of updating firmware in computer server systems
US20070055969A1 (en) System and method for updating firmware
US20090217079A1 (en) Method and apparatus for repairing multi-controller system
US9858067B2 (en) Electronic system with update control mechanism and method of operation thereof
CN1808385A (en) Guide system of embedded system
CN104081329A (en) Backup storage system that backs up data, and backup storage device and method
US20150143095A1 (en) Bios failover update with service processor
CN101046749A (en) Chip firmware updating method
WO2010081323A1 (en) Method for realizing single board application version and system thereof
CN1783001A (en) Method for starting basic input and output system
CN102331958A (en) Method for starting hard disk under Linux system
WO2016078060A1 (en) Multi-system terminal system updating method, updating device and terminal
JP2017513098A (en) Broadcast management information using fountain codes
CN102799452A (en) Method and device for upgrading system software
CN1801090A (en) File update system and boot management system of mobile communication terminal,and its method
JP2005166043A (en) Apparatus, system and method for fastloading of adapter
CN113434182A (en) Method and device for realizing immediate effect of firmware upgrade of solid state disk and computer equipment
CN101046748A (en) Open system and method for computer
US11500648B2 (en) Method for fast booting processors in a multi-processor architecture

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