CN1437113A - Guide memory and its construction method and usage - Google Patents

Guide memory and its construction method and usage Download PDF

Info

Publication number
CN1437113A
CN1437113A CN02103682A CN02103682A CN1437113A CN 1437113 A CN1437113 A CN 1437113A CN 02103682 A CN02103682 A CN 02103682A CN 02103682 A CN02103682 A CN 02103682A CN 1437113 A CN1437113 A CN 1437113A
Authority
CN
China
Prior art keywords
bootrom
expansion
content
basic
construction method
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
CN02103682A
Other languages
Chinese (zh)
Other versions
CN1214328C (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 CNB021036829A priority Critical patent/CN1214328C/en
Publication of CN1437113A publication Critical patent/CN1437113A/en
Application granted granted Critical
Publication of CN1214328C publication Critical patent/CN1214328C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Abstract

The bootstrapping memory (BootRom) is divided into two sections according to its address and used as basic BootRoom and expanded BootRoom separately. The basic BootRoom, e.g. ROM, can maintain its stored content for long time and its content may be read out in any time. The expanded BootRoom e.g. FLASH, can maintain its stored content for long time and its content may be read out and re-written it any time. The said method also includes setting validity mark of the expanded BootRoom for indicating whether the expanded BootRoom is on-line upgradable or useable. The said scheme makes it possible to upgrade, renew and maintain the content of the expanded BootRoom in relatively low cost.

Description

A kind of construction method of bootstrap memory, bootstrap memory and using method
Technical field
The present invention relates to the using method of construction method and bootstrap memory and this bootstrap memory of the bootstrap memory on the single-board device (BootRom) in computing machine, the communication field.
Background technology
In computing machine, communication apparatus, owing to when single board starting, need finish operations such as necessary system bootstrap, initialization, therefore the BootRom that can store basic boot need be set on equipment veneer, for making this chip institute's program stored and data enter duty immediately when the single board starting, make this chip constitute by ROM (read-only memory) (ROM) usually.And the characteristic that ROM has usually be content can not modificability, generally need to wipe and write with special erasable instrument, owing to need special instrument just can write, therefore when needing to upgrade the guidance code of single board starting, the BootRom chip need be taken off from veneer, again the code after will upgrading is written among the BootRom, the BootRom chip that perhaps more renews.Therefore the upgrading of the BootRom on the equipment veneer must be arrived the scene and be pulled out plate and replacing chip, has increased maintenance cost like this, and veneer plug simultaneously may have influence on the operation of entire product.In the veneer development phase, the change of BootRom also needs to fire again, so not only may cause the infringement of chip, also has been with inconvenience to the developer.
Summary of the invention
The object of the present invention is to provide a kind of construction method of bootstrap memory, the BootRom that uses said method to make up is convenient to upgrading and is safeguarded; The present invention also provides a kind of bootstrap memory and using method thereof of using this method to make up simultaneously.
For achieving the above object, the construction method of bootstrap memory provided by the invention comprises:
(1) bootstrap memory (BootRom) is divided into two sections according to its address realm, respectively as basic BootRom and expansion BootRom, described basic BootRom adopts and can keep the content of being stored for a long time, and all can read the storer of its content in its in running order any time; Described expansion BootRom adopts and can keep the content of being stored for a long time, and its in running order any time all can its content of reading and writing storer;
(2) validity flag of expansion BootRom is set, whether can online upgrading or available in order to sign expansion BootRom;
Described basic BootRom adopts flash memory (FLASH).
But described expansion BootRom adopts electricity erasing ROM (read-only memory) (EEROM).
Described expansion BootRom also can adopt flash memory (FLASH).
Described method also comprises: the execute flag of expansion BootRom is set, is in order to sign expansion BootRom and begins to carry out or be in the state that is finished.
The present invention also provides a kind of bootstrap memory that makes up according to said method, comprising:
Basic BootRom, employing can keep the content of being stored for a long time, and all can read the storer of its content in its in running order any time, is used for memory contents fixing boot code and system's master data;
Expansion BootRom, employing can keep the content of being stored for a long time, and at the storer that its in running order any time all can its content of reading and writing, is used to store program code and the data that needs are upgraded, to make things convenient for the upgrading of program code and data.
The using method of above-mentioned bootstrap memory provided by the invention comprises:
(A1) carry out basic BootRom initialization operation;
(A2) validity of expansion BootRom is judged,, carried out follow-up basic BootRom code, finish then if expansion BootRom is invalid; Otherwise finish after carrying out the code of expanding BootRom.
Described step (A2) can also be replaced by following step:
(B1) validity flag of expansion BootRom is judged,, carried out follow-up basic BootRom code, finish then if expansion BootRom is invalid; Otherwise,
(B2) execute flag of expansion BootRom is judged,, carried out follow-up basic BootRom code, finish then if this sign sign expansion BootRom is the state that begins to carry out; Otherwise,
(B3) execute flag of expanding BootRom being set is the state that begins to carry out, and carries out the code of expansion BootRom;
(B4) judge whether expansion BootRom runs succeeded, if success, the execute flag that expansion BootRom is set is the state that is finished, and finishes then, waits the end of operation back otherwise alarm.
Because the present invention is divided into two sections with BootRom according to its address realm, respectively as basic BootRom and expansion BootRom, and described expansion BootRom adopts and can keep the content of being stored for a long time, and storer in its content of its in running order any time equal energy reading and writing, for example adopt EEROM or FLASH, like this, make that the content of expansion BootRom can online upgrading, renewal and maintenance, can reduce the cost of upgrading and the maintenance of BootRom.
Description of drawings
Fig. 1 is the construction method embodiment process flow diagram of bootstrap memory of the present invention;
Fig. 2 is the bootstrap memory block diagram that makes up according to the described method of Fig. 1;
Fig. 3 is the using method embodiment process flow diagram of bootstrap memory of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
Fig. 1 is the construction method embodiment process flow diagram of bootstrap memory of the present invention.Make up bootstrap memory according to Fig. 1 and have three steps: the 1st step, BootRom is divided into two sections according to its address realm, first section basic BootRom of conduct, the function that this section BootRom institute's program stored or data are supported is less but reliable and stable, wherein program and data write when dispatching from the factory usually, do not need later on to rewrite again and upgrade, therefore basic BootRom adopts and can keep the content of being stored for a long time, and all can read the storer of its content in its in running order any time, this segment memory adopts flash memory FLASH or read only memory ROM usually, can certainly adopt ultraviolet erasing ROM (read-only memory) (EPROM) but or electricity erasing ROM (read-only memory) (EEPROM); Second section as expansion BootRom, the function that this section BootRom institute's program stored or data are supported is more, may require in the reality to revise, safeguard or upgrading, therefore described expansion BootRom should adopt and can keep the content of being stored for a long time, and all can read in its in running order any time, write the storer of its content, this segment memory adopts flash memory FLASH, but also can adopt electricity erasing ROM (read-only memory) EEROM, under special circumstances, also can adopt random access memory ram to realize, will provide stable uninterruption power source for RAM certainly.
After being inserted with the single board starting of BootRom, because hardware setting can be carried out basic BootRom earlier,, judge then whether expansion BootRom is available so that carry out necessary initialization operation earlier, if expansion BootRom can use, just jump to expansion BootRom and carry out; Otherwise carry out the follow-up code of basic BootRom.Usually expansion BootRom can with condition have two, the one, the code in the expansion BootRom is effective, the 2nd, the last startup successfully could illustrate that when above-mentioned two conditions all satisfy expanding BootRom stablizes available.Simultaneously, in order to support the upgrading of BootRom, must increase in basic BootRom that expansion BootRom validity is judged, expansion BootRom starts successfully sign and is provided with and expands BOOTROM and start the code that successfully indicates removing.
Therefore,, the validity flag of expansion BootRom is set in step 2, whether can online upgrading or available in order to sign expansion BootRom; In step 3 execute flag of expansion BootRom is set, is in order to sign expansion BootRom and begins to carry out or be in the state that is finished.
Through above-mentioned steps, can make up the BootRom of a convenient upgrading, attended operation, expand the state that the execute flag of BootRom is set to be finished simultaneously.
Also need explanation, validity flag and the execute flag of described expansion BootRom can be provided with in BootRom, and also be arranged on expansion and do not require among the BootRom being arranged on basic BootRom, this sign can also be arranged in the system storage in the reality.With expansion BootRom validity flag is example, and the verification that the described validity flag that expansion BootRom is set can also be by being provided with expansion BootRom and the mode of eigenwert realize.For example, when expansion BootRom is effective, the check of the scale-of-two of its storage unit and value fix, should be worth as eigenwert, when each BootRom starts, compare with the current expansion BootRom verification that calculates with this eigenwert, can know whether current expansion BootRom is in effective status.With in like manner above-mentioned, the described validity flag that expansion BootRom is set also can realize the 5th edition (MD5) algorithm of for example information classification cryptographic algorithm by the mode machine by a certain cryptographic algorithm eigenwert that expansion BootRom is set.
Fig. 2 is the bootstrap memory block diagram that makes up according to the described method of Fig. 1.Bootstrap memory 1 among Fig. 2 comprises: basic BootRom2 and expansion BootRom3, wherein:
Basic BootRom2, employing can keep the content of being stored for a long time, and all can read the storer of its content in its in running order any time, is used for memory contents fixing boot code and system's master data;
Expansion BootRom3, employing can keep the content of being stored for a long time, and at the storer that its in running order any time all can its content of reading and writing, is used to store program code and the data that needs are upgraded, to make things convenient for the upgrading of program code and data.
Fig. 3 is the using method embodiment process flow diagram of bootstrap memory of the present invention.Use the BootRom that makes up according to the described method of Fig. 1 according to Fig. 2, at first carry out normal basic BootRom initialization operation in step 11, judge in the validity flag of step 12 couple expansion BootRom then, if described validity flag sign expansion BootRom is invalid, illustrate that expansion BootRom may be in malfunction, can't continue to carry out that carry out step 14 this moment, carry out follow-up basic BootRom code, finish the start-up operation of BootRom then; If described validity flag sign expansion BootRom is effective, carrying out the execute flag of step 13 couple expansion BootRom judges, if this sign sign expansion BootRom did not run succeeded last time, promptly this is masked as the still state for beginning to carry out, also explanation expansion BootRom may be in malfunction and can't continue to carry out, also carry out step 14 this moment and carry out follow-up basic BootRom code, finish the start-up operation of BootRom then; Otherwise, illustrate that expansion BootRom is in normal duty, therefore the execute flag of expanding BootRom is set and carries out, and carry out the code of expansion BootRom in step 16 for beginning in step 15.After the code of expanding BootRom is finished or ends, judge in step 17 whether expansion BootRom runs succeeded, if success, the execute flag that expansion BootRom is set in step 18 is the state that runs succeeded, the state that promptly is finished, so that next BootRom restarts, finish the start-up operation of BootRom then, otherwise after step 19 is carried out alarm operation, finish the start-up operation of BootRom.Before start-up operation finishes, can also carry out other operation, for example carry out the upgrading of BootRom.If carry out the upgrading of BootRom, to judge at first whether the loading passage of upgrade data use is normal, if normally, send the application for upgrading of the upgrading of BootRom, after meeting with a response, carry out the upgrading of BootRom.

Claims (11)

1, a kind of construction method of bootstrap memory comprises:
(1) bootstrap memory (BootRom) is divided into two sections according to its address realm, respectively as basic BootRom and expansion BootRom, described basic BootRom adopts and can keep the content of being stored for a long time, and all can read the storer of its content in its in running order any time; Described expansion BootRom adopts and can keep the content of being stored for a long time, and its in running order any time all can its content of reading and writing storer;
(2) validity flag of expansion BootRom is set, whether can online upgrading or available in order to sign expansion BootRom;
2, the construction method of bootstrap memory according to claim 1 is characterized in that: described basic BootRom adopts flash memory (FLASH).
3, the construction method of bootstrap memory according to claim 1 is characterized in that: but described expansion BootRom adopts electricity erasing ROM (read-only memory) (EEROM).
4, the construction method of bootstrap memory according to claim 1 is characterized in that: described expansion BootRom adopts flash memory (FLASH).
5, the construction method of bootstrap memory according to claim 1 is characterized in that: the validity flag of described expansion BootRom is provided with in BootRom.
6, the construction method of bootstrap memory according to claim 5 is characterized in that: the described validity flag that expansion BootRom is set is verification and the eigenwert that expansion BootRom is set.
7, the construction method of bootstrap memory according to claim 5 is characterized in that: the described validity flag that expansion BootRom is set is the eigenwert that information classification cryptographic algorithm the 5th plate (MD5) of expansion BootRom is set.
8, the construction method of bootstrap memory according to claim 1 is characterized in that described method also comprises: the execute flag of expansion BootRom is set, is in order to sign expansion BootRom and begins to carry out or be in the state that is finished.
9, a kind of bootstrap memory that makes up according to the described method of the arbitrary claim of claim 1 to 8 comprises:
Basic BootRom, employing can keep the content of being stored for a long time, and all can read the storer of its content in its in running order any time, is used for memory contents fixing boot code and system's master data;
Expansion BootRom, employing can keep the content of being stored for a long time, and at the storer that its in running order any time all can its content of reading and writing, is used to store program code and the data that needs are upgraded, to make things convenient for the upgrading of program code and data.
10, the using method of the described bootstrap memory of a kind of claim 9 comprises:
(A1) carry out basic BootRom initialization operation;
(A2) validity of expansion BootRom is judged,, carried out follow-up basic BootRom code, finish then if expansion BootRom is invalid; Otherwise finish after carrying out the code of expanding BootRom.
11, the using method of bootstrap memory according to claim 10 is characterized in that described step (A2) is replaced by following step:
(B1) validity flag of expansion BootRom is judged,, carried out follow-up basic BootRom code, finish then if expansion BootRom is invalid; Otherwise,
(B2) execute flag of expansion BootRom is judged,, carried out follow-up basic BootRom code, finish then if this sign sign expansion BootRom is the state that begins to carry out; Otherwise,
(B3) execute flag that expansion BootRom is set is carried out for beginning, and carries out the code of expansion BootRom;
(B4) judge whether expansion BootRom runs succeeded, if success, the execute flag that expansion BootRom is set is the state that is finished, and finishes then, waits the end of operation back otherwise alarm.
CNB021036829A 2002-02-08 2002-02-08 Guide memory and its construction method and usage Expired - Lifetime CN1214328C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021036829A CN1214328C (en) 2002-02-08 2002-02-08 Guide memory and its construction method and usage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021036829A CN1214328C (en) 2002-02-08 2002-02-08 Guide memory and its construction method and usage

Publications (2)

Publication Number Publication Date
CN1437113A true CN1437113A (en) 2003-08-20
CN1214328C CN1214328C (en) 2005-08-10

Family

ID=27627918

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021036829A Expired - Lifetime CN1214328C (en) 2002-02-08 2002-02-08 Guide memory and its construction method and usage

Country Status (1)

Country Link
CN (1) CN1214328C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100362472C (en) * 2005-12-06 2008-01-16 海信集团有限公司 Method for dynamic guiding of inserted equipment system
CN100363857C (en) * 2004-11-25 2008-01-23 杭州华三通信技术有限公司 Safety access method of system bootrom
CN100382027C (en) * 2005-02-01 2008-04-16 苏州超锐微电子有限公司 Method for storing and operating high-capacity Boot ROM mirror
CN100458970C (en) * 2005-07-04 2009-02-04 联咏科技股份有限公司 Embedded memory unit structure and memory device system structure and operation method
CN1921578B (en) * 2006-09-01 2010-04-21 海信集团有限公司 Storage space extending circuit and television within this extending circuit
CN102169445A (en) * 2011-05-13 2011-08-31 合肥华云通信技术有限公司 Security upgrading method for BootRom
CN106158038A (en) * 2015-04-14 2016-11-23 飞思卡尔半导体公司 The method reading data from nonvolatile memory
CN114880166A (en) * 2022-04-19 2022-08-09 Oppo广东移动通信有限公司 BootROM expansion method and device, electronic equipment and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100363857C (en) * 2004-11-25 2008-01-23 杭州华三通信技术有限公司 Safety access method of system bootrom
CN100382027C (en) * 2005-02-01 2008-04-16 苏州超锐微电子有限公司 Method for storing and operating high-capacity Boot ROM mirror
CN100458970C (en) * 2005-07-04 2009-02-04 联咏科技股份有限公司 Embedded memory unit structure and memory device system structure and operation method
CN100362472C (en) * 2005-12-06 2008-01-16 海信集团有限公司 Method for dynamic guiding of inserted equipment system
CN1921578B (en) * 2006-09-01 2010-04-21 海信集团有限公司 Storage space extending circuit and television within this extending circuit
CN102169445A (en) * 2011-05-13 2011-08-31 合肥华云通信技术有限公司 Security upgrading method for BootRom
CN102169445B (en) * 2011-05-13 2013-12-04 合肥华云通信技术有限公司 Security upgrading method for BootRom
CN106158038A (en) * 2015-04-14 2016-11-23 飞思卡尔半导体公司 The method reading data from nonvolatile memory
CN106158038B (en) * 2015-04-14 2021-03-09 恩智浦美国有限公司 Method for reading data from nonvolatile memory
CN114880166A (en) * 2022-04-19 2022-08-09 Oppo广东移动通信有限公司 BootROM expansion method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN1214328C (en) 2005-08-10

Similar Documents

Publication Publication Date Title
CN101751273B (en) Safety guide device and method for embedded system
US8001368B2 (en) Hot-pluggable information processing device and setting method
CN101770372B (en) Firmware update system, method and building method of firmware of firmware update system
CN1200341C (en) Method for realizing flush type system firmware program online updating
CN103299276A (en) Software updating process for an embedded device
CN1398371A (en) System and method for altering operating system start-up sequence prior to operating system loading
CN1214328C (en) Guide memory and its construction method and usage
CN101923473A (en) Embedded electronic device and method for updating firmware thereof
CN113641378A (en) Optical module program upgrading method, device, equipment and readable storage medium
CN1266595C (en) Semiopen automatic upgrading method for embedded type operation system
CN1199108C (en) Method of automatic updating embedded device operating system using CF card
CN101639877A (en) Electronic device and method for updating basic input and output system thereof
CN102005245A (en) Intelligent card erasing and writing protection method
KR100671046B1 (en) Application program install system and method using usb
CN104850472B (en) System software backup and reduction method and apparatus
CN103713917A (en) Startup method, hot key switching startup graphics device method and electronic device
CN1294481C (en) Method for updating and recovering system by bootstrap program
CN101566951A (en) Computer system and BIOS structure thereof as well as turn-on method
CN104679545A (en) Device and device starting method
JP4715189B2 (en) Disk device and firmware determination method
CN114416188B (en) Data processing system and ARM core board starting method
CN101359300A (en) Special data management method for computer unit and starting up method suitable for the method
CN109358871B (en) Method and device for replacing application system of embedded system equipment and storage medium
JP2002024024A (en) Method and system for performing adapater configuration routine by using different operation mode
CN100435098C (en) Inline processing method and system for initiate key codes in operating system

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20050810