200832223^ 九、發明說明: 【發明所屬之技術領域】 本發明係有關於一種更新韌體之方法,更詳而言之, 係應用於配没有韋刃體及基板管理控制器(BMC)之資料處理 裝置中’且於該資料處理裝置進入緊急復原模式(Crisis Mode)時方予進行韌體更新程序之更新韌體之方法。 【先前技術】 現今各種電腦應用設備中,許多硬體的運作均由BIOS ·( Basic Input Output System ; BIOS )來負責啟動及執行, 例如光碟機、數據機等等,而用以儲存BIOS之程式碼的 儲存單元也由早期無法更新的裝置逐步演變為可更新的儲 存單元’例如快閃唯讀記憶體(以下簡稱Flash ROM )、 電可抹除式唯讀記憶體(EEPROM)等非揮發性記憶體, 相對地,BiOS更新程序亦已由早期必須將設備送回原廠方 可予以進行之方式,逐漸轉變為使用者可透過網路系統自 籲行下载BIOS更新程式並進行更新的方式。 而現今之電腦系統在進行並列埠、串列埠、USB等介 面模組(Dongle)或BIOS ROM檢查失敗時,會進入BIOS 的緊急復原模式(Crisis Mode),在進入此緊急復原模式 後,BIOS會自行檢查透過USB之連接方式所外接之儲存 裝置(如軟碟、硬碟等)中是否有可供進行BIOS更新程序的 BIOS ROM,若有則透過該bios R〇iv[中之BIOS更新程 式來更新BIOS。 然’使用上述的方式來進行BIOS更新裎序時,必須 5 19979 200832223· 在透過USB之連接方式所外接之儲存裝置與電腦系統相 容之狀況下方可予以進行,但,該些透過USB之連接方式 所外接之儲存裝置卻常常會與BIOS發生相容性的問題, 相對地則導致BIOS無法從透過USB之連接方式所外接之 儲存裝置中檢查並讀取BIOS ROM中的BIOS更新程式, 而使得BIOS無法進行BIOS更新程序,此時,對於電腦主 機管理者而言,其必須親臨發生問題的電腦主機前,方得 以進行故障排除並進行BIOS更新程序,不僅使得故障排 ®除之效率低落且無法避免人為處理時所產生之疏失。 綜上所述,如何提供一種用以於電腦系統進入緊急復 原模式時進行BIOS更新程序,以避免之上述之缺失的更 新韌體之方法,實為目前亟欲解決之問題。 【發明内容】- 鑒於上述習知技術之缺點,本發明之主要目的在於提 供一種可透過遠端電腦系統進行BIOS更新程序之更新韌 鲁體之方法,以於電腦系統進入緊急復原模式時,不因外接 之儲存裝置的相容性問題,而無法進行BIOS更新程序。 本發明之另一目的在於提供一種即時且自動於電腦 系統進入緊急復原模式時進行BIOS更新程序之更新韌體 之方法,以提高故障排除之效率且可避免人為處理時所產 生之疏失。 為違上述目的及其他目的,本發明所提供之更新韌體 之方法係應用於至少配設有韌體及基板管理控制器 (Baseboard Management Controller ; BMC)之資料處理裝置 6 19979 200832223^ 中’該更新韌體之方法包括以下步驟:(1)提供搭載有對應 該韌體之韌體儲存單元之遠端資料處理裝置,其中,該韌 體儲存單元係儲存有韌體更新程式;(2)透過網路系統將該 資料處理裝置之基板管理控制器連線至該遠端資料處理裝 置;(3)於該資料處理裝置進入緊急復原模式(crisis Mode) 時’令該資料處理裝置之韌體偵測該資料處理裝置是否外 接有資料儲存裝置,若是,則進至步驟(4),若否,則進至 步驟(6); (4)令該資料處理裝置之韌體偵测該資料處理裝置 •籲所外接之資料儲存裝置中是否搭載有對應該韌體之韌體儲 存單元,若是,則進至步驟(5),若否,則進至步驟(6) ; (5) 令該資料處理裝置之韌體透過該外接之資料儲存裝置之韌 體儲存單元中之韌體更新程式進行韌體更新程序,並結束 該更新韌體之方法;以及(6)藉由該資料處理裝置之韌體令 該基板管理控制器透過該網路系統與該遠端資料處理裝置 進行溝通,以取得該韌體儲存單元中之韌體更新程式,俾 鲁令該韌體進行韌體更新程序,並結束該更新韌體之方法。 於本發明之一較佳實施例中,該韌體係為BIOS(Basic Input Output System);該資料處理裝置係為電腦·,該韌體 儲存單元係為BIOS ROM ;該遠端資料處理裝置係為電 腦;該網路系統係為網際網路(Internet)、企業網路 (Intranet)、企業間網路(Extranet)以及區域網路(LAN)之其 中一者;該資料儲存裝置係為硬碟(HDD)、軟碟(Floppy Disk)及光碟之其中一者;該資料儲存裝置係透過USB之 連接方式外接至該資料處理裝置;該韌體之更新程序執行 19979 200832223^ 完成後,係重新啟動(reset)該貧料處理裝置。 職是,本發明之更新韌體之方法,主要係於資料處理 裝置進入緊急復原模式,且該資料處理裝置之韌體無法偵 測到外接之資料儲存裝置時,藉由該資料處理裝置之韌體 令該基板管理控制器透過該網路系統與該遠端資料處理裝 置進行溝通,以取得該韌體儲存單元中之韌體更新程式, 俾令該韌體進行韌體更新程序,相較於習知技術,本發明 可避免外接之儲存裝置無法相容於資料處理裝置時,而無 ⑩法進行BIOS更新程序的問題,且無需管理者親臨發生問 題的資料處理裝置前,即可自動透過遠端資料處理裝置即 時進行BIOS更新程序,俾達上述之所有目的。 【實施方式】 以下係藉由特定的具體實例說明本發明之實施方 式,熟悉此技藝之人士可由本說明書所揭示之内容輕易地 暸解本發明之其他優點與功效。 Φ 請參閱第1圖,係為本發明更新韌體之方法之實施例 步驟流程圖,該更新韌體之方法係應用於至少配設有韌體 及基板管理控制器(Baseboard Management Controller ; BMC)之資料處理裝置中。於本實施例中,該韌體係為 BIOS(Basic Input Output System);該資料處理裝置係為電 腦,例如為伺服器(server)。如圖所示,該更新韋刃體之方法 係先執行步驟S10。 於步驟S10,係提供搭載有對應該韌體之韌體儲存單 元之遠端資料處理裝置,其中,該韌體儲存單元係儲存有 8 19979 200832223^ 韌體更新程式。於本實施例中,該韌體儲存單元係為對應 該資料處理裝置中之BIOS之BIOS ROM(BIOS唯讀記憶 體),其内部係儲存有BIOS主要的程式碼(亦即,為前述之 韌體更新程式),且該遠端資料處理裝置係為電腦,例如為 伺服器。接著進至步驟S11。 於步驟S11,係透過網路系統將該資料處理裝置之基 板管理控制器連線至該遠端資料處理裝置。於本實施例 中,此步驟係利用該基板管理控制器本身所具有之網路連 ®線功能,將該基板管理控制器透過該網路系統與該遠端資 料處理裝置連線,其中,該網路系統係為網際網路 (Internet)、企業網路(Intranet)、企業間網路(£乂1^1^1:)或區 域網路(LAN)等。接著進至步驟S12。 於步驟S12,係於該資料處理裝置進入緊急復原模式 (Crisis Mode) B夺,令該資料處理裝置之韋刃體偵測該資料處 理裝置是否外接有資料儲存裝置,若是,則進至步驟S13, 鲁若否,則進至步驟S15。於本實施例中,此步驟係當該資 料處理裝置在進行並列埠、串列埠、USB等介面模組 (Dongle)或BIOS ROM檢查失敗時,會進入該韌體的緊急 復原模式,此時,該韌體會偵測該資料處理裝置是否外接 有該資料儲存裝置,亦即,該韌體會進行該資料儲存裝置 之辯識,此時,若辨識到該資料儲存裝置時(亦即,在有外 接該資料儲存裝置,且該資料儲存裝置係與該資料處理裝 置相容之狀況下),則進至步驟S13,反之,若無法辨識到 該資料儲存裝置時(亦即,在有外接該資料儲存裝置,且該 9 19979 200832223, 係與該資料處理襄置不相容之狀況下、或在 =外接該-貝料儲存裝置之狀況下),則進至步驟…,:在 ΐ光存裝置係為硬碟⑽D)、軟碟⑽一;:〇200832223^ IX. INSTRUCTIONS: [Technical Field] The present invention relates to a method for updating a firmware, and more particularly, to a device without a blade and a substrate management controller (BMC) In the processing device, a method of updating the firmware of the firmware update program is performed when the data processing device enters the emergency recovery mode (Crisis Mode). [Prior Art] In today's various computer applications, many hardware operations are initiated and executed by the BIOS (Basic Input Output System; BIOS), such as CD-ROM, data, etc., and the program for storing the BIOS. The code storage unit has also evolved from an early update device to an updateable storage unit, such as flash ROM (hereafter referred to as Flash ROM), electrically erasable read-only memory (EEPROM), etc. Memory, in contrast, the BiOS update program has been transformed from a way that the device must be sent back to the original factory in the early days, and gradually changed to a way for users to download and update the BIOS update program through the network system. In today's computer system, when the parallel interface, serial port, USB interface module (Dongle) or BIOS ROM fails, it will enter the BIOS emergency recovery mode (Crisis Mode). After entering this emergency recovery mode, the BIOS Will check whether there is a BIOS ROM available for BIOS update in the storage device (such as floppy disk, hard disk, etc.) connected via the USB connection method. If yes, pass the bios R〇iv [BIOS update program in the BIOS) To update the BIOS. However, when using the above method for BIOS update sequence, it must be 5 19979 200832223. The storage device connected to the USB connection mode can be used under the condition that the storage device is compatible with the computer system. However, the connection through the USB is possible. The external storage device often has compatibility problems with the BIOS. In contrast, the BIOS cannot check and read the BIOS update program in the BIOS ROM from the storage device connected through the USB connection. The BIOS cannot perform the BIOS update procedure. At this time, the host computer administrator must go to the host computer where the problem occurred before troubleshooting and perform the BIOS update procedure, which not only makes the faulty® inefficient but also impossible. Avoid the omissions caused by human processing. In summary, how to provide a method for updating the firmware when the computer system enters the emergency recovery mode to avoid the above-mentioned missing firmware is actually a problem to be solved. SUMMARY OF THE INVENTION In view of the above disadvantages of the prior art, the main object of the present invention is to provide a method for updating a firmware of a BIOS update program through a remote computer system, so that when the computer system enters an emergency recovery mode, The BIOS update procedure cannot be performed due to compatibility issues with external storage devices. Another object of the present invention is to provide a method for updating the firmware of the BIOS update program immediately and automatically when the computer system enters the emergency recovery mode, so as to improve the efficiency of troubleshooting and avoid the omission caused by human processing. For the above purposes and other purposes, the method for updating the firmware provided by the present invention is applied to a data processing device 6 equipped with at least a firmware and a substrate management controller (BMC), 19979 200832223^ The method for updating the firmware includes the following steps: (1) providing a remote data processing device equipped with a firmware storage unit corresponding to the firmware, wherein the firmware storage unit stores a firmware update program; (2) The network system connects the baseboard management controller of the data processing device to the remote data processing device; (3) when the data processing device enters the emergency mode, the firmware of the data processing device is detected Detecting whether the data processing device is externally connected to the data storage device, and if so, proceeding to step (4); if not, proceeding to step (6); (4) causing the firmware of the data processing device to detect the data processing device • Whether the firmware storage unit corresponding to the firmware is installed in the external data storage device, if yes, proceed to step (5), if no, proceed to step (6); (5) The firmware of the material processing device performs a firmware update procedure through a firmware update program in the firmware storage unit of the external data storage device, and ends the method for updating the firmware; and (6) by the data processing device The firmware allows the baseboard management controller to communicate with the remote data processing device through the network system to obtain a firmware update program in the firmware storage unit, and the firmware is updated to perform the firmware update process. End the method of updating the firmware. In a preferred embodiment of the present invention, the tough system is a BIOS (Basic Input Output System); the data processing device is a computer, and the firmware storage unit is a BIOS ROM; the remote data processing device is Computer; the network system is one of an Internet, an intranet, an extranet, and a local area network (LAN); the data storage device is a hard disk ( One of HDD), Floppy Disk and CD-ROM; the data storage device is externally connected to the data processing device via USB connection; the firmware update program is executed after 19979 200832223^ Reset) The poor material processing device. The method of updating the firmware of the present invention is mainly when the data processing device enters the emergency recovery mode, and the firmware of the data processing device cannot detect the external data storage device, and the toughness of the data processing device is The baseboard management controller communicates with the remote data processing device through the network system to obtain a firmware update program in the firmware storage unit, and causes the firmware to perform a firmware update procedure, as compared with According to the prior art, the present invention can avoid the problem that the external storage device cannot be compatible with the data processing device, and there is no problem of performing the BIOS update procedure by 10 methods, and the administrator can automatically pass through the remote data processing device without the problem. The end data processing device performs the BIOS update procedure immediately, and achieves all the above purposes. [Embodiment] The embodiments of the present invention are described below by way of specific examples, and those skilled in the art can readily understand other advantages and effects of the present invention from the disclosure of the present disclosure. Φ Referring to FIG. 1 , it is a flow chart of an embodiment of a method for updating a firmware according to the present invention. The method for updating a firmware is applied to at least a firmware and a baseboard management controller (BMC). In the data processing device. In this embodiment, the tough system is a BIOS (Basic Input Output System); the data processing device is a computer, such as a server. As shown in the figure, the method of updating the blade body first performs step S10. In step S10, a remote data processing device equipped with a firmware storage unit corresponding to the firmware is provided, wherein the firmware storage unit stores a firmware update program of 8 19979 200832223. In this embodiment, the firmware storage unit is a BIOS ROM (BIOS read-only memory) corresponding to the BIOS in the data processing device, and the internal BIOS stores the main BIOS code (that is, the toughness described above). The remote data processing device is a computer, such as a server. Then it proceeds to step S11. In step S11, the baseboard management controller of the data processing device is connected to the remote data processing device via the network system. In this embodiment, the step is to connect the baseboard management controller to the remote data processing device through the network management system by using the network connection controller function of the baseboard management controller. The network system is the Internet, the intranet, the inter-enterprise network (£1^1^1:) or the local area network (LAN). Then it proceeds to step S12. In step S12, the data processing device enters an emergency recovery mode (Crisis Mode) B, so that the data processing device detects whether the data processing device is externally connected with the data storage device, and if so, proceeds to step S13. If Lu Ru is no, proceed to step S15. In this embodiment, when the data processing device fails to check whether the parallel module, the serial port, the USB interface module (Dongle) or the BIOS ROM fails, the data processing device enters the emergency recovery mode of the firmware. The firmware detects whether the data storage device is externally connected to the data storage device, that is, the firmware performs the identification of the data storage device. At this time, if the data storage device is recognized (ie, there is When the data storage device is externally connected and the data storage device is compatible with the data processing device, the process proceeds to step S13; otherwise, if the data storage device is not recognized (ie, the data is externally connected) The storage device, and the 9 19979 200832223, in the case of incompatibility with the data processing device, or in the case of externally connecting the -before storage device, proceeds to step...: in the optical storage device Is a hard disk (10) D), a floppy disk (10) one;
Lt::™ 於步驟S13,係令該資料處理裝置 處理裝置所外接之資料儲存裝置中是否。= 之韌體儲存單元,若是,目,丨、U^π訂應这初體 牛驟川 ^ 步驟S14,若否,則進至 ㈣存狀置日^貫施例中,此步驟係在該勃體辨識到該資 巧存衣置⑽即’在有外接該資料儲存裝置,且該 錯存裝置係與該資料處理裝置相容之狀況下),則進一步人 该貧料處理裝置之㈣_該資料儲存裝置中是否搭餘 :應該勃體之勤體儲存單元(亦即,令該資料處理裝置之勤 貞測s亥貧料儲存裝置中是否搭載有可供該拿刃體進行章刃體 更聽序之_SR⑽),若該㈣儲存裝置中有搭载有對 應該章刃體之勃體儲存單元時’則進至步驟S14,反之,若 該資料儲純置中未搭载有對應該勤體之㈣儲存單元 時,則進至步驟S15。 於步驟SU,係令該資料處理震置之㈣透過該外接 之貢料健存I置之㈣儲存單元中之勃體更新程式進行韋刃 體更新程序。於本實施例中’此步驟即直接令該資料處理 裝置之_透過該外接之資料儲存I置中所搭載之動體儲 存單元(亦即,m〇SROM)中之韋刃體更新程式(亦即,Bi〇s ROM中所儲存之BI0S主要的程式碼)進行韋刃體更新程 19979 10 200832223· 接著進至步 達到本發明之更㈣體之方法的目的 於步驟S15,孫紘jo-. 11 w #田4 係猎由該—貝料處理裝置之韌體令兮其柘 Γ 透過該網㈣統與該遠端資料處理^進= 通,以取得該韋刃體儲存單元中之 衣f進订溝 體進行韋刃體更靳M a 私式’俾令該章刃 該資料儲存#詈,Η姑丨 /驟係在有外接 ^ ^ " 該貝料儲存裝置係與該資料處理|士置 或在該勤體辨識到該資_=;科健存裝置之狀況下、 去扒番士 貝杆儲存裝置,但該資料儲存裝置中 未私载有對應該韌體之韌體儲存 料處理裝置之韋_該基板管二::;=,猎由該資 &、土 S里1工制為透過該網路车絲盥 该返端資料處理裝置進扞 "" 儲1 通,絲得對應軸體之㈣ : 新程式,以供該㈣進行勤體更新程 序俾達到本务明之更新勤體之方法的目的。 筆置二上::此步驟在實際實施時,係可藉由該資料處理 ς置=初體透過如KCS、mMIC等傳輸介 :=令_)予該基板管理控制器,而在該基板 =控制器接收到該更新拿刀體指令即與該遠端資料處理裝 常駐應用軟體進行溝通,以取得對應該勒體之拿刃體 =早元中之章刃體更新程式;此外,在該基板管理控制器 7該網路系統與該遠端資料處理袭置進行溝通時,復同 0守儲存對應該韋刃體更新程序之記錄標以供管理者調用並參 閱’其中,該記錄檔係記錄有該資料處理裝置進入緊急復 原模式之原因、該拿刃體之更新版本、_體更新程序進行 19979 11 200832223, 之 ^間以及該拿刃體更新程序之更新方 :=控:_過該網路系統與該遠端資料處:裝=基 广右有官理者正在操作該遠端 2 : 處於該遠端資料處理裝置附近時,管㈣ 或 決定是否要進行該拿刃體更新程序、或是否要I以手動操作 控制器健存該記錄槽。接著進至步驟S16該基板管理 :::S16,係重新啟動(rese〇該資料 本貝鈿例中,此步驟係為確保置於 之勤體已確實料間存。 冑新轉執行完成後 综上所述,本發明之更新韌體 處理裝置進人緊急制_ _ $要係於資料 法侦測到外接之資料儲存農置時=之::體無 勃體令該基板管理控制器透過該網路系统愈:理叙置之 理裝置進行溝通,以取得該資料處 式,俾令該韋刃體進行勃體更新程序 朝版更新耘 發明可避免外接之蚀户牡里 乂;習知技術’本 避免外接之儲存裝置無法相容於資料 而…、法進仃BIOS更新程序的問題 才 生問題的資料處理裝置前,即可自;二理者親臨發 置即時進行刪更斩,成# 過逐端賢料處理裝 且可同時避免人為處理時所產生之疏失。除之效率 上述實_僅例轉朗本發明之原理及其功效, 非用於限制本發明。任何熟習此項技藝之 、 ::本I㈣之精神及範,下,對上述實施例進行修違 、夂。因此’本發明之權利保護範圍,應如後述之申請專利 19979 12 200832223* 範圍所列。 【圖式簡單說明】 第1圖係為本發明更新韌體之方法之實施例步驟流程 圖。 【主要元件符號說明】 S10至S16 步驟Lt::TM in step S13, whether the data processing device is in the data storage device external to the device. = firmware storage unit, if it is, the target, 丨, U^π should be the first bovine Chuanchuan ^ step S14, if not, then go to (4) save the day and place the example, this step is in Boss recognizes that the asset storage device (10) means 'when the data storage device is externally connected, and the faulty device is compatible with the data processing device, then the human waste material processing device is further (4)_ Whether the data storage device is spared: the physical storage unit that should be used for the body (that is, whether the data processing device is equipped with the blade body for carrying the blade body If the (4) storage device is equipped with a Bosch storage unit corresponding to the blade body, then proceed to step S14. Otherwise, if the data storage is not carried, the corresponding device is not loaded. When the storage unit is in the fourth (4), the process proceeds to step S15. In step SU, the data processing is activated (4), and the process of updating the blade is performed through the external body of the external storage device I (4). In this embodiment, the step is to directly enable the data processing device to transmit the firmware update program in the mobile storage unit (ie, m〇SROM) mounted in the external data storage I. That is, the main code of the BI0S stored in the Bi〇s ROM is subjected to the process of updating the blade body 19979 10 200832223. Then, the method of reaching the more (four) body of the present invention is performed in step S15, Sun Hao jo-. 11 w #田4系猎 The body of the beech processing device is used to make the 透过 兮 透过 与 与 与 与 与 与 与 与 与 与 与 与 与 与 与 与 与 与 与 与 与 与 与 远端 远端 远端Entering the groove body to make the blade body more 靳M a private type '俾令 the blade blade of the data storage #詈,ΗΗ丨/骤系在外接^ ^ " The bedding storage device and the data processing| Shishi or in the case of the identification of the resource _=; section health storage device, go to the Fanshi Bay storage device, but the data storage device does not have a corresponding firmware storage material corresponding to the firmware The processing device 韦_ the substrate tube two::;=, hunting by the capital & soil S 1 working system through the network car 盥The return data processing device enters the "" storage, and corresponds to the shaft (4): a new program for the purpose of the (4) physical update procedure to achieve the method of updating the service. The pen is placed on the second:: In the actual implementation, the data processing device can pass the data processing device to the substrate management controller, such as KCS, mMIC, etc., on the substrate = The controller receives the update and takes the tool body command to communicate with the remote data processing device resident software, so as to obtain the blade body update program corresponding to the blade body in the early body; in addition, on the substrate The management controller 7 communicates with the remote data processing attack when the network system communicates with the remote data processing attack, and stores the record corresponding to the dynamic blade update program for the administrator to call and refer to 'where the record file is recorded. The reason why the data processing device enters the emergency recovery mode, the updated version of the blade body, the _ body update program is performed in 19979 11 200832223, and the update of the blade update program: = control: _ over the network The road system and the remote data office: installed = base wide right the official is operating the remote 2: when in the vicinity of the remote data processing device, the tube (4) or decide whether to perform the blade update procedure, or Do you want I to manually control It is healthy after the recording groove. Then proceed to step S16, the substrate management:::S16, is restarted (rese 〇 资料 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇 此 此 此 此 此 此 此 此 此 此 此 此 此 此 此 此 此 此 此 此 此 此As described above, the updated firmware processing device of the present invention enters an emergency system _ _ $ is to be detected by the data method when the external data is stored in the farm. =: the body is not in the body, so that the substrate management controller transmits the The more the network system: the rationale for the device to communicate, in order to obtain the data, so that the blade body is updated to the version of the body, and the invention can avoid the external ridge of the oyster; the conventional technology 'This avoids the external storage device can not be compatible with the data and ..., the law into the BIOS update program before the problem of the data processing device can be self--; the second person in person to send the instant to delete more, become # The invention is handled by the arbitrarily and can avoid the loss caused by the human treatment. In addition to the efficiency, the principle and the effect of the invention are not limited to the invention. Any skilled in the art , :: The spirit and scope of this I (4), The above embodiment is modified and deflated. Therefore, the scope of protection of the present invention should be as listed in the scope of the patent application 19979 12 200832223* described later. [Simplified description of the drawing] FIG. 1 is a modified firmware of the present invention. Steps of the steps of the method of the method. [Description of main component symbols] Steps S10 to S16
13 1997913 19979