TWI234111B - Loading method for default values - Google Patents

Loading method for default values Download PDF

Info

Publication number
TWI234111B
TWI234111B TW91121200A TW91121200A TWI234111B TW I234111 B TWI234111 B TW I234111B TW 91121200 A TW91121200 A TW 91121200A TW 91121200 A TW91121200 A TW 91121200A TW I234111 B TWI234111 B TW I234111B
Authority
TW
Taiwan
Prior art keywords
program
value
computer system
loading
memory unit
Prior art date
Application number
TW91121200A
Other languages
Chinese (zh)
Inventor
Jr-Wei Chen
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 TW91121200A priority Critical patent/TWI234111B/en
Application granted granted Critical
Publication of TWI234111B publication Critical patent/TWI234111B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

This invention provides a loading method for default values, it is suitable for a computer system with non-volatile memory. Wherein, the non-volatile memory is used to store the previous BIOS configuration of BIOS program for the previous booting. The BIOS configuration is obtained based on the associated information of the BIOS program, such as version and date data, etc., and a default conversion formula in the computer system. The loading method includes the following procedures: firstly, it reads the current BIOS program by the computer from the BIOS ROM for the booting sequence. Secondly, it abstracts the associated information of the BIOS program, and obtains the current BIOS configuration via the conversion formula. Further, it compares the obtained current BIOS configuration with the previous one stored in the non-volatile memory. Furthermore, if the two values are different, it stores the obtained current BIOS configuration in the non-volatile memory as the BIOS configuration for the next booting sequence. Moreover, it loads the default booting values stored in the BIOS ROM to the non-volatile memory. Finally, it makes the computer system conducting the POST sequence based on the default booting values loaded in the non-volatile memory.

Description

1234111 五、發明說明(1) 【發明領域】 本發明係有關於一種預設值之載入方法,更詳而言 之,係適用於一具有一非易失性記憶體之電腦系統,用以 供該電腦系統於其B I 0S程式更新時而將開機預設值自動載 入之方法。 【發明背景】 為因應電腦系統處理效能及周邊硬體裝置研發技術的 曰新月異,使電腦製造商不斷設計出不同版本的基本輸入 輸出系統(Basic Input/Output System;以下簡稱為 B I OS)程式,以供該電腦系統可明確判定出其目前所搭配 的周邊硬體裝置為何,藉此令該些周邊硬體裝置與該電腦 系統之間可正常運作,進而提供電腦系統使用者或B I 0S程 式測試人員對電腦系統進行正常操作。 儘管B I 0S程式不斷更新,但是,對於B I 0S更新後所需 的開機預設值(Default)之載入程序而言,須藉由BIOS 程式所提供的設置(Setup)功能,或經由該電腦系統之 主機板上的開關(Switch)進行設定後方可載入開機預設 值。因此,電腦系統使用者或B I 0S程式測試人員均需藉由 手動方式來載入B I 0S程式開機預設值至電腦系統中。然 而,以手動方式載入開機預設值易讓使用者或測試人員忽 略,因而導致電腦系統於運作過程中產生錯誤。 因此,於電腦系統之B I 0S程式更新後,如何有效避免 因人工易忽略B I 0S程式開機預設值之設定程序而導致系統 不正常運作,以及提供一種可自動載入開機預設值的方1234111 V. Description of the invention (1) [Field of the invention] The present invention relates to a method for loading a preset value. More specifically, it is applicable to a computer system having a non-volatile memory for A method for the computer system to automatically load the startup default value when the BI 0S program is updated. [Background of the Invention] In response to the rapid changes in computer system processing performance and the development of peripheral hardware devices, computer manufacturers have continuously designed different versions of the Basic Input / Output System (hereinafter referred to as BI OS). Program for the computer system to clearly determine what peripheral hardware devices it is currently paired with, so that the peripheral hardware devices and the computer system can operate normally, and then provide a computer system user or BI 0S Program testers perform normal operations on computer systems. Although the BI 0S program is constantly updated, for the loading process of the default boot value (Default) required after the BI 0S update, the setup function provided by the BIOS program or the computer system must be used Set the switch on the motherboard to load the default settings. Therefore, the computer system user or the B I 0S program tester needs to manually load the B I 0S program boot default value into the computer system by manual means. However, manually loading the startup default values is easy for users or testers to ignore, which causes errors in the computer system during operation. Therefore, after the B I 0S program of the computer system is updated, how to effectively avoid the abnormal operation of the system due to the manual setting process of the B I 0S program's boot default setting, and provide a method that can automatically load the boot preset value.

16854.ptd 第5頁 1234111 五、發明說明(2) 法,即是目前需要解決的問題。 【發明目的及概述】 鑒於上述習知技術之缺點,本發明之主要目的在於提 供一種預設值之載入方法,係用以讓一電腦系統於B I 0S程 式更新後可自動載入B I 0S程式開機預設值之載入方法,以 有效避免因人工易於忽略B I 0 S程式開機預設值之設定程序 而導致系統不正常運作。 本發明之另一目的在於提供一種預設值之載入方法, 其可適用於一般具有一非易失性記憶體(例如NVRAM)之 電腦系統中,係藉由該非易失性記憶體以儲存B I 0S程式更 新後的相關資訊,以供該電腦系統判定是否需自動載入 B I 0S程式開機預設值,因此,不須增加額外的硬體成本即 可達成自動載入開機預設值的效能。 根據上述之目的,本發明提供了 一種預設值之載入方 法。該預設值之載入方法,係適用於一具有一非易失性記 憶體之電腦系統中,該非易失性記憶體用以儲存電腦系統 之前次開機用之B I 0S程式的前B I 0S程式組態值,且該電腦 系統至少包括一用以儲存B I 0S程式及開機預設值之主記憶 單元,該載入方法至少包含··令該電腦系統自該主記憶單 元中讀取B I 0S程式以進行開機程序,且取出該B I 0S程式之 版本及日期貧料,接者’令該電腦糸統根據該取得的版本 及日期資料以求出該B I 0S程式組態值,且自該非易失性記 憶體中取出前B I 0 S程式組態值,並將根據該主記憶單元中 的B I 0S程式而求得的B I 0S程式組態值與前B I 0S程式組態值16854.ptd Page 5 1234111 V. Description of Invention (2) The method is the problem that needs to be solved at present. [Objective and Summary of the Invention] In view of the shortcomings of the above-mentioned conventional technology, the main object of the present invention is to provide a method for loading a preset value, which is used to enable a computer system to automatically load a BI 0S program after the BI 0S program is updated. The loading method of the boot default value is to effectively avoid the abnormal operation of the system caused by the manual setting process of the BI 0 S program's boot default value. Another object of the present invention is to provide a method for loading a preset value, which can be applied to a computer system generally having a non-volatile memory (such as NVRAM). The non-volatile memory is used for storing Relevant information about the updated BI 0S program for the computer system to determine whether to load the BI 0S program boot default automatically. Therefore, the performance of automatically loading the boot default can be achieved without additional hardware costs. . According to the above object, the present invention provides a method for loading a preset value. The loading method of the default value is suitable for a computer system having a non-volatile memory, and the non-volatile memory is used to store the previous BI 0S program of the previous BI 0S program used by the computer system. Configuration value, and the computer system includes at least a main memory unit for storing the BI 0S program and a boot default value, and the loading method includes at least the computer system reading the BI 0S program from the main memory unit To start the process, and take out the version and date of the BI 0S program, the user's order the computer system to obtain the configuration value of the BI 0S program based on the obtained version and date data, and from the non-volatile Take out the previous BI 0 S program configuration value from the memory, and calculate the BI 0S program configuration value and the previous BI 0S program configuration value based on the BI 0S program in the main memory unit.

16854.ptd 第6頁 1234111 五、發明說明(3) ' '—〜—一"- 進行比較;若兩值相同,則該電腦系統不須將主記中 所儲存的BIOS程式栽入其開機預設值,進而根據該^易失 性記憶體之BWS程式執行p〇ST程序;反之,若兩值不同, 則將該根據主記憶單元所求得的B I 〇s程式組態值存於該非 易失性記憶體中’以作為下次開機程序時的組態值比較, 且將該主記憶體所儲存的開機預設值載入至非易失性記憶 體中,並使該電腦系統根據載入於非易失性記憶體之開機 預設值進行P 〇 s T程序。 【較佳實施例詳細說明】 請參閱苐1圖’其係顯示本發明之預設值之載入方法 所需的基本應用架構方塊圖。如圖所示,本發明之預設值 之載入方法係適用於一電腦系統丨中,其例如為筆記型電 腦或桌上型電腦等,該電腦系統1至少包括一中央處理單 元 10( Central Processing Unit;以下將簡稱為 CPU)、 一北橋曰曰片11、一南橋晶片12、一靜態隨機存取記憶體 110( Static Random Access Memory;以下簡稱為 SRAM )、一動態隨機存取記憶體111( Dynamic Random Access Memory ;以下簡稱為DRAM)、一快取記憶體1 1 2 (以下簡 稱為cache) 、一 BIOS R0M1 20、一非易失性隨機存取記憶 體(Non-Volatile Random Access Memory;以下簡稱為 NVRAM)存取控制器12卜一 NVRAM1 22、一 I/O控制器以及 CMOS單元123、一鍵盤/滑鼠124以及一 VGA ( Video Graphics Array) 125。其中,該北橋晶片11主要負責與 該 CPU10、SRAM110、DRAM111 及 cachell2等記憶體進行資16854.ptd Page 6 1234111 V. Description of the invention (3) '' ~~-a "-forcomparison; if the two values are the same, the computer system does not need to load the BIOS program stored in the master into its boot The preset value is further used to execute the p0ST program according to the BWS program of the volatile memory; otherwise, if the two values are different, the configuration value of the BI 0s program obtained according to the main memory unit is stored in the non-volatile memory. The 'volatile memory' is used as a configuration value for comparison at the next boot process, and the boot preset value stored in the main memory is loaded into the non-volatile memory, and the computer system is based on The power-on preset value loaded into the non-volatile memory is used for the P 0s T program. [Detailed description of the preferred embodiment] Please refer to Figure 1 ', which is a block diagram showing the basic application architecture required for the loading method of the preset values of the present invention. As shown in the figure, the preset value loading method of the present invention is applicable to a computer system, such as a notebook computer or a desktop computer. The computer system 1 includes at least a central processing unit 10 (Central Processing Unit (hereinafter referred to as CPU), a North Bridge chip, a South Bridge chip, a Static Random Access Memory 110 (hereinafter referred to as SRAM), a Dynamic Random Access Memory 111 (Dynamic Random Access Memory; hereinafter referred to as DRAM), a cache memory 1 12 (hereinafter referred to as cache), a BIOS R0M1 20, a non-volatile random access memory (Non-Volatile Random Access Memory; Hereinafter referred to as NVRAM, the access controller 12 includes an NVRAM 1 22, an I / O controller and a CMOS unit 123, a keyboard / mouse 124, and a VGA (Video Graphics Array) 125. Among them, the Northbridge chip 11 is mainly responsible for cooperating with the CPU10, SRAM110, DRAM111 and cachell2 memory.

16854.ptd16854.ptd

1234111 五、發明說明(4) 料傳輸處理,以負責較高速的協調工作;而該南橋晶片1 2 主要負責與BIOS ROM120、NVRAM存取控制器12卜I/O控制 器以及CMOS單元123、VGA 12 5等周邊硬體裝置的訊號控 制,以負責較慢速的協調工作。由於上述各晶片、各記憶 體等皆為習於電腦技術者所熟知之單元,因此,在此將不 對其功能及内部架構作進一步詳細之說明,以下僅說明與 本發明相關之部分。 該NVRAM 1 2 2係一種可於中斷電源時仍能保存資料的隨 機存取記憶體’其用以儲存該電腦系統1之前次開機用之1234111 V. Description of the invention (4) Material transmission processing to be responsible for high-speed coordination work; and the south bridge chip 1 2 is mainly responsible for the BIOS ROM120, NVRAM access controller 12 I / O controller, and CMOS unit 123, VGA 12 5 and other peripheral hardware device signal control to take charge of slower coordination. Since the above chips, memories, etc. are all units familiar to computer technicians, their functions and internal architecture will not be described in further detail here. Only the parts related to the present invention will be described below. The NVRAM 1 2 2 is a kind of random access memory that can save data even when the power is interrupted. It is used to store the computer system 1 for the previous boot.

B I 0S程式的前B I 0S程式組態值n,而該B I 0S程式組態值N係 透過一轉換公式而來,該轉換公式係根據該次開機用之 B I 0 S程式之日期及版本進行編碼運算以產生一特定位數, 藉此將該求得的特定位數作為B I 〇s程式組態值n。在此舉The previous BI 0S program configuration value n of the BI 0S program, and the BI 0S program configuration value N is obtained through a conversion formula that is encoded according to the date and version of the BI 0 S program used for the startup. Operate to generate a specific number of digits, by which the obtained specific number of digits is used as the BI 0s program configuration value n. In this

一例子說明該B I 0 S程式組態值n的取得方式,由於B I 〇 $程 式一般均具有其版本日期,其係以jjjjjj/dd/yy表示,以及版 ^號碼,其係以Vn· ab表示,若本實施例設該BI〇s程式組 恶值N = f ( BIOS程式版本日期,BI〇^式版本)=i 〇χ 1 dd+ η+ (於 ίο) + ( μ 1〇〇),例如若 ΒΙ〇^ 式相關 貝訊包括 Compiled 1 1 / 2 9/ 99、* Version 5. 28時,即 M〇s 程式組態值 N = 10x 11+ 29+ 5+ (拉 1〇) + ( 8+ 1〇〇)= ^4=· 28,因此,一般而言,不同版本之M〇s程式間的bi〇s ;式組態謂難相@。在此須提出說明的是,該轉換公 $除以上述BIOS程式版本日期及BI〇s程式版本作為參數 ’亦可加入其他參數例如開機日期,亦即,該轉換公式An example shows how to obtain the configuration value n of the BI 0 S program. Because BI $ programs generally have their version date, it is represented by jjjjjj / dd / yy, and the version number, which is represented by Vn · ab If in this embodiment, the negative value of the BI0s program group is set to N = f (BIOS program version date, BI0 ^ version) = i 〇χ 1 dd + η + (in ίο) + (μ 1〇〇), for example If the ΒΙ〇 ^ -type related information includes Compiled 1 1/2 9/99, * Version 5. 28, that is, the configuration value of the M0s program N = 10x 11+ 29+ 5+ (pulling 1〇) + (8 + 1〇〇) = ^ 4 = · 28, therefore, in general, the bi os between different versions of the MOS program; type configuration is difficult. It should be noted here that the conversion public $ is divided by the above BIOS program version date and BI0s program version as parameters ’Other parameters such as the boot date, that is, the conversion formula

16854.ptd 第8頁 1234111 五、發明說明(5) ~ '~一一- 之餐數可根據所需之實施型態而定。 0,由本發明之預設值之載入方法,使該電腦裝置丄於 開機時,將由該南橋晶片12自BIOS ROM 120中讀取BI0S程 ^ ^進行系統自我測試工作(p〇wer — 〇ri Seif Test;以下 f ^為post),在此須提出說明的是,該p〇ST程序係一般 電腦系統所需執行的必要程序,因此在此將不為文贅述。 其中首先,由該電腦裝置i自該BI〇s R〇M12〇中讀取盆所儲 存之BIOS程式的BI〇s程式版本日期及βΙ〇^式版本,並根 據可求出& BIOS程式組態值N之轉換公式以求得目前的Bi〇s 矛。弋、、、心值N ,接著,以該求得的b I q $程式組態值n,與預 儲於該NVRAM1 22中的前BIOS程式組態值職行比較,若不 同,即表示目前開機用的BI0S程式版本已更新,並令BI〇s R〇M 120中所儲存的開機預設值自動儲存於NVRAM 122以及 I / 0控制器及C Μ 0 S單元1 2 3中。 如此,在該電腦裝置1判定BIOS程式更新時即可自動 載入開機預設值,而不需藉由人工方式以主機板上的開關 裝置或由BIOS程式所提供的設置功能(Setup)來進行開 機預設值之載入程序。 、接著,叫參閱第2 ( A)圖,其係顯示本發明之預設值 之載入方法所需執行的各流程步驟。如圖所示,若該電腦 衣置1開機後,將由該南橋晶片12自Bi〇s 中讀取 BI0^式並進行系統自我測試工作(Power-On Self lest,'^下簡稱為P0ST)以取得電腦系統1上相關的硬體 u ’其中該post程序係包括如步驟S1及步驟S2所示,其16854.ptd Page 8 1234111 V. Description of the invention (5) ~ '~ 一一-The number of meals can be determined according to the required implementation type. 0, by the loading method of the preset value of the present invention, when the computer device is turned on, the South Bridge chip 12 reads the BIOS program from the BIOS ROM 120 ^^ for system self-test work (p〇wer — 〇ri Seif Test; the following f ^ is the post), it must be stated here that the POST program is a necessary program to be executed by a general computer system, so it will not be described in detail here. First of all, the computer device i reads the BIOS version date and βΙ〇 ^ version of the BIOS program stored in the basin from the BI0s ROM12, and obtains the & BIOS program group according to The conversion formula of the state value N is used to obtain the current Bios spear.弋 ,,, heart value N, and then use the obtained b I q $ program configuration value n to compare with the pre-BIOS program configuration value pre-stored in the NVRAM1 22, if different, it means the current The version of the BIOS program for booting has been updated, and the boot presets stored in BI0s ROM 120 are automatically stored in NVRAM 122, I / 0 controller, and CMOS unit 1 2 3. In this way, when the computer device 1 determines that the BIOS program is updated, the boot default value can be automatically loaded, without the need to manually perform a switch device on the motherboard or a setup function provided by the BIOS program Load the default load procedure. Then, please refer to FIG. 2 (A), which shows each flow step required to be performed by the method for loading preset values of the present invention. As shown in the figure, if the computer clothing 1 is turned on, the South Bridge chip 12 will read the BI0 ^ formula from Bi0s and perform the system self-test (Power-On Self lest, hereinafter referred to as POST) to Obtain the relevant hardware u 'on the computer system 1, where the post program includes as shown in steps S1 and S2, which

16854.ptd 第9頁 1234111 五、發明說明(6) 中,進行該步驟S 1,由該電腦裝置1設定各晶片例如南、 北橋晶片(1 1、1 2)以及各控制器例如N V R A Μ存取控制 器、I /0控制器(1 2 1、1 23)等,以供該電腦系統1取得各 周邊硬體裝置之種類、機型及特性,接著進至該步驟S2。 於該步驟S2中,由該電腦裝置1設定各記憶體例如 S R A Μ、D R A Μ以及 cache( no、π!、112)等,以供該電腦 系統1取得各記憶體之儲存大小,接著進至步驟S 3。 於該步驟S 3中,係進行b 10 S程式組態值轉換處理,其 包括步驟S 3 0以及步驟S 3 1,首先進行該步驟S 3 0,電腦系 統1自BIOS ROM 1 2 0中取得目前開機用之BIOS程式的版本日 期以及版本,例如日期為丨1月2 9日,版本為5 · 2 8,接著進 至步驟S 3 1。 於該步驟S3 1中,透過於一預設之轉換公式(其可預 存於該B I 0 S R 0 Μ 1 2 0中以供該電腦系統1於進行B I 0 S程式組 態之取得處理)以根據於該步驟S 3 0中所取得的版本日期 以及版本進行目前Β I 0 S程式組態值Ν,之轉換,例如該Β I 〇 S 程式組恶值Ν之轉換公式為1 月部分+日部分+版本個 位數+ (版本小數點後第一位1 〇) + (版本小數點後第 二位+ 100),亦即,目前Bi〇s程式組態值Ν’ =1 Οχ 11+ 29 + 5+ ( 2+ 10) + ( 8+ loo) = 1 44. 28,接著進至步驟 S4° 於該步驟S4中,由該電腦系統1自NvRAM 1 22中取出上 次B I 0 S程式開機後所預存的前b I 〇 s程式組態值N (該組態 值之取得方式亦同理於上述步驟S30及該步驟S3 1,在此將16854.ptd Page 9 1234111 5. In the description of the invention (6), the step S 1 is performed, and the computer device 1 sets each chip such as the south and north bridge chips (1 1, 12) and each controller such as the NVRA memory. Take the controller, I / 0 controller (1 2 1, 1, 23), etc., for the computer system 1 to obtain the type, model and characteristics of each peripheral hardware device, and then proceed to step S2. In step S2, the computer device 1 sets each memory such as SRA M, DRA M, and cache (no, π !, 112), etc., for the computer system 1 to obtain the storage size of each memory, and then proceeds to Step S 3. In this step S 3, the b 10 S program configuration value conversion processing is performed, which includes steps S 3 0 and S 3 1. This step S 3 0 is performed first, and the computer system 1 is obtained from the BIOS ROM 1 2 0 The version date and version of the BIOS program currently used for booting. For example, the date is January 29th, the version is 5.28, and then proceed to step S31. In step S31, a preset conversion formula (which can be pre-stored in the BI 0 SR 0 Μ 1 2 0 for the computer system 1 to obtain the BI 0 S program configuration processing process) is performed according to The version date and version obtained in step S 30 are used to convert the current B I 0 S program configuration value N. For example, the conversion formula of the B I 0S program group evil value N is January part + day part. + Version digits + (the first digit after the decimal point of the version 1 〇) + (the second digit after the decimal point of the version + 100), that is, the current configuration value of the Bi0s program N ′ = 1 〇χ 11+ 29 + 5+ (2+ 10) + (8+ loo) = 1 44. 28, and then proceed to step S4 ° In this step S4, the computer system 1 takes out NvRAM 1 22 from NvRAM 1 22 after the last BI 0 S program is booted The pre-stored pre-b I 〇s program configuration value N (the configuration value is obtained in the same way as in step S30 and step S3 1 above, here

16854.ptd 第10頁 1234111 五、發明說明(7) 不為文贅述),接著進至步驟S5。 於該步驟S5中,由該電腦系統1判斷根據BIOS R0M1 20 内的B I 0 S程式所轉換的b I 〇 s程式組態值N ’是否與該 N V R Α Μ1 2 2所預存之前b I 〇 s程式組態值N相同,若兩值相 同,則進至步驟S 7 ;反之,則進至步驟S 6。 於該步驟S6中,由該電腦系統1建立一預設值載入旗 標,且將其值設為i並儲存於該NVRAM 122中,以及將該取 得的目前BIOS程式組態值Ν’儲存於該NVRAM 1 22中。如此, 當電糸統1讀取該預設值載入旗標之值為1時,即可判斷 出目前B I 0S程式已更新,因而需自動載入開機預設值 (default)以防止電腦系統1於運作過程中產生錯誤;再 者,將該取得的目前BIOS程式組態值N,儲存於該NVRAM122 中係用以供下次開機時,作為B I OS程式版本比對之用。 著進至步驟S 7。 ° 於或步驟S7中’當該電腦系統1於開機且對其Bi〇s程 式版本完成組態值轉換、比對等相關處理裎床/、 王 ^ π <後,亦即 繼續進行後續的POST程序。 接著’请參閱第2 ( B)圖,其係顯示於上述第 圖之步驟S 7更進一步的處理流程。如圖所干 + 1不 右该電腦车 統m該BIOS ROM120内的BI0S程式進行開機且根據二T = 程式的版本日期及版本完成組態值轉換以及比對 ^ 理程序之後’隨即進行步驟S 7 0,由該電腦系統、1自,關处 NVRAM 122中讀取該預設值載入旗標值是否為卜若& 進至步驟S 7 1 ;反之,則進至步驟s 7 2。 :、、、1 ’則16854.ptd Page 10 1234111 V. Description of the invention (7) (not to be described in detail), then proceed to step S5. In step S5, the computer system 1 determines whether the b I 〇s program configuration value N ′ converted according to the BI 0 S program in BIOS R0M1 20 is equal to the pre-stored b I 〇s of the NVR Α M1 2 2. The program configuration value N is the same. If the two values are the same, go to step S7; otherwise, go to step S6. In step S6, the computer system 1 creates a preset value loading flag, sets its value to i and stores it in the NVRAM 122, and stores the obtained current BIOS program configuration value N '. In the NVRAM 1 22. In this way, when the electronic system 1 reads the value of the preset load flag as 1, it can be judged that the current BI 0S program has been updated, so it is necessary to automatically load the boot default value (default) to prevent the computer system 1 An error occurred during the operation. Furthermore, the obtained current BIOS program configuration value N is stored in the NVRAM 122 for the next boot-up time and used as a comparison of the BI OS program version. Go to Step S7. ° In step S7, 'When the computer system 1 is turned on and the configuration value conversion, comparison and other related processing of the Bi0s program version are completed, the machine /, Wang ^ π < is continued. POST program. Next, please refer to FIG. 2 (B), which is a further processing flow shown in step S7 of the above-mentioned FIG. As shown in the figure, +1 does not right the computer system. The BI0S program in the BIOS ROM 120 is booted and the configuration value conversion and comparison are completed according to the two T = program version date and version. ^ After the process, the process proceeds to step S. 70. From the computer system, from 1 to 0, the NVRAM 122 reads whether the preset value loading flag value is Bu Ru & go to step S 7 1; otherwise, go to step s 7 2. : ,,, 1 ’

16854.ptd 第11頁 1234111 五、發明說明(8) 於該步驟S71中,由該電腦系統1將該BIOS ROM 1 20内 之BIOS程式所提供的BI〇s程式開機預設值(default)自 動載入於I/O控制器及CM〇S單元123以及NVRAM 12 2中,接著 進至步驟S 7 2。16854.ptd Page 11 1234111 V. Description of the invention (8) In step S71, the computer system 1 automatically sets the default value of the BI0s program provided by the BIOS program in the BIOS ROM 1 20 (default) automatically. It is loaded into the I / O controller and the CMOS unit 123 and the NVRAM 12 2, and then proceeds to step S 7 2.

於該步驟S72中,令該電腦系統1根據儲存於該於I/O 控制器及CMOS單元123以及NVRAMl 22中的開機預設值進行 POST程序。 藉由本發明之預設值之載入方法,不須額外的硬體成 本,僅需藉由該電腦系統i一般所現有的NVRAM 122來儲存 前次開機之B I 0S程式組態值,進而供該電腦系統1判定此 次開機用之BO I S程式之版本更新與否,以作為自動载入開 機預設值之依據。藉此提供使用者或測試人員一種可改善 人工載入開機預設值之不便以及可有效避免因人工载入易 於忽略而導致電腦系統運作不正常的開機預設值之载入方 法。 以上所述僅為本發明之較佳實施例,非用以限定本發 明之實質技術内容之範圍,例如,該B I 0 S程式組態值之轉 換公式並非僅限於以B I 0S程式之版本曰期或版本作為轉換 芩數,亦可加入其他具有識別B I 0S程式資訊的參數。本發 明之實質技術内容係廣義地定義於下述之申請專利範圍 中’任何他人所完成之技術實體或方法,若是與下述之申 請專利範圍所定義者完全相同,或是為同一等效之變更, 均將被視為涵蓋於此專利範圍之中。 ’In step S72, the computer system 1 is caused to perform a POST procedure according to the boot preset values stored in the I / O controller and the CMOS unit 123 and the NVRAMl 22. With the loading method of the preset value of the present invention, there is no additional hardware cost, and only the existing NVRAM 122 generally stored in the computer system i is used to store the BI 0S program configuration value of the previous boot, and then provide the Computer system 1 determines whether the version of the BO IS program used for the boot is updated or not as a basis for automatically loading the boot default value. This provides the user or tester with a loading method that can improve the inconvenience of manually loading the startup presets and can effectively avoid the abnormal startup of the computer system due to manual loading and easy to ignore. The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the essential technical content of the present invention. For example, the conversion formula of the configuration value of the BI 0 S program is not limited to the version of the BI 0S program. Or the version is used as the conversion unit, and other parameters with information identifying the BI 0S program can also be added. The essential technical content of the present invention is broadly defined in the scope of the patent application described below. 'Any other person's technical entity or method is the same as the one defined in the scope of the patent application described below, or is the same equivalent. Changes are deemed to be covered by this patent. ’

1234111 圖式簡單說明 【圖示之簡單說明】 以下,將以較佳實施例,配合所附圖式進一步詳細說 明本發明之特點及功效: 第1圖為一方塊圖,用以顯示本發明之預設值之載入 方法所需的基本應用架構方塊圖; 第2 ( A)圖為一流程圖,用以顯示本發明之預設值之 載入方法所需執行的各步驟流程;以及 第2 ( B)圖為一流程圖,用以顯示第2 ( A)圖之步驟 S 7更進一步的處理流程。 【元件符號說明】1234111 Brief description of the drawings [Simplified description of the drawings] In the following, the features and effects of the present invention will be further described in detail with preferred embodiments in conjunction with the attached drawings: Figure 1 is a block diagram showing the invention Block diagram of the basic application architecture required for the loading method of the preset value; FIG. 2 (A) is a flowchart showing the steps and processes required for the loading method of the preset value of the present invention; and Figure 2 (B) is a flowchart showing the further processing flow of step S7 in Figure 2 (A). [Description of component symbols]

I 電腦系統 10 CPUI Computer system 10 CPU

II 北橋晶片 12 南橋晶片 110 SRAM III DRAM 112 CacheII Northbridge chip 12 Southbridge chip 110 SRAM III DRAM 112 Cache

120 BIOS ROM 121 NVRAM存取控制器120 BIOS ROM 121 NVRAM access controller

122 NVRAM 123 I/O控制器以及CMOS單元 1 2 4 鍵盤/滑鼠122 NVRAM 123 I / O controller and CMOS unit 1 2 4 keyboard / mouse

125 VGA125 VGA

16854.ptd 第13頁16854.ptd Page 13

Claims (1)

1234111 六、申請專利範圍 1. 一種預設值之載入方法,其可讓一電腦系統以不同 B I 0S程式開機而將開機預設值自動載入的方法,該電 腦系統至少包括一用以儲存前次開機用之B I 0S程式的 前B I 0S程式組態值之第一記憶單元以及一用以儲存 B I 0S程式及開機預設值之第二記憶單元,該載入方法 係包含: 令該電腦系統自第二記憶單元中讀取B I 0S程式以 進行開機程序,且取出該B I 0S程式之相關資料;以及 令該電腦系統根據該取得的相關資料求出該B I 0S 程式組態值,且自該第一記憶單元中取出前B I 0S程式 組態值,並將該根據第二記憶單元之B I 0S程式而求得 的B I 0S程式組態值與前B I 0S程式組態值進行比較;若 兩值相同,則該電腦系統不須將第二記憶體所儲存的 B I 0S程式載入其開機預設值,進而根據該第一記憶體 之BIOS程式執行POST程序;反之,若兩值不同,則將 該根據第二記憶單元所求得的B I 0S程式組態值存於該 第一記憶單元中,以作為下次開機程序時的組態值比 較,且將該第二記憶體所儲存的開機預設值載入至第 一記憶單元中,並使該電腦系統根據載入於第一記憶 單元之開機預設值進行POST程序。 2. 如申請專利範圍第1項之預設值之載入方法,其中,該 相關資料至少包括B I 0S程式之版本及日期。 3. 如申請專利範圍第1項之預設值之載入方法,其中,由 該電腦系統於第二記憶單元中設定一預設值載入旗標1234111 VI. Scope of patent application 1. A method for loading a preset value, which allows a computer system to boot with different BI 0S programs and automatically load the boot preset value. The computer system includes at least one for storing The first memory unit of the previous BI 0S program configuration value of the previous BI 0S program used for the previous boot and a second memory unit for storing the BI 0S program and the boot default value. The loading method includes: making the computer The system reads the BI 0S program from the second memory unit for the boot process, and takes out the relevant data of the BI 0S program; and causes the computer system to obtain the BI 0S program configuration value based on the obtained relevant data, and The first BI 0S program configuration value is taken out from the first memory unit, and the BI 0S program configuration value obtained according to the BI 0S program of the second memory unit is compared with the previous BI 0S program configuration value; if two If the value is the same, the computer system does not need to load the BI 0S program stored in the second memory into its boot default value, and then execute the POST procedure according to the BIOS program of the first memory; otherwise, if the two values do not , The BI 0S program configuration value obtained according to the second memory unit is stored in the first memory unit as a comparison of the configuration value at the next startup procedure, and the second memory is stored The power-on preset value is loaded into the first memory unit, and the computer system performs a POST process according to the power-on preset value loaded in the first memory unit. 2. If the method of loading the default value of item 1 of the scope of patent application, the relevant information includes at least the version and date of the B I 0S program. 3. For example, the method for loading a preset value in the scope of patent application, wherein the computer system sets a preset value loading flag in the second memory unit. 16854.ptd 第14頁 1234111 六、申請專利範圍 ,以供該電腦系統作為於判定B I 0S程式更新後可否載 入開機預設值之依據。 4. 如申請專利範圍第3項之預設值之載入方法,其中,若 該由第二記憶單元而求得的B I 0S程式組態值以及與第 一記憶單元所儲存的前B I 0S程式組態值不同時,即由 該電腦系統設定該預設值載入旗標值為特定準位信號 ,以供該電腦系統於判定B I 0S程式更新後可載入開機 預設值之依據。 5. 如申請專利範圍第4項之預設值之載入方法,其中,若 該電腦系統將該預設值載入旗標值設為特定準位信號 時,將該第二記憶體所儲存的開機預設值載入至第一 記憶單元中,並使該電腦系統根據第一記憶單元之開 機預設值進行POST程序。 6. 如申請專利範圍第1項之預設值之載入方法,其中,該 特定準位信號係指高準位信號以及低準位信號其中之 —— 〇 7. 如申請專利範圍第1項之預設值之載入方法,其中,該 B I 0S程式組態值係透過一轉換公式取得。 8. 如申請專利範圍第7項之預設值之載入方法,其中,該 轉換公式係根據該B I 0S程式之相關資料進行編碼運算 以產生一特定位數,該求得的特定位數將作為該B I 0S 程式的BIOS程式組態值。 9. 如申請專利範圍第1項之預設值之載入方法,其中,該 第一記憶單元係指非易失性之記憶單元。16854.ptd Page 14 1234111 6. Scope of patent application for the computer system as a basis for determining whether the B I 0S program can be loaded with the default value after booting. 4. The method for loading the preset value of item 3 in the scope of patent application, wherein if the configuration value of the BI 0S program obtained from the second memory unit and the previous BI 0S program stored with the first memory unit When the configuration values are different, the computer system sets the preset value loading flag value as a specific level signal for the computer system to load the boot default value basis after determining that the BI 0S program is updated. 5. If the method of loading the preset value of item 4 of the scope of patent application, wherein if the computer system sets the preset value loading flag value to a specific level signal, the second memory is stored The boot-up preset value is loaded into the first memory unit, and the computer system performs a POST process according to the boot-up preset value of the first memory unit. 6. If the method of loading the preset value of item 1 of the scope of patent application, wherein the specific level signal refers to one of the high level signal and the low level signal-〇7. As the item 1 of the scope of patent application The default value loading method, wherein the BI 0S program configuration value is obtained through a conversion formula. 8. For the loading method of the preset value of item 7 in the scope of patent application, wherein the conversion formula is based on the relevant data of the BI 0S program to perform a coding operation to generate a specific number of bits, and the obtained specific number of bits will be As the BIOS program configuration value of the BI 0S program. 9. The method for loading a preset value according to item 1 of the scope of patent application, wherein the first memory unit refers to a non-volatile memory unit. 16854.ptd 第15頁 1234111 六、申請專利範圍 1 0 .如申請專利範圍第9項之預設值之載入方法,其中,該 非易失性之記憶單元係指N V R Α Μ ( Ν ο η - V ο 1 a t i 1 e R a n d 〇 m Access Memory) o 1 1.如申請專利範圍第1項之預設值之載入方法,其中,該 電腦系統為桌上型電腦及筆記型電腦其中任一種。16854.ptd Page 15 1234111 VI. Application scope of patent 10. For the method of loading the preset value of item 9 of the scope of patent application, wherein the non-volatile memory unit refers to NVR Α Μ (Ν ο η- V ο 1 ati 1 e R and 〇m Access Memory) o 1 1. The method for loading the default value of the first scope of the patent application, wherein the computer system is any one of a desktop computer and a notebook computer . 16854.ptd 第16頁16854.ptd Page 16
TW91121200A 2002-09-17 2002-09-17 Loading method for default values TWI234111B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW91121200A TWI234111B (en) 2002-09-17 2002-09-17 Loading method for default values

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW91121200A TWI234111B (en) 2002-09-17 2002-09-17 Loading method for default values

Publications (1)

Publication Number Publication Date
TWI234111B true TWI234111B (en) 2005-06-11

Family

ID=36592732

Family Applications (1)

Application Number Title Priority Date Filing Date
TW91121200A TWI234111B (en) 2002-09-17 2002-09-17 Loading method for default values

Country Status (1)

Country Link
TW (1) TWI234111B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI497415B (en) * 2013-06-21 2015-08-21 Wistron Neweb Corp Methods for upgrading firmware and apparatuses using the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI497415B (en) * 2013-06-21 2015-08-21 Wistron Neweb Corp Methods for upgrading firmware and apparatuses using the same

Similar Documents

Publication Publication Date Title
US6145068A (en) Data transfer to a non-volatile storage medium
US7739469B2 (en) Patching ROM code
US7908469B2 (en) Method for executing power on self test on a computer system and updating SMBIOS information partially
US20060242398A1 (en) Booting from non-volatile memory
TWI289752B (en) Method for saving the BIOS in CMOS memory into DMI section
US20070157015A1 (en) Methods and apparatus to optimize boot speed
US20110252225A1 (en) Computer system and bootup and shutdown method thereof
US20080040596A1 (en) Embedded system and boot code auto-copy method thereof
WO2023070823A1 (en) Bootloader loading method, apparatus and system, electronic device and medium
US6467038B1 (en) Method for supporting optical international language modules flashed into ROM
US9348603B2 (en) Electronic apparatus and booting method
US8006028B2 (en) Enabling memory module slots in a computing system after a repair action
US20070005952A1 (en) Boot-up method for computer system
US20040225874A1 (en) Method for reduced BIOS boot time
US6986035B2 (en) Modular bios for detecting resources of a system and reporting information about the resources during two separate phases
TWI234111B (en) Loading method for default values
TWI294098B (en) Fast boot method and system
JP2003196102A (en) Computer system
TWI245987B (en) Automatic error-detection voice device on motherboard
US7398384B2 (en) Methods and apparatus for acquiring expansion read only memory size information prior to operating system execution
EP2256625A1 (en) Electronic apparatus and booting method of the same
US8510605B2 (en) Computer system inspecting defective cell and control method thereof
TW201118714A (en) Hot swap method for DRAM
TW200428212A (en) Management unit and method of flash memory device
US20090106545A1 (en) Booting method for computer system

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees