TWI733213B - Server device - Google Patents

Server device Download PDF

Info

Publication number
TWI733213B
TWI733213B TW108136472A TW108136472A TWI733213B TW I733213 B TWI733213 B TW I733213B TW 108136472 A TW108136472 A TW 108136472A TW 108136472 A TW108136472 A TW 108136472A TW I733213 B TWI733213 B TW I733213B
Authority
TW
Taiwan
Prior art keywords
version number
processing unit
volatile memory
server device
self
Prior art date
Application number
TW108136472A
Other languages
Chinese (zh)
Other versions
TW202115563A (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 TW108136472A priority Critical patent/TWI733213B/en
Publication of TW202115563A publication Critical patent/TW202115563A/en
Application granted granted Critical
Publication of TWI733213B publication Critical patent/TWI733213B/en

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A server device is provided. The server device includes a motherboard and a first non-volatile memory unit, a second non-volatile memory unit and a processing unit. The first non-volatile memory unit, the second non-volatile memory unit and the processing unit are disposed on the motherboard. The motherboard has a first version number. The first non-volatile memory unit stores BIOS code, and the BIOS code has a second version number. The processing unit executes the BIOS code to execute a POST (power-on self-test) procedure of the server device. In the POST procedure, the processing unit determines whether the first version number matches with the second version number. The processing unit stores a determining result that representing that they are mismatched into the second non-volatile memory unit when the first version number does not match with the second version number and the processing unit stops executing the POST procedure.

Description

伺服器裝置Server device

本案是關於一種伺服器裝置,且特別是可判斷主機板與BIOS程式碼之版本號碼之伺服器裝置。This case is about a server device, especially a server device that can determine the version number of the motherboard and BIOS code.

在伺服器裝置的生產測試階段及維修階段,通常係以人工之方式燒錄基本輸入輸出系統(Basic Input/Output System;BIOS)程式碼,經常發生以供應給A廠商之主機板錯誤地搭載供應給B廠商之BIOS程式碼,或是消費者在購買得伺服器裝置之後自行燒錄不符合其主機板之BIOS程式碼。在以上的情形中,BIOS程式碼與主機板之規格不符,雖然可以開機進入作業系統,但是初始化配置不符合主機板配置,如此會造成伺服器裝置運行不穩定,或經過一段時間後才導致伺服器裝置運行不穩定,嚴重將導致完全無法運作,且伺服器裝置的測試者或維修商在後續維修時將花費很多時間重新更新BIOS程式碼及除錯,以進一步確認是否解決伺服器裝置運行不穩定之問題,造成測試及維修之困難。In the production test phase and maintenance phase of the server device, the basic input/output system (BIOS) code is usually programmed manually, and it often happens that the motherboard supplied to manufacturer A is incorrectly loaded and supplied. The BIOS code for manufacturer B, or the consumer burns the BIOS code that does not conform to the motherboard after purchasing the server device. In the above situation, the BIOS code does not match the specifications of the motherboard. Although you can boot into the operating system, the initial configuration does not meet the motherboard configuration. This will cause the server device to run unstable or cause the servo after a period of time. The operation of the server device is unstable, which will result in complete failure. The tester or repairer of the server device will spend a lot of time re-updating the BIOS code and debugging during subsequent repairs to further confirm whether the server device is not running. Stability issues cause difficulties in testing and maintenance.

在一實施例中,一種伺服器裝置包含主機板及設置於主機板之第一非揮發記憶體單元、第二非揮發記憶體單元及處理單元。主機板具有第一版本號碼。第一非揮發記憶體單元用以儲存一BIOS程式碼,BIOS程式碼具有第二版本號碼。處理單元耦接第一非揮發記憶體單元及第二非揮發記憶體單元,用以執行BIOS程式碼以執行一開機自我測試程序,並在開機自我測試程序中判斷第一版本號碼與第二版本號碼是否匹配,當第一版本號碼不匹配第二版本號碼時,處理單元將表示第一版本號碼與第二版本號碼不匹配之一第一判斷結果紀錄於第二非揮發記憶體單元,且處理單元停止執行開機自我測試程序。In one embodiment, a server device includes a motherboard and a first non-volatile memory unit, a second non-volatile memory unit, and a processing unit disposed on the motherboard. The motherboard has a first version number. The first non-volatile memory unit is used for storing a BIOS code, and the BIOS code has a second version number. The processing unit is coupled to the first non-volatile memory unit and the second non-volatile memory unit, and is used to execute the BIOS code to perform a boot-up self-test procedure, and to determine the first version number and the second version in the boot-up self-test procedure Whether the numbers match, when the first version number does not match the second version number, the processing unit records a first judgment result indicating that the first version number does not match the second version number in the second non-volatile memory unit, and processes The unit stops executing the boot-up self-test procedure.

圖1為根據本案之伺服器裝置之一實施例之方塊示意圖。請參照圖1,伺服器裝置包含主機板11、第一非揮發記憶體單元12、第二非揮發記憶體單元13及處理單元14。其中,主機板11具有一版本號碼(以下稱為第一版本號碼),第一非揮發記憶體單元12、第二非揮發記憶體單元13及處理單元14係設置在主機板11上,處理單元14耦接第一非揮發記憶體單元12及第二非揮發記憶體單元13。FIG. 1 is a block diagram of an embodiment of the server device according to the present application. Please refer to FIG. 1, the server device includes a motherboard 11, a first non-volatile memory unit 12, a second non-volatile memory unit 13 and a processing unit 14. The motherboard 11 has a version number (hereinafter referred to as the first version number). The first non-volatile memory unit 12, the second non-volatile memory unit 13, and the processing unit 14 are arranged on the motherboard 11. The processing unit 14 is coupled to the first non-volatile memory unit 12 and the second non-volatile memory unit 13.

第一非揮發記憶體單元12係儲存基本輸入輸出系統(Basic Input/Output System;BIOS)程式碼,BIOS程式碼具有另一版本號碼(以下稱為第二版本號碼)。The first non-volatile memory unit 12 stores a basic input/output system (Basic Input/Output System; BIOS) code, and the BIOS code has another version number (hereinafter referred to as the second version number).

在伺服器裝置開機之後,處理單元14讀取第一非揮發記憶體單元12而執行BIOS程式碼,處理單元14執行伺服器裝置之開機自我測試(power on self test;POST)程序。在開機自我測試程序中,請合併參照圖1及圖2,處理單元14根據第一版本號碼及第二版本號碼判斷第一版本號碼與第二版本號碼是否匹配(步驟S01),當第一版本號碼與第二版本號碼不匹配時(判斷結果為「否」),處理單元14將表示第一版本號碼與第二版本號碼不匹配之判斷結果(以下稱為第一判斷結果)儲存於第二非揮發記憶體單元13(步驟S02),且處理單元14停止執行伺服器裝置之開機自我測試程序(步驟S03),使開機自我測試程序暫停。After the server device is turned on, the processing unit 14 reads the first non-volatile memory unit 12 to execute the BIOS code, and the processing unit 14 executes the power on self test (POST) procedure of the server device. In the power-on self-test procedure, please refer to Figures 1 and 2 together. The processing unit 14 judges whether the first version number matches the second version number according to the first version number and the second version number (step S01), when the first version number When the number does not match the second version number (the judgment result is "No"), the processing unit 14 stores the judgment result indicating that the first version number does not match the second version number (hereinafter referred to as the first judgment result) in the second The non-volatile memory unit 13 (step S02), and the processing unit 14 stops executing the power-on self-test procedure of the server device (step S03), and suspends the power-on self-test procedure.

舉例來說,以處理單元14在步驟S01係判斷第一版本號碼與第二版本號碼是否相同以判斷第一版本號碼與第二版本號碼是否匹配為例,以二進制碼表示之兩位元為例,當第一版本號碼及第二版本號碼分別為「01」及「11」時,處理單元14判斷出第一版本號碼及第二版本號碼並不相同,處理單元14產生第一版本號碼與第二版本號碼為不匹配之判斷結果。For example, in step S01, the processing unit 14 determines whether the first version number and the second version number are the same to determine whether the first version number matches the second version number as an example, taking the two digits represented by a binary code as an example When the first version number and the second version number are "01" and "11" respectively, the processing unit 14 determines that the first version number and the second version number are not the same, and the processing unit 14 generates the first version number and the second version number. The second version number is the judgment result of non-matching.

於此,若在工廠端製造伺服器裝置時使用版本號碼不匹配之BIOS程式碼與主機板11,在測試伺服器裝置時,測試者於伺服器裝置之開機自我檢測階段即可根據暫停之開機自我檢測程序而得知BIOS程式碼與主機板11之版本號碼不匹配;另一方面,若在工廠端使用版本號碼匹配之BIOS程式碼與主機板11,在伺服器裝置售出(以下稱為消費者端)之後,若使用者自行更新錯誤之BIOS程式碼而造成BIOS程式碼與主機板11之版本號碼不匹配,使用者於伺服器裝置之開機自我檢測階段即可根據暫停之開機自我檢測程序而得知BIOS程式碼與主機板11之版本號碼不匹配。於是,不論是在工廠端或消費者端,測試者與使用者均能立即地得知BIOS程式碼與主機板11之版本號碼係為不匹配,如此可提早得知且避免伺服器裝置根據版本號碼不匹配之BIOS程式碼與主機板11運作而造成伺服器裝置不穩定之問題。Here, if the BIOS code of the version number does not match with the motherboard 11 is used when the server device is manufactured at the factory, the tester can start the system according to the pause during the self-test phase of the server device when testing the server device. The self-checking process knows that the BIOS code does not match the version number of the motherboard 11. On the other hand, if the BIOS code with the version number matches the motherboard 11 at the factory, it will be sold on the server device (hereinafter referred to as (Consumer) Afterwards, if the user updates the wrong BIOS code and the BIOS code does not match the version number of the motherboard 11, the user can perform the paused boot self-test during the boot-up self-test phase of the server device The program learns that the BIOS code does not match the version number of the motherboard 11. Therefore, whether it is on the factory or consumer side, both the tester and the user can immediately know that the BIOS code and the version number of the motherboard 11 do not match, so that it can be known in advance and avoid the server device according to the version. The BIOS code that does not match the number and the operation of the motherboard 11 cause the problem of instability of the server device.

在一實施例中,第一版本號碼及第二版本號碼係可表示廠商資訊或韌體版本資訊。第二非揮發記憶體單元13可為欄位可更換單元(field-replaceable unit;FRU)。In one embodiment, the first version number and the second version number may indicate manufacturer information or firmware version information. The second non-volatile memory unit 13 may be a field-replaceable unit (FRU).

在一實施例中,在步驟S01中,若處理單元14判斷出第一版本號碼與第二版本號碼相同(判斷結果為「是」),處理單元14可將表示第一版本號碼與第二版本號碼為匹配之另一判斷結果(以下稱為第二判斷結果)儲存在第二非揮發記憶體單元13(步驟S04),且第二判斷結果與第一判斷結果之間並不相互覆蓋。舉例來說,若在工廠端製造伺服器裝置時使用正確匹配的第一版本號碼與第二版本號碼,則處理單元14在測試階段之開機自我測試程序中係根據匹配之第一版本號碼及第二版本號碼(判斷結果為「是」)執行步驟S04而將第二判斷結果儲存在第二非揮發記憶體單元13;至於消費者端,若使用者自行更新錯誤之BIOS程式碼,則處理單元14在開機自我檢測程序中係根據不匹配之第一版本號碼及第二版本號碼(判斷結果為「否」)執行步驟S02而將第一判斷結果儲存在第二非揮發記憶體單元13,此時,第二非揮發記憶體單元13儲存有第一判斷結果及第二判斷結果,若使用者欲維修伺服器裝置,伺服器裝置之維修商即可根據同時存在之第一判斷結果與第二判斷結果進一步進行除錯與維修。In one embodiment, in step S01, if the processing unit 14 determines that the first version number is the same as the second version number (the determination result is "Yes"), the processing unit 14 may combine the first version number and the second version number. Another judgment result (referred to as the second judgment result hereinafter) that the number is a match is stored in the second non-volatile memory unit 13 (step S04), and the second judgment result and the first judgment result do not overlap each other. For example, if the first version number and the second version number that are correctly matched are used when the server device is manufactured at the factory, the processing unit 14 is based on the matched first version number and the second version number in the power-on self-test procedure in the test phase. The second version number (the judgment result is "Yes") execute step S04 and store the second judgment result in the second non-volatile memory unit 13; as for the consumer side, if the user updates the wrong BIOS code by himself, the processing unit 14 In the power-on self-test procedure, step S02 is executed according to the unmatched first version number and second version number (the judgment result is "No"), and the first judgment result is stored in the second non-volatile memory unit 13. This When the second non-volatile memory unit 13 stores the first judgment result and the second judgment result, if the user wants to repair the server device, the repairer of the server device can use the first judgment result and the second judgment result that exist at the same time. The judgment result is further debugged and repaired.

在一實施例中,以低邏輯位準之「0」與高邏輯位準之「1」分別表示第一版本號碼與第二版本號碼為匹配或不匹配為例,在步驟S04中,處理單元14可將低邏輯位準之「0」儲存於第二非揮發記憶體單元13,在步驟S02中,處理單元14可將高邏輯位準之「1」儲存於第二非揮發記憶體單元13,以區別第一版本號碼匹配或不匹配第二版本號碼之判斷結果。In one embodiment, the low logic level "0" and the high logic level "1" respectively indicate that the first version number and the second version number match or do not match as an example. In step S04, the processing unit 14 The low logic level "0" can be stored in the second non-volatile memory unit 13. In step S02, the processing unit 14 can store the high logic level "1" in the second non-volatile memory unit 13 , To distinguish the judgment result of the first version number matching or not matching the second version number.

承上,若在工廠端製造伺服器裝置時使用正確匹配的第一版本號碼與第二版本號碼且使用者未自行更新BIOS程式碼,在處理單元14判斷出第一版本號碼匹配第二版本號碼(判斷結果為「是」)之後,處理單元14繼續執行開機自我測試程序(步驟S05),待完成開機自我測試程序之後,處理單元14執行作業系統(OS)。在作業系統中,第二非揮發記憶體單元13係處於讀取及寫入鎖定狀態,也就是伺服器裝置之使用者並無法在作業系統中藉由讀取第二非揮發記憶體單元13而得到前述儲存於第二非揮發記憶體單元13之第二判斷結果,也就是使用者並無法更改已儲存於第二非揮發記憶體單元13中之第二判斷結果,換言之,第二判斷結果係為隱藏資訊,如此能避免使用者修改處理單元14於測試階段中已判斷出BIOS程式碼與主機板11之版本號碼為匹配之判斷結果。In addition, if the correct matching first version number and second version number are used when the server device is manufactured at the factory and the user does not update the BIOS code by himself, the processing unit 14 determines that the first version number matches the second version number (The judgment result is “Yes”), the processing unit 14 continues to execute the boot-up self-test procedure (step S05), and after the boot-up self-test procedure is completed, the processing unit 14 executes the operating system (OS). In the operating system, the second non-volatile memory unit 13 is in a read and write locked state, that is, the user of the server device cannot read the second non-volatile memory unit 13 in the operating system. Obtain the aforementioned second judgment result stored in the second non-volatile memory unit 13, that is, the user cannot modify the second judgment result stored in the second non-volatile memory unit 13, in other words, the second judgment result is In order to hide the information, this can prevent the user from modifying the determination result that the processing unit 14 has determined that the BIOS code and the version number of the motherboard 11 match during the testing phase.

在一實施例中,如圖1所示,伺服器裝置更包含一顯示單元16耦接處理單元14,請合併參照圖3,當處理單元14執行步驟S01後判斷出第一版本號碼與第二版本號碼不匹配(判斷結果為「否」)時,處理單元14可驅使顯示單元16顯示一警示訊息(步驟S07),以提示伺服器裝置之製造商或使用者當前使用之BIOS程式碼與主機板11不匹配。其中,警示訊息可以為文字、圖案或文字與圖案之組合。In one embodiment, as shown in FIG. 1, the server device further includes a display unit 16 coupled to the processing unit 14. Please refer to FIG. 3. When the processing unit 14 executes step S01, it determines the first version number and the second version number. When the version number does not match (the judgment result is "No"), the processing unit 14 can drive the display unit 16 to display a warning message (step S07) to remind the manufacturer or user of the server device of the BIOS code and the host computer currently used Board 11 does not match. Wherein, the warning message can be text, pattern, or a combination of text and pattern.

在一實施例中,在步驟S04中,處理單元14可進一步將主機板11之版本號碼與BIOS程式碼之版本號碼為匹配之時間資訊儲存於第二非揮發記憶體單元13,時間資訊可包含日期及時間;並且,在步驟S04中,處理單元14亦可進一步將匹配之BIOS程式碼與主機板11之版本號碼儲存於第二非揮發記憶體單元13。爾後,若處理單元14判斷出BIOS程式碼與主機板11之版本號碼不匹配,則在步驟S07中,處理單元14可進一步根據第二非揮發記憶體單元13中已儲存之資訊驅使顯示單元16顯示先前係為匹配之BIOS程式碼與主機板11之版本號碼以及先前之時間資訊,並驅使顯示單元16顯示當下不匹配之BIOS程式碼與主機板11之版本號碼,使伺服器裝置之檢測者可根據顯示單元16顯示之時間資訊確認BIOS程式碼與主機板11之版本號碼不匹配之時間係為晚於前述之時間資訊,並根據先前為匹配之版本號碼與當前不匹配之版本號碼進行維修及除錯。In one embodiment, in step S04, the processing unit 14 may further store the time information that matches the version number of the motherboard 11 with the version number of the BIOS code in the second non-volatile memory unit 13. The time information may include Date and time; and, in step S04, the processing unit 14 can further store the matching BIOS code and the version number of the motherboard 11 in the second non-volatile memory unit 13. Thereafter, if the processing unit 14 determines that the BIOS code does not match the version number of the motherboard 11, in step S07, the processing unit 14 may further drive the display unit 16 based on the information stored in the second non-volatile memory unit 13 Display the previously matched BIOS code and the version number of the motherboard 11 and the previous time information, and drive the display unit 16 to display the current mismatched BIOS code and the version number of the motherboard 11, so that the server device can be detected According to the time information displayed by the display unit 16, it can be confirmed that the time when the BIOS code does not match the version number of the motherboard 11 is later than the aforementioned time information, and repairs are performed based on the previously matched version number and the current version number that does not match. And debugging.

舉例來說,若製造商係使用正確匹配的主機板11之版本號碼與BIOS程式碼之版本號碼(以下稱為第四版本號碼),以二進制碼表示之兩位元為例,第四版本號碼可為「01」,在測試程序中,以前述之主機板11的第一版本號碼為「01」為例,若處理單元14在107年1月1日執行開機自我測試程序,處理單元14在執行步驟S01之後係根據均為「01」而正確匹配的第一版本號碼與第四版本號碼執行步驟S04,且處理單元14在步驟S04中係將均為「01」之第一版本號碼及第四版本號碼以及107年1月1日之時間資訊儲存於第二非揮發記憶體單元13;爾後,待伺服器裝置販售至消費者端,若伺服器裝置之使用者自行更新錯誤之BIOS程式碼,使主機板11之第一版本號碼與BIOS程式碼之版本號碼(以下稱為第二版本號碼)為不匹配,例如前述之第二版本號碼為「11」,則處理單元14在執行步驟S01、S02之後係根據錯誤匹配的第一版本號碼與第二版本號碼執行步驟S07,且處理單元14在步驟S07中係驅使顯示單元16顯示警示訊息、「01」之第四版本號碼、107年1月1日之時間資訊以及當前分別為「01」、「11」之第一版本號碼及第二版本號碼。如此一來,伺服器裝置之檢測者即可根據前述之顯示資訊進行維修及除錯。For example, if the manufacturer uses the correct matching version number of the motherboard 11 and the version number of the BIOS code (hereinafter referred to as the fourth version number), take the two digits represented by the binary code as an example, the fourth version number It can be "01". In the test procedure, take the aforementioned first version number of the motherboard 11 as "01" as an example. If the processing unit 14 executes the boot-up self-test procedure on January 1, 107, the processing unit 14 is After step S01 is executed, step S04 is executed according to the first version number and the fourth version number that are both "01" and correctly matched, and the processing unit 14 in step S04 is the first version number and the first version number of "01". The fourth version number and the time information of January 1, 107 are stored in the second non-volatile memory unit 13; later, the server device will be sold to the consumer, if the user of the server device updates the wrong BIOS program by himself Code so that the first version number of the motherboard 11 does not match the version number of the BIOS code (hereinafter referred to as the second version number). For example, the aforementioned second version number is "11", and the processing unit 14 executes the step After S01 and S02, step S07 is executed according to the incorrectly matched first version number and second version number, and in step S07, the processing unit 14 drives the display unit 16 to display a warning message, the fourth version number of "01", and 107 years. The time information on January 1 and the current version number of the first version and second version of "01" and "11". In this way, the inspector of the server device can perform maintenance and debugging based on the aforementioned display information.

在一實施例中,如圖3所示,在步驟S01中當處理單元14判斷出主機板11之版本號碼與BIOS程式碼之版本號碼不匹配時(判斷結果為「否」),顯示單元16在步驟S07中更顯示一密碼輸入畫面。待使用者於伺服器裝置鍵入密碼時,處理單元14接收使用者鍵入之輸入密碼,處理單元14進一步比對輸入密碼與預設密碼,以藉由使用者鍵入之輸入密碼判斷使用者是否具有刷新BIOS程式碼之權限。於是,處理單元14判斷輸入密碼與預設密碼是否相同(步驟S06),當輸入密碼與預設密碼相同時(判斷結果為「是」),表示使用者具有刷新BIOS程式碼之權限,處理單元14即繼續執行伺服器裝置之開機自我測試程序(步驟S05),在開機自我測試程序完成之後,使用者可重新刷新BIOS程式碼,以更新BIOS程式碼之版本號碼;當輸入密碼與預設密碼不相同時(判斷結果為「否」),表示使用者不具有刷新BIOS程式碼之權限,處理單元14即不繼續執行伺服器裝置之開機自我測試程序,使伺服器裝置之開機自我測試程序維持在暫停之狀態(步驟S03),使用者則無法重新刷新BIOS程式碼。In one embodiment, as shown in FIG. 3, in step S01, when the processing unit 14 determines that the version number of the motherboard 11 does not match the version number of the BIOS code (the determination result is "No"), the display unit 16 In step S07, a password input screen is further displayed. When the user enters a password on the server device, the processing unit 14 receives the input password entered by the user, and the processing unit 14 further compares the input password with the preset password to determine whether the user has a refresh by the input password entered by the user Permission of BIOS code. Therefore, the processing unit 14 judges whether the input password is the same as the preset password (step S06). When the input password is the same as the preset password (the judgment result is "Yes"), it means that the user has the authority to refresh the BIOS code, and the processing unit 14 Continue to perform the power-on self-test process of the server device (step S05). After the power-on self-test process is completed, the user can refresh the BIOS code to update the version number of the BIOS code; when the password and the default password are entered When they are not the same (the judgment result is "No"), it means that the user does not have the authority to refresh the BIOS code, and the processing unit 14 does not continue to execute the boot-up self-test procedure of the server device, so that the boot-up self-test procedure of the server device is maintained In the suspended state (step S03), the user cannot refresh the BIOS code again.

在一實施例中,前述之預設密碼係由伺服器裝置之維修商所持有,僅有維修商具有重新刷新BIOS程式碼之權限;或者,伺服器裝置之使用者亦可由維修商取得預設密碼,以自行刷新BIOS程式碼。In one embodiment, the aforementioned default password is held by the repairer of the server device, and only the repairer has the authority to re-flash the BIOS code; or, the user of the server device can also obtain the pre-set password from the repairer. Set a password to refresh the BIOS code by yourself.

在一實施例中,主機板11之版本號碼可以二進制碼表示,且如圖1所示,處理單元14係包含處理器141及平台路徑控制器(PCH)142,處理器141耦接平台路徑控制器142。平台路徑控制器142包含由上拉電阻與接地電阻組成之號碼產生電路。在伺服器裝置上電之後,上拉電阻與接地電阻可產生以二進制碼表示之主機板11之版本號碼(例如前述之第一版本號碼)。基此,在步驟S01中,處理單元14在執行開機自我檢測程序時係執行BIOS程式碼而主動地發送要求主機板11之版本號碼之請求訊號至平台路徑控制器142,當處理器141發送前述之請求訊號時,平台路徑控制器142之號碼產生電路即輸出以二進制碼表示之主機板11之版本號碼。處理單元14自平台路徑控制器142取得主機板11之版本號碼之後,處理單元14根據BIOS程式碼包含之版本號碼執行步驟S01以判斷主機板11之版本號碼與BIOS程式碼之版本號碼是否匹配。In one embodiment, the version number of the motherboard 11 can be represented by a binary code, and as shown in FIG. 1, the processing unit 14 includes a processor 141 and a platform path controller (PCH) 142. The processor 141 is coupled to the platform path controller.器142. The platform path controller 142 includes a number generating circuit composed of a pull-up resistor and a ground resistor. After the server device is powered on, the pull-up resistor and the ground resistor can generate the version number of the motherboard 11 (for example, the aforementioned first version number) expressed in binary code. Based on this, in step S01, the processing unit 14 executes the BIOS code while executing the power-on self-test procedure and actively sends a request signal requesting the version number of the motherboard 11 to the platform path controller 142. When the processor 141 sends the aforementioned At the time of the request signal, the number generating circuit of the platform path controller 142 outputs the version number of the motherboard 11 expressed in binary code. After the processing unit 14 obtains the version number of the motherboard 11 from the platform path controller 142, the processing unit 14 executes step S01 according to the version number contained in the BIOS code to determine whether the version number of the motherboard 11 matches the version number of the BIOS code.

在一實施例中,當主機板11之版本號碼與BIOS程式碼之版本號碼不匹配時,處理單元14觸發伺服器裝置的系統事件日誌(System Event Log;SEL),系統事件日誌至少包含主機板11之版本號碼與BIOS程式碼之版本號碼不匹配之異常資訊。詳細而言,如圖1所示,伺服器裝置更包含一基板管理控制單元(BMC)15耦接處理單元14,以前述之第一版本號碼與第二版本號碼為例,當處理單元14判斷出第一版本號碼與第二版本號碼不匹配時,處理單元14觸發基板管理控制單元15(步驟S07),使基板管理控制單元15將前述之第二判斷結果及相應之第四版本號碼、警示訊息、時間資訊、及當前不匹配之第一版本號碼及第二版本號碼紀錄於系統事件日誌,以供伺服器裝置之管理者藉由基板管理控制單元15以遠端連線之方式查詢系統事件日誌。In one embodiment, when the version number of the motherboard 11 does not match the version number of the BIOS code, the processing unit 14 triggers the system event log (SEL) of the server device. The system event log at least contains the motherboard The exception information that the version number of 11 does not match the version number of the BIOS code. In detail, as shown in FIG. 1, the server device further includes a baseboard management control unit (BMC) 15 coupled to the processing unit 14. Taking the aforementioned first version number and second version number as examples, when the processing unit 14 determines When the first version number does not match the second version number, the processing unit 14 triggers the baseboard management control unit 15 (step S07) to make the baseboard management control unit 15 report the aforementioned second judgment result and the corresponding fourth version number, and alert Messages, time information, and the currently unmatched first version number and second version number are recorded in the system event log for the server device manager to query system events via remote connection via the baseboard management control unit 15 Log.

綜上所述,根據本案之伺服器裝置之一實施例,處理單元可判斷主機板之版本號碼與BIOS程式碼之版本號碼是否匹配,不論是在工廠端或消費者端,處理單元均可在開機自我檢測程序中檢查出不匹配之版本號碼,以避免伺服器裝置運作不穩定之問題,且可藉由顯示警示訊息來提示使用者BIOS程式碼之版本號碼並未匹配於主機板之版本號碼。再者,處理單元可將主機板與BIOS程式碼之版本號碼為匹配或不匹配之判斷結果紀錄在非揮發性記憶體,且兩判斷結果係為不相互覆蓋之隱藏資訊,檢測者即可據以進行伺服器裝置之維修及除錯。In summary, according to an embodiment of the server device in this case, the processing unit can determine whether the version number of the motherboard matches the version number of the BIOS code. Whether it is on the factory side or the consumer side, the processing unit can be The mismatched version number is checked in the boot self-test process to avoid the problem of unstable operation of the server device, and a warning message can be displayed to remind the user that the version number of the BIOS code does not match the version number of the motherboard . Furthermore, the processing unit can record the judgment result that the version numbers of the motherboard and the BIOS code are matched or unmatched in the non-volatile memory, and the two judgment results are hidden information that does not cover each other. To repair and debug the server device.

雖然本案已以實施例揭露如上然其並非用以限定本案,任何所屬技術領域中具有通常知識者,在不脫離本案之精神和範圍內,當可作些許之更動與潤飾,故本案之保護範圍當視後附之專利申請範圍所界定者為準。Although this case has been disclosed by the examples above, it is not intended 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 scope of protection of this case The scope of the patent application attached hereafter shall prevail.

11          主機板 12          第一非揮發記憶體單元 13          第二非揮發記憶體單元 14          處理單元 141        處理器 142        平台路徑控制器 15          基板管理控制單元 16          顯示單元 S01-S07 步驟 11 Motherboard 12 The first non-volatile memory unit 13 The second non-volatile memory unit 14 Processing unit 141 Processor 142 Platform path controller 15 Substrate management control unit 16 Display unit S01-S07 steps

[圖1] 為根據本案之伺服器裝置之一實施例之方塊示意圖。 [圖2] 為根據本案之伺服器裝置於判斷主機板與BIOS程式碼之版本號碼之一實施例之流程圖。 [圖3] 為根據本案之伺服器裝置於判斷主機板與BIOS程式碼之版本號碼之另一實施例之流程圖。 [Figure 1] is a block diagram of an embodiment of the server device according to the present application. [Figure 2] is a flowchart of an embodiment of determining the version numbers of the motherboard and BIOS code for the server device according to this case. [Figure 3] is a flowchart of another embodiment of determining the version numbers of the motherboard and BIOS code for the server device according to the present case.

11          主機板 12          第一非揮發記憶體單元 13          第二非揮發記憶體單元 14          處理單元 141        處理器 142        平台路徑控制器 15          基板管理控制單元 16          顯示單元 11 Motherboard 12 The first non-volatile memory unit 13 The second non-volatile memory unit 14 Processing unit 141 Processor 142 Platform path controller 15 Substrate management control unit 16 Display unit

Claims (9)

一種伺服器裝置,包含:一主機板,具有一第一版本號碼;一第一非揮發記憶體單元,設置於該主機板,用以儲存一BIOS程式碼,該BIOS程式碼具有一第二版本號碼;一第二非揮發記憶體單元,設置於該主機板;一處理單元,設置於該主機板,耦接該第一非揮發記憶體單元及該第二非揮發記憶體單元,用以執行該BIOS程式碼以執行一開機自我測試程序,並在該開機自我測試程序中判斷該第一版本號碼與該第二版本號碼是否匹配,當該第一版本號碼不匹配該第二版本號碼時,該處理單元將表示該第一版本號碼與該第二版本號碼不匹配之一第一判斷結果紀錄於該第二非揮發記憶體單元,且該處理單元停止執行該開機自我測試程序;及一基板管理控制單元耦接該處理單元,其中當該第一版本號碼與該第二版本號碼不匹配時,該處理單元驅使該基板管理控制單元儲存該第一判斷結果於一系統事件日誌。 A server device includes: a motherboard with a first version number; a first non-volatile memory unit arranged on the motherboard for storing a BIOS code, the BIOS code having a second version Number; a second non-volatile memory unit, arranged on the motherboard; a processing unit, arranged on the motherboard, coupled to the first non-volatile memory unit and the second non-volatile memory unit for execution The BIOS code is used to perform a boot-up self-test process, and in the boot-up self-test process it is determined whether the first version number matches the second version number, and when the first version number does not match the second version number, The processing unit records a first judgment result indicating that the first version number does not match the second version number in the second non-volatile memory unit, and the processing unit stops executing the boot-up self-test procedure; and a substrate The management control unit is coupled to the processing unit, wherein when the first version number does not match the second version number, the processing unit drives the substrate management control unit to store the first determination result in a system event log. 如請求項1所述之伺服器裝置,其中當該第一版本號碼匹配該第二版本號碼時,該處理單元將表示該第一版本號碼與該第二版本號碼為匹配之一第二判斷結果儲存於該第二非揮發記憶體單元,且該第二判斷結果與該第一判斷結果於該第二非揮發記憶體單元中係不相互覆蓋。 The server device according to claim 1, wherein when the first version number matches the second version number, the processing unit will indicate that the first version number matches the second version number as a second judgment result It is stored in the second non-volatile memory unit, and the second judgment result and the first judgment result do not cover each other in the second non-volatile memory unit. 如請求項2所述之伺服器裝置,其中當該第一版本號碼匹配該第二版本號碼時,該處理單元繼續執行該開機自我測試程序以完成 該開機自我測試程序,且該處理單元在該開機自我測試程序完成後執行一作業系統,其中該第二判斷結果於該作業系統中係為一隱藏資訊。 The server device according to claim 2, wherein when the first version number matches the second version number, the processing unit continues to execute the power-on self-test procedure to complete The boot-up self-test procedure, and the processing unit executes an operating system after the boot-up self-test procedure is completed, wherein the second judgment result is a hidden information in the operating system. 如請求項3所述之伺服器裝置,其中該第二非揮發記憶體單元於該作業系統係處於一讀取及寫入鎖定狀態。 The server device according to claim 3, wherein the second non-volatile memory unit is in a read and write lock state in the operating system. 如請求項2所述之伺服器裝置,其中當該第一版本號碼匹配該第二版本號碼時,該處理單元更將該第一版本號碼、該第二版本號碼及判斷該第一版本號碼與該第二版本號碼為匹配之一時間資訊儲存於該第二非揮發記憶體單元。 The server device according to claim 2, wherein when the first version number matches the second version number, the processing unit further determines whether the first version number, the second version number, and the first version number match the second version number. The second version number is a match of time information stored in the second non-volatile memory unit. 如請求項1所述之伺服器裝置,其中在該開機自我測試程序中該處理單元判斷該第一版本號碼與該第二版本號碼是否匹配之前,該第二非揮發記憶體單元已儲存有該第一版本號碼及該BIOS程式碼之一第四版本號碼,且該第一版本號碼匹配該第四版本號碼,當該處理單元在該開機自我測試程序中判斷出該第一版本號碼不匹配該第二版本號碼時,該處理單元更驅使該基板管理控制單元儲存該第四版本號碼於該系統事件日誌。 The server device according to claim 1, wherein before the processing unit determines whether the first version number matches the second version number in the power-on self-test procedure, the second non-volatile memory unit already stores the The first version number and the fourth version number of the BIOS code, and the first version number matches the fourth version number, when the processing unit determines in the power-on self-test procedure that the first version number does not match the In the case of the second version number, the processing unit further drives the baseboard management control unit to store the fourth version number in the system event log. 如請求項6所述之伺服器裝置,其中於該處理單元判斷該第一版本號碼與該第二版本號碼是否匹配之前,該第二非揮發記憶體單元更已儲存有該第一版本號碼與該第四版本號碼匹配之一時間資訊,當該處理單元在該開機自我測試程序中判斷出該第一版本號碼不匹配該第二版本號碼時,該處理單元更驅使該基板管理控制單元儲存該時間資訊於該系統事件日誌。 The server device according to claim 6, wherein before the processing unit determines whether the first version number matches the second version number, the second non-volatile memory unit further stores the first version number and The fourth version number matches a piece of time information. When the processing unit determines in the power-on self-test procedure that the first version number does not match the second version number, the processing unit further drives the baseboard management control unit to store the The time information is in the system event log. 如請求項1所述之伺服器裝置,其中該處理單元包含一處理器及一平台路徑控制器,該平台路徑控制器包含用以產生該第一版本號碼之上拉電阻與接地電阻;在該開機自我測試程序中,該平台路徑控制器係根據來自該處理器之一請求訊號發送該第一版本號碼至該處理器,使該處理器判斷該第一版本號碼與該第二版本號碼是否匹配。 The server device according to claim 1, wherein the processing unit includes a processor and a platform path controller, and the platform path controller includes a pull-up resistor and a ground resistor for generating the first version number; In the boot-up self-test program, the platform path controller sends the first version number to the processor according to a request signal from the processor, so that the processor determines whether the first version number matches the second version number . 如請求項1所述之伺服器裝置,其中當該第一版本號碼與該第二版本號碼不相同時,該處理單元在停止執行該開機自我測試程序之前更判斷輸入該伺服器裝置之一輸入密碼是否匹配一預設密碼,當該輸入密碼匹配該預設密碼時,該處理單元執行該BIOS程式碼,以完成該開機自我測試程序而執行一作業系統,當該輸入密碼不匹配該預設密碼時,該處理單元始停止執行該開機自我測試程序。 The server device according to claim 1, wherein when the first version number is different from the second version number, the processing unit further judges to input an input of the server device before stopping executing the boot-up self-test procedure Whether the password matches a preset password, when the input password matches the preset password, the processing unit executes the BIOS code to complete the boot-up self-test procedure and execute an operating system, when the input password does not match the preset password When the password is entered, the processing unit stops executing the power-on self-test program.
TW108136472A 2019-10-08 2019-10-08 Server device TWI733213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108136472A TWI733213B (en) 2019-10-08 2019-10-08 Server device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108136472A TWI733213B (en) 2019-10-08 2019-10-08 Server device

Publications (2)

Publication Number Publication Date
TW202115563A TW202115563A (en) 2021-04-16
TWI733213B true TWI733213B (en) 2021-07-11

Family

ID=76604355

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108136472A TWI733213B (en) 2019-10-08 2019-10-08 Server device

Country Status (1)

Country Link
TW (1) TWI733213B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201430702A (en) * 2013-01-16 2014-08-01 Acer Inc Method and system for updating firmware
TW201500911A (en) * 2013-06-26 2015-01-01 Inventec Corp Debug device and debug method
TW201818253A (en) * 2016-11-11 2018-05-16 英業達股份有限公司 Detection system and detection method
TW201821990A (en) * 2016-12-14 2018-06-16 英業達股份有限公司 Computer system and detection method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201430702A (en) * 2013-01-16 2014-08-01 Acer Inc Method and system for updating firmware
TW201500911A (en) * 2013-06-26 2015-01-01 Inventec Corp Debug device and debug method
TW201818253A (en) * 2016-11-11 2018-05-16 英業達股份有限公司 Detection system and detection method
TW201821990A (en) * 2016-12-14 2018-06-16 英業達股份有限公司 Computer system and detection method

Also Published As

Publication number Publication date
TW202115563A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
TWI584196B (en) Bios recovery management system, computer program product and method for bios restoration
US10365961B2 (en) Information handling system pre-boot fault management
TWI522838B (en) Configuring a system
WO2022198972A1 (en) Method, system and apparatus for fault positioning in starting process of server
US9703635B2 (en) Method, computer program, and computer for restoring set of variables
TWI470420B (en) Dubugging method and computer system using the smae
TW202136996A (en) Method and system for optimal boot path for a network device
TW201520895A (en) System and method for automatically recovering BIOS of a computer
TW201512831A (en) Computer booting system and method of a computer
TW202030602A (en) The method and system of bios recovery and update
TW201944239A (en) Server and method for restoring a baseboard management controller automatically
TW200809489A (en) BIOS damage detection and repair method and the motherboard
TWI733213B (en) Server device
TWI685791B (en) Method of generating bios-change record
TW202018312A (en) Testing system
TW201734779A (en) Boot status notification method and server system using the same
TWI715201B (en) Hang-up information recording method
CN112256535B (en) Hard disk alarm method, device, computer equipment and storage medium
TWI537721B (en) Baseboard management control system and method
US20200119985A1 (en) Changing security state of device
TWI777259B (en) Boot method
TWI467484B (en) Bios for self-verifying option rom and the verifying method thereof
CN113626303A (en) Server device
TW201300801A (en) Method and system for checking information of test equipment
TWI807521B (en) Warning method