使用 OpenBMC 工具來更新系統韌體
瞭解如何使用 OpenBMC 工具來更新系統韌體。
關於這項作業
系統韌體是 BMC 韌體和 PNOR 韌體的組合。若要更新系統韌體,請完成下列步驟:
程序
-
關閉作業系統的電源。然後,關閉系統的電源。若要關閉系統的電源,請鍵入下列指令,然後按 Enter 鍵:
openbmctool -U <username> -P <password> -H <BMC IP address or BMC host name> chassis power softoff -
確保已關閉系統的電源。然後,繼續進行下一步。若要檢查系統的電源狀態,請鍵入下列指令,然後按 Enter 鍵:
openbmctool -U <username> -P <password> -H <BMC IP address or BMC host name> chassis power status註: 當指令輸出中顯示 "Chassis Power State: Off" 時,就表示已經關閉系統的電源。 -
若要更新 BMC 系統韌體,請鍵入下列指令,然後按 Enter 鍵:
openbmctool -U <username> -P <password> -H <BMC IP address or BMC host name> firmware flash bmc -f obmcxxx.ubi.mtd.tar,其中 obmcxxx.ubi.mtd.tar 是您從 Fix Central 網站取得之 BMC TAR 檔的名稱。註: 如果您的現行目錄與 TAR 檔的目錄不同,則您必須包括該檔案所在之資料夾的完整目錄路徑。 -
在顯示韌體快閃記憶體已完成訊息之後,確保系統韌體處於作用中狀態。
若要檢查系統韌體的狀態,請鍵入下列指令,然後按 Enter 鍵:
openbmctool -U <username> -P <password> -H <BMC IP address or BMC host name> fru print | grep Activ註: 當指令輸出僅顯示含有 "Active" 字樣的項目且不顯示任何含有 "Activating" 字樣的項目時,就表示 BMC 系統韌體處於作用中狀態。 -
若要更新 PNOR 系統韌體,請鍵入下列指令,然後按 Enter 鍵:
openbmctool -U <username> -P <password> -H <BMC IP address or BMC host name> firmware flash pnor -f xxx.pnor.squashfs.tar,其中 xxx.pnor.squashfs.tar 是您從 Fix Central 網站取得之 PNOR TAR 檔的名稱。註: 如果您的現行目錄與 TAR 檔的目錄不同,則您必須包括該檔案所在之資料夾的完整目錄路徑。 -
在顯示韌體快閃記憶體已完成訊息之後,確保系統韌體處於作用中狀態。
若要檢查系統韌體的狀態,請鍵入下列指令,然後按 Enter 鍵:
openbmctool -U <username> -P <password> -H <BMC IP address or BMC host name> fru print | grep Activ註: 當指令輸出僅顯示含有 "Active" 字樣的項目且不顯示任何含有 "Activating" 字樣的項目時,就表示 PNOR 系統韌體處於作用中狀態。 -
若要讓系統韌體更新生效,您必須重設 BMC 並將系統啟動至 Petitboot 功能表。請完成下列步驟:
-
若要從遠端重設 BMC,請輸入下列指令:
openbmctool -U <username> -P <password> -H <BMC IP address or BMC host name> mc reset cold -
確保 BMC 處於備妥狀態。然後,繼續進行下一步。若要檢查 BMC 的狀態,請鍵入下列指令,然後按 Enter 鍵:
openbmctool -U <username> -P <password> -H <BMC IP address or BMC host name> chassis power status註: 當指令輸出中顯示 "BMC Power State: Ready" 時,就表示 BMC 已處於備妥狀態。 -
若要開啟系統的電源,請鍵入下列指令,然後按 Enter 鍵:
openbmctool -U <username> -P <password> -H <BMC IP address or BMC host name> chassis power on
這會結束程序。
-
若要從遠端重設 BMC,請輸入下列指令: