TWI556172B - Computer and booting method thereof - Google Patents

Computer and booting method thereof Download PDF

Info

Publication number
TWI556172B
TWI556172B TW104129439A TW104129439A TWI556172B TW I556172 B TWI556172 B TW I556172B TW 104129439 A TW104129439 A TW 104129439A TW 104129439 A TW104129439 A TW 104129439A TW I556172 B TWI556172 B TW I556172B
Authority
TW
Taiwan
Prior art keywords
code
main
backup
processor
sec
Prior art date
Application number
TW104129439A
Other languages
Chinese (zh)
Other versions
TW201710888A (en
Inventor
陳威志
Original Assignee
神雲科技股份有限公司
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 神雲科技股份有限公司 filed Critical 神雲科技股份有限公司
Priority to TW104129439A priority Critical patent/TWI556172B/en
Application granted granted Critical
Publication of TWI556172B publication Critical patent/TWI556172B/en
Publication of TW201710888A publication Critical patent/TW201710888A/en

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Stored Programmes (AREA)

Description

電腦裝置及其開機方法Computer device and booting method thereof

本發明是關於一種電腦裝置及其開機方法,特別是關於具有通用可延伸式韌體介面基本輸入輸出系統(Unified Extensible Firmware Interface Basic Input/Output System;UEFI BIOS)的電腦裝置及其開機方法。The present invention relates to a computer device and a booting method thereof, and more particularly to a computer device having a Universal Extensible Firmware Interface Basic Input/Output System (UEFI BIOS) and a booting method thereof.

BIOS在電腦裝置的開機過程中扮演極為關鍵的角色,一般來說,BIOS燒錄於電腦裝置的主機板上的唯讀記憶體(Read Only Memory;ROM)中,用以作為硬體與作業系統(Operating Sysyem;OS)之間相互溝通的橋樑,在使用者按下電腦系統的開機電源之後,BIOS會對電腦裝置的硬體依序進行初始化設定和測試,舉例來說,BIOS將中央處理器的晶片組、主機板及記憶體依序初始化,並確定前述初始化皆正確,並且,BIOS亦協助啟動作業系統來實現開機程序。The BIOS plays a very important role in the booting process of the computer device. Generally, the BIOS is burned in the read only memory (ROM) on the motherboard of the computer device, and is used as a hardware and operating system. (Operating Sysyem; OS) bridges between each other. After the user presses the power of the computer system, the BIOS initializes and tests the hardware of the computer device. For example, the BIOS will be the central processor. The chipset, the motherboard and the memory are sequentially initialized, and it is determined that the foregoing initialization is correct, and the BIOS also assists in starting the operating system to implement the booting process.

然而,BIOS可能受病毒侵害導致BIOS毀損而不完整,BIOS也可能因電腦裝置在更新BIOS未完成時被關閉電源而導致BIOS毀損,倘若BIOS毀損將會導致電腦裝置無法順利運作,因此,為避免前述情形發生,習知的技術係利用多個記憶體來存放多個BIOS,也就是說,除了原先用來開機的主要BIOS之外,還儲存有備份BIOS,當主要BIOS毀損時,電腦系統即執行備份BIOS來順利開機。However, the BIOS may be damaged by viruses and the BIOS may be damaged. The BIOS may also cause the BIOS to be damaged due to the computer device being powered off when the BIOS is not updated. If the BIOS is damaged, the computer device will not operate smoothly. Therefore, to avoid The above situation occurs. The conventional technology uses multiple memories to store multiple BIOSes. That is to say, in addition to the main BIOS used to boot, a backup BIOS is also stored. When the main BIOS is damaged, the computer system is Perform a backup BIOS to boot up smoothly.

儲存備用BIOS雖可解決BIOS毀損無法開機的問題,但使用額外的唯讀記憶體會導致硬體成本上升,再者,若備份BIOS也毀損時,電腦系統亦無法執行備份BIOS來完成開機程序,若增加更多的備份BIOS來確保全部備份BIOS不會同時毀損,使用多個唯讀記憶體將導致硬體成本大幅上升。Although the storage of the backup BIOS can solve the problem that the BIOS cannot be booted, the use of additional read-only memory will increase the hardware cost. In addition, if the backup BIOS is also damaged, the computer system cannot perform the backup BIOS to complete the boot process. Add more backup BIOS to ensure that all backup BIOSes are not corrupted at the same time. Using multiple read-only memory will result in a significant increase in hardware costs.

有鑑於此,本發明提供一種電腦裝置及其開機方法。In view of this, the present invention provides a computer device and a booting method thereof.

在一實施例中,電腦裝置包含記憶體及處理器。記憶體,包含第一位址空間與第二位址空間,第一位址空間儲存唯讀之備份BIOS,備份BIOS包含備份SEC程式碼,第二位址空間儲存主BIOS,主BIOS包含主SEC程式碼。處理器電性連接於記憶體,處理器自第一位址空間讀取備份SEC程式碼後,處理器自第二位址空間讀取主SEC程式碼,且處理器加總主SEC程式碼以判斷主SEC程式碼是否錯誤,若主SEC程式碼錯誤,處理器執行備份BIOS。In an embodiment, the computer device includes a memory and a processor. The memory includes a first address space and a second address space. The first address space stores a read-only backup BIOS, the backup BIOS includes a backup SEC code, the second address space stores a main BIOS, and the main BIOS includes a main SEC. Code. The processor is electrically connected to the memory. After the processor reads the backup SEC code from the first address space, the processor reads the main SEC code from the second address space, and the processor adds the main SEC code. Determine whether the main SEC code is wrong. If the main SEC code is wrong, the processor executes the backup BIOS.

在一實施例中,其中備份SEC程式碼包含跳躍指令,主BIOS更包含一主PEI程式碼,處理器讀取備份SEC程式碼之跳躍指令後,處理器根據跳躍指令由第一位址空間轉址至第二位址空間讀取主SEC程式碼及主PEI程式碼,處理器加總主SEC程式碼並產生一總和,且處理器加總主PEI程式碼並產生另一總和,處理器比較此些總和與預設總和以判斷主SEC程式碼與主PEI程式碼是否錯誤,若主SEC程式碼與主PEI程式碼任一者錯誤,處理器執行備份SEC程式碼。In an embodiment, the backup SEC code includes a jump instruction, and the main BIOS further includes a main PEI code. After the processor reads the jump instruction of the backup SEC code, the processor transfers from the first address space according to the jump instruction. The address to the second address space reads the main SEC code and the main PEI code, the processor adds the main SEC code and generates a sum, and the processor adds the main PEI code and generates another sum, the processor compares The sum is combined with the preset to determine whether the main SEC code and the main PEI code are incorrect. If any of the main SEC code and the main PEI code is wrong, the processor executes the backup SEC code.

在一實施例中,其中備份BIOS更包含備份PEI程式碼與備份DXE程式碼,若主SEC程式碼與主PEI程式碼任一者錯誤,處理器執行備份SEC程式碼、備份PEI程式碼與備份DXE程式碼。In an embodiment, the backup BIOS further includes a backup PEI code and a backup DXE code. If any of the main SEC code and the main PEI code is wrong, the processor performs backup SEC code, backup PEI code and backup. DXE code.

在一實施例中,前述主BIOS為可寫入,記憶體接收寫入保護訊號,使主BIOS根據寫入保護訊號由可寫入轉換為唯讀。In an embodiment, the main BIOS is writable, and the memory receives the write protection signal, so that the main BIOS converts from writable to read-only according to the write protection signal.

在一實施例中,電腦裝置的開機方法包含處理器自記憶體之第一位址空間讀取備份BIOS之備份SEC程式碼,且備份BIOS為唯讀、處理器自記憶體之第二位址空間讀取主BIOS之主SEC程式碼、處理器加總主SEC程式碼以判斷主SEC程式碼是否錯誤、以及若主SEC程式碼錯誤,處理器執行備份BIOS。In an embodiment, the booting method of the computer device includes the processor reading the backup SEC code of the backup BIOS from the first address space of the memory, and the backup BIOS is read-only, and the second address of the processor is from the memory. The space reads the main SEC code of the main BIOS, the processor adds the main SEC code to determine whether the main SEC code is wrong, and if the main SEC code is wrong, the processor executes the backup BIOS.

在一實施例中,備份SEC程式碼包含跳躍指令,主BIOS更包含主PEI程式碼,前述開機方法更包含,於處理器讀取備份SEC程式碼後,處理器根據跳躍指令自第一位址空間轉址至第二位址空間,於處理器讀取主SEC程式碼後,處理器自第二位址空間讀取主PEI程式碼,於處理器加總主SEC程式碼後,處理器加總主PEI程式碼以判斷主PEI程式碼是否錯誤,若主SEC程式碼與主PEI程式碼任一者錯誤,處理器執行備份BIOS之備份SEC程式碼。In an embodiment, the backup SEC code includes a jump instruction, and the main BIOS further includes a main PEI code. The booting method further includes: after the processor reads the backup SEC code, the processor is based on the jump instruction from the first address. The space is transferred to the second address space. After the processor reads the main SEC code, the processor reads the main PEI code from the second address space, and after the processor adds the main SEC code, the processor adds The main PEI code determines whether the main PEI code is wrong. If any of the main SEC code and the main PEI code is wrong, the processor executes the backup BIOS SEC code.

在一實施例中,前述主BIOS為可寫入,於記憶體接收寫入保護訊號後,主BIOS根據寫入保護訊號由可寫入轉換為唯讀。In one embodiment, the main BIOS is writable, and after the memory receives the write protection signal, the main BIOS converts from writable to read-only according to the write protection signal.

在一實施例中,備份BIOS更包含一備份PEI程式碼與一備份DXE程式碼,若主SEC程式碼與主PEI程式碼任一者錯誤,處理器執行備份SEC程式碼、備份PEI程式碼與備份DXE程式碼。In an embodiment, the backup BIOS further includes a backup PEI code and a backup DXE code. If any of the main SEC code and the main PEI code is incorrect, the processor executes the backup SEC code and backs up the PEI code. Back up the DXE code.

綜上所述,根據本發明之電腦裝置係由一個記憶體中的不同位址空間同時儲存BIOS與備份BIOS,且在BIOS毀損時,電腦裝置可透過執行備份BIOS而成功開機,並且,備份BIOS為唯讀,如此一來,至少備份BIOS不可能因毀損而導致電腦裝置無法開機,且電腦裝置使用一記憶體而降低硬體成本。In summary, the computer device according to the present invention simultaneously stores the BIOS and the backup BIOS from different address spaces in one memory, and when the BIOS is damaged, the computer device can be successfully booted by executing the backup BIOS, and the BIOS is backed up. For read-only, at least the backup BIOS cannot cause the computer device to fail to boot due to damage, and the computer device uses a memory to reduce the hardware cost.

請參閱第1圖,為根據本發明之電腦裝置之一實施例之方塊示意圖,揭露一電腦裝置1。電腦裝置1包含處理器11及記憶體12。Please refer to FIG. 1 , which is a block diagram of an embodiment of a computer device according to the present invention, illustrating a computer device 1 . The computer device 1 includes a processor 11 and a memory 12.

在本實施例中,電腦裝置1可為個人電腦、平板電腦或手機。本實施例之記憶體12為唯讀記憶體(Read-only memory;ROM)而可為序列介面(Serial Peripheral Interface;SPI)快閃式記憶體、可規化唯讀記憶體(PROM)或電可擦可規化唯讀記憶體(EEPROM)。處理器11可為嵌入式控制器(Embedded controller)、微處理器(Microprocessor)、I/O控制器(I/O controller)或任何具有類似功能的元件。In this embodiment, the computer device 1 can be a personal computer, a tablet computer or a mobile phone. The memory 12 of this embodiment is a read-only memory (ROM) and can be a serial interface (SPI) flash memory, a programmable read-only memory (PROM) or a battery. Erasable programmable read-only memory (EEPROM). The processor 11 can be an embedded controller, a microprocessor, an I/O controller, or any component having similar functions.

以記憶體12之位址空間來看,記憶體12被規劃為至少包含兩個位址空間(為方便描述,以下稱之為第一位址空間與第二位址空間),第一位址空間與第二位址空間分別用以儲存備份BIOS121及主BIOS120。於此,處理器11電性連接於記憶體12,處理器11可執行記憶體12中所儲存之備份BIOS121及主BIOS120來完成電腦裝置1的開機程序,主BIOS120之程式碼若未毀損,處理器11執行主BIOS120來完成開機程序,倘若主BIOS120之程式碼毀損,處理器11可執行備份BIOS121來完成開機程序。In terms of the address space of the memory 12, the memory 12 is planned to contain at least two address spaces (for convenience of description, hereinafter referred to as a first address space and a second address space), the first address The space and the second address space are respectively used to store the backup BIOS 121 and the main BIOS 120. Here, the processor 11 is electrically connected to the memory 12, and the processor 11 can execute the backup BIOS 121 and the main BIOS 120 stored in the memory 12 to complete the booting process of the computer device 1. If the program code of the main BIOS 120 is not damaged, the processing is performed. The processor 11 executes the main BIOS 120 to complete the booting process. If the program code of the main BIOS 120 is corrupted, the processor 11 can execute the backup BIOS 121 to complete the booting process.

於此,備份BIOS121之程式碼係作為主BIOS120之程式碼的備份,在電腦裝置1出廠時,記憶體12中所儲存的主BIOS120之程式碼與備份BIOS121之程式碼因經出廠設定而相同,倘若電腦裝置1之使用者自行變更主BIOS120之出廠設定或是使用者將出廠後的主BIOS120進行版本更新後,主BIOS120之程式碼與備份BIOS121之程式碼會不相同,即便主BIOS120與備份BIOS120不相同,當主BIOS120毀損時,使用者還是可依照出廠設定之備份BIOS121將電腦裝置1順利開機。Here, the code of the backup BIOS 121 is used as a backup of the code of the main BIOS 120. When the computer device 1 is shipped from the factory, the code of the main BIOS 120 stored in the memory 12 and the code of the backup BIOS 121 are the same as the factory settings. If the user of the computer device 1 changes the factory setting of the main BIOS 120 or the user updates the factory BIOS 120 after the factory, the code of the main BIOS 120 and the backup BIOS 121 will be different, even if the main BIOS 120 and the backup BIOS 120 Differently, when the main BIOS 120 is damaged, the user can smoothly turn on the computer device 1 according to the factory-set backup BIOS 121.

然而,為避免備份BIOS121毀損而導致當主BIOS120毀損時,處理器11無法執行備份BIOS121來完成開機程序,記憶體12包含寫入保護端(圖未示)而具有寫入保護功能,記憶體12可根據寫入保護端接收之訊號來設定儲存於其部分位址空間中的資料為唯讀。舉例而言,以記憶體12的位址空間位於0x000000~0xFFFFFF之範圍為例,且儲存於記憶體12的總位址空間中的二分之一之位址空間(即,0x000000~0x7FFFFF或0x800000~0xFFFFFF)中的資料可被設定為唯讀,在此的字首“0x”意指16進制的常數,故可將位址空間0x000000~0x7FFFFF規畫為第一位址空間,如此一來,備份BIOS121可被設定為唯讀,也就是說,電腦裝置1的使用者無法藉由更新備份BIOS121或更改備份BIOS121的原設定來改變備份BIOS121,且備份BIOS121亦不因受病毒侵害而毀損。However, in order to prevent the backup BIOS 121 from being damaged, when the main BIOS 120 is damaged, the processor 11 cannot execute the backup BIOS 121 to complete the booting process, and the memory 12 includes a write protection terminal (not shown) and has a write protection function, and the memory 12 The data stored in part of the address space can be set to be read-only according to the signal received by the write protection terminal. For example, the address space of the memory 12 is in the range of 0x000000 to 0xFFFFFF, and is stored in one-half of the address space in the total address space of the memory 12 (ie, 0x000000~0x7FFFFF or 0x800000). The data in ~0xFFFFFF) can be set to read-only. The prefix "0x" here means the constant of hexadecimal, so the address space 0x000000~0x7FFFFF can be mapped to the first address space, so that The backup BIOS 121 can be set to read only, that is, the user of the computer device 1 cannot change the backup BIOS 121 by updating the backup BIOS 121 or changing the original settings of the backup BIOS 121, and the backup BIOS 121 is not damaged by viruses.

在實作上,處理器11產生寫入保護訊號來開啟記憶體12的寫入保護功能,藉由通用型輸出輸入裝置(General purpose I/O;GPIO)電性連接於處理器11與記憶體12之間,以韌體控制處理器11來產生寫入保護訊號,且處理器11將寫入保護訊號傳送至記憶體12之寫入保護端。寫入保護訊號係根據記憶體12之寫入保護功能的邏輯觸發準位來產生,舉例來說,若寫入保護功能為低準位觸發(active low),處理器11即產生邏輯「0」之寫入保護訊號。In practice, the processor 11 generates a write protection signal to turn on the write protection function of the memory 12, and is electrically connected to the processor 11 and the memory by a general purpose output input device (General Purpose I/O; GPIO). Between 12, the firmware control processor 11 generates a write protection signal, and the processor 11 transfers the write protection signal to the write protection end of the memory 12. The write protection signal is generated according to the logic trigger level of the write protection function of the memory 12. For example, if the write protection function is active low, the processor 11 generates a logic "0". Write the protection signal.

本實施例之記憶體12中可被設定為唯讀的部分位址空間係以總位址空間的二分之一為例,然而本發明並不限於此,根據記憶體12的規格(specification),部分位址空間亦可為四分之一、八分之一或是位址空間中任意指定的範圍間。The partial address space that can be set as read-only in the memory 12 of the present embodiment is exemplified by one-half of the total address space, but the present invention is not limited thereto, according to the specification of the memory 12. The partial address space may also be one quarter, one eighth, or any range specified in the address space.

在本實施例中,記憶體12之第一位址空間與第二位址空間中更分別儲存有微控制碼(Microcode)1204、1214,電腦裝置1之設計者可透過設計微控制碼1204、1214以經由韌體來控制處理器11。In this embodiment, the micro-control code (Microcode) 1204 and 1214 are respectively stored in the first address space and the second address space of the memory 12. The designer of the computer device 1 can design the micro control code 1204. 1214 controls the processor 11 via firmware.

主BIOS120與備份BIOS121係屬於UEFI BIOS,UEFI BIOS之開機程序可分為第一開機階段與第二開機階段,第一開機階段包含安全性(Security;SEC)開機階段與前EFI(Pre-EFI;PEI)開機階段,第二開機階段包含PEI開機階段後的開機階段,例如:驅動程式執行環境(Driver Execution Environment;DXE)開機階段與啟動裝置選擇(Boot Device Selection;BDS)開機階段。The main BIOS 120 and the backup BIOS 121 belong to the UEFI BIOS. The UEFI BIOS boot process can be divided into a first boot phase and a second boot phase. The first boot phase includes a security (SEC) boot phase and a pre-EFI (Pre-EFI; PEI) In the boot phase, the second boot phase includes the boot phase after the PEI boot phase, such as the Driver Execution Environment (DXE) boot phase and the Boot Device Selection (BDS) boot phase.

於此,主BIOS120包含主SEC程式碼1201、主PEI程式碼1202及主DXE程式碼1203,備份BIOS121包含備份SEC程式碼1211、備份PEI程式碼1212及備份DXE程式碼1213。處理器11可執行主SEC程式碼1201或備份SEC程式碼1211來完成SEC開機階段,且處理器11可執行主PEI程式碼1202或備份PEI程式碼1212完成PEI開機階段以完成第一開機階段,處理器11可執行主DXE程式碼1203或備份DXE程式碼1213以執行第二開機階段。Here, the main BIOS 120 includes a main SEC code 1201, a main PEI code 1202, and a main DXE code 1203. The backup BIOS 121 includes a backup SEC code 1211, a backup PEI code 1212, and a backup DXE code 1213. The processor 11 can execute the main SEC code 1201 or the backup SEC code 1211 to complete the SEC boot phase, and the processor 11 can execute the main PEI code 1202 or the backup PEI code 1212 to complete the PEI boot phase to complete the first boot phase. The processor 11 can execute the main DXE code 1203 or the backup DXE code 1213 to perform the second boot phase.

電腦裝置1通電後,為避免主BIOS120毀損而無法完成開機程序,處理器11由記憶體12的第一位址空間中儲存備份SEC程式碼1211之位址讀取備份SEC程式碼1211來開始執行SEC開機階段。備份SEC程式碼1211中包含跳躍指令(jump),在處理器11讀取備份SEC程式碼1211後,處理器11根據跳躍指令中位址偏移之資訊由第一位址空間轉址至第二位址空間來讀取主SEC程式碼1201並判斷主SEC程式碼1201是否錯誤,在處理器11讀取備份SEC程式碼1211後,處理器11亦讀取主PEI程式碼1202並判斷主PEI程式碼1202是否錯誤。After the computer device 1 is powered on, the booting process cannot be completed to prevent the main BIOS 120 from being damaged. The processor 11 reads the backup SEC code 1211 from the address of the backup SEC code 1211 in the first address space of the memory 12 to start execution. SEC boot phase. The backup SEC code 1211 includes a jump instruction. After the processor 11 reads the backup SEC code 1211, the processor 11 transfers the address from the first address space to the second according to the information of the address offset in the jump instruction. The address space reads the main SEC code 1201 and determines whether the main SEC code 1201 is wrong. After the processor 11 reads the backup SEC code 1211, the processor 11 also reads the main PEI code 1202 and determines the main PEI program. Is the code 1202 wrong?

處理器11藉由進行總和檢查(checksum)來判斷主SEC程式碼1201與主PEI程式碼1202是否錯誤,也就是說,處理器11加總主SEC程式碼1201與主PEI程式碼1202中的韌體檔案系統(Firmware file system;FFS)的位元組以分別產生兩總和,處理器11分別將兩總和與預設總和相比較以檢驗主SEC程式碼1201與主PEI程式碼1202是否錯誤。The processor 11 determines whether the main SEC code 1201 and the main PEI code 1202 are incorrect by performing a checksum. That is, the processor 11 adds the total SEC code 1201 and the main PEI code 1202 to the toughness. The bytes of the firmware file system (FFS) respectively generate two sums, and the processor 11 compares the two sums with the preset sum to check whether the main SEC code 1201 and the main PEI code 1202 are wrong.

在實作上,可以韌體控制處理器11執行總和檢查且控制處理器11將兩總和與預設總和進行比對,預設總和可預先寫入韌體中,處理器11即時將兩總和與預設總和進行比對,若處理器11判斷兩總和與預設總和相等則表示主SEC程式碼1201與主PEI程式碼1202不具錯誤,若處理器11判斷兩總和中之任一者與預設總和不相等則表示主SEC程式碼1201或主PEI程式碼1202錯誤。舉例來說,假設預設總和為1,處理器11分別加總主SEC程式碼1201與主PEI程式碼1202並分別產生第一總和與第二總和,若第一總和及第二總和為0則表示主SEC程式碼1201與主PEI程式碼1202錯誤,反之,若第一總和及第二總和為1則表示主SEC程式碼1201與主PEI程式碼1202不具有錯誤。In practice, the firmware control processor 11 can perform a sum check and the control processor 11 compares the two sums with a preset sum. The preset sum can be pre-written in the firmware, and the processor 11 instantly combines the two sums. The preset sum is compared. If the processor 11 determines that the two sums are equal to the preset sum, it indicates that the main SEC code 1201 and the main PEI code 1202 have no errors, and if the processor 11 determines either of the two sums and the preset If the sums are not equal, it indicates that the main SEC code 1201 or the main PEI code 1202 is incorrect. For example, assuming that the preset sum is 1, the processor 11 adds the main SEC code 1201 and the main PEI code 1202, respectively, and generates a first sum and a second sum, respectively, if the first sum and the second sum are 0. Indicates that the primary SEC code 1201 and the primary PEI code 1202 are incorrect. Conversely, if the first sum and the second total are 1, the primary SEC code 1201 and the primary PEI code 1202 have no errors.

於此,處理器11可在產生第一總和及第二總和後判斷主SEC程式碼1201及主PEI程式碼1202是否錯誤,或者處理器11亦可在產生第一總和後即判斷主SEC程式碼1201是否錯誤,此時,若主SEC程式碼1201錯誤,處理器11可不加總主PEI程式碼1202而直接進行後續開機程序。Here, the processor 11 may determine whether the main SEC code 1201 and the main PEI code 1202 are wrong after generating the first sum and the second sum, or the processor 11 may determine the main SEC code after generating the first sum. Is 1201 wrong? At this time, if the main SEC code 1201 is wrong, the processor 11 can directly perform the subsequent booting process without adding the main PEI code 1202.

在正常的開機程序中,處理器11讀取備份SEC程式碼1211與備份PEI程式碼1212後,因主SEC程式碼1201與主PEI程式碼1202不具有錯誤,處理器11即執行主SEC程式碼1201與主PEI程式碼1202來完成第一開機階段。並且,於處理器11執行主SEC程式碼1201與主PEI程式碼1202時,處理器11讀取主DXE程式碼1203並判斷主DXE程式碼1203是否錯誤,處理器11加總主DXE程式碼1203中的韌體檔案系統(Firmware file system;FFS)的位元組以進行總和檢查。總和檢查已詳述於前,於此不再贅述。於第一開機階段完成後,若主DXE程式碼1203不具錯誤,處理器11即執行主DXE程式碼1203來進行第二開機階段。In the normal boot process, after the processor 11 reads the backup SEC code 1211 and the backup PEI code 1212, the processor 11 executes the main SEC code because the main SEC code 1201 and the main PEI code 1202 have no errors. 1201 and the main PEI code 1202 complete the first boot phase. Moreover, when the processor 11 executes the main SEC code 1201 and the main PEI code 1202, the processor 11 reads the main DXE code 1203 and determines whether the main DXE code 1203 is wrong, and the processor 11 adds the main DXE code 1203. The byte of the firmware file system (FFS) is checked for sum. The sum check has been described in detail above and will not be described here. After the first boot phase is completed, if the main DXE code 1203 has no errors, the processor 11 executes the main DXE code 1203 to perform the second boot phase.

然而,在不正常的開機程序中,若處理器11判斷主SEC程式碼1201與主PEI程式碼1202中之任一者錯誤即表示主BIOS120錯誤,此時,處理器11依序執行備份BIOS121之備份SEC程式碼1211、備份PEI程式碼1212及備份DXE程式碼1213以執行第一開機階段與第二開機階段。倘若處理器11判斷主SEC程式碼1201與主PEI程式碼1202不具錯誤而主DXE程式碼1203錯誤,處理器11即執行備份BIOS121之備份DXE程式碼1213以進行第二開機階段,也就是說,處理器11執行主SEC程式碼1201與主PEI程式碼1202進行第一開機階段,接著,處理器11執行備份DXE程式碼1213以進行第二開機階段。在實作上,可藉由在微控制碼1204中設定旗標(flag)使處理器11由第二位址空間轉址至第一位址空間來讀取備份DXE程式碼1213以執行第二開機階段。However, in the abnormal booting process, if the processor 11 determines that any of the main SEC code 1201 and the main PEI code 1202 is incorrect, the main BIOS 120 is incorrect. At this time, the processor 11 sequentially executes the backup BIOS 121. The SEC code 1211, the backup PEI code 1212, and the backup DXE code 1213 are backed up to perform the first boot phase and the second boot phase. If the processor 11 determines that the main SEC code 1201 and the main PEI code 1202 are not in error and the main DXE code 1203 is wrong, the processor 11 executes the backup DXE code 1213 of the backup BIOS 121 to perform the second boot phase, that is, The processor 11 executes the first boot phase of the main SEC code 1201 and the main PEI code 1202. Then, the processor 11 executes the backup DXE code 1213 for the second boot phase. In practice, the backup DXE code 1213 can be read to perform the second by setting a flag in the micro control code 1204 to cause the processor 11 to be addressed from the second address space to the first address space. Boot phase.

因此,當主SEC程式碼1201、主PEI程式碼1202或主DXE程式碼1203三者中之任一者錯誤時,處理器11可執行備份BIOS121經由BDS階段啟動作業系統,以使電腦裝置1成功地開機而不需要開機資訊表,並且,電腦裝置1可包含指示燈(圖未示),指示燈之燈號可用來顯示主BIOS120毀損,電腦裝置1之使用者可藉由指示燈得知主BIOS120毀損而更新主BIOS120以執行正常的開機程序。Therefore, when either of the main SEC code 1201, the main PEI code 1202 or the main DXE code 1203 is in error, the processor 11 can execute the backup BIOS 121 to start the operating system via the BDS phase to make the computer device 1 successful. The device can be powered on without the need for a boot information table, and the computer device 1 can include an indicator light (not shown). The indicator light can be used to indicate that the main BIOS 120 is damaged. The user of the computer device 1 can learn the main indicator by the indicator light. The BIOS 120 is corrupted and the main BIOS 120 is updated to perform a normal boot process.

請參閱第2圖,為根據本發明之電腦裝置的開機方法之一實施例之流程圖。處理器11由記憶體12之第一位址空間讀取備份SEC程式碼1211(步驟S01)以開始電腦裝置1的開機程序後,處理器11根據備份SEC程式碼1211轉址至記憶體12之第二位址空間讀取主SEC程式碼1201與主PEI程式碼1202(步驟S02);在執行主BIOS120以繼續開機程序之前,處理器11先判斷主SEC程式碼1201與主PEI程式碼1202是否錯誤(步驟S03),若判斷結果為「否」,表示主SEC程式碼1201與主PEI程式碼1202均不具錯誤,則處理器11執行主SEC程式碼1201與主PEI程式碼1202(步驟S04)以繼續開機程序。於處理器11執行完步驟S04後,處理器11由記憶體12之第二位址空間讀取主DXE程式碼1203(步驟S05)以判斷主DXE程式碼1203是否錯誤(步驟S06),若判斷結果為「否」,則處理器11執行主DXE程式碼1203(步驟S07)以繼續執行開機程序而進入UFEI BIOS之BDS開機階段以啟動作業系統。Please refer to FIG. 2, which is a flow chart of an embodiment of a booting method of a computer device according to the present invention. After the processor 11 reads the backup SEC code 1211 from the first address space of the memory 12 (step S01) to start the booting process of the computer device 1, the processor 11 transfers the memory to the memory 12 according to the backup SEC code 1211. The second address space reads the main SEC code 1201 and the main PEI code 1202 (step S02); before executing the main BIOS 120 to continue the boot process, the processor 11 first determines whether the main SEC code 1201 and the main PEI code 1202 are If the result of the determination is "NO", it means that the main SEC code 1201 and the main PEI code 1202 have no errors, and the processor 11 executes the main SEC code 1201 and the main PEI code 1202 (step S04). To continue the boot process. After the processor 11 executes the step S04, the processor 11 reads the main DXE code 1203 from the second address space of the memory 12 (step S05) to determine whether the main DXE code 1203 is wrong (step S06), if it is determined If the result is "NO", the processor 11 executes the main DXE code 1203 (step S07) to continue the boot process and enter the BDS boot phase of the UFEI BIOS to start the operating system.

簡言之,若主BIOS120未毀損而不具錯誤時,處理器11依序執行主SEC程式碼1201、主PEI程式碼1202及主DXE程式碼1203來進行電腦裝置1正常的開機程序。In short, if the main BIOS 120 is not damaged without error, the processor 11 sequentially executes the main SEC code 1201, the main PEI code 1202, and the main DXE code 1203 to perform a normal booting process of the computer device 1.

接著,以下說明主BIOS120錯誤的情況,主BIOS120錯誤的情況有兩種,其一是主SEC程式碼1201與主PEI程式碼錯誤1202,在處理器11判斷主SEC程式碼1201與主PEI程式碼1202是否錯誤(步驟S03)之後,若判斷結果為「是」,表示主SEC程式碼1201與主PEI程式碼1202中之任一者錯誤,處理器11則依序執行備份SEC程式碼1211及備份PEI程式碼1212(步驟S08)及備份DXE程式碼1213(步驟S09)以進行開機程序;另一可能是主SEC程式碼1201及主PEI程式碼1202均不具錯誤而主DXE程式碼1203錯誤,在處理器11執行步驟S04及步驟S05之後,處理器11判斷主DXE程式碼1203是否錯誤(步驟S06),若判斷結果為「是」,處理器11則執行備份BIOS121之備份DXE程式碼1213以繼續電腦裝置1的開機程序。簡言之,當處理器11判斷主SEC程式碼1201、主PEI程式碼1202與主DXE程式碼1203任一者錯誤時,處理器11執行備份BIOS121來進行開機程序以使電腦裝置1順利運作,並且,只要主SEC程式碼1201或主PEI程式碼1202錯誤,處理器即執行備份BIOS121進行開機程序而不再判斷主DXE程式碼1203是否錯誤。Next, the following describes the case where the main BIOS 120 is erroneous, and the main BIOS 120 has two types of errors. One is the main SEC code 1201 and the main PEI code error 1202, and the processor 11 determines the main SEC code 1201 and the main PEI code. If 1202 is wrong (step S03), if the determination result is "Yes", it indicates that either of the main SEC code 1201 and the main PEI code 1202 is wrong, and the processor 11 executes the backup SEC code 1211 and the backup in sequence. The PEI code 1212 (step S08) and the backup DXE code 1213 (step S09) are used to perform the boot process; another possibility is that the main SEC code 1201 and the main PEI code 1202 have no errors and the main DXE code 1203 is incorrect. After the processor 11 executes the steps S04 and S05, the processor 11 determines whether the main DXE code 1203 is wrong (step S06). If the determination result is YES, the processor 11 executes the backup DXE code 1213 of the backup BIOS 121 to continue. The booting process of the computer device 1. In short, when the processor 11 determines that the main SEC code 1201, the main PEI code 1202 and the main DXE code 1203 are in error, the processor 11 executes the backup BIOS 121 to perform a booting process to enable the computer device 1 to operate smoothly. Moreover, as long as the main SEC code 1201 or the main PEI code 1202 is wrong, the processor executes the backup BIOS 121 to perform the boot process without determining whether the main DXE code 1203 is incorrect.

在本實施例中, 主DXE程式碼1203、主PEI程式碼1202、主SEC程式碼1201、備份DXE程式碼1213、備份PEI程式碼1212及備份SEC程式碼1211係由記憶體12之低位址空間依序儲存至高位址空間,然而本發明不以此為限,只要處理器11可根據本實施例之開機方法執行記憶體12中之主BIOS120及備份BIOS121中的各程式碼即可。In this embodiment, the main DXE code 1203, the main PEI code 1202, the main SEC code 1201, the backup DXE code 1213, the backup PEI code 1212, and the backup SEC code 1211 are the lower address space of the memory 12. The present invention is not limited thereto, as long as the processor 11 can execute the program codes in the main BIOS 120 and the backup BIOS 121 in the memory 12 according to the booting method of the embodiment.

綜上所述,根據本發明之電腦裝置係由一個記憶體中的不同位址空間同時儲存BIOS與備份BIOS,且在BIOS毀損時,電腦裝置可透過執行備份BIOS而成功開機,並且,備份BIOS為唯讀,如此一來,至少備份BIOS不可能因毀損而導致電腦裝置無法開機,且電腦裝置使用一記憶體而降低硬體成本。In summary, the computer device according to the present invention simultaneously stores the BIOS and the backup BIOS from different address spaces in one memory, and when the BIOS is damaged, the computer device can be successfully booted by executing the backup BIOS, and the BIOS is backed up. For read-only, at least the backup BIOS cannot cause the computer device to fail to boot due to damage, and the computer device uses a memory to reduce the hardware cost.

雖然本發明已以實施例揭露如上然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,故本發明之保護範圍當視後附之專利申請範圍所界定者為準。The present invention has been disclosed in the above embodiments, and it is not intended to limit the present invention. Any one of ordinary skill in the art can make some modifications and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended patent application.

1‧‧‧電腦裝置
11‧‧‧處理器
12‧‧‧記憶體
120 ‧‧‧主BIOS
1201‧‧‧主SEC程式碼
1202‧‧‧主PEI程式碼
1203‧‧‧主DXE程式碼
1204‧‧‧主BIOS之微控制碼
121‧‧‧備份BIOS
1211‧‧‧備份SEC程式碼
1212‧‧‧備份PEI程式碼
1213‧‧‧備份DXE程式碼
1214‧‧‧備份BIOS之微控制碼
步驟S01‧‧‧讀取備份SEC程式碼
步驟S02‧‧‧讀取主SEC程式碼與主PEI程式碼
步驟S03‧‧‧判斷主SEC程式碼與主PEI程式碼是否錯誤
步驟S04‧‧‧執行主SEC程式碼與主PEI程式碼
步驟S05‧‧‧讀取主DXE程式碼
步驟S06‧‧‧判斷主DXE程式碼是否錯誤
步驟S07‧‧‧執行主DXE程式碼
步驟S08‧‧‧執行備份SEC程式碼與備份PEI程式碼
步驟S09‧‧‧執行備份DXE程式碼
1‧‧‧Computer equipment
11‧‧‧ Processor
12‧‧‧ memory
120 ‧‧‧Main BIOS
1201‧‧‧Main SEC code
1202‧‧‧Main PEI code
1203‧‧‧Main DXE code
1204‧‧‧Microcontrol code of the main BIOS
121‧‧‧Backup BIOS
1211‧‧‧Backup SEC code
1212‧‧‧Backup PEI code
1213‧‧‧Backup DXE code
1214‧‧‧Backup BIOS micro-control code Step S01‧‧‧Read backup SEC code Step S02‧‧‧Read main SEC code and main PEI code Step S03‧‧‧Due main SEC code and main PEI Is the code error? Step S04‧‧‧Executing the main SEC code and the main PEI code Step S05‧‧‧Reading the main DXE code Step S06‧‧‧Determining whether the main DXE code is wrong Step S07‧‧‧Executing the main DXE Code Step S08‧‧‧Secure backup SEC code and backup PEI code Step S09‧‧‧Send backup DXE code

[第1圖] 為根據本發明之電腦裝置之一實施例之方塊示意圖。 [第2圖] 為根據本發明之電腦裝置之開機方法之一實施例之流程圖。[FIG. 1] A block diagram showing an embodiment of a computer device according to the present invention. [Fig. 2] is a flow chart showing an embodiment of a booting method of a computer device according to the present invention.

1‧‧‧電腦裝置 1‧‧‧Computer equipment

11‧‧‧處理器 11‧‧‧ Processor

12‧‧‧記憶體 12‧‧‧ memory

120‧‧‧主BIOS 120‧‧‧Master BIOS

1201‧‧‧主SEC程式碼 1201‧‧‧Main SEC code

1202‧‧‧主PEI程式碼 1202‧‧‧Main PEI code

1203‧‧‧主DXE程式碼 1203‧‧‧Main DXE code

1204‧‧‧主BIOS之微控制碼 1204‧‧‧Microcontrol code of the main BIOS

121‧‧‧備份BIOS 121‧‧‧Backup BIOS

1211‧‧‧備份SEC程式碼 1211‧‧‧Backup SEC code

1212‧‧‧備份PEI程式碼 1212‧‧‧Backup PEI code

1213‧‧‧備份DXE程式碼 1213‧‧‧Backup DXE code

1214‧‧‧備份BIOS之微控制碼 1214‧‧‧Backup BIOS micro control code

Claims (8)

一種電腦裝置,包含:一記憶體,包含一第一位址空間與一第二位址空間,該第一位址空間與該第二位址空間分別用以儲存一備份BIOS及一主BIOS,該備份BIOS為唯讀,該備份BIOS包含一備份SEC程式碼,該主BIOS包含一主SEC程式碼;及一處理器,電性連接於該記憶體,該處理器於一開機程序中先自該第一位址空間讀取該備份SEC程式碼,該處理器接著自該第二位址空間讀取該主SEC程式碼,且該處理器加總該主SEC程式碼以判斷該主SEC程式碼是否錯誤,若該主SEC程式碼錯誤,該處理器執行該備份BIOS。 A computer device includes: a memory, a first address space and a second address space, wherein the first address space and the second address space are respectively used to store a backup BIOS and a host BIOS. The backup BIOS is read-only, the backup BIOS includes a backup SEC code, the main BIOS includes a main SEC code, and a processor is electrically connected to the memory, and the processor firstly starts in a booting process. The first address space reads the backup SEC code, the processor then reads the main SEC code from the second address space, and the processor adds the main SEC code to determine the main SEC program. If the code is wrong, if the main SEC code is wrong, the processor executes the backup BIOS. 如請求項1所述之電腦裝置,其中該備份SEC程式碼包含一跳躍指令,該主BIOS更包含一主PEI程式碼,該處理器讀取該備份SEC程式碼之該跳躍指令後,該處理器根據該跳躍指令由該第一位址空間轉址至該第二位址空間讀取該主SEC程式碼及該主PEI程式碼,該處理器加總該主SEC程式碼並產生一總和,且該處理器加總該主PEI程式碼並產生另一總和,該處理器比較該些總和與一預設總和以判斷該主SEC程式碼與該主PEI程式碼是否錯誤,若該主SEC程式碼與該主PEI程式碼任一者錯誤,該處理器執行該備份BIOS之該備份SEC程式碼。 The computer device of claim 1, wherein the backup SEC code includes a jump instruction, the main BIOS further includes a main PEI code, and the processor reads the jump instruction of the backup SEC code, the process Transmitting, according to the jump instruction, the first address space to the second address space to read the main SEC code and the main PEI code, the processor summing the main SEC code and generating a sum. And the processor sums the main PEI code and generates another sum, the processor compares the sums with a preset sum to determine whether the main SEC code and the main PEI code are wrong, if the main SEC program The code is incorrect with any of the primary PEI codes, and the processor executes the backup SEC code of the backup BIOS. 如請求項2所述之電腦裝置,其中該備份BIOS更包含一備份PEI程式碼與一備份DXE程式碼,若該主SEC程式碼與該主PEI程式碼任一者錯誤,該處理器執行該備份SEC程式碼、該備份PEI程式碼與該備份DXE程式碼。 The computer device of claim 2, wherein the backup BIOS further comprises a backup PEI code and a backup DXE code, and if the main SEC code and the main PEI code are incorrect, the processor executes the The SEC code, the backup PEI code and the backup DXE code are backed up. 如請求項1所述之電腦裝置,其中該記憶體包含一寫入保護端,該備份BIOS根據該寫入保護端所接收之一寫入保護訊號而設定為唯讀。 The computer device of claim 1, wherein the memory comprises a write protection terminal, and the backup BIOS is set to be read only according to one of the write protection signals received by the write protection terminal. 一種電腦裝置的開機方法,包含:一處理器於一開機程序中先自一記憶體之一第一位址空間讀取一備份BIOS之一備份SEC程式碼,該備份BIOS為唯讀;於該處理器讀取該備份SEC程式碼後,該處理器自該記憶體之一第二位址空間讀取一主BIOS之一主SEC程式碼;該處理器加總該主SEC程式碼以判斷該主SEC程式碼是否錯誤;及若該主SEC程式碼錯誤,該處理器執行該備份BIOS。 A booting method of a computer device, comprising: a processor first reading a backup BIOS from a first address space of a memory in a booting process; the backup BIOS is read only; After the processor reads the backup SEC code, the processor reads a primary SEC code of a primary BIOS from a second address space of the memory; the processor adds the primary SEC code to determine the Whether the main SEC code is wrong; and if the main SEC code is wrong, the processor executes the backup BIOS. 如請求項5所述之電腦裝置的開機方法,其中該備份SEC程式碼包含一跳躍指令,該主BIOS更包含一主PEI程式碼,該開機方法更包含,於該處理器讀取該備份SEC程式碼後,該處理器根據該跳躍指令自該第一位址空間轉址至該第二位址空間,於該處理器讀取該主SEC程式碼後,該處理器自該第二位址空間讀取該主PEI程式碼,於該處理器加總該主SEC程式碼後,該處理器加總該主PEI程式碼以判斷該主PEI程式碼是否錯誤,若該主SEC程式碼與該主PEI程式碼任一者錯誤,該處理器執行該備份BIOS之該備份SEC程式碼。 The booting method of the computer device according to claim 5, wherein the backup SEC code includes a jump instruction, the main BIOS further includes a main PEI code, and the booting method further comprises: reading the backup SEC by the processor After the code is coded, the processor transfers from the first address space to the second address space according to the jump instruction, after the processor reads the main SEC code, the processor is from the second address The space reads the main PEI code, after the processor adds the main SEC code, the processor adds the main PEI code to determine whether the main PEI code is wrong, if the main SEC code and the Any one of the main PEI codes is incorrect, and the processor executes the backup SEC code of the backup BIOS. 如請求項5所述之電腦裝置的開機方法,其中該記憶體包含一寫入保護端,該開機方法更包含,該記憶體之該寫入保護端接收一寫入保護訊號,使該備份BIOS根據該寫入保護訊號而設定為唯讀。 The booting method of the computer device according to claim 5, wherein the memory comprises a write protection end, the booting method further comprises: the write protection end of the memory receiving a write protection signal to enable the backup BIOS Set to read-only according to the write protection signal. 如請求項6所述之電腦裝置的開機方法,其中該備份BIOS更包含一備份PEI程式碼與一備份DXE程式碼,若該主SEC程式碼與該主PEI程式碼任一者錯誤,該處理器執行該備份SEC程式碼、該備份PEI程式碼與該備份DXE程式碼。The booting method of the computer device of claim 6, wherein the backup BIOS further comprises a backup PEI code and a backup DXE code, and if the main SEC code and the main PEI code are incorrect, the process is The backup SEC code, the backup PEI code and the backup DXE code are executed.
TW104129439A 2015-09-04 2015-09-04 Computer and booting method thereof TWI556172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW104129439A TWI556172B (en) 2015-09-04 2015-09-04 Computer and booting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW104129439A TWI556172B (en) 2015-09-04 2015-09-04 Computer and booting method thereof

Publications (2)

Publication Number Publication Date
TWI556172B true TWI556172B (en) 2016-11-01
TW201710888A TW201710888A (en) 2017-03-16

Family

ID=57851447

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104129439A TWI556172B (en) 2015-09-04 2015-09-04 Computer and booting method thereof

Country Status (1)

Country Link
TW (1) TWI556172B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10620879B2 (en) 2017-05-17 2020-04-14 Macronix International Co., Ltd. Write-while-read access method for a memory device
US10445088B2 (en) 2018-01-11 2019-10-15 Macronix International Co., Ltd. System boot code clone

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201319942A (en) * 2011-11-04 2013-05-16 Asrock Inc Method for flashing firmware and booting method and electronic apparatus using the method thereof
CN103729220A (en) * 2013-12-25 2014-04-16 合肥联宝信息技术有限公司 Method and device for restoring BIOS (basic input output system) ROM (read only memory) by aid of EC (electronically controllable) ROM
US20150074386A1 (en) * 2013-09-09 2015-03-12 Insyde Software Corp. Boot method and boot system
TW201533569A (en) * 2014-02-26 2015-09-01 Wistron Corp Computer system and control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201319942A (en) * 2011-11-04 2013-05-16 Asrock Inc Method for flashing firmware and booting method and electronic apparatus using the method thereof
US20150074386A1 (en) * 2013-09-09 2015-03-12 Insyde Software Corp. Boot method and boot system
CN103729220A (en) * 2013-12-25 2014-04-16 合肥联宝信息技术有限公司 Method and device for restoring BIOS (basic input output system) ROM (read only memory) by aid of EC (electronically controllable) ROM
TW201533569A (en) * 2014-02-26 2015-09-01 Wistron Corp Computer system and control method

Also Published As

Publication number Publication date
TW201710888A (en) 2017-03-16

Similar Documents

Publication Publication Date Title
US8601255B2 (en) Approaches for updating bios
CN110032405B (en) System boot code memory management method, memory device and electronic system using same
US9507604B2 (en) Boot method and boot system
US6757838B1 (en) Hardware independent implementation of computer system BIOS recovery
TWI515660B (en) Firmware variable update method
JP6124994B2 (en) Method and system for restoring from legacy OS environment to Unified Extensible Firmware Interface (UEFI) pre-boot environment, and computer program
US6725178B2 (en) Use of hidden partitions in a storage device for storing BIOS extension files
US20040255106A1 (en) Recovery of operating system configuration data by firmware of computer system
WO2020062887A1 (en) Firmware upgrading method and system based on flash micro-controller, and flash micro-controller
US10437580B2 (en) Software updating methods and systems
US7908469B2 (en) Method for executing power on self test on a computer system and updating SMBIOS information partially
US11163886B2 (en) Information handling system firmware bit error detection and correction
KR101640207B1 (en) Bootloader and embedded system upgrade method
GB2466685A (en) Fault tolerant updating of firmware
US20090271660A1 (en) Motherboard, a method for recovering the bios thereof and a method for booting a computer
US9218249B2 (en) Electronic apparatus, method of restoring guid partition table (GPT) and computer-readable recording medium
WO2016062146A1 (en) Serial number information update method, device and terminal
CN110297726B (en) Computer system with serial presence detection data and memory module control method
US20190272176A1 (en) Chipset fuse programming system
TW201319939A (en) Method and system for processing operating system, computer readable storage medium storing the method
TWI556172B (en) Computer and booting method thereof
WO2015184732A1 (en) Bootstrap storage method, bootstrap fault recovery method and device, and computer storage medium
US7428635B2 (en) Method of writing non-volatile memory that avoids corrupting the vital initialization code
CN113064637B (en) Method and system for starting from separated BIOS image file
CN106611124B (en) Computer installation and its starting-up method