TWI858939B - Management platform system and bootloader repariring method thereof - Google Patents
Management platform system and bootloader repariring method thereof Download PDFInfo
- Publication number
- TWI858939B TWI858939B TW112137189A TW112137189A TWI858939B TW I858939 B TWI858939 B TW I858939B TW 112137189 A TW112137189 A TW 112137189A TW 112137189 A TW112137189 A TW 112137189A TW I858939 B TWI858939 B TW I858939B
- Authority
- TW
- Taiwan
- Prior art keywords
- circuit
- control circuit
- boot program
- storage circuit
- management platform
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 230000005540 biological transmission Effects 0.000 claims abstract description 42
- 238000001514 detection method Methods 0.000 claims description 25
- 238000004891 communication Methods 0.000 claims description 17
- 230000008439 repair process Effects 0.000 claims description 15
- 230000008859 change Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 description 21
- 230000036541 health Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000011068 loading method Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本發明係有關於基板管理控制器,特別是有關於一種管理平台系統及其引導程式修復方法。The present invention relates to a baseboard management controller, and more particularly to a management platform system and a boot program repair method thereof.
近年來,伺服器的安全及穩定愈來愈受到重視,透過輔助控制器來協助系統中的基板管理控制器(Baseboard Management Controller,BMC)維持穩定運作也愈來愈流行。當伺服器被供電後,BMC開始初始化前,BMC需要先載入執行韌體映像檔以進行初始化,進而於完成初始化後載入執行韌體映像檔中的韌體主程式,隨後方能藉由執行韌體主程式以進行BMC之各種功能。然而,當被載入的韌體映像檔出現錯誤或毀損時,則需人員到現場更新BMC的韌體映像檔。In recent years, the safety and stability of servers have received more and more attention, and it has become more and more popular to use auxiliary controllers to assist the baseboard management controller (BMC) in the system to maintain stable operation. When the server is powered on, before the BMC starts to initialize, the BMC needs to load the execution firmware image file for initialization, and then load the firmware main program in the execution firmware image file after the initialization is completed. After that, the various functions of the BMC can be performed by executing the firmware main program. However, when the loaded firmware image file is wrong or damaged, personnel are required to go to the site to update the BMC firmware image file.
有鑑於此,本案提出一種管理平台系統。管理平台系統包含一控制電路、一可編程邏輯電路、一第一儲存電路、一選擇電路及一第二儲存電路。控制電路具有一輸出腳位、一重置腳位及一傳輸介面。可編程邏輯電路電性連接於控制電路,並且可編程邏輯電路包含一控制模組、一偵測模組以及一存取模組。偵測模組用以偵測輸出腳位之邏輯位準。第一儲存電路用以儲存一主動引導程式及一主動映像檔。選擇電路電性連接於控制電路之傳輸介面、可編程邏輯電路及第一儲存電路並用以選擇第一儲存電路之一傳輸目標,其中傳輸目標係選自控制電路或可編程邏輯電路。第二儲存電路電性連接於可編程邏輯電路並用以儲存一備份引導程式。其中,控制電路更用以執行主動引導程式、主動映像檔及備份引導程式中的至少一者;控制模組用以控制偵測模組產生一重置訊號至重置腳位以致能或禁能控制電路,控制偵測模組產生一選擇訊號至選擇模組以選擇第一儲存電路之傳輸目標,以及將儲存於第二儲存電路中的備份引導程式經由存取模組寫入至第一儲存電路中。In view of this, the present case proposes a management platform system. The management platform system includes a control circuit, a programmable logic circuit, a first storage circuit, a selection circuit and a second storage circuit. The control circuit has an output pin, a reset pin and a transmission interface. The programmable logic circuit is electrically connected to the control circuit, and the programmable logic circuit includes a control module, a detection module and an access module. The detection module is used to detect the logic level of the output pin. The first storage circuit is used to store an active boot program and an active image file. The selection circuit is electrically connected to the transmission interface of the control circuit, the programmable logic circuit and the first storage circuit and is used to select a transmission target of the first storage circuit, wherein the transmission target is selected from the control circuit or the programmable logic circuit. The second storage circuit is electrically connected to the programmable logic circuit and is used to store a backup boot program. The control circuit is further used to execute at least one of the active boot program, the active image file and the backup boot program; the control module is used to control the detection module to generate a reset signal to the reset pin to enable or disable the control circuit, control the detection module to generate a selection signal to the selection module to select the transmission target of the first storage circuit, and write the backup boot program stored in the second storage circuit into the first storage circuit via the access module.
在一些實施例中,管理平台系統更包含一獨立線路,獨立線路設置於控制電路與可編程邏輯電路之間,其中可編程邏輯電路更用以經由獨立線路將一錯誤記錄檔傳輸至控制電路。In some embodiments, the management platform system further includes an independent circuit, which is disposed between the control circuit and the programmable logic circuit, wherein the programmable logic circuit is further used to transmit an error log file to the control circuit via the independent circuit.
在一些實施例中,管理平台系統更包含一電源電路,電源電路電性連接於控制電路,電源電路用以產生供應電源。In some embodiments, the management platform system further includes a power circuit, which is electrically connected to the control circuit and is used to generate supply power.
在一些實施例中,管理平台系統更包含一通訊電路,電性連接於控制電路,其中通訊模組用以經由一傳輸媒介電性連接於一外部裝置以接收對應於控制電路之一備份映像檔。In some embodiments, the management platform system further includes a communication circuit electrically connected to the control circuit, wherein the communication module is used to electrically connect to an external device via a transmission medium to receive a backup image file corresponding to the control circuit.
在一些實施例中,第二儲存電路之容量小於第一儲存電路之容量。In some embodiments, the capacity of the second storage circuit is smaller than the capacity of the first storage circuit.
本案另提出一種引導程式修復方法,適於管理平台系統。引導程式修復方法包含:經由控制電路接收一供應電源;執行儲存於第一儲存電路中之一主動引導程式;偵測控制電路之一輸出腳位之邏輯位準;以及當輸出腳位之邏輯位準為一高邏輯位準時,執行以下步驟:根據可編程邏輯電路之一偵測模組所產生相對應之一重置訊號之邏輯位準禁能控制電路;根據偵測模組所產生相對應之一選擇訊號之邏輯位準選擇第一儲存電路之一傳輸目標為可編程邏輯電路;將儲存於第二儲存電路中的一備份引導程式寫入至第一儲存電路中;根據相對應之選擇訊號之邏輯位準選擇第一儲存電路之傳輸目標為控制電路;以及根據重置訊號之變化緣致能控制電路。The present invention also proposes a boot program repair method suitable for a management platform system. The boot program repair method includes: receiving a power supply through a control circuit; executing an active boot program stored in a first storage circuit; detecting a logic level of an output pin of the control circuit; and when the logic level of the output pin is a high logic level, executing the following steps: disabling the control circuit according to the logic level of a reset signal corresponding to a detection module of a programmable logic circuit. ; selecting a transmission target of the first storage circuit as a programmable logic circuit according to a logic level of a corresponding selection signal generated by the detection module; writing a backup boot program stored in the second storage circuit into the first storage circuit; selecting a transmission target of the first storage circuit as a control circuit according to the logic level of the corresponding selection signal; and enabling the control circuit according to the change of the reset signal.
在一些實施例中,引導程式修復方法於經由重置腳位致能控制電路之步驟後更包含:執行儲存於第一儲存電路中之備份引導程式;偵測控制電路之輸出腳位之邏輯位準;以及當輸出腳位之邏輯位準為一低電壓邏輯位準時,執行以下步驟:經由一傳輸媒介電性連接於一外部裝置;以及接收對應於控制電路之一備份映像檔。In some embodiments, the boot program repair method further includes, after the step of enabling the control circuit by resetting the pin: executing a backup boot program stored in a first storage circuit; detecting a logic level of an output pin of the control circuit; and when the logic level of the output pin is a low voltage logic level, performing the following steps: electrically connecting to an external device via a transmission medium; and receiving a backup image file corresponding to the control circuit.
在一些實施例中,引導程式修復方法更包含:經由獨立線路將一錯誤記錄檔自可編程邏輯電路傳輸至控制電路。In some embodiments, the boot program repair method further includes: transmitting an error log file from the programmable logic circuit to the control circuit via an independent line.
綜上所述,根據一些實施例,當儲存於第一儲存電路中的主動引導程式出現錯誤或毀損時,管理平台系統係透過儲存於第二儲存電路中的備用引導程式寫入至第一儲存電路中以修復主動引導程式。如此一來,控制電路即可下載並安裝相對應之映像檔,進而使控制電路得以正常執行其對應之韌體主程式以執行控制電路之各種功能。In summary, according to some embodiments, when an active boot program stored in the first storage circuit is erroneous or damaged, the management platform system writes the backup boot program stored in the second storage circuit into the first storage circuit to repair the active boot program. In this way, the control circuit can download and install the corresponding image file, so that the control circuit can normally execute its corresponding firmware main program to execute various functions of the control circuit.
請參照圖1,圖1是管理平台系統10之一些實施例的電路方塊圖。管理平台系統10包含一控制電路100、一可編程邏輯電路110、一第一儲存電路120、一選擇電路130以及一第二儲存電路140,其中控制電路100具有一輸出腳位101、一重置腳位102及一傳輸介面103,並且可編程邏輯電路110包含一控制模組111、一偵測模組112以及一存取模組113。在一些實施例中,可編程邏輯電路110電性連接於控制電路100及第二儲存電路140。Please refer to FIG. 1 , which is a circuit block diagram of some embodiments of the
請參照圖2,圖2是圖1中選擇電路130之一些實施例的模組示意圖。選擇電路130電性連接於控制電路100之傳輸介面103、可編程邏輯電路110及第一儲存電路120,並且選擇電路130用以接收並根據一選擇訊號Sse選擇第一儲存電路120之一傳輸目標,其中此傳輸目標係選自控制電路100或可編程邏輯電路110。當第一儲存電路120之傳輸目標為控制電路100時,第一儲存電路120係電性連接於控制電路100;同理,當第一儲存電路120之傳輸目標為可編程邏輯電路110時,第一儲存電路120係電性連接於可編程邏輯電路110。在一些實施例中,第一儲存電路120初始之傳輸目標可以預設為控制電路100,也可以預設為可編程邏輯電路110。以下將以控制電路100作為第一儲存電路120初始之預設傳輸目標為例來進行說明。Please refer to Fig. 2, which is a schematic diagram of a module of some embodiments of the
請參照圖1至圖3,圖3是圖1中管理平台系統10之一些實施例的運作流程圖。當管理平台系統10被供電,控制電路100接收一電源供應器20所提供之一供應電源VSP而準備進行初始化(步驟S100)。在管理平台系統10剛被供電但控制電路100進行初始化前,其輸出腳位101因為尚未初始化而無法輸出一預設健康訊號,因而傳送與此預設健康訊號不符之訊號。其中,與此預設健康訊號不符之訊號可以是代表「1」之一高邏輯位準,也可以是代表「0」之一低邏輯位準,不以此為限。Please refer to Figures 1 to 3, Figure 3 is an operation flow chart of some embodiments of the
在一些實施例中,控制電路100係電性連接於來自電源供應器20以直接接收待機電源VST作為運作所需之供應電源VSP或是接收一電源電路150轉換待機電源VST所產生不同於待機電源VST的電壓位準之供應電源VSP。換言之,不論管理平台系統10是否處於開機運行的狀態或是關機的狀態,只要電源供應器20對管理平台系統10提供待機電源VST,控制電路100即可接收到供應電源VSP。In some embodiments, the
於步驟S100之後,管理平台系統10之控制電路100於進行初始化的過程,首先載入執行儲存於第一儲存電路120中之一主動引導程式(步驟S110)藉以進行初始化,進而控制其輸出腳位101傳送符合此預設健康訊號之邏輯位準,並且管理平台系統10係透過可編程邏輯電路110之偵測模組112偵測控制電路100之輸出腳位101之邏輯位準(步驟S120),其中輸出腳位101之邏輯位準係選自代表「1」之高邏輯位準及代表「0」之一低邏輯位準,但不以此為限。輸出腳位101所傳輸之訊號也可以是一組差動訊號(例如由一對差動訊號線路所傳送分別為代表「1」之高邏輯位準及代表「0」之低邏輯位準的訊號)或是一組串行訊號(例如為01、010、0110…)等。其中,管理平台系統10係於被供電後且經一預設偵測時間後,才透過可編程邏輯電路110之偵測模組112偵測控制電路100之輸出腳位101之訊號以避免誤判。After step S100, the
在一些實施例中,當輸出腳位101之訊號符合此預設健康訊號時,(以下以代表「0」之低邏輯位準作為符合此預設健康訊號之訊號,不以此為限),代表控制電路100運作正常且可以藉由執行主動引導程式(例如前述之Uboot)以引導控制電路100載入並執行其對應之韌體主程式,此時控制電路100係可載入並執行儲存於第一儲存電路120中之一主動映像檔所對應的韌體主程式,進而使控制電路100執行各種功能(步驟S130)。當輸出腳位101之邏輯位準為代表「1」之高邏輯位準時,代表控制電路100可能出現錯誤或毀損而無法正常執行主動引導程式而無法正常運作。在另一些實施例中,也可以是當輸出腳位101之邏輯位準為代表「1」之高邏輯位準時,代表控制電路100運作正常;當輸出腳位101之邏輯位準為代表「0」之低邏輯位準時,代表控制電路100可能出現錯誤或毀損,但不以此為限。In some embodiments, when the signal of the
換言之,在一些實施例中,在控制電路100進行初始化之前,控制電路100之輸出腳位101會受到待機電源VST的影響而上拉至高邏輯位準。其中,當控制電路100進行初始化過程時,控制電路100係藉由執行主動引導程式而將輸出腳位101之邏輯位準自高邏輯位準下拉至低邏輯位準;反之,當控制電路100因自身的異常或是因其所執行主動引導程式的錯誤而並未正常地執行主動引導程式時,輸出腳位101之邏輯位準係未能受到控制電路100正常的控制而維持高邏輯位準。In other words, in some embodiments, before the
請參照圖1至圖4,圖4是圖3中接續步驟S120之一些實施例的運作流程圖。於步驟S120之後,當控制電路100無法正常執行主動引導程式時(即輸出腳位101之邏輯位準為高邏輯位準時),管理平台系統10係根據一重置訊號Sre之邏輯位準以禁能控制電路100(步驟S141),其中重置訊號Sre係由可編程邏輯電路110根據偵測模組112的偵測結果所產生並傳輸至控制電路100之重置腳位102。在一些實施例中,重置訊號Sre之邏輯位準係選自代表「1」之高邏輯位準及代表「0」之低邏輯位準,其中使用者可以自行定義用以禁能控制電路100之邏輯位準為何。舉例來說,在一些實施例中,當偵測模組112產生高邏輯位準之重置訊號Sre至控制電路100之重置腳位102時,控制電路100係被禁能而停止任何行為或操作;在另一些實施例中,當偵測模組112產生低邏輯位準之重置訊號Sre至控制電路100之重置腳位102時,控制電路100係被禁能而停止任何行為或操作。Please refer to Figures 1 to 4, Figure 4 is an operation flow chart of some embodiments of the subsequent step S120 in Figure 3. After step S120, when the
於步驟S141之後,管理平台系統10之選擇電路130係根據相對應之一選擇訊號Sse之邏輯位準(例如但不限於代表「1」之高邏輯位準)選擇第一儲存電路120之傳輸目標為可編程邏輯電路110(步驟S142),使得第一儲存電路120之傳輸目標係自控制電路100切換為可編程邏輯電路110,其中選擇訊號Sse係由可編程邏輯電路110根據偵測模組112的偵測結果所產生。換言之,此時第一儲存電路120係電性連接於可編程邏輯電路110。After step S141, the
於步驟S142之後,管理平台系統10係將儲存於第二儲存電路140中之一備份引導程式寫入至第一儲存電路120(步驟S143),其中備份引導程式係為可被正常執行的主動引導程式之備份檔案。換言之,被損壞前的主動引導程式與備份引導程式為相同的檔案。在另一實施例中,備份引導程式也可以是相異於被損壞前的主動引導程式,例如為新版的主動引導程式,或是專門用於修復控制電路100的主動引導程式,並且此二者皆用以啟動控制電路100並引導控制電路100載入並執行主動映像檔對應之韌體主程式,以使控制電路100能藉由執行韌體主程式以執行對應功能。也就是說,控制電路100需要執行主動引導程式以及對應的韌體主程式才能正常地運作而執行相對應之功能,並且控制電路100不能僅執行主動引導程式而不執行韌體主程式來完成自身的初始化。相反的,控制電路100也不能不執行主動引導程式而僅執行韌體主程式來完成自身的初始化。在一些實施例中,管理平台系統10係透過控制模組111將備份引導程式自第二儲存電路140寫入至可編程邏輯電路110之存取模組113後,再將備份引導程式自存取模組113寫入至第一儲存電路120中。在一些實施例中,備份引導程式可以是預先儲存於第二儲存電路140中。在另一些實施例中,當管理平台系統10第一次上電,並且控制電路100成功執行主動引導程式及主動映像檔以完成初始化而正常運作時,可編程邏輯電路110係藉由控制選擇電路130的切換以將可被正常執行的主動引導程式複製至第二儲存電路140中以作為備份引導程式。After step S142, the
在一些實施例中,當備份引導程式被寫入至第一儲存電路120時,備份引導程式係被寫入至第一儲存電路120中剩餘的儲存空間中。換言之,此時出現錯誤或毀損的主動引導程式及/或包括韌體主程式的主動映像檔仍儲存於第一儲存電路120中。在另一些實施例中,當備份引導程式被寫入至第一儲存電路120時,備份引導程式係覆寫(Overwrite)主動引導程式。其中,管理平台系統10係先透過存取模組113擦除(Erase)第一儲存電路120後,再將備份引導程式寫入至第一儲存電路120中,使得第一儲存電路120中僅儲存有備份引導程式而不具有韌體主程式。In some embodiments, when the backup boot program is written to the
於步驟S143之後,管理平台系統10之選擇電路130係根據相對應之另一選擇訊號Sse之邏輯位準(例如但不限於代表「0」之低邏輯位準)選擇第一儲存電路120之傳輸目標為控制電路100(步驟S144),使得第一儲存電路120之傳輸目標係自可編程邏輯電路110切換為控制電路100。換言之,此時第一儲存電路120係電性連接於控制電路100。After step S143, the
於步驟S144之後,管理平台系統10係根據重置訊號Sre之變化緣致能控制電路100(步驟S145)。舉例來說,在一些實施例中,當管理平台系統10根據高邏輯位準之重置訊號Sre禁能控制電路100時,管理平台系統10係根據重置訊號Sre之下降緣(Falling-edge)致能控制電路100;在另一些實施例中,當管理平台系統10根據低邏輯位準之重置訊號Sre禁能控制電路100時,管理平台系統10係根據重置訊號Sre之上升緣(Rising-edge)致能控制電路100。After step S144, the
請參照圖1至圖5,圖5是圖4中接續步驟S145之一些實施例的運作流程圖。在一些實施例中,管理平台系統10更包含一通訊電路160,並且通訊電路160電性連接於控制電路100,並且備份引導程式包括一預設管理裝置之位址及一載入方式。於步驟S145之後,當控制電路100被致能後,控制電路100係執行儲存於第一儲存電路120中之備份引導程式以使控制電路100進行初始化(步驟S146),並且管理平台系統10係透過偵測模組112再次偵測控制電路100之輸出腳位101之邏輯位準(步驟S147)。Please refer to Figures 1 to 5, Figure 5 is an operation flow chart of some embodiments of the subsequent step S145 in Figure 4. In some embodiments, the
於步驟S147之一些實施例中,當輸出腳位101之邏輯位準依舊為代表「1」之高邏輯位準時,代表備份引導程式寫入至第一儲存電路120之步驟(即步驟S143)出現,或者第一儲存電路120之硬體出現毀損。此時,管理平台系統10係結束運作以避免產生更多問題。於步驟S147之另一些實施例中,當輸出腳位101之邏輯位準為代表「0」之低邏輯位準時,代表備份引導程式寫入至第一儲存電路120之步驟(即步驟S143)並沒有出現問題,並且控制電路100成功執行備份引導程式以使得控制電路100可以正常地載入執行韌體主程式。管理平台系統10係根據備份引導程式的載入方式載入韌體主程式。其中,載入方式為讀取管理平台系統10內部之儲存記憶體(圖未示)、讀取管理平台系統10外接之儲存裝置(圖未示)、或是藉由與一外部裝置請求並載入韌體主程式(以下將以藉由與外部裝置請求為例來說明載入方式)。此時,管理平台系統10係透過通訊電路160經由一傳輸媒介電性連接於一外部裝置(該外部裝置對應該預設管理裝置之位址)(圖未示,步驟S148),並透過通訊電路160自此外部裝置接收對應於控制電路100之一備份映像檔Img(步驟S149)。其中,備份映像檔Img包括備份韌體主程式(也就是可被正常執行之韌體主程式),並且備份韌體主程式可以是與原先儲存於第一儲存電路120中的韌體主程式相同的或不同的(例如為更新版的韌體主程式或出廠版的韌體主程式)。In some embodiments of step S147, when the logic level of the
在一些實施例中,當控制電路100透過通訊電路160接收備份映像檔Img後(對應於步驟S149),控制電路100係將備份映像檔Img寫入至第一儲存電路120中。此時,第一儲存電路120儲存有備份引導程式及備份映像檔Img,使得控制電路100得以接續安裝備份映像檔Img以執行備份韌體主程式,進而使控制電路100得以執行各種功能。In some embodiments, after the
在一些實施例中,此傳輸媒介可以是透過網路線傳輸數據的網路通訊協定,例如但不限於檔案傳輸協定(FTP)、簡易檔案傳輸協定(TFTP)或TCP/IP通訊協定。在另一些實施例中,此傳輸媒介也可以是用以傳輸數據的實體線材,例如但不限於通用序列匯流排(USB)線、Type-C線或Lightning線。In some embodiments, the transmission medium may be a network communication protocol for transmitting data through a network cable, such as but not limited to File Transfer Protocol (FTP), Trivial File Transfer Protocol (TFTP) or TCP/IP communication protocol. In other embodiments, the transmission medium may also be a physical cable for transmitting data, such as but not limited to a Universal Serial Bus (USB) cable, a Type-C cable or a Lightning cable.
在一些實施例中,此外部裝置可以是用以儲存各種程式檔或映像檔的近端/遠端儲存系統,例如但不限於電腦主機、直連式儲存(DAS)裝置、網路附加儲存(NAS)伺服器、雲端資料庫或遠端數據中心。In some embodiments, the external device may be a local/remote storage system for storing various program files or image files, such as but not limited to a computer host, a direct-attached storage (DAS) device, a network-attached storage (NAS) server, a cloud database, or a remote data center.
請參照圖1至圖6,圖6是圖5中接續步驟S149之一些實施例的運作流程圖。於步驟S149之後,管理平台系統10經由一獨立線路L6將一錯誤記錄檔Le自可編程邏輯電路110傳輸至控制電路100(步驟S150),其中錯誤記錄檔Le係由可編程邏輯電路110所產生,並且錯誤記錄檔Le係用以記錄主動引導程式出現錯誤或毀損時的相關資訊(例如錯誤發生時間、錯誤發生事由或錯誤發生次數)。換言之,在一些實施例中,管理平台系統10具有記錄一系統錯誤之功能,使得操作管理平台系統10的工程師得以於控制電路100正常運作後立即得知此系統錯誤為何。在一些實施例中,獨立線路L6僅用以傳輸錯誤記錄檔Le而不用以傳輸其它檔案。Please refer to Figures 1 to 6, Figure 6 is an operation flow chart of some embodiments of the subsequent step S149 in Figure 5. After step S149, the
在一些實施例中,當控制電路100接收錯誤記錄檔Le後,控制電路100係可將錯誤記錄檔Le之內容顯示於一顯示裝置(例如一外接螢幕)上以通知工程師系統曾發生錯誤。在另一些實施例中,控制電路100亦可將錯誤記錄檔Le儲存至第一儲存電路120中,使得工程師得以隨時檢查錯誤記錄檔Le之內容以確認系統是否曾發生錯誤。In some embodiments, after the
在一些實施例中,控制電路100可以是具有控制功能的硬體元件,例如但不限於基板管理控制器(BMC)、中央處理器(CPU)、微處理器(Microprocessor)、數位訊號處理器(DSP)、特殊應用積體電路(ASIC)或微控制器單元(MCU)。In some embodiments, the
在一些實施例中,可編程邏輯電路110可以是具有韌體編程功能的硬體元件,例如但不限於複雜可編程邏輯裝置(CPLD)或現場可編程邏輯閘陣列(FPGA)。換言之,可編程邏輯電路110中各裝置(包含控制模組111、偵測模組112及存取模組113)之功能係由燒錄至可編程邏輯電路110中的韌體所實現。In some embodiments, the
在一些實施例中,第一儲存電路120及第二儲存電路140可以是具有讀取、寫入功能的儲存元件,例如但不限於非揮發性記憶體(Non-volatile memory)或快閃記憶體(Flash memory)。在另一些實施例中,第二儲存電路140可以是僅具有讀取功能而不具有寫入功能的儲存元件,使得儲存於第二儲存電路140中的備份引導程式無法被修改而確保其正確性及完整性。其中,第二儲存電路140例如為唯讀記憶體(ROM)或關閉寫入功能的快閃記憶體,不以此為限。In some embodiments, the
在一些實施例中,第二儲存電路140之容量小於第一儲存電路120之容量,且第二儲存電路140不會儲存主動映像檔或(備份映像檔Img),也不會儲存主動映像檔(或備份映像檔Img)所對應之韌體主程式(或備份韌體主程式)。其中,由於主動引導程式(或備份引導程式)之檔案大小小於主動映像檔(或備份映像檔Img)之檔案大小,並且第二儲存電路140僅儲存有備份引導程式而不具有主動映像檔(或備份映像檔Img)或備份韌體主程式,因此第二儲存電路140可以選擇容量比第一儲存電路120之容量還小的儲存元件以節省管理平台系統10之成本。舉例來說,在一些實施例中,主動引導程式(或備份引導程式)之檔案大小例如為但不限於2百萬位元(即2Mb),並且主動映像檔(或備份映像檔Img)之檔案大小介於64Mb至128Mb之間,不以此為限。因此,第一儲存電路120之容量至少要大於130Mb。相較之下,第二儲存電路140之容量僅需要大於2Mb即可。In some embodiments, the capacity of the
在一些實施例中,選擇電路130可以是具有路徑選擇功能的硬體元件,例如但不限於多工器(MUX)或交換器(Switch)。In some embodiments, the
在一些實施例中,電源電路150可以是具有電源轉換功能的硬體元件,例如但不限於類比數位轉換器(ADC)、數位類比轉換器(DAC)、整流器(Rectifier)或逆變器(Inverter)。In some embodiments, the
在一些實施例中,通訊電路160可以是具有有線通訊功能或無線通訊功能的硬體元件,例如但不限於USB連接器、Type-C連接器、Lightning連接器、Wi-Fi晶片、藍牙晶片或同時具有Wi-Fi功能及藍牙功能之二合一無線晶片。In some embodiments, the
在一些實施例中,線路L1~L5及獨立線路L6可以是具有數據傳輸功能的傳輸通道或傳輸介面,例如但不限於通用型輸入輸出(GPIO)介面、序列通用型輸入輸出(SGPIO)介面、序列周邊介面(SPI)匯流排、低電壓差分訊號通道協定和介面(LTPI)、系統管理匯流排(SMBus)或通用非同步收發傳輸器(UART)。In some embodiments, lines L1~L5 and independent line L6 can be transmission channels or transmission interfaces with data transmission functions, such as but not limited to general purpose input and output (GPIO) interface, serial general purpose input and output (SGPIO) interface, serial peripheral interface (SPI) bus, low voltage differential signaling channel protocol and interface (LTPI), system management bus (SMBus) or universal asynchronous receiver and transmitter (UART).
綜上所述,根據一些實施例,當儲存於第一儲存電路中的主動引導程式出現錯誤或毀損時,管理平台系統係透過儲存於第二儲存電路中的備用引導程式寫入至第一儲存電路中以修復主動引導程式。如此一來,控制電路即可下載並安裝相對應之映像檔,進而使控制電路得以正常執行其對應之韌體主程式以執行控制電路之各種功能。In summary, according to some embodiments, when an active boot program stored in the first storage circuit is erroneous or damaged, the management platform system writes the backup boot program stored in the second storage circuit into the first storage circuit to repair the active boot program. In this way, the control circuit can download and install the corresponding image file, so that the control circuit can normally execute its corresponding firmware main program to execute various functions of the control circuit.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明之創作,任何所屬技術領域中具有通常知識者,在不脫離本揭露內容之精神和範圍內,當可作些許之修改與變化,惟該些許之修改與變化仍然在本發明之申請專利範圍內。Although the present invention has been disclosed as above by way of embodiments, it is not intended to limit the invention. Anyone with ordinary knowledge in the relevant technical field may make some modifications and changes without departing from the spirit and scope of the present disclosure. However, such modifications and changes are still within the scope of the patent application of the present invention.
10:管理平台系統10: Management platform system
100:控制電路100: Control circuit
101:輸出腳位101: Output pin
102:重置腳位102: Reset foot position
103:傳輸介面103:Transmission interface
110:可編程邏輯電路110: Programmable logic circuit
111:控制模組111: Control module
112:偵測模組112: Detection module
113:存取模組113: Access module
120:第一儲存電路120: First storage circuit
130:選擇電路130: Select circuit
140:第二儲存電路140: Second storage circuit
150:電源電路150: Power circuit
160:通訊電路160: Communication circuit
20:電源供應器20: Power supply
Img:備份映像檔Img: Backup Image
L1~L5:線路L1~L5: Line
L6:獨立線路L6: Independent line
Le:錯誤記錄檔Le: Error log file
S100~S130, S150:步驟S100~S130, S150: Steps
S141~S149:步驟S141~S149: Steps
Sre:重置訊號Sre: reset signal
Sse:選擇訊號Sse: Select signal
V1:邏輯位準V1: Logical Level
VSP:供應電源VSP: Power Supply
VST:待機電源VST: Standby power
圖1是管理平台系統之一些實施例的電路方塊圖。 圖2是圖1中選擇電路之一些實施例的模組示意圖。 圖3是圖1中管理平台系統之一些實施例的運作流程圖。 圖4是圖3中接續步驟S120之一些實施例的運作流程圖。 圖5是圖4中接續步驟S145之一些實施例的運作流程圖。 圖6是圖5中接續步驟S149之一些實施例的運作流程圖。 FIG. 1 is a circuit block diagram of some embodiments of the management platform system. FIG. 2 is a module schematic diagram of some embodiments of the selection circuit in FIG. 1. FIG. 3 is an operation flow chart of some embodiments of the management platform system in FIG. 1. FIG. 4 is an operation flow chart of some embodiments of the subsequent step S120 in FIG. 3. FIG. 5 is an operation flow chart of some embodiments of the subsequent step S145 in FIG. 4. FIG. 6 is an operation flow chart of some embodiments of the subsequent step S149 in FIG. 5.
10:管理平台系統 10: Management platform system
100:控制電路 100: Control circuit
101:輸出腳位 101: Output pin
102:重置腳位 102: Reset foot position
103:傳輸介面 103: Transmission interface
110:可編程邏輯電路 110: Programmable logic circuit
111:控制模組 111: Control module
112:偵測模組 112: Detection module
113:存取模組 113: Access module
120:第一儲存電路 120: First storage circuit
130:選擇電路 130: Select circuit
140:第二儲存電路 140: Second storage circuit
150:電源電路 150: Power circuit
160:通訊電路 160: Communication circuit
20:電源供應器 20: Power supply
Img:備份映像檔 Img: backup image
L1~L5:線路 L1~L5: Line
L6:獨立線路 L6: Independent line
Le:錯誤記錄檔 Le: Error log file
Sre:重置訊號 Sre: reset signal
Sse:選擇訊號 Sse: Select signal
V1:邏輯位準 V1: Logical level
VSP:供應電源 VSP: Power supply
VST:待機電源 VST: Standby power
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW112137189A TWI858939B (en) | 2023-09-27 | 2023-09-27 | Management platform system and bootloader repariring method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW112137189A TWI858939B (en) | 2023-09-27 | 2023-09-27 | Management platform system and bootloader repariring method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
TWI858939B true TWI858939B (en) | 2024-10-11 |
Family
ID=94084017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW112137189A TWI858939B (en) | 2023-09-27 | 2023-09-27 | Management platform system and bootloader repariring method thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI858939B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI528287B (en) * | 2014-12-05 | 2016-04-01 | 英業達股份有限公司 | Server system |
CN111949449A (en) * | 2020-08-12 | 2020-11-17 | 曙光信息产业(北京)有限公司 | Firmware recovery method, device, system, computer equipment and storage medium |
CN115576747A (en) * | 2022-11-21 | 2023-01-06 | 苏州浪潮智能科技有限公司 | Baseboard management controller firmware fault recovery method, system, device and medium |
-
2023
- 2023-09-27 TW TW112137189A patent/TWI858939B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI528287B (en) * | 2014-12-05 | 2016-04-01 | 英業達股份有限公司 | Server system |
CN111949449A (en) * | 2020-08-12 | 2020-11-17 | 曙光信息产业(北京)有限公司 | Firmware recovery method, device, system, computer equipment and storage medium |
CN115576747A (en) * | 2022-11-21 | 2023-01-06 | 苏州浪潮智能科技有限公司 | Baseboard management controller firmware fault recovery method, system, device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10860425B2 (en) | Method for recovering basic input/output system image file of a computer system and the computer system | |
CN106648958B (en) | Basic input output system reply management system, method and program product thereof | |
US7487343B1 (en) | Method and apparatus for boot image selection and recovery via a remote management module | |
US10909247B2 (en) | Computing device having two trusted platform modules | |
US20110093741A1 (en) | Method for recovering bios and computer system thereof | |
CN111506454A (en) | Method and system for recovery and update of a basic input/output system | |
TWI724415B (en) | A multi-node storage system and method for updating firmware thereof | |
US20110099544A1 (en) | Information processing apparatus and system setting method | |
CN101373433A (en) | Method for updating BIOS and computer and system using the method | |
US9594899B2 (en) | Apparatus and method for managing operation of a mobile device | |
CN208141370U (en) | A kind of system for realizing double BIOS startings and upgrading | |
JP2010198252A (en) | Non-volatile memory device, write-in method for nonvolatile memory, and nonvolatile memory write-in program | |
JP2018116648A (en) | Information processor, control method thereof and program | |
CN114341769A (en) | System management bus isolation based on power management integrated circuit | |
TWI808362B (en) | Computer system and method capable of self-monitoring and restoring an operation of operating system | |
CN110308935B (en) | Electronic device and operation method thereof | |
US11586504B2 (en) | Electronic apparatus and boot method thereof | |
TWI858939B (en) | Management platform system and bootloader repariring method thereof | |
CN118672664A (en) | Method, computer program product, apparatus and medium for loading option read-only memory | |
US20240143518A1 (en) | Using Control Bus Communication to Accelerate Link Negotiation | |
CN113220324B (en) | CPLD remote updating method, system and medium | |
CN116450224A (en) | Data recovery method, device and system based on clearing CMOS | |
US11467898B2 (en) | Information processing apparatus and method of controlling the same | |
CN118708519B (en) | Server expansion module, server, configuration method, device and medium | |
TWI709045B (en) | Method of checking the boot status of a server from remote node and server |