CN1501241A - Loading method of computer starting preset value - Google Patents

Loading method of computer starting preset value Download PDF

Info

Publication number
CN1501241A
CN1501241A CNA021490090A CN02149009A CN1501241A CN 1501241 A CN1501241 A CN 1501241A CN A021490090 A CNA021490090 A CN A021490090A CN 02149009 A CN02149009 A CN 02149009A CN 1501241 A CN1501241 A CN 1501241A
Authority
CN
China
Prior art keywords
bios program
preset value
computer system
mnemon
value
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
CNA021490090A
Other languages
Chinese (zh)
Other versions
CN1249579C (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 CN 02149009 priority Critical patent/CN1249579C/en
Publication of CN1501241A publication Critical patent/CN1501241A/en
Application granted granted Critical
Publication of CN1249579C publication Critical patent/CN1249579C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The power-on preset value loading method for computer is suitable for computer system with non-volatile memory. The non-volatile memory is used to store BIOS program state values of the computer system in previous power-on, and the BIOS program state values is found out based on the BIOS program related information and one preset conversion formula. The loading method includes the computer system to read current BIOS program from the BIOS ROM in executing power-on program, taking out correlated information to find out the BIOS program state value via conversion formula; to compare the calculated state value and that stored in the non-volatile memory; in case of indifference, to store the calculated state value in the non-volatile memory for use in next power-on; and to load the preset power-on value stored in the BIOS ROM to the non-volatile memory.

Description

The loading method of computer booting preset value
Technical field
The present invention relates to a kind of loading method of computer booting preset value, relate in particular to computer system, make this computer system preset value method of loading automatically of when its bios program upgrades, will start shooting with a Nonvolatile memory.
Background technology
In order to comply with the development that computer system processor efficient and peripheral hardware unit research and development technology make rapid progress, make computer maker constantly design the Basic Input or Output System (BIOS) of different editions (Basic Input/Output System, be designated hereinafter simply as BIOS) program, make computer system can determine clearly what its present peripheral hardware unit of arranging in pairs or groups is, but allow normal operation between these peripheral hardware units and this computer system in view of the above, and then provide computer system user or bios program tester that computer system is carried out normal running.
Although bios program is brought in constant renewal in, but, for the loading procedure that BIOS upgrades the required start preset value (Default) in back, will be by setting (Setup) function that bios program provided, or can load the start preset value after utilizing switch (Switch) on this computer system host plate to set.Therefore, computer system user or bios program tester all need to load bios program start preset value to computer system with manual mode.Yet, loading the start preset value with manual mode, user or tester ignore easily, thereby cause computer system to produce mistake in operation.
Therefore, after the bios program of computer system upgrades, how effectively avoiding causing the undesired running of system because of the setting program of ignoring bios program start preset value, and a kind of method that can load the start preset value automatically is provided, is the problem that needs solution at present.
Summary of the invention
Shortcoming in view of above-mentioned prior art, fundamental purpose of the present invention is to provide a kind of loading method of computer booting preset value, in order to allowing computer system after bios program upgrades, can load bios program start preset value automatically, effectively to avoid causing the undesired running of system because of manually being easy to ignore the start shooting setting program of preset value of bios program.
Another object of the present invention is to provide a kind of loading method of computer booting preset value, in the computer system that generally has Nonvolatile memory (for example NVRAM), relevant information after storing bios program and upgrade by this Nonvolatile memory, judge whether need to load automatically bios program start preset value for this computer system, therefore, must not increase the function that extra hardware cost can reach automatic loading start preset value.
For achieving the above object, the invention provides a kind of loading method of computer booting preset value.The loading method of this preset value, be applicable in the computer system with a Nonvolatile memory, this Nonvolatile memory is in order to store last time the started shooting preceding bios program state value of employed bios program of computer system, and this computer system comprises one at least in order to store the main memory unit of bios program and start preset value, this loading method comprises at least: make this computer system read bios program carrying out boot program from this main memory unit, and take out the version and the date data of this bios program; Then, make this computer system obtain this bios program state value according to this version obtained and date data, and bios program state value before from this Nonvolatile memory, taking out, and will compare according to bios program state value and the preceding bios program state value that the bios program in this main memory unit is tried to achieve; If two values are identical, then this computer system must not load bios program stored in the primary memory its start preset value, and then carries out the POST program according to the bios program of this Nonvolatile memory; Otherwise, if two values are different, then will be somebody's turn to do the bios program state value of being tried to achieve according to the main memory unit is stored in this Nonvolatile memory, state value with as next boot program the time relatively, and the start preset value that this primary memory is stored is loaded in the Nonvolatile memory, and makes this computer system carry out the POST program according to the start preset value that loads on Nonvolatile memory.
Description of drawings
Fig. 1 represents the basic application structure calcspar that the loading method of computer booting preset value of the present invention is required;
Fig. 2 A represents each flow chart of steps of the required execution of loading method of computer booting preset value of the present invention;
The further processing flow chart of step S7 among Fig. 2 B presentation graphs 2A.
Symbol description among the figure
1 computer system
10 CPU
11 north bridge chips
12 South Bridge chips
110 SRAM
111 DRAM
112 Cache
120 BIOS?ROM
121 NVRAM access controllers
122 NVRAM
123 I/O controller and cmos cells
124 keyboard/mouse
125 VGA
Embodiment
Following conjunction with figs. describes the embodiment of the loading method of computer booting preset value of the present invention in detail.
Fig. 1 represents the basic application structure calcspar that the loading method of computer booting preset value of the present invention is required.As shown in the figure, the loading method of computer booting preset value of the present invention is applicable in the computer system 1, for example notebook or desk-top computer etc., this computer system 1 comprises a central processing unit 10 (Central Processing Unit at least; Below will abbreviate CPU as), north bridge chips 11, South Bridge chip 12, static random access memory a 110 (Static Random Access Memory; Be designated hereinafter simply as SRAM), DRAM (Dynamic Random Access Memory) a 111 (Dynamic Random Access Memory; Be designated hereinafter simply as DRAM), a high-speed cache 1 12 (being designated hereinafter simply as cache), BIOS ROM120, a non-volatile random access memory (Non-Volatile Random Access Memory; Be designated hereinafter simply as NVRAM) access controller 121, NVRAM122, I/O controller and cmos cell 123, a keyboard/mouse 124 and a VGA (Video GraphicsArray) 125.Wherein, these north bridge chips 11 main being responsible for are carried out data transmission and processing with internal memories such as this CPU10, SRAM110, DRAM111 and cache112, to be responsible for the co-ordination of higher speed; And the main signal controlling of being responsible for peripheral hardware units such as BIOS ROM120, NVRAM access controller 121, I/O controller and cmos cell 123, VGA125 of this South Bridge chip 12, to be responsible for co-ordination more at a slow speed.Because above-mentioned each chip, each internal memory etc. all are that computer technician is known, therefore, will its function and inner structure be described in further detail at this, below part related to the present invention only is described.
This NVRAM122 a kind ofly can still can preserve the random access memory of data when interrupting power supply, in order to store last time the started shooting preceding bios program state value N of used bios program of this computer system 1, and this bios program state value N comes by a conversion formula, this conversion formula is encoded computing producing a particular number of bits according to date of the used bios program of this time start and version, with particular number of bits that this is tried to achieve as bios program state value N.At this acquisition mode of this bios program state value N is described for example, because bios program generally all has version date, represent with mm/dd/yy, and version number, represent with Vn.ab, suppose this bios program state value N=f (bios program version date in the present embodiment, the bios program version)=10 * mm+dd+n+ (a ÷ 10)+(b ÷ 100), for example if the bios program relevant information comprises Compiled 11/29/99, during Version 5.28, be bios program state value N=10 * 11+29+5+ (2 ÷ 10)+(8 ÷ 100)=144.28, therefore, generally speaking, the bios program state value N between the bios program of different editions is difficult to identical.Be that this conversion formula, also can add other parameter and for example start shooting the date as outside the parameter divided by above-mentioned bios program version date and bios program version, that is to say that the parameter of this conversion formula can be decided according to required performance what this should be specified.
Utilize the loading method of computer booting preset value of the present invention, make this computer installation 1 when start, will from BIOS ROM120, read bios program to carry out selftest work (the Power-On Self Test of system by this South Bridge chip 12; Be designated hereinafter simply as POST), need to prove that at this this POST program is the necessary program of the required execution of general computer system, therefore do not repeat them here.At first, from this BIOS ROM120, read the bios program version date and the bios program version of its stored bios program, and try to achieve present bios program state value N ' according to the conversion formula that can obtain bios program state value N by this computer installation 1; Then, compare with this bios program state value N ' that tries to achieve and the preceding bios program state value N that is stored among this NVRAM122 in advance, if it is different, just the bios program version of the present start of expression usefulness upgrades, and makes start preset value stored among the BIOS ROM120 be stored in automatically in NVRAM122 and I/O controller and the cmos cell 123.
Like this, judge that at this computer installation 1 bios program can load the start preset value when upgrading automatically, and do not need the start shooting loading procedure of preset value of function (Setup) to be set with the switchgear on the motherboard or by bios program provided by manual type.
Fig. 2 A represents each flow chart of steps of the required execution of loading method of computer booting preset value of the present invention.As shown in the figure, if after this computer installation 1 start, will from BIOS ROM120, read bios program and carry out selftest work (the Power-On SelfTest of system by this South Bridge chip 12; Be designated hereinafter simply as POST) to obtain hardware information relevant on the computer system 1, wherein this POST program is shown in step S1 and step S2, in step S1, set for example for example NVRAM access controller, I/O controller (121,123) etc. of south, north bridge chips (11,12) and each controller of each chip by this computer installation 1, obtain kind, type and the characteristic of each peripheral hardware unit for this computer system 1, then carry out step S2.
In step S2, set each internal memory for example SRAM, DRAM and cache (110,111,112) etc. by this computer installation 1, obtain the amount of capacity of each internal memory for this computer system 1, then carry out step S3.
In step S3, carry out bios program state value conversion process, comprise step S30 and step S31, at first carry out step S30, computer system 1 obtains the version date and the version of the bios program of present start usefulness from BIOS ROM120, for example the date is November 29, and version is 5.28, then carries out step S31.
In step S31, carry out the conversion of present bios program state value N ' by a default conversion formula (it can be pre-stored among this BIOSROM120 and use when asking for the bios program state value for this computer system 1) with basis obtained version date and version in this step S30, for example the conversion formula of this bios program state value N ' is 10 * month part+day part+version units+(first ÷ 10 behind the version radix point)+(second ÷ 100 behind the version radix point), that is to say, step S4 is then carried out in bios program state value N '=10 * 11+29+5+ (2 ÷ 10)+(8 ÷ 100)=144.28 at present.
In step S4, (acquisition mode of this state value is identical with above-mentioned steps S30 and this step S31 to take out the preceding bios program state value N that last time, bios program start back was prestored by this computer system 1 from NVRAM122, do not repeat them here), then carry out step S5.
In step S5, judge that by this computer system 1 the bios program state value N ' that changes according to the bios program in the BIOS ROM120 is whether identical with the preceding bios program state value N that this NVRAM122 is prestored, if two values are identical, then carries out step S7; Otherwise, then carry out step S6.
In step S6, set up preset value by this computer system 1 and load sign, and its value is made as 1 and be stored among this NVRAM122, and the present bios program state value N ' that this is obtained is stored among this NVRAM122.Like this, when computer system 1 reads value that this preset value loads sign and is 1, can judge present bios program and upgrade, thereby need to load start preset value (default) automatically and in operation, produce mistake to prevent computer system 1; Moreover, the present bios program state value N ' that obtains is stored among this NVRAM122 when starting shooting for next time, as the usefulness of bios program version comparison.Then carry out step S7.
In step S7, when this computer system 1 in start and after to the conversion of its bios program version completion status value, than reciprocity relevant treatment program, just proceed subsequent P OST program.Next, further treatment scheme referring to step S7 among above-mentioned Fig. 2 A shown in Fig. 2 B, as shown in the figure, if this computer system 1 is started shooting with the bios program in this BIOS ROM120 and according to version date of this bios program and the conversion of version completion status value and than after the reciprocity relevant treatment program, carry out step S70 immediately, from this NVRAM122, read this preset value by this computer system 1 and load whether value of statistical indicant is 1, if 1, then carry out step S71; Otherwise, then carry out step S72.
In step S71, by this computer system 1 the start preset value of the bios program that bios program provided among this BIOS ROM120 (default) is loaded among I/O controller and cmos cell 123 and the NVRAM122 automatically, then carry out step S72.
In step S72, make this computer system 1 carry out the POST program according to the start preset value that is stored among I/O controller and cmos cell 123 and the NVRAM122.
Loading method according to computer booting preset value of the present invention, hardware cost that must be extra not, only need utilize computer system 1 general existing NVRAM122 to store the last time bios program state value of start, and then judge for this computer system 1 usefulness of this time starting shooting the BOIS program version updating whether, with as the foundation that loads the preset value of starting shooting automatically.User or tester are a kind of to improve the inconvenience of artificial loading start preset value and can effectively avoid being easy to ignore the loading method that causes the abnormal start preset value of computer system operation because of artificial loading to provide.
The above is preferred embodiment of the present invention, do not constitute restriction to the scope of essence technology contents of the present invention, the conversion formula of this bios program state value is not limited to the version date of bios program or version also can add the parameter that other has identification bios program information as conversion parameter.Essence technology contents of the present invention broadly is defined in claims of the present invention, any technology entity or method that other people are finished, as with claims of the present invention in defined identical, or its equivalence change all is regarded as being covered by among this claim.

Claims (11)

1, a kind of loading method of computer booting preset value, it is characterized in that, can allow a computer system start shooting and the preset value method of loading automatically of will starting shooting with different B IOS program, this computer system comprise at least one in order to first mnemon of the preceding bios program state value of the bios program that stores the usefulness of last time starting shooting and one in order to store second mnemon of bios program and start preset value, this loading method comprises:
Make this computer system from second mnemon, read bios program carrying out boot program, and take out the related data of this bios program; And
Make this computer system obtain this bios program state value according to this related data of obtaining, and bios program state value before from this first mnemon, taking out, and will compare according to bios program state value and the preceding bios program state value that the bios program of second mnemon is tried to achieve; If two values are identical, then this computer system must not load its start preset value by the bios program that second internal memory is stored, and then carries out the POST program according to the bios program of this first internal memory; Otherwise, if two values are different, then will be somebody's turn to do the bios program state value of trying to achieve according to second mnemon is stored in this first mnemon, state value contrast with as next boot program the time, and the start preset value that this second internal memory is stored is loaded in first mnemon, and makes this computer system carry out the POST program according to the start preset value that loads on first mnemon.
2, the loading method of computer booting preset value as claimed in claim 1 is characterized in that, described related data comprises the version and the date of bios program at least.
3, the loading method of computer booting preset value as claimed in claim 1, it is characterized in that, in second mnemon, set a preset value by described computer system and load sign, judging the foundation that could load the start preset value after bios program upgrades for this computer system conduct.
4, the loading method of computer booting preset value as claimed in claim 3, it is characterized in that, if the stored preceding bios program state value of described bios program state value of being tried to achieve by second mnemon and first mnemon is not simultaneously, just loading value of statistical indicant by this preset value of this computer system settings is specific accurate position signal, is judging the foundation that can load the start preset value after bios program upgrades for this computer system.
5, the loading method of computer booting preset value as claimed in claim 4, it is characterized in that, when if described computer system is made as specific accurate position signal with this preset value loading value of statistical indicant, the start preset value that this second internal memory is stored is loaded in first mnemon, and makes this computer system carry out the POST program according to the start preset value of first mnemon.
6, the loading method of computer booting preset value as claimed in claim 1 is characterized in that, this specific accurate position signal be meant high levle signal and low level signal one of them.
7, the loading method of computer booting preset value as claimed in claim 1 is characterized in that, described bios program state value is obtained by a conversion formula.
8, the loading method of computer booting preset value as claimed in claim 7, it is characterized in that, described conversion formula is to encode computing to produce a particular number of bits according to the related data of this bios program, and this particular number of bits of trying to achieve will be as the bios program state value of this bios program.
9, the loading method of computer booting preset value as claimed in claim 1 is characterized in that, this first mnemon is meant non-volatile mnemon.
10, the loading method of computer booting preset value as claimed in claim 9 is characterized in that, described non-volatile mnemon is meant NVRAM (Non-Volatile Random AccessMemory).
11, the loading method of computer booting preset value as claimed in claim 1 is characterized in that, described computer system be desk-top computer and notebook wherein any.
CN 02149009 2002-11-18 2002-11-18 Loading method of computer starting preset value Expired - Fee Related CN1249579C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02149009 CN1249579C (en) 2002-11-18 2002-11-18 Loading method of computer starting preset value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02149009 CN1249579C (en) 2002-11-18 2002-11-18 Loading method of computer starting preset value

Publications (2)

Publication Number Publication Date
CN1501241A true CN1501241A (en) 2004-06-02
CN1249579C CN1249579C (en) 2006-04-05

Family

ID=34233443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02149009 Expired - Fee Related CN1249579C (en) 2002-11-18 2002-11-18 Loading method of computer starting preset value

Country Status (1)

Country Link
CN (1) CN1249579C (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521195A (en) * 2011-11-18 2012-06-27 华为技术有限公司 Address resource allocation method and memorizer
CN102737724A (en) * 2011-04-07 2012-10-17 鸿富锦精密工业(深圳)有限公司 System and method for testing nonvolatile random access memory (NVRAM)
CN103197996A (en) * 2012-01-05 2013-07-10 纬创资通股份有限公司 Startup detection circuit, computer system and startup detection method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102737724A (en) * 2011-04-07 2012-10-17 鸿富锦精密工业(深圳)有限公司 System and method for testing nonvolatile random access memory (NVRAM)
CN102737724B (en) * 2011-04-07 2016-04-06 北京大家玩科技有限公司 Nonvolatile random access memory method of testing
CN102521195A (en) * 2011-11-18 2012-06-27 华为技术有限公司 Address resource allocation method and memorizer
WO2012163231A1 (en) * 2011-11-18 2012-12-06 华为技术有限公司 Address resource allocation method and storage
CN103197996A (en) * 2012-01-05 2013-07-10 纬创资通股份有限公司 Startup detection circuit, computer system and startup detection method thereof

Also Published As

Publication number Publication date
CN1249579C (en) 2006-04-05

Similar Documents

Publication Publication Date Title
US11372472B2 (en) System on chip for reducing wake-up time, method of operating same, and computer system including same
US7739469B2 (en) Patching ROM code
US20080183968A1 (en) Computer system having cache system directly connected to nonvolatile storage device and method thereof
US9274804B2 (en) Overlapped boot task fetches and boot task execution to reduce boot time in an electrical device
CN1959638A (en) Method and apparatus for memory initializing in a computer system
CN1932778A (en) Method for conducting virtual space management to NAND FLASH memory
CN101051271A (en) Intelligent CPU super frequency method
CN1525391A (en) Nonvolatile memory card
US20130262848A1 (en) Electronic apparatus and booting method
US20040225874A1 (en) Method for reduced BIOS boot time
CN1828538A (en) Method for realizing operating procedure directly from file system in embedded system
US20090306954A1 (en) Method for automatically simulating manual testing of a computer, and testing system for performing the method
CN1249579C (en) Loading method of computer starting preset value
CN1811663A (en) Power management method of north bridge
US7010679B2 (en) System for selecting from multiple BIOS versions stored in a single memory device
CN101957762A (en) Starting acceleration device, computer system with same and starting method thereof
CN111198719A (en) Method, device, equipment and storage medium for realizing ACPI (advanced RISC machine) by ARM (advanced RISC machine) platform
US20070220196A1 (en) Methods and apparatus for acquiring expansion read only memory size information prior to operating system execution
CN1254741C (en) Method for automatic switching starting-up mode
CN1280721C (en) Method of identifying big or small memory of imbedded system
KR101118111B1 (en) Mobile communication terminal and booting method thereof
KR101342074B1 (en) Computer system and control method thereof
CN1277212C (en) Initializing set truss and method for dynamic random access storage
TWI234111B (en) Loading method for default values
KR20050012992A (en) Apparatus and method for high speed booting an operating system

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

Termination date: 20101118