TWI396972B - Method for preventing data loss of a bios chip - Google Patents
Method for preventing data loss of a bios chip Download PDFInfo
- Publication number
- TWI396972B TWI396972B TW95136399A TW95136399A TWI396972B TW I396972 B TWI396972 B TW I396972B TW 95136399 A TW95136399 A TW 95136399A TW 95136399 A TW95136399 A TW 95136399A TW I396972 B TWI396972 B TW I396972B
- Authority
- TW
- Taiwan
- Prior art keywords
- data
- area
- bios chip
- bios
- data area
- Prior art date
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Stored Programmes (AREA)
Description
本發明涉及一種防止晶片資料丟失之方法,尤指一種防止BIOS晶片資料丟失之方法。 The invention relates to a method for preventing loss of wafer data, in particular to a method for preventing data loss of a BIOS chip.
BIOS晶片是主機板上之一個重要晶片,因為BIOS包含一組例行程式,由它們來完成系統與外設之間之輸入輸出工作。BIOS還包含診斷程式和一些實用程式,比如每次啟動電腦時,都要調用BIOS之自檢程式,檢查電腦之主要部件以確保它們工作正常。 The BIOS chip is an important chip on the motherboard, because the BIOS contains a set of routines that perform input and output operations between the system and peripherals. The BIOS also includes diagnostics and utilities. For example, each time you start your computer, you must call the BIOS self-test to check the main components of the computer to make sure they are working properly.
如圖1所示之一BIOS晶片,包括一第一引導塊(Boot Block)1、一自檢代碼(Post Code)區2、一ESCD(Extended System Configuration Data,擴展系統配置資料)資料區3及一第二引導塊(Boot Block)4,該ESCD資料區3內存儲有電腦各硬體之SKU(Stock Keeping unit,庫存單元)、Serial Number(序列號)及UUID(Universal Unique Identifier,全球唯一標示符)等ESCD資料。電腦通電開機後,立即從BIOS晶片中讀取出指令代碼對系統硬體進行檢測,並依次從各個硬體上讀取相應硬體正常工作所需之系統資源資料等配置資訊,然後將所有之硬體配置資訊資料寫入BIOS晶片之ECSD資料區3內,在寫入資料之過程中,新資料將會覆蓋刷新ESCD資料區3內之原有資料,ESCD資料通常還被存儲至系統管理BIOS(SMBIOS)內(見圖2)。 A BIOS chip as shown in FIG. 1 includes a first boot block 1, a post code area 2, an ESCD (Extended System Configuration Data) data area 3, and A second boot block 4, the ESCD data area 3 stores a SKU (Stock Keeping unit), a Serial Number, and a UUID (Universal Unique Identifier) of the computer hardware. (etc) and other ESCD information. After the computer is powered on, immediately read the instruction code from the BIOS chip to detect the system hardware, and then read the configuration information of the system resource data required for the normal working of the hardware from each hardware, and then all the information. The hardware configuration information is written into the ECSD data area 3 of the BIOS chip. During the process of writing data, the new data will overwrite the original data in the ESCD data area 3. The ESCD data is usually stored in the system management BIOS. (SMBIOS) (see Figure 2).
在寫入資料之過程中,BIOS晶片內之擴展系統配置資料可能會因為意外斷 電、外接卡之插拔等隨機事件而丟失,導致電腦不能正常啟動及運行等嚴重後果。 In the process of writing data, the extended system configuration data in the BIOS chip may be accidentally broken. Loss of random events such as plugging and unplugging of external and external cards, resulting in serious consequences such as the failure of the computer to start and operate normally.
鑒於以上內容,有必要提供一種防止BIOS晶片資料丟失之方法。 In view of the above, it is necessary to provide a method for preventing data loss of the BIOS chip.
一種防止BIOS晶片資料丟失之方法,用於防止一包括資料區及引導區之BIOS晶片在寫入資料之過程中擴展系統配置資料丟失,包括以下步驟:預先將擴展系統配置資料存儲備份於該引導區內;讀取電腦所有硬體資訊;判斷該所有硬體資訊是否已經存在於BIOS晶片之資料區內;如果有尚未存儲於該BIOS晶片之資料區內之硬體資訊,則判斷該資料區內之資料是否被破壞;如果該資料區內之資料未被破壞,將該未存儲於該BIOS晶片之資料區內之硬體資訊寫入該BIOS晶片之資料區類內;及如果該資料區內之資料已經被破壞,則將存儲於該引導區內之擴展系統配置資料寫入該資料區以恢復該資料區內之擴展系統配置資料。 A method for preventing data loss of a BIOS chip for preventing a BIOS chip including a data area and a boot area from expanding system configuration data loss in the process of writing data, comprising the steps of: pre-storing the extended system configuration data storage in the boot In the area; reading all the hardware information of the computer; determining whether all the hardware information is already present in the data area of the BIOS chip; if there is hardware information not yet stored in the data area of the BIOS chip, determining the data area Whether the information in the data area is not destroyed; the hardware information not stored in the data area of the BIOS chip is written into the data area of the BIOS chip; and if the data area If the data in the area has been destroyed, the extended system configuration data stored in the boot area is written into the data area to restore the extended system configuration data in the data area.
本發明防止BIOS晶片資料丟失之方法利用備份擴展系統配置資料,在檢測到資料區之擴展系統配置資料被破壞時,將備份之資料及時存儲至該資料區,達到防止BIOS晶片資料丟失之目之,另外,在寫入資料之步驟之前,包括一個判斷步驟,因此僅將未存儲於該BIOS晶片之資料區內之硬體資訊寫入BIOS晶片內,不必按照傳統之方法將所有之硬體資訊寫入,從而減少了寫入之資料,降低了資料被破壞之機率,方法簡單有效,增強了BIOS晶片之資料安全性,且不需要做任何硬體上之修改。 The method for preventing BIOS chip data loss utilizes the backup expansion system configuration data, and when the extended system configuration data of the data area is detected to be destroyed, the backup data is stored in the data area in time to prevent the BIOS chip data from being lost. In addition, before the step of writing data, a judging step is included, so that only hardware information not stored in the data area of the BIOS chip is written into the BIOS chip, and all the hardware information is not required to be conventionally used. Write, which reduces the data written, reduces the probability of data corruption, the method is simple and effective, enhances the data security of the BIOS chip, and does not need to do any hardware modification.
1‧‧‧第一引導塊 1‧‧‧First boot block
2‧‧‧自檢代碼(Post Code)區 2‧‧‧Post Code area
3‧‧‧資料區 3‧‧‧Information area
4‧‧‧第二引導塊 4‧‧‧Second boot block
41‧‧‧備份區 41‧‧‧Backup area
圖1為習知技術BIOS晶片之結構示意圖。 FIG. 1 is a schematic structural diagram of a conventional BIOS chip.
圖2為習知技術BIOS檢測硬體及寫入硬體資訊之方法流程圖。 2 is a flow chart of a method for detecting hardware and writing hardware information by a conventional BIOS.
圖3為本發明較佳實施方式BIOS晶片之結構示意圖。 3 is a schematic structural view of a BIOS chip according to a preferred embodiment of the present invention.
圖4為本發明較佳實施方式防止BIOS晶片資料丟失之方法流程圖。 4 is a flow chart of a method for preventing data loss of a BIOS chip according to a preferred embodiment of the present invention.
請參閱圖3,本發明較佳實施方式BIOS晶片包括一第一引導塊(Boot Block)1、一自檢代碼(Post Code)區2、一ESCD資料區3及一第二引導塊(Boot Block)4,該ESCD資料區3內存儲擴展系統配置資料(即ESCD資料),該擴展系統配置資料是系統BIOS用來與作業系統交換硬體配置資訊之資料,該擴展系統配置資料包括庫存單元(SKU)、序列號(Serial Number)及全球唯一標示符(UUID)等擴展系統配置(ESCD)資料。該第一引導塊1、ESCD資料區3及第二引導塊4之存儲容量均為64千位元(64Kb),該第二引導塊4包括一1千位元(1Kb)之備份區41。該第一引導塊1及第二引導塊4之資料不會因為意外斷電而丟失,該ESCD資料區3之擴展系統配置資料可能會因為意外斷電而丟失(尤其在寫入資料時斷電資料可能丟失)。該備份區41用於將該SKU、Serial Number及全球唯一標示符(UUID)等擴展系統配置資料存儲備份。 Referring to FIG. 3, a BIOS chip of the preferred embodiment of the present invention includes a first boot block 1, a self-test code (Post Code) area 2, an ESCD data area 3, and a second boot block (Boot Block). 4, the ESCD data area 3 stores extended system configuration data (ie, ESCD data), the extended system configuration data is information used by the system BIOS to exchange hardware configuration information with the operating system, and the extended system configuration data includes an inventory unit ( Extended System Configuration (ESCD) data such as SKU), Serial Number, and Globally Unique Identifier (UUID). The storage capacities of the first boot block 1, the ESCD data area 3, and the second boot block 4 are all 64 kilobits (64 Kb), and the second boot block 4 includes a 1 kilobit (1 Kb) backup area 41. The data of the first boot block 1 and the second boot block 4 are not lost due to accidental power failure, and the extended system configuration data of the ESCD data area 3 may be lost due to unexpected power failure (especially when the data is written off) Information may be lost). The backup area 41 is used to store the extended system configuration data such as the SKU, the Serial Number, and the global unique identifier (UUID).
請參閱圖4,本發明較佳實施方式防止電腦之BIOS晶片資料丟失之方法包括以下步驟: Referring to FIG. 4, a method for preventing data loss of a BIOS chip of a computer according to a preferred embodiment of the present invention includes the following steps:
S01:預先將SKU、Serial Number及UUID等擴展系統配置資料存儲於該備份區41。 S01: The extended system configuration data such as the SKU, the Serial Number, and the UUID is stored in the backup area 41 in advance.
S02:按下電腦電源開關,在按下電源開關之瞬間,電源就立刻向主機板和其他設備供電,此時之電壓還不穩定,主機板控制晶片組會向CPU發出並保持一個重定(Reset)信號,讓CPU初始化。當電源開始穩定供電後,控制晶片組便撤去Reset信號,此時CPU立刻開始執行BIOS存放於FFFF0H處之一條 跳轉指令,跳到系統BIOS之啟動代碼處,系統BIOS之啟動代碼首先進行開機自檢(POST),POST之主要任務是檢測系統中之一些關鍵設備(如記憶體和顯示卡等)是否存在和能否正常工作。 S02: Press the computer power switch, the power will immediately supply power to the motherboard and other devices when the power switch is pressed. At this time, the voltage is still unstable, and the motherboard control chipset will send a reset to the CPU (Reset). ) Signal to let the CPU initialize. When the power supply starts to supply power stably, the control chipset removes the Reset signal, and the CPU immediately begins to execute one of the BIOS stores at FFFF0H. Jump instruction, jump to the boot code of the system BIOS, the system BIOS startup code first performs the power-on self-test (POST), the main task of POST is to detect the presence of some key devices (such as memory and display card) in the system. Can work properly.
S03:BIOS檢測電腦各硬體。在BIOS開機自檢之過程中,電腦顯示幕將顯示出一個系統配置列表,其中概略地列出了系統中已安裝之各種標準硬體設備,以及它們使用之資源和一些相關工作參數。 S03: The BIOS detects the hardware of the computer. During the BIOS power-on self-test, the computer display will show a list of system configurations that outline the various standard hardware devices installed in the system, along with the resources they use and some related operating parameters.
S04:讀取檢測到之硬體之資訊。 S04: Read the information of the detected hardware.
S05:判斷硬體資訊是否已經存在於BIOS晶片之ESCD資料區3內,一般而言,如果沒有硬體變動,則所有之硬體資訊都已經默認存儲於BIOS晶片之ESCD資料區3內,但是,如果有硬體變動(例如插設熱插拔設備後),就會讀到新硬體資訊。判斷之方法是將讀取之電腦硬體資訊與BIOS晶片之ESCD資料區3內存儲之資料對比。如果完全一致,則表示沒有新硬體資訊,不需要寫入資料;如果BIOS晶片之ESCD資料區3內沒有存儲讀取之硬體資訊(即發現新硬體資訊),則表示需要將新硬體資訊寫入該ESCD資料區3內。 S05: determining whether the hardware information is already present in the ESCD data area 3 of the BIOS chip. Generally speaking, if there is no hardware change, all the hardware information is stored in the ESCD data area 3 of the BIOS chip by default, but If there is a hardware change (such as after plugging in a hot-swappable device), new hardware information will be read. The method of judging is to compare the read computer hardware information with the data stored in the ESCD data area 3 of the BIOS chip. If they are completely consistent, it means that there is no new hardware information, no need to write data; if there is no hardware information stored in the ESCD data area 3 of the BIOS chip (that is, new hardware information is found), it means that it needs to be new hard. The body information is written into the ESCD data area 3.
S06:如果讀取之所有硬體資訊均已經存儲於BIOS晶片內(即沒有新硬體資訊),則讀取BIOS晶片ESCD資料區3之內容,並存儲至SMBIOS內以更新SMBIOS之內容。 S06: If all the hardware information read is already stored in the BIOS chip (ie, there is no new hardware information), the content of the ESCD data area 3 of the BIOS chip is read and stored in the SMBIOS to update the contents of the SMBIOS.
S07:如果發現有尚未存儲於BIOS晶片內的新硬體資訊,則判斷該ESCD資料區3內之擴展系統配置資料是否被破壞。判斷之具體步驟為檢查庫存單元資料是否還存在於該ESCD資料區3內;檢查序列號資料是否還存在於該ESCD資料區3內;及檢查全球唯一標示符是否還存在於該ESCD資料區3內;如果存在,表示擴展系統配置資料沒有被破壞;如果不存在,表示擴展系統配置資料被破壞。 S07: If it is found that there is new hardware information not yet stored in the BIOS chip, it is determined whether the extended system configuration data in the ESCD data area 3 is destroyed. The specific step of the judgment is to check whether the inventory unit data is still present in the ESCD data area 3; check whether the serial number data is still present in the ESCD data area 3; and check whether the global unique identifier still exists in the ESCD data area 3 If it exists, it means that the extended system configuration data is not destroyed; if it does not exist, it means that the extended system configuration data is destroyed.
S08:如果ESCD資料區3內之擴展系統配置資料沒有破壞,則將新的硬體資訊寫入該BIOS晶片之ESCD資料區3內,新硬體資訊寫完後,執行步驟S06,讀取該ESCD資料區3之內容,更新SMBIOS。 S08: If the extended system configuration data in the ESCD data area 3 is not damaged, the new hardware information is written into the ESCD data area 3 of the BIOS chip, and after the new hardware information is written, step S06 is performed to read the Update the SMBIOS with the contents of ESCD data area 3.
S09:如果ESCD資料區3內之擴展系統配置資料被破壞,則將該備份區41之備份資料寫入該ESCD資料區3內,該ESCD資料區3內之資料恢復後,再執行步驟S08,將新硬體資訊寫入該BIOS晶片之ESCD資料區3內。 S09: If the extended system configuration data in the ESCD data area 3 is destroyed, the backup data of the backup area 41 is written into the ESCD data area 3. After the data in the ESCD data area 3 is restored, step S08 is performed. New hardware information is written into the ESCD data area 3 of the BIOS chip.
綜上所述,本發明確已符合發明專利要求,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,舉凡熟悉本發明技藝之人士,爰依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下之申請專利範圍內。 In summary, the present invention has indeed met the requirements of the invention patent, and has filed a patent application according to law. However, the above description is only the preferred embodiment of the present invention, and equivalent modifications or variations made by those skilled in the art of the present invention should be included in the following claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW95136399A TWI396972B (en) | 2006-09-29 | 2006-09-29 | Method for preventing data loss of a bios chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW95136399A TWI396972B (en) | 2006-09-29 | 2006-09-29 | Method for preventing data loss of a bios chip |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200815983A TW200815983A (en) | 2008-04-01 |
TWI396972B true TWI396972B (en) | 2013-05-21 |
Family
ID=44768973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW95136399A TWI396972B (en) | 2006-09-29 | 2006-09-29 | Method for preventing data loss of a bios chip |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI396972B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5956749A (en) * | 1996-05-30 | 1999-09-21 | Nec Corporation | Data back-up system using nonvolatile read/write memory |
TW462025B (en) * | 1999-06-23 | 2001-11-01 | Micro Star Int Co Ltd | BIOS virus protection method |
US20020166059A1 (en) * | 2001-05-01 | 2002-11-07 | Rickey Albert E. | Methods and apparatus for protecting against viruses on partitionable media |
US20030088728A1 (en) * | 1998-04-30 | 2003-05-08 | Piwonka Mark A. | Method for flashing ESCD and variables into a ROM |
US6622243B1 (en) * | 1999-11-19 | 2003-09-16 | Intel Corporation | Method for securing CMOS configuration information in non-volatile memory |
US20040111633A1 (en) * | 2002-12-04 | 2004-06-10 | Jeom-Jin Chang | Method for BIOS security of computer system |
US6894918B2 (en) * | 2002-07-15 | 2005-05-17 | Hewlett-Packard Development Company, L.P. | Shared volatile and non-volatile memory |
-
2006
- 2006-09-29 TW TW95136399A patent/TWI396972B/en not_active IP Right Cessation
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5956749A (en) * | 1996-05-30 | 1999-09-21 | Nec Corporation | Data back-up system using nonvolatile read/write memory |
US20030088728A1 (en) * | 1998-04-30 | 2003-05-08 | Piwonka Mark A. | Method for flashing ESCD and variables into a ROM |
TW462025B (en) * | 1999-06-23 | 2001-11-01 | Micro Star Int Co Ltd | BIOS virus protection method |
US6622243B1 (en) * | 1999-11-19 | 2003-09-16 | Intel Corporation | Method for securing CMOS configuration information in non-volatile memory |
US20020166059A1 (en) * | 2001-05-01 | 2002-11-07 | Rickey Albert E. | Methods and apparatus for protecting against viruses on partitionable media |
US6894918B2 (en) * | 2002-07-15 | 2005-05-17 | Hewlett-Packard Development Company, L.P. | Shared volatile and non-volatile memory |
US20040111633A1 (en) * | 2002-12-04 | 2004-06-10 | Jeom-Jin Chang | Method for BIOS security of computer system |
Also Published As
Publication number | Publication date |
---|---|
TW200815983A (en) | 2008-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10223034B2 (en) | Block storage using a hybrid memory device | |
US8417992B2 (en) | Method, system and article of manufacture for system recovery | |
US6807630B2 (en) | Method for fast reinitialization wherein a saved system image of an operating system is transferred into a primary memory from a secondary memory | |
CN103119554B (en) | The memory logic that platform is irrelevant is provided | |
CN107003864B (en) | Recovering system-on-chip devices | |
US20120110378A1 (en) | Firmware recovery system and method of baseboard management controller of computing device | |
US6944789B2 (en) | Method and apparatus for data backup and recovery | |
US20060224874A1 (en) | Method for updating system management basic input output system (SMBIOS) data | |
KR20100110652A (en) | Memory apparatus and method for updating firmware of the memory apparatus | |
TW201520895A (en) | System and method for automatically recovering BIOS of a computer | |
US20030145191A1 (en) | Computer system and method of controlling the same | |
US20090013167A1 (en) | Computer device, method for booting the same, and booting module for the same | |
CN101140535A (en) | Method for preventing BIOS chip data from missing | |
CN105786545B (en) | Breakpoint recovery method and system based on heterogeneous hybrid memory | |
US5960195A (en) | Intelligent volatile memory initialization | |
US20060168440A1 (en) | OS selection methods and computer systems utilizing the same | |
US11740969B2 (en) | Detecting and recovering a corrupted non-volatile random-access memory | |
KR101582919B1 (en) | Electronic apparatus and booting method of the same | |
TWI396972B (en) | Method for preventing data loss of a bios chip | |
TW201349114A (en) | Firmware management method and system for embedded controller | |
US10838737B1 (en) | Restoration of memory content to restore machine state | |
US7337368B2 (en) | System and method for shutdown memory testing | |
US20070016761A1 (en) | Method, apparatus, and computer program product for implementing enhanced system behavior control | |
KR100697086B1 (en) | Mobile communication terminal enable to backup and its operating method | |
US10592329B2 (en) | Method and electronic device for continuing executing procedure being aborted from physical address where error occurs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |