TW202028969A - Method of generating bios-change record - Google Patents

Method of generating bios-change record Download PDF

Info

Publication number
TW202028969A
TW202028969A TW108101893A TW108101893A TW202028969A TW 202028969 A TW202028969 A TW 202028969A TW 108101893 A TW108101893 A TW 108101893A TW 108101893 A TW108101893 A TW 108101893A TW 202028969 A TW202028969 A TW 202028969A
Authority
TW
Taiwan
Prior art keywords
bios
value field
management controller
baseboard management
change record
Prior art date
Application number
TW108101893A
Other languages
Chinese (zh)
Other versions
TWI685791B (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 TW108101893A priority Critical patent/TWI685791B/en
Application granted granted Critical
Publication of TWI685791B publication Critical patent/TWI685791B/en
Publication of TW202028969A publication Critical patent/TW202028969A/en

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A method of generating a bios-change record is provided. The method includes a BMC of a computer storing BIOS setting parameters in a previous value field of a bios change record table, a processor of the computer determining whether the BIOS setting parameters is being changed, the processor setting a flag to a first data format and the BMC storing the changed BIOS setting parameters in a current value field of the bios change record table when the BIOS setting parameters being changed, the computer being reset after the changed BIOS setting parameters being stored, the BMC determining whether the flag is the first data format after the computer being reset, and the BMC comparing the current value field and the previous value field when the flag being the first data format, and the BMC storing a difference between the current value field and the previous value field in the bios change record table when the contents of the current value field being different from the contents of the previous value field.

Description

產生BIOS變更紀錄的方法Method of generating BIOS change record

本發明是關於一種產生BIOS變更紀錄的方法。The invention relates to a method for generating BIOS change records.

一般而言,在電子系統的設計階段或者使用階段,常常會基於特定目的修改基本輸入輸出系統(Basic Input/Output System;BIOS)設定的參數。若電子系統不具備BIOS設定之修改歷史紀錄,在BIOS設定的參數被修改後,使用者在使用電子系統時會面臨諸多困境。例如,使用者欲將BIOS設定恢復至修改之前的參數設定會需要花費大量的時間,或者使用者很難分析歷次BIOS設定修改所產生的效果或影響。Generally speaking, in the design phase or use phase of an electronic system, the parameters set by the Basic Input/Output System (BIOS) are often modified for specific purposes. If the electronic system does not have the modification history record of the BIOS setting, after the BIOS setting parameters are modified, the user will face many difficulties when using the electronic system. For example, it will take a lot of time for the user to restore the BIOS settings to the parameter settings before the modification, or it is difficult for the user to analyze the effects or impacts of previous BIOS setting modifications.

再者,電子系統在開發測試的過程中通常係由不同單位共同進行測試,例如測試部門及研發部門,若測試部門修改BIOS設定之後造成電子系統當機等嚴重的問題時,需由研發部門來進行解錯(debug),但研發部門並無從得知測試部門對BIOS設定所作之修改,其修改可能關聯於一連串反覆測試之動作,如此將難以進行解錯。Furthermore, the electronic system is usually tested jointly by different units during the development and testing process, such as the testing department and the R&D department. If the testing department modifies the BIOS settings and causes serious problems such as electronic system crashes, the R&D department must do the testing. Perform debugging, but the R&D department has no way of knowing the modification of the BIOS setting made by the testing department. The modification may be related to a series of repeated tests, which will make it difficult to debug.

因此,若電子系統不具備BIOS設定之修改歷史紀錄,不論是在電子系統的設計階段或者使用階段都會造成很大的不便。Therefore, if the electronic system does not have a history record of the BIOS settings, it will cause great inconvenience no matter in the design phase or the use phase of the electronic system.

有鑑於此,本發明提出一種產生BIOS變更紀錄的方法。In view of this, the present invention provides a method for generating BIOS change records.

一種產生BIOS變更紀錄的方法,包含:一電腦裝置之一基板管理控制器藉由一BIOS變更紀錄資料表之一先前值欄位儲存至少一BIOS設定選項之設定值,其中前述BIOS變更紀錄資料表更包含一當前值欄位;電腦裝置之一處理器偵測至少一BIOS設定選項的設定值是否變更;當處理器偵測出至少一BIOS設定選項的設定值已變更時,處理器將一旗標設定為一第一資料格式,且基板管理控制器將變更後的變更值寫入當前值欄位,電腦裝置於變更值寫入後重置;於電腦裝置重置後,基板管理控制器讀取旗標並判斷旗標是否為第一資料格式;於基板管理控制器判斷出旗標為第一資料格式時,基板管理控制器比對當前值欄位與先前值欄位的內容;以及當基板管理控制器比對出當前值欄位與先前值欄位的內容不相同時,基板管理控制器將當前值欄位與先前值欄位的不同之處寫入BIOS變更紀錄資料表。A method for generating BIOS change records includes: a baseboard management controller of a computer device stores the setting value of at least one BIOS setting option through a previous value field of a BIOS change record data table, wherein the aforementioned BIOS change record data table It also includes a current value field; a processor of the computer device detects whether the setting value of at least one BIOS setting option has been changed; when the processor detects that the setting value of at least one BIOS setting option has been changed, the processor will flag The label is set to a first data format, and the baseboard management controller writes the changed value to the current value field. The computer device resets after the changed value is written; after the computer device is reset, the baseboard management controller reads Fetch the flag and determine whether the flag is the first data format; when the baseboard management controller determines that the flag is the first data format, the baseboard management controller compares the contents of the current value field with the previous value field; and when When the baseboard management controller compares the content of the current value field and the previous value field to be different, the baseboard management controller writes the difference between the current value field and the previous value field into the BIOS change record data table.

綜上所述,根據本案之產生BIOS變更紀錄的方法之一實施例,可產生對應BIOS設定之修改歷史紀錄的變更紀錄資料,例如經修改之BIOS參數名稱、修改前之原始參數值、修改後之變更值以及時間戳記,並由BIOS設定選單或網路使用者介面顯示BIOS變更紀錄資料,可讓使用者快速地得知BIOS設定的修改內容,使用者能有效率地分析BIOS設定修改所產生的效果或影響,或有效率地將BIOS設定恢復至特定時間點的設定值,以提升對電腦裝置進行除錯之效率。再者,若電子系統係由不同單位共同進行測試,例如前述之測試部門及研發部門,研發部門能藉由BIOS變更紀錄資料詳細地得知各BIOS設定之設定值在修改過程中之變更而快速地將問題收斂,以縮短解錯之時間,進而加快產品之測試開發速度。In summary, according to an embodiment of the method for generating BIOS change records in this case, the change record data corresponding to the modification history of BIOS settings can be generated, such as the modified BIOS parameter name, original parameter value before modification, and after modification The change value and time stamp, and the BIOS change record data can be displayed from the BIOS setting menu or the network user interface, which allows the user to quickly learn the modification content of the BIOS setting, and the user can efficiently analyze the BIOS setting modification The effect or influence of, or efficiently restore the BIOS settings to the settings at a specific time point to improve the efficiency of debugging computer devices. Furthermore, if the electronic system is jointly tested by different units, such as the aforementioned testing department and R&D department, the R&D department can learn in detail the changes of each BIOS setting during the modification process through the BIOS change record data. Converge the problem to shorten the time to solve the error, and then speed up the test and development of the product.

圖1A為根據本發明實施例之實現BIOS變更紀錄方法之電腦裝置之方塊示意圖。請參照圖1A,電腦裝置400包含處理器401、基板管理控制器402及記憶體單元403。基板管理控制器402耦接在處理器401與記憶體單元403之間。FIG. 1A is a block diagram of a computer device implementing a method for recording a BIOS change according to an embodiment of the present invention. 1A, the computer device 400 includes a processor 401, a baseboard management controller 402, and a memory unit 403. The baseboard management controller 402 is coupled between the processor 401 and the memory unit 403.

在一實施例中,處理器401可為中央處理器(CPU)或是由中央處理器與平台路徑控制器(PCH)所組成的系統單晶片(SOC),記憶體單元403可為非揮發性記憶體,例如電子抹除式可複寫唯讀記憶體(EEPROM)。並且,圖1A僅係用以示意,如圖1B所示例之另一實施例,記憶體單元403亦可為基板管理控制器402內部之記憶體,並不以記憶體單元403係外掛而連結於基板管理控制器402為限。In an embodiment, the processor 401 may be a central processing unit (CPU) or a system-on-chip (SOC) composed of a central processing unit and a platform path controller (PCH), and the memory unit 403 may be non-volatile Memory, such as electronically erasable rewritable read-only memory (EEPROM). In addition, FIG. 1A is only for illustration. As shown in another embodiment of FIG. 1B, the memory unit 403 can also be the internal memory of the baseboard management controller 402, and the memory unit 403 is not connected to the external device. The baseboard management controller 402 is limited.

一般而言,電腦裝置400包含多個BIOS設定選項,使用者能在電腦裝置400運作時在開機選單(setup menu)中修改BIOS設定選項,使處理器401根據BIOS設定選項之設定值運作,並據以產生相應之控制訊號。基此,相應於BIOS設定選項之設定值,如圖2所示,記憶體單元403中儲存有BIOS變更紀錄資料表100,BIOS變更紀錄資料表100包含先前值欄位103,先前值欄位103係記錄有相應於各BIOS設定選項之設定值。以圖2為例,先前值欄位103中之第一列儲存有相應於其中一BIOS設定選項(為方便描述,以下稱為第一BIOS設定選項)為「0x01」之設定值。並且,BIOS變更紀錄資料表100更包含一當前值欄位104,當電腦裝置400之BIOS設定選項之設定值變更時,例如電腦裝置400之使用者變更BIOS設定選項之設定值,基板管理控制器402能將變更後之一變更值寫入當前值欄位104,並根據先前值欄位103及當前值欄位104之內容產生BIOS變更紀錄。Generally speaking, the computer device 400 includes multiple BIOS setting options. The user can modify the BIOS setting options in the setup menu when the computer device 400 is running, so that the processor 401 operates according to the settings of the BIOS setting options, and According to the corresponding control signal. Based on this, corresponding to the setting value of the BIOS setting option, as shown in FIG. 2, the memory unit 403 stores a BIOS change record data table 100. The BIOS change record data table 100 includes a previous value field 103 and a previous value field 103 The setting value corresponding to each BIOS setting option is recorded. Taking FIG. 2 as an example, the first row in the previous value field 103 stores the setting value corresponding to one of the BIOS setting options (for convenience of description, hereinafter referred to as the first BIOS setting option) as "0x01". In addition, the BIOS change record data table 100 further includes a current value field 104. When the setting value of the BIOS setting option of the computer device 400 is changed, for example, the user of the computer device 400 changes the setting value of the BIOS setting option, and the baseboard management controller 402 can write a changed value after the change into the current value field 104, and generate a BIOS change record based on the contents of the previous value field 103 and the current value field 104.

詳細而言,請合併參照圖1至圖3,圖3所示例之流程圖係基於先前值欄位103在電腦裝置400運作時已儲存有BIOS設定選項之設定值。在電腦裝置400運作時,處理器401偵測BIOS設定選項的設定值(步驟S01),並判斷BIOS設定選項的設定值是否變更(步驟S02)。舉例來說,當使用者將前述之相應於第一BIOS設定選項為「0x01」之設定值變更為「0x00」之變更值時,處理器401判斷出第一BIOS設定選項的設定值變更(判斷結果為「是」)。於是,在處理器401判斷出任一BIOS設定選項的設定值變更之後,處理器401將一旗標(flag)設定為具有相應之預設的資料格式。以不同之第一資料格式及第二資料格式係分別表示BIOS設定選項的設定值變更或未變更為例,處理器401將旗標設定為前述預設之第一資料格式(步驟S03)。並且,處理器401通知基板管理控制器402存取BIOS變更紀錄資料表100,基板管理控制器402將BIOS設定選項變更後之變更值寫入當前值欄位104(步驟S04)。以前述之為「0x01」之設定值變更為「0x00」之變更值為例,基板管理控制器402將為「0x00」之變更值寫入當前值欄位104,如圖2所示例之當前值欄位104之第一列。In detail, please refer to FIGS. 1 to 3 in combination. The flowchart illustrated in FIG. 3 is based on the previous value field 103 that has stored the BIOS setting option setting values when the computer device 400 is operating. When the computer device 400 is operating, the processor 401 detects the setting value of the BIOS setting option (step S01), and determines whether the setting value of the BIOS setting option is changed (step S02). For example, when the user changes the aforementioned setting value corresponding to the first BIOS setting option of "0x01" to the changed value of "0x00", the processor 401 determines that the setting value of the first BIOS setting option has been changed (determine The result is "Yes"). Therefore, after the processor 401 determines that the setting value of any BIOS setting option is changed, the processor 401 sets a flag to have a corresponding preset data format. Taking the different first data format and the second data format indicating that the setting value of the BIOS setting option is changed or not changed as an example, the processor 401 sets the flag to the aforementioned preset first data format (step S03). In addition, the processor 401 notifies the baseboard management controller 402 to access the BIOS change record data table 100, and the baseboard management controller 402 writes the changed value after the BIOS setting option is changed into the current value field 104 (step S04). Taking the above-mentioned setting value of "0x01" changed to "0x00" as an example, the baseboard management controller 402 will write the changed value of "0x00" into the current value field 104, as shown in Figure 2 The first row of field 104.

在變更值寫入當前值欄位104後,電腦裝置400重置(步驟S05)。基板管理控制器402在電腦裝置400重置之後在開機程序中即讀取旗標,並判斷旗標係為前述之第一資料格式或第二資料格式(步驟S06)。當基板管理控制器402判斷出旗標係為第一資料格式時(判斷結果為「是」),表示BIOS設定選項的設定值變更,此時,基板管理控制器402進一步比對當前值欄位104與先前值欄位103並判斷當前值欄位104與先前值欄位103的內容是否不相同(步驟S07),當基板管理控制器402判斷出當前值欄位104與先前值欄位103的內容不相同時(判斷結果為「是」),基板管理控制器402將當前值欄位104與先前值欄位103之不同之處寫入BIOS變更紀錄資料表100,基板管理控制器402可將前述之不同之處寫入的BIOS變更紀錄資料表100的任一欄位,例如圖4所示例之變更紀錄資料欄位203、204。After the changed value is written into the current value field 104, the computing device 400 is reset (step S05). The baseboard management controller 402 reads the flag in the boot process after the computer device 400 is reset, and determines whether the flag is the aforementioned first data format or second data format (step S06). When the baseboard management controller 402 determines that the flag system is in the first data format (the judgment result is "Yes"), it indicates that the setting value of the BIOS setting option has changed. At this time, the baseboard management controller 402 further compares the current value field 104 and the previous value field 103 and determine whether the contents of the current value field 104 and the previous value field 103 are different (step S07), when the baseboard management controller 402 determines that the current value field 104 and the previous value field 103 When the content is different (the judgment result is "Yes"), the baseboard management controller 402 writes the difference between the current value field 104 and the previous value field 103 into the BIOS change record data table 100, and the baseboard management controller 402 can write The above-mentioned difference is written into any field of the BIOS change record data table 100, such as the change record data fields 203 and 204 shown in FIG. 4.

以前述之基板管理控制器402基於第一BIOS設定選項比對當前值欄位104與先前值欄位103之第一列為例,基板管理控制器402能判斷出「0x01」係不同於「0x00」而判斷出第一BIOS設定選項變更,基板管理控制器402可將當前值欄位104與先前值欄位103之間之不同之處,即「0x01」與「0x00」分別記錄在變更紀錄資料欄位203、204中。Taking the aforementioned baseboard management controller 402 to compare the first row of the current value field 104 with the previous value field 103 based on the first BIOS setting option as an example, the baseboard management controller 402 can determine that "0x01" is different from "0x00" When determining the first BIOS setting option change, the baseboard management controller 402 can record the difference between the current value field 104 and the previous value field 103, that is, "0x01" and "0x00" in the change record data. In the fields 203 and 204.

基此,基板管理控制器402可針對BIOS設定中「經修改的BIOS設定選項」來產生BIOS變更紀錄資料,讓使用者能快速地得知BIOS設定的修改內容,使用者能分析BIOS設定修改所產生的效果或影響,以提升對電腦裝置400進行除錯之效率。Based on this, the baseboard management controller 402 can generate BIOS change record data for the "modified BIOS setting option" in the BIOS setting, so that the user can quickly learn the modified content of the BIOS setting, and the user can analyze the modified BIOS setting. The effect or influence produced to improve the efficiency of debugging the computer device 400.

在一實施例中,當處理器401在步驟S02判斷出BIOS設定選項的設定值已變更且電腦裝置400重置時,處理器401進一步在電腦裝置400重置後之開機程序中執行步驟S06以判斷旗標是否為第一資料格式。若處理器401之判斷結果為「是」,表示BIOS設定選項的設定值在電腦裝置400重置之前已變更,此時,處理器401在開機程序中藉由智慧平台管理介面(Intelligent Platform Management Interface;IPMI)發送智慧平台管理介面指令至基板管理控制器402,致使基板管理控制器402根據智慧平台管理介面指令執行步驟S06而判斷旗標係為第一資料格式或第二資料格式,以決定是否比較當前值欄位104與先前值欄位103(步驟S07)。In one embodiment, when the processor 401 determines in step S02 that the setting value of the BIOS setting option has been changed and the computer device 400 is reset, the processor 401 further executes step S06 in the boot process after the computer device 400 is reset. Determine whether the flag is the first data format. If the judgment result of the processor 401 is "Yes", it means that the setting value of the BIOS setting option has been changed before the computer device 400 is reset. At this time, the processor 401 uses the Intelligent Platform Management Interface (Intelligent Platform Management Interface) during the boot process. ; IPMI) sends the smart platform management interface command to the baseboard management controller 402, causing the baseboard management controller 402 to execute step S06 according to the smart platform management interface command to determine whether the flag is the first data format or the second data format to determine whether Compare the current value field 104 with the previous value field 103 (step S07).

在一實施例中,如圖2所示,BIOS變更紀錄資料表100更包含BIOS選項索引欄位101及BIOS選項名稱欄位102。BIOS選項欄位101包含用來表示電腦裝置400的所有BIOS設定選項的索引值,以四個索引值為例,BIOS選項索引欄位101中可包含分別為「0x00」、「0x01」、「0x02」及「0x03」之索引值。BIOS選項名稱欄位102則包含所有BIOS設定選項的BIOS選項名稱,且BIOS選項名稱係一對一對應於前述之索引值。以四個BIOS選項名稱為例,BIOS選項名稱欄位102可包含分別為「Quiet Boot」、「PCIe Hot Plug」及「FRB2 Timer」、「BMC Support」之BIOS選項名稱,且各BIOS選項名稱係分別一對一對應於為「0x00」、「0x01」、「0x02」及「0x03」之索引值。基於BIOS選項索引欄位101及BIOS選項名稱欄位102,當基板管理控制器402在步驟S07判斷出當前值欄位104與先前值欄位103之內容不完全相同時,基板管理控制器402在步驟S08中可進一步將不同之處所對應之BIOS選項名稱進一步寫入BIOS變更紀錄資料表100,例如,在前述之基於第一BIOS設定選項判斷出當前值欄位104中為「0x01」之設定值不相同於先前值欄位103中為「0x00」之變更值時,將對應之為「Quiet Boot」之BIOS選項名稱寫入圖4所示例之BIOS變更紀錄資料表100中之變更紀錄資料欄位202。In one embodiment, as shown in FIG. 2, the BIOS change record data table 100 further includes a BIOS option index field 101 and a BIOS option name field 102. The BIOS option field 101 contains the index values used to indicate all the BIOS configuration options of the computer device 400. Taking four index values as an example, the BIOS option index field 101 can contain "0x00", "0x01", and "0x02" "And "0x03" index value. The BIOS option name field 102 contains the BIOS option names of all BIOS setting options, and the BIOS option names correspond to the aforementioned index values one-to-one. Taking four BIOS option names as an example, the BIOS option name field 102 can include the BIOS option names of "Quiet Boot", "PCIe Hot Plug" and "FRB2 Timer", and "BMC Support", and the names of the BIOS options are Respectively one-to-one corresponding to the index values of "0x00", "0x01", "0x02" and "0x03". Based on the BIOS option index field 101 and the BIOS option name field 102, when the baseboard management controller 402 determines in step S07 that the contents of the current value field 104 and the previous value field 103 are not exactly the same, the baseboard management controller 402 In step S08, the BIOS option names corresponding to the differences can be further written into the BIOS change record data table 100. For example, in the aforementioned first BIOS configuration option, it is determined that the current value field 104 is the setting value of "0x01" When the change value is different from the previous value field 103 which is "0x00", the BIOS option name corresponding to "Quiet Boot" is written into the change record data field in the BIOS change record table 100 shown in Figure 4 202.

再者,如圖4所示,BIOS變更紀錄資料表100更包含時間欄位201,當基板管理控制器402在步驟S07判斷出當前值欄位104與先前值欄位103之內容不相同時,基板管理控制器402可進一步將比對時間之時間戳記T1寫入時間欄位201。於是,基於變更紀錄資料欄位202及時間欄位201,使用者能更準確地根據各欄位201-204分析BIOS設定的歷史修改內容,以對電腦裝置400進行除錯。Furthermore, as shown in FIG. 4, the BIOS change record data table 100 further includes a time field 201. When the baseboard management controller 402 determines in step S07 that the contents of the current value field 104 and the previous value field 103 are different, The baseboard management controller 402 can further write the time stamp T1 of the comparison time into the time field 201. Therefore, based on the change record data field 202 and the time field 201, the user can more accurately analyze the historical modification content of the BIOS settings according to the fields 201-204 to debug the computer device 400.

在一實施例中,基板管理控制器402在將當前值欄位104與先前值欄位103的不同之處寫入BIOS變更紀錄資料表100之後,基板管理控制器402將不同之處之當前值欄位104之內容寫入先前值欄位103(步驟S09),使不同之處之當前值欄位104之內容覆蓋先前值欄位103中之原內容。請同時參照圖2及圖5,以前述之第一BIOS設定選項為例,基板管理控制器402將當前值欄位104中之第一列之內容「0x00」寫入先前值欄位103中之第一列而覆蓋原有之「0x01」。如此一來,基板管理控制器402在往後的開機程序中即能根據變更後在先前值欄位103中之變更值「0x00」進一步比對當前值欄位104之內容而判斷BIOS設定選項是否變更。In one embodiment, after the baseboard management controller 402 writes the difference between the current value field 104 and the previous value field 103 into the BIOS change record data table 100, the baseboard management controller 402 sets the current value of the difference The content of the field 104 is written into the previous value field 103 (step S09), so that the content of the current value field 104 of the difference overwrites the original content in the previous value field 103. 2 and 5 at the same time, taking the aforementioned first BIOS setting option as an example, the baseboard management controller 402 writes the content "0x00" in the first row of the current value field 104 into the previous value field 103 The first column overwrites the original "0x01". In this way, the baseboard management controller 402 can further compare the contents of the current value field 104 to determine whether the BIOS setting option is based on the changed value "0x00" in the previous value field 103 after the change in the subsequent boot process change.

在一實施例中,處理器401在設定旗標具有第一資料格式(步驟S03)之前,旗標可預設為具第二資料格式,當處理器401在步驟S02判斷出BIOS設定選項的設定值變更之後,處理器401設定旗標由第二資料格式改變為第一資料格式。於此,當基板管理控制器402在步驟S09將當前值欄位104的內容寫入先前值欄位103之後,基板管理控制器402再進一步設定旗標,使旗標自第一資料格式恢復為預設之第二資料格式(步驟S10),以表示基板管理控制器402已完成BIOS變更紀錄資料表100之更新,且在電腦裝置400往後的開機程序中,基板管理控制器402不會基於錯誤之旗標而比對當前值欄位104與先前值欄位103,造成額外的比對動作。在一實施例中,前述之第一資料格式可為邏輯「1」,且第二資料格式可為邏輯「0」。In one embodiment, before the processor 401 sets the flag to have the first data format (step S03), the flag can be preset to have the second data format. When the processor 401 determines the setting of the BIOS setting option in step S02 After the value is changed, the processor 401 sets the flag to change from the second data format to the first data format. Here, after the baseboard management controller 402 writes the content of the current value field 104 into the previous value field 103 in step S09, the baseboard management controller 402 further sets the flag to restore the flag from the first data format to The default second data format (step S10) indicates that the baseboard management controller 402 has completed the update of the BIOS change record table 100, and that the baseboard management controller 402 will not be based on the The wrong flag is used to compare the current value field 104 with the previous value field 103, causing an additional comparison action. In one embodiment, the aforementioned first data format can be logical "1", and the second data format can be logical "0".

在一實施例中,若使用者在開機選單中未變更BIOS設定選項但選擇儲存BIOS設定選項並離開開機選單,處理器401在步驟S02中會判斷出BIOS設定選項的設定值已變更(判斷結果為「是」),且處理器401執行步驟S03設定旗標具有第一資料格式。於此,基板管理控制器402在步驟S06中會判斷出旗標為第一資料格式,但在步驟S07中,基板管理控制器402會判斷出先前值欄位103及當前值欄位104的內容完全相同,因使用者並未變更BIOS設定選項。此時,基板管理控制器402並不執行步驟S08、S09,也就是基板管理控制器402不會更新BIOS變更紀錄資料表100,且基板管理控制器402會設定旗標使旗標自第一資料格式恢復為預設之第二資料格式(步驟S10),以避免在往後的開機程序中根據錯誤之旗標比對當前值欄位104及先前值欄位103而造成額外的比對動作。In one embodiment, if the user does not change the BIOS setup option in the boot menu but chooses to save the BIOS setup option and exit the boot menu, the processor 401 will determine in step S02 that the setting value of the BIOS setup option has been changed (determination result Yes), and the processor 401 executes step S03 to set the flag to have the first data format. Here, the baseboard management controller 402 will determine that the flag is the first data format in step S06, but in step S07, the baseboard management controller 402 will determine the contents of the previous value field 103 and the current value field 104 Exactly the same, because the user has not changed the BIOS setting options. At this time, the baseboard management controller 402 does not execute steps S08 and S09, that is, the baseboard management controller 402 will not update the BIOS change record data table 100, and the baseboard management controller 402 will set the flag so that the flag is from the first data The format is restored to the default second data format (step S10) to avoid additional comparison actions caused by comparing the current value field 104 and the previous value field 103 based on the wrong flag in the subsequent boot process.

在一實施例中,基板管理控制器402在步驟S08將當前值欄位104與先前值欄位103的不同之處寫入BIOS變更紀錄資料表100之後,基板管理控制器402能藉由一BIOS設定選單(setup menu)或一網路使用者介面(WebUI)顯示BIOS變更紀錄資料表100所包含之欄位201-204,讓使用者更容易取得BIOS變更紀錄資料。In one embodiment, after the baseboard management controller 402 writes the difference between the current value field 104 and the previous value field 103 into the BIOS change record data table 100 in step S08, the baseboard management controller 402 can use a BIOS The setup menu or a web user interface (WebUI) displays the fields 201-204 included in the BIOS change record data table 100, making it easier for users to obtain the BIOS change record data.

其中,值得說明的是,圖2僅係用以示例各欄位101-104中之各資料之間的對應關係,在各欄位101-104中之資料之間的對應關係為正確的情況下,欄位101-104的順序可任意排列,並不用以對本實施例造成任何限制。再者,在圖3所示例之流程圖中,處理器401係藉由執行BIOS程式來執行步驟S01-S03、S06,且基板管理控制器402係藉由執行其韌體程式來執行步驟S04-S10。Among them, it is worth noting that Figure 2 is only used to illustrate the correspondence between the data in the fields 101-104, and the correspondence between the data in the fields 101-104 is correct. The order of the fields 101-104 can be arranged in any order, and is not used to impose any limitation on this embodiment. Furthermore, in the flowchart illustrated in FIG. 3, the processor 401 executes steps S01-S03 and S06 by executing the BIOS program, and the baseboard management controller 402 executes steps S04- by executing its firmware program. S10.

在一實施例中,前述之旗標可儲存在與處理器401連接之非揮發性記憶體單元中,也就是處理器401在執行步驟S02判斷出BIOS設定選項的設定值已變更之後,在步驟S03中,處理器401存取(access)與其連接之非揮發性記憶體單元,以設定旗標為第一資料格式。並且,在電腦裝置400重置後之步驟S06中,處理器401讀取前述與其連接之非揮發性記憶體單元,以讀取旗標而據以決定是否發送智慧平台管理介面指令。若處理器401讀取與其連接之非揮發性記憶體單元後判斷出旗標為第一資料格式,處理器401發送智慧平台管理介面指令至基板管理控制器402,致使基板管理控制器402根據智慧平台管理介面指令讀取連接於處理器401之非揮發性記憶體單元,以讀取旗標而據以決定是否比較當前值欄位104與先前值欄位103(步驟S07)。進一步,在基板管理控制器402將當前值欄位104的內容寫入先前值欄位103之後(步驟S09),基板管理控制器402在步驟S10中存取與處理器401連接之非揮發性記憶體單元,以設定旗標為預設之第二資料格式。In one embodiment, the aforementioned flag may be stored in a non-volatile memory unit connected to the processor 401, that is, after the processor 401 executes step S02 to determine that the setting value of the BIOS setting option has been changed, in step In S03, the processor 401 accesses the connected non-volatile memory unit to set the flag as the first data format. In addition, in step S06 after the computer device 400 is reset, the processor 401 reads the aforementioned non-volatile memory unit connected to it to read the flag to determine whether to send the smart platform management interface command. If the processor 401 reads the non-volatile memory unit connected to it and determines that the flag is the first data format, the processor 401 sends a smart platform management interface command to the baseboard management controller 402, causing the baseboard management controller 402 to follow the wisdom The platform management interface commands to read the non-volatile memory unit connected to the processor 401 to read the flag to determine whether to compare the current value field 104 with the previous value field 103 (step S07). Further, after the baseboard management controller 402 writes the content of the current value field 104 into the previous value field 103 (step S09), the baseboard management controller 402 accesses the non-volatile memory connected to the processor 401 in step S10 The body unit uses the setting flag as the default second data format.

在另一實施例中,前述之旗標亦可儲存在與基板管理控制器402連接之非揮發性記憶體單元中,也就是處理器401在步驟S03中係藉由基板管理控制器402存取(access)與基板管理控制器402連接之非揮發性記憶體單元,以藉由基板管理控制器402設定旗標為第一資料格式。並且,在電腦裝置400重置後之步驟S06中,處理器401藉由基板管理控制器402讀取前述與基板管理控制器402連接之非揮發性記憶體單元,以讀取旗標而據以決定是否發送智慧平台管理介面指令。若處理器401讀取與基板管理控制器402連接之非揮發性記憶體單元後判斷出旗標為第一資料格式,處理器401發送智慧平台管理介面指令至基板管理控制器402,致使基板管理控制器402根據智慧平台管理介面指令讀取與其連接之非揮發性記憶體單元,以讀取旗標而據以決定是否比較當前值欄位104與先前值欄位103(步驟S07)。進一步,基板管理控制器402在步驟S10中係存取與其連接之非揮發性記憶體單元,以設定旗標為預設之第二資料格式。In another embodiment, the aforementioned flag can also be stored in a non-volatile memory unit connected to the baseboard management controller 402, that is, the processor 401 is accessed by the baseboard management controller 402 in step S03. (Access) The non-volatile memory unit connected to the baseboard management controller 402 to set the flag as the first data format by the baseboard management controller 402. In addition, in step S06 after the computer device 400 is reset, the processor 401 reads the aforementioned non-volatile memory unit connected to the baseboard management controller 402 through the baseboard management controller 402 to read the flag and then Decide whether to send instructions from the smart platform management interface. If the processor 401 reads the non-volatile memory unit connected to the baseboard management controller 402 and determines that the flag is the first data format, the processor 401 sends a smart platform management interface command to the baseboard management controller 402, causing the baseboard management The controller 402 reads the non-volatile memory unit connected to the smart platform management interface command to read the flag to determine whether to compare the current value field 104 with the previous value field 103 (step S07). Furthermore, the baseboard management controller 402 accesses the non-volatile memory unit connected to it in step S10 to set the flag as the preset second data format.

綜上所述,根據本案之產生BIOS變更紀錄的方法的一實施例,可產生對應BIOS設定之修改歷史紀錄的變更紀錄資料,例如經修改之BIOS參數名稱、修改前之原始參數值、修改後之變更值以及時間戳記,並由BIOS設定選單或網路使用者介面顯示BIOS變更紀錄資料,可讓使用者快速地得知BIOS設定的修改內容,使用者能有效率地分析BIOS設定修改所產生的效果或影響,或有效率地將BIOS設定恢復至特定時間點的設定值,以提升對電腦裝置進行除錯之效率。再者,若電子系統係由不同單位共同進行測試,例如前述之測試部門及研發部門,研發部門能藉由BIOS變更紀錄資料詳細地得知各BIOS設定之設定值在修改過程中之變更而快速地將問題收斂,以縮短解錯之時間,進而加快產品之測試開發速度。In summary, according to an embodiment of the method for generating BIOS change records in this case, it is possible to generate change record data corresponding to the modification history of BIOS settings, such as modified BIOS parameter names, original parameter values before modification, and after modification The change value and time stamp, and the BIOS change record data can be displayed from the BIOS setting menu or the network user interface, which allows the user to quickly learn the modification content of the BIOS setting, and the user can efficiently analyze the BIOS setting modification The effect or influence of, or efficiently restore the BIOS settings to the settings at a specific time point to improve the efficiency of debugging computer devices. Furthermore, if the electronic system is jointly tested by different units, such as the aforementioned testing department and R&D department, the R&D department can learn in detail the changes of each BIOS setting during the modification process through the BIOS change record data. Converge the problem to shorten the time to solve the error, and then speed up the test and development of the product.

雖然本案已以實施例揭露如上,然其並非用以限定本案,任何所屬技術領域中具有通常知識者,在不脫離本案之精神和範圍內,當可作些許之更動與潤飾,故本案之保護範圍當視後附之專利申請範圍所界定者為準。Although this case has been disclosed in the above example, it is not used to limit the case. Anyone with ordinary knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of the case. Therefore, the protection of this case The scope shall be determined by the scope of the attached patent application.

100:BIOS變更紀錄資料表 101:BIOS選項索引欄位 102:BIOS選項名稱欄位 103:先前值欄位 104:當前值欄位 T1:時間戳記 201:時間欄位 202:變更紀錄資料欄位 203:變更紀錄資料欄位 204:變更紀錄資料欄位 400:電腦裝置 401:處理器 402:基板管理控制器 403:記憶體單元 S01-S10:步驟 100: BIOS change record data table 101: BIOS option index field 102: BIOS option name field 103: Previous value field 104: Current value field T1: Timestamp 201: Time field 202: Change record data field 203: Change record data field 204: Change record data field 400: computer device 401: processor 402: baseboard management controller 403: memory unit S01-S10: steps

[圖1A] 為根據本發明之實現BIOS變更紀錄方法之電腦裝置之一實施例之方塊示意圖。 [圖1B] 為根據本發明之實現BIOS變更紀錄方法之電腦裝置之另一實施例之方塊示意圖。 [圖2] 為根據本發明之一實施例之BIOS變更紀錄資料表的示意圖。 [圖3] 為根據本發明之BIOS變更紀錄方法之一實施例之流程圖。 [圖4] 為圖2之BIOS變更紀錄資料表之其他欄位之一實施例之示意圖。 [圖5] 為圖2之BIOS變更紀錄資料表之一實施態樣之示意圖。[FIG. 1A] is a block diagram of an embodiment of a computer device for implementing the BIOS change recording method according to the present invention. [FIG. 1B] is a block diagram of another embodiment of the computer device for implementing the BIOS change recording method according to the present invention. [Figure 2] is a schematic diagram of a BIOS change record data table according to an embodiment of the present invention. [Figure 3] is a flowchart of an embodiment of the BIOS change recording method according to the present invention. [Fig. 4] is a schematic diagram of an embodiment of other fields of the BIOS change record table in Fig. 2. [Figure 5] is a schematic diagram of an implementation aspect of the BIOS change record table in Figure 2.

400:電腦裝置 400: computer device

401:處理器 401: processor

402:基板管理控制器 402: baseboard management controller

403:記憶體單元 403: memory unit

Claims (10)

一種產生BIOS變更紀錄的方法,包含: 一電腦裝置之一基板管理控制器藉由一BIOS變更紀錄資料表之一先前值欄位儲存至少一BIOS設定選項之設定值,其中該BIOS變更紀錄資料表更包含一當前值欄位; 該電腦裝置之一處理器偵測該至少一BIOS設定選項的設定值是否變更; 當該處理器偵測出該至少一BIOS設定選項的設定值已變更時,該處理器將一旗標設定為一第一資料格式,且該基板管理控制器將該至少一BIOS設定選項變更後的一變更值寫入該當前值欄位,該電腦裝置於該變更值寫入後重置; 於該電腦裝置重置後,該基板管理控制器讀取該旗標並判斷該旗標是否為該第一資料格式; 於該基板管理控制器判斷出該旗標為該第一資料格式時,該基板管理控制器比對該當前值欄位與該先前值欄位的內容;以及 當該基板管理控制器比對出該當前值欄位與該先前值欄位的內容不相同時,該基板管理控制器將該當前值欄位與該先前值欄位的不同之處寫入該BIOS變更紀錄資料表。A method for generating BIOS change records, including: A baseboard management controller of a computer device stores the setting value of at least one BIOS setting option through a previous value field of a BIOS change record data table, wherein the BIOS change record data table further includes a current value field; A processor of the computer device detects whether the setting value of the at least one BIOS setting option is changed; When the processor detects that the setting value of the at least one BIOS setting option has been changed, the processor sets a flag to a first data format, and the baseboard management controller changes the at least one BIOS setting option A change value of is written into the current value field, and the computer device is reset after the change value is written; After the computer device is reset, the baseboard management controller reads the flag and determines whether the flag is in the first data format; When the baseboard management controller determines that the flag is the first data format, the baseboard management controller compares the content of the current value field with the previous value field; and When the baseboard management controller compares the content of the current value field and the previous value field to be different, the baseboard management controller writes the difference between the current value field and the previous value field BIOS change record data sheet. 如請求項1所述之產生BIOS變更紀錄的方法,更包含:在該基板管理控制器將該當前值欄位與該先前值欄位的不同之處寫入該BIOS變更紀錄資料表之後,該基板管理控制器將該當前值欄位的內容寫入該先前值欄位。The method for generating a BIOS change record as described in claim 1, further comprising: after the baseboard management controller writes the difference between the current value field and the previous value field into the BIOS change record data table, the The baseboard management controller writes the content of the current value field into the previous value field. 如請求項2所述之產生BIOS變更紀錄的方法,更包含:在該基板管理控制器將該當前值欄位的內容寫入該先前值欄位之後,該基板管理控制器將該旗標自該第一資料格式設定為預設之一第二資料格式,該第二資料格式不相同於該第一資料格式。The method for generating a BIOS change record as described in claim 2, further comprising: after the baseboard management controller writes the content of the current value field into the previous value field, the baseboard management controller self-writes the flag The first data format is set as a preset second data format, and the second data format is different from the first data format. 如請求項1所述之產生BIOS變更紀錄的方法,其中該基板管理控制器係在一時間點比對該當前值欄位與該先前值欄位所儲存的值,在該基板管理控制器將該當前值欄位與該先前值欄位的不同之處寫入該BIOS變更紀錄資料表之步驟中,該基板管理控制器更將該時間點寫入該BIOS變更紀錄資料表。The method for generating a BIOS change record according to claim 1, wherein the baseboard management controller compares the values stored in the current value field with the previous value field at a point in time, and the baseboard management controller will In the step of writing the difference between the current value field and the previous value field into the BIOS change record data table, the baseboard management controller further writes the time point into the BIOS change record data table. 如請求項1所述之產生BIOS變更紀錄的方法,其中該基板管理控制器讀取該旗標並判斷該旗標是否為該第一資料格式之步驟包含: 該處理器於該電腦裝置重置後判斷該旗標是否為該第一資料格式,若該旗標為該第一資料格式,該處理器發送一智慧平台管理介面指令;以及 該基板管理控制器根據該智慧平台管理介面指令讀取該旗標並判斷該旗標是否為該第一資料格式。The method for generating a BIOS change record according to claim 1, wherein the step of the baseboard management controller reading the flag and determining whether the flag is the first data format includes: The processor determines whether the flag is the first data format after the computer device is reset, and if the flag is the first data format, the processor sends a smart platform management interface command; and The baseboard management controller reads the flag according to the smart platform management interface command and determines whether the flag is the first data format. 如請求項1所述之產生BIOS變更紀錄的方法,其中該基板管理控制器將該當前值欄位與該先前值欄位的不同之處寫入該BIOS變更紀錄資料表之步驟中,該基板管理控制器更將該當前值欄位與該先前值欄位的不同之處所對應之該BIOS設定選項的BIOS參數設定名稱寫入該BIOS變更紀錄資料表。The method for generating a BIOS change record according to claim 1, wherein the baseboard management controller writes the difference between the current value field and the previous value field into the BIOS change record data table in the step, the baseboard The management controller further writes the BIOS parameter setting name of the BIOS setting option corresponding to the difference between the current value field and the previous value field into the BIOS change record data table. 如請求項1所述之產生BIOS變更紀錄的方法,在該處理器偵測出該至少一BIOS設定選項的設定值已變更之步驟中,該至少一BIOS設定選項的設定值於該處理器偵測出該至少一BIOS設定選項的設定值已變更之前與該處理器偵測出該至少一BIOS設定選項的設定值已變更之後係為完全相同。In the method for generating a BIOS change record as described in claim 1, in the step in which the processor detects that the setting value of the at least one BIOS setting option has been changed, the setting value of the at least one BIOS setting option is detected by the processor Before detecting that the setting value of the at least one BIOS setting option has been changed, it is completely the same after the processor detects that the setting value of the at least one BIOS setting option has been changed. 如請求項7所述之產生BIOS變更紀錄的方法,更包含:當該基板管理控制器根據為該第一資料格式之該旗標比對該當前值欄位與該先前值欄位的內容,並比對出該當前值欄位與該先前值欄位的內容完全相同時,該基板管理控制器將該旗標自該第一資料格式設定為預設之一第二資料格式,且該基板管理控制器不更新該BIOS變更紀錄資料表,其中,該第二資料格式不相同於該第一資料格式。The method for generating a BIOS change record as described in claim 7, further comprising: when the baseboard management controller compares the contents of the current value field and the previous value field according to the flag in the first data format, And compare the contents of the current value field and the previous value field to be exactly the same, the baseboard management controller sets the flag from the first data format to a preset second data format, and the baseboard The management controller does not update the BIOS change record data table, wherein the second data format is different from the first data format. 如請求項1至8中任一項所述之產生BIOS變更紀錄的方法,其中該BIOS變更紀錄資料表係儲存在該基板管理控制器中。The method for generating a BIOS change record according to any one of claim items 1 to 8, wherein the BIOS change record data table is stored in the baseboard management controller. 如請求項9所述之產生BIOS變更紀錄的方法,更包含:該基板管理控制器在將該當前值欄位與該先前值欄位的不同之處寫入該BIOS變更紀錄資料表之後,該基板管理控制器藉由一BIOS設定選單或一網路使用者介面顯示該BIOS變更紀錄資料表。The method for generating a BIOS change record as described in claim 9, further comprising: after the baseboard management controller writes the difference between the current value field and the previous value field into the BIOS change record data table, the The baseboard management controller displays the BIOS change record data table through a BIOS setting menu or a network user interface.
TW108101893A 2019-01-17 2019-01-17 Method of generating bios-change record TWI685791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108101893A TWI685791B (en) 2019-01-17 2019-01-17 Method of generating bios-change record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108101893A TWI685791B (en) 2019-01-17 2019-01-17 Method of generating bios-change record

Publications (2)

Publication Number Publication Date
TWI685791B TWI685791B (en) 2020-02-21
TW202028969A true TW202028969A (en) 2020-08-01

Family

ID=70413215

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108101893A TWI685791B (en) 2019-01-17 2019-01-17 Method of generating bios-change record

Country Status (1)

Country Link
TW (1) TWI685791B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506741B (en) * 2020-12-11 2023-03-10 浪潮电子信息产业股份有限公司 Communication method, device and equipment for BIOS and BMC in server boot process
CN114116031A (en) * 2021-11-22 2022-03-01 曙光信息产业股份有限公司 Method and device for synchronizing option parameters, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7487345B2 (en) * 2003-10-10 2009-02-03 Dell Products L.P. Method of comparing build capability flags of replacement BIOS with boot capability flags of current BIOS to determine compatibility between BIOS revisions and installed hardware during flash update
TWI296778B (en) * 2006-01-26 2008-05-11 Asustek Comp Inc Method and system for maintaining smbios
TW200905562A (en) * 2007-07-31 2009-02-01 Inventec Corp Method for auto-recovering BIOS and computer and system using the same
TWI356300B (en) * 2007-11-16 2012-01-11 Inventec Corp Method for adjusting setup default value of bios a
TW201015296A (en) * 2008-10-09 2010-04-16 Inventec Corp Method for auto-testing environment variable setting
US8060737B2 (en) * 2009-04-17 2011-11-15 Micro-Star Int'l Co., Ltd. Method and apparatus for preventing BIOS from failing to enter boot program

Also Published As

Publication number Publication date
TWI685791B (en) 2020-02-21

Similar Documents

Publication Publication Date Title
TWI470420B (en) Dubugging method and computer system using the smae
US20140068350A1 (en) Self-checking system and method using same
US8006144B2 (en) Memory testing
WO2019056475A1 (en) Automated test task management method and apparatus, device, and storage medium
TWI759719B (en) Flash memory controller and method used in flash memory controller
CN103164316B (en) Hardware monitor
TWI685791B (en) Method of generating bios-change record
JP2010086364A (en) Information processing device, operation state monitoring device and method
US9842044B2 (en) Commit sensitive tests
US8909989B2 (en) Method for outputting power-on self test information, virtual machine manager, and processor
TW201500919A (en) System and method of remote debugging BMC
TWI553490B (en) Method and system for remote system configuration management and non-transitory computer-readable storage medium
CN113377586A (en) Automatic server detection method and device and storage medium
TW201301023A (en) System and method for testing a mother board
TWI715201B (en) Hang-up information recording method
CN111666185A (en) Method for generating BIOS change record
TWI733964B (en) System for testing whole memory and method thereof
TWI733213B (en) Server device
US10922023B2 (en) Method for accessing code SRAM and electronic device
JP2015130023A (en) Information recording device, information processor, information recording method and information recording program
TWI845166B (en) Display method for memory module fatal error
CN111078239A (en) Map data updating method and device
TWI777259B (en) Boot method
TWI775360B (en) Storage device for recording status of hardware component of computer system and computer implementation method thereof
TWI807521B (en) Warning method