TW200928979A - System and method for updating firmware - Google Patents

System and method for updating firmware Download PDF

Info

Publication number
TW200928979A
TW200928979A TW96151588A TW96151588A TW200928979A TW 200928979 A TW200928979 A TW 200928979A TW 96151588 A TW96151588 A TW 96151588A TW 96151588 A TW96151588 A TW 96151588A TW 200928979 A TW200928979 A TW 200928979A
Authority
TW
Taiwan
Prior art keywords
image
file
sub
version
file system
Prior art date
Application number
TW96151588A
Other languages
Chinese (zh)
Other versions
TWI410868B (en
Inventor
Shih-Chiang Chung
Original Assignee
Quanta Comp Inc
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 Quanta Comp Inc filed Critical Quanta Comp Inc
Priority to TW96151588A priority Critical patent/TWI410868B/en
Publication of TW200928979A publication Critical patent/TW200928979A/en
Application granted granted Critical
Publication of TWI410868B publication Critical patent/TWI410868B/en

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A system and a method for updating firmware are provided. The method for updating firmware is used for updating a first image of a first device. The first image has a first header, a first file system and a second file system. The method for updating firmware includes the following steps. Firstly, transporting the first header to a second device which has a second header and a third file system. Then, comparing the first header and the second header at the second device. Afterwards, merging the second header and the third file system into a second image at the second device. Next, outputting the second image to the first device. Then, updating the first file system of the first image into the third file system according to the second image.

Description

200928979 丨 30PA 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種韌體更新系統及方法,且特別是 有關於一種比對檔頭資訊並據以更新部分檔案系統之韌 體更新糸統及方法。 【先前技術】 喪入式系統(embedded system)為一種整合軟體及 硬體且具有特定功能的電腦系統。嵌入式系統之軟體亦稱 為韌體,並包括執行特定功能之指令集。許多電子裝置如 ❹ ❹ 個人數位助理(personal digital assistant,pDA)、電 話系,、影印機、升降梯...等係應用嵌人式系統。由於欲 用之範圍極廣大,且業界係致力於細入式 Γ今;新因4如:更新㈣為目前相當重要之绿題。 從個人電ΐ :將電子裝置連接至個人電腦,再 伙1υ八电驷下载完整之映像檔 著比=已下載之映像槽及電子裝子裝置。接 不相同錢之映像檔。然而 ▲ Μ,並更新 缺點: 新靭體的方法具有以下 第、需將個人電腦之整個映 才可得知需要更新哪些部分的續輸至嵌入式系統 加時,傳輪時間相對地提高許多。田。因此當韌體大小增 f一、不需更新之程式碼亦备 而相&浪費時間。 m輪至電子裝置,因此 6200928979 丨30PA IX. Description of the Invention: [Technical Field] The present invention relates to a firmware updating system and method, and in particular to a firmware update information for updating a partial file system SiS and methods. [Prior Art] An embedded system is a computer system that integrates software and hardware and has specific functions. Software for embedded systems is also known as firmware and includes a set of instructions that perform specific functions. Many electronic devices, such as personal digital assistants (PDAs), telephone systems, photocopiers, elevators, etc., are embedded systems. Because of the wide range of applications, and the industry department is committed to the fine-grained style; the new cause 4 such as: update (four) is currently a very important green topic. From the personal computer: connect the electronic device to the personal computer, and then download the complete image file. The ratio = the downloaded image slot and the electronic device. The image of the money is not the same. However, ▲ Μ, and update Disadvantages: The new firmware method has the following, and the entire image of the personal computer needs to know which parts need to be updated and renewed to the embedded system. field. Therefore, when the size of the firmware is increased, the code that does not need to be updated is also prepared and the time is wasted. m wheel to electronic device, so 6

30PA 200928979 第一由於整個散入式系統皆位於同一映像檔中,因 =像射不常更新的部份如核心碼(kernel)或開機碼 亦會傳輪至電子裝置中並進行比對。如此 不僅浪費頻I更降低更新效率。 【發明内容】 Ο Ο 产索有關於—飾體更新系統及方法,係於更新 檔案糸統㈣由第1置之傳送模組及第二裝置之比對 ΐ 3’以於第二裝置找出需要更新的檔案系統。 置了使第H需的播案系統合併並傳送至第一裝 裝置之自我更新模組更新檔案系統。 根據本發明之第—古& 括第-裝置及第二 _體更新系統,包 送模組及自我更新模組。第—儲存 ^ 购歧第二檔荦 系統。傳送模組用以輸出第一檔頭。 職 據第二映像矜更新贫, 、’、·用以根 元、比m像槽。第二裝置包括第二儲存單 頭及第二二二:併拉組。第二儲存單元用以儲存第二檔 一ί檔案系統。比對模組用以接收第-檔頭並比j 田頭及第二檔頭。合併模組用以 :統:輸出第二映像擋。自我更新模 將第—槽案系統更新為第三播案系統。 像播 以更=虞本r之第二方面’提出一編更新方法,用 更新第一裝置之第-映像播。第一映像播具有第一: 730PA 200928979 First, since the entire floating system is located in the same image file, the parts that are not frequently updated, such as the kernel code or the boot code, are also transmitted to the electronic device and compared. This not only wastes frequency I but also reduces update efficiency. SUMMARY OF THE INVENTION Ο Ο 产 产 — — 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰 饰The file system that needs to be updated. A self-updating module update file system that merges the H-destination broadcast system and transmits it to the first device is placed. According to the present invention, the first and second embodiments include a device and a second body update system, a packet module and a self-updating module. The first - storage ^ purchase second file 荦 system. The transmission module is used to output the first gear. According to the second image, the update is poor, and the ',· is used for the root and the m-like slot. The second device includes a second storage unit and a second two-two: parallel group. The second storage unit is configured to store the second file system. The comparison module is configured to receive the first gear and compare the j head and the second gear. The merge module is used to: System: output the second image file. Self-updating mode Updates the first-slot system to the third-segment system. As for the second aspect of the broadcast, the second aspect of the book is proposed to update the first device. The first image broadcast has the first: 7

30PA 200928979 頭、第-標案系統及第二槽案系統。動體更新方 下步驟。首先,將第-標頭傳送至第二裝置。第 „及第三檔案系統。接著’於第二裝置:對第二 槽頭及第二檔頭。然後m置合併第二 : 標案系統成第二映像檔。其次,將第二映像槽輸出二 裝置。再者’根據第三映像檔將第—映像標 統更新為第三檔案系統。 田案糸 ❹ 為讓本發明之上述内容能更明顯易懂,下文特兴 佳實施例,並配合所附圖式,作詳細說明如下:牛乂 【實施方式】 请參照第1圖,其緣示依照本發明較佳實施例之一種 勒體更新系統的示意目。勤體絲系統刚包 110及第二裝置120。第-裝置U0及第二裝置120例如 分別錢人式裝置及個人電腦,或者例如分別為個人 及遠端伺服器。 第一裝置11〇包括第一儲存單元⑴、傳送模組ιΐ2 2我更新模組113。第—儲存單元111例如是唯讀記憶 體(read-加1 y memory,臟)、快閃唯讀記憶體(f 1 ash腦) 或電可抹除可編程唯讀記憶體(eleetriealiy_erasabie programmable ROM,EEPR0M)。第一儲存單元 ln 用以儲 存第-映像檔114。第-映像槽114具有第—槽頭ιΐ5、 第=檔案系統116及第二槽案系統m。第一標案系統ιΐ6 及第二檔案系統117例如為程式碼且較佳地為不同功能之30PA 200928979 head, first-standard system and second slot system. The mobile update method is as follows. First, the first header is transmitted to the second device. The first and third file systems. Then in the second device: the second slot head and the second gear head. Then m is placed in combination with the second: the standard system is in the second image file. Secondly, the second image slot is output. Second device. In addition, the first image is updated to the third file system according to the third image file. Field file 糸❹ In order to make the above content of the present invention more obvious and easy to understand, the following examples are optimized and cooperated. The drawings are described in detail below: burdock [Embodiment] Please refer to Fig. 1, which shows a schematic diagram of a reticle updating system according to a preferred embodiment of the present invention. The second device 120. The first device U0 and the second device 120 are respectively a personal device and a personal computer, or for example, a personal and a remote server respectively. The first device 11 includes a first storage unit (1) and a transmission module. Ιΐ2 2 I update the module 113. The first storage unit 111 is, for example, a read-only memory (read-plus 1 y memory), a flash-only memory (f 1 ash brain), or an electrically erasable programmable only Read memory (eleetriealiy_erasabie programmabl e ROM, EEPR0M) The first storage unit ln is used to store the first image file 114. The first image slot 114 has a first slot head ιΐ5, a first file system 116 and a second slot system m. The first standard system The ΐ6 and the second file system 117 are, for example, coded and preferably have different functions.

丨 30PA 200928979 程式碼。第一樓頭115具有第一標案系統116及第二樓案 系統117之資訊。於本實施例中,係以第一檔案系統116 為需被更新之程式碼且第二檔案系統117為不需被更新之 程式碼為例做說明。傳送模組112用以輸出第一檔頭115 至第二裝置120。自我更新模組113用以自第二裝置12〇 接收第二映像標(未緣示於圖中),並根據第二映像播更 新第一映像檔114。 弟一裝置120包括第一儲存單元cl、比對模組122 〇及合併模組123。第二儲存單元121用以儲存第二檔頭124 及=三槽案系統125。第二標頭124具有第三檀案系統ι25 之貝訊。第三檔案系統125例如是程式碼且為第一裝置11〇 欲更新之程式碼。比對模組122用以自第一褒置11〇接收 第檔頭1丨5,並比對第一檔頭115及第二檔頭124。合 ,模、、且123用以合併第二播頭124及第三標案系、統!25成 第一映像檔,並輸出第二映像檔至第一裝置11〇。自我更 ❹新拉組113根據第二映像檔將第一映像檔114之第一檔案 系統Π6更新為第三檔案系統125。 本實施例之韌體更新系統100係於更新檔宰 藉^送模組112與比對模組122相互溝通。第一 ^置= 僅需將第一檔頭U5由傳送模組112輸出至第二裝置12〇 之比對模組122’即可找出需要被更新的檔案系統。因此, 可大幅減少比對第一裝置11〇及第二裝置120之檔案系統 所^費的時間。此外,藉由第二裝置120之合併模組123 將需要被更新的檔案系統及檔頭合併成新的映像檔。第一 9 ίΟΡΑ 200928979 裝置no之自我更新模組113根據新的映像標更新舊的映 像播。第-裝置no僅接收需要被更新的槽案系統及稽 頭,因此可大幅提昇更新效率。再者,不需更新的樓㈣ 、统不會被傳輸至第-裝置11〇 ’藉此可節省更新時間。 於本實施例中,第-裝置11〇{列如是透過連接蜂(_ port)如RS-232或通用序列匯流排(universai bus ’ USB)等方式直接連接至第二裝置12〇。另外,第一 裝置11〇亦可透過網路介面卡(netw〇rk interface⑶比, €> NIC)與第二裝置120之小型文件傳輸協定(triviai fiie transfer protocol ’ TFTP)伺服器達成通訊。 自我更新扠組113根據第三檔案系統125及第二檔案 系統117將第-樓頭115更新為第三檀頭131 (緣示於第 2圖)。第三檔頭m、第三槽案系统125及第二檔案系統 117係為第二映像擋130 (%示於第2圖)。 請參照第2及第3圖’第2圖繪示第三映像檔的示意 圖,弟3圖繪不第2圖之映像檔記錄標籤的示意圖。如第 2圖所示,第二映像檔13〇包括第三檔頭131、第三檔案 系統125及第二檔案系統ι17。於本實施例中,第三檔頭 131包括映像檔檢查值(image checkSum) 132、識別碼 (vender ) 133、版本(reversi〇n)碼 134、映像檔尺寸 (image size)襴位135、映像稽記錄標籤(image record tag) 136 及保留(reversed)位元 137。 映像檔檢查值132用以檢查第三映像檔130之完整 性。映像檔撿查值132例如為4位元,然映像檔檢查值132丨 30PA 200928979 code. The first floor 115 has information on the first standard system 116 and the second floor system 117. In this embodiment, the first file system 116 is a code to be updated and the second file system 117 is a code that does not need to be updated as an example. The transmitting module 112 is configured to output the first gear head 115 to the second device 120. The self-updating module 113 is configured to receive a second image from the second device 12 (not shown) and update the first image 114 according to the second image. The device 120 includes a first storage unit cl, a comparison module 122, and a merge module 123. The second storage unit 121 is configured to store the second gear head 124 and the third slot system 125. The second header 124 has a third telegram system ι25. The third file system 125 is, for example, a code and is the code of the first device 11 to be updated. The comparison module 122 is configured to receive the first head 1丨5 from the first set 11〇 and compare the first head 115 and the second head 124. Combination, mode, and 123 are used to merge the second broadcast header 124 and the third standard system. 25% of the first image file, and output the second image file to the first device 11A. The self-improvement pull group 113 updates the first file system Π6 of the first image file 114 to the third file system 125 according to the second image file. The firmware update system 100 of the present embodiment communicates with the update module 122 and the comparison module 122. The first setting = only the first header U5 is output from the transmitting module 112 to the comparing module 122' of the second device 12A to find the file system that needs to be updated. Therefore, the time taken to compare the file systems of the first device 11 and the second device 120 can be greatly reduced. In addition, the file system and the file header that need to be updated are merged into a new image file by the merge module 123 of the second device 120. The first 9 ίΟΡΑ 200928979 device no self-updating module 113 updates the old image broadcast according to the new image tag. The first device no only receives the slot system and the header that need to be updated, so the update efficiency can be greatly improved. Furthermore, the building (4) that does not need to be updated will not be transmitted to the first device 11', thereby saving update time. In the present embodiment, the first device 11 〇 {column is directly connected to the second device 12 如 through a connection bee (_ port) such as RS-232 or a universal sequence bus (universai bus ’ USB). In addition, the first device 11 can also communicate with the triviai fiie transfer protocol (TFTP) server of the second device 120 through a network interface card (netw〇rk interface(3) ratio, €> NIC). The self-renewing fork group 113 updates the first floor 115 to the third head 131 according to the third file system 125 and the second file system 117 (shown in Fig. 2). The third gear head m, the third slot system 125 and the second file system 117 are second image stops 130 (% shown in Figure 2). Please refer to FIG. 2 and FIG. 3' for a schematic diagram of the third image file, and FIG. 3 for a schematic diagram of the image file recording label of FIG. As shown in Fig. 2, the second image file 13A includes a third file header 131, a third file system 125, and a second file system ι17. In the present embodiment, the third gear header 131 includes an image checksum (132), an identifier (vender) 133, a version (reversi〇n) code 134, an image size 135, and an image. An image record tag 136 and a reverted bit 137. The image file check value 132 is used to check the integrity of the third image file 130. The image file check value 132 is, for example, 4 bits, and the image file check value 132

^OPA 200928979 之位元數係不限於此。 ,識別碼133用以圮錄製造商資訊。識別碼丄犯例如為 一常數。於本實施例中,識別碼133係為4位元,然其位 元數係不限於此。 版本碼134用以記錄第三映像檔13〇之版本。於本實 施例中,版本碼134料4位元,然其位元數係*限於此。 映像檔尺寸欄位135用以記錄第三映像槽13〇之大The number of bits in ^OPA 200928979 is not limited to this. The identification code 133 is used to record the manufacturer information. The identification code is for example a constant. In the present embodiment, the identification code 133 is 4 bits, but the number of bits is not limited thereto. The version code 134 is used to record the version of the third image file 13〇. In the present embodiment, the version code 134 is 4 bits, but the number of bits is limited to this. The image size field 135 is used to record the third image slot 13

小。於本實施例中’映像檔尺寸欄位135係為4位元,缺 其位元數係不限於此。 & 映像檔記錄標籤136用以記錄第三標案系統125及第 117的資訊。如第3圖所示’映像檔記錄標籤 匕括一第-子映像檔標藏138、第一子映像構位移搁位 141、映像檔尺寸攔位⑽、第—子映像檑檢查值 映像檑版本碼142、第二子映像槽標籤143、 第:J檔位移欄位144、第二子映像檔尺寸欄位145、 —々、像檔檢查值146及第二子映像檔版本碼147。 用以二:映^標籤138及第二子映像檔標籤143分別 °己錄第m统125及第二檀㈣統丨17 =辨識程式崎功能。第-子映像檑標籤138及第-子二 :鐵U3分別為一常數。於本實施例中, 及j43係分別為4位元,然其位元數係不限於^。 125位第;第子:上標:爛f 139用以記錄第三稽案系統 移攔位144~用t t子映像稽位 用乂5己錄弟一檔案糸統117位於第三檔頭1耵 11small. In the present embodiment, the image size field 135 is 4 bits, and the number of bits is not limited thereto. & image record tag 136 is used to record the information of the third standard system 125 and the 117th. As shown in FIG. 3, the image file record label includes a first-sub-image file mark 138, a first sub-image structure shift position 141, an image file size block (10), and a first-sub-image check value image. The code 142, the second sub-image slot label 143, the J-th shift field 144, the second sub-image size field 145, the 々, the image check value 146, and the second sub-image version code 147. For the second: the image ^ 138 and the second sub-image file label 143 respectively recorded the m system 125 and the second Tan (four) reconciliation 17 = identification program. The first-sub-image 檑 label 138 and the first-sub-two: iron U3 are each a constant. In the present embodiment, and j43 are each 4-bit, but the number of bits is not limited to ^. 125th place; first son: superscript: rotten f 139 used to record the third case system to move the block 144~ use the tt sub-image to use the position 己5 has recorded the younger brother a file 糸 system 117 is located in the third gear head 耵11

30PA 200928979 之後的相對位置。於本實施例中,子映像檔位移攔位139 及144係分別為4位元’然其位元數係不限於此。 第一子映像檔尺寸攔位140及第二子映像檔尺寸攔 位145分別用以記錄第三檔案系統125及第二檔案系統 117之大小。於本實施例中,子映像檔尺寸攔位14〇及145 係分別為4位元,然其位元數係不限於此。 第一子映像檔檢查值141及第二子映像檔檢查值146 分別用以檢查第三檔案系統12 5及第二檔案系統丨丨7之完 ❹整性。於本實施例中,子映像檔檢查值141及146係分= 為4位元’然其位元數係不限於此。 第一子映像播版本碼142及第二子映像檔版本碼147 分別用以記錄第三檔案系統125及第二檔案系統U7''之版 本。於本實施例中,子映像擋版本碼142及147係分別為 4位元’然其位元數係不限於此。 ’ 其他位元數。 如第2圖所示,保留位元137用以將第三檔碩131保 留至一固定大小。於本實施例中,保留位元137係將第^ 檔頭131保留至1024位元,然保留位元137亦可保留至 於本實施例中,映像檔記錄標籤136雖以二 檔標籤(138及143)、二個子映像檔位移攔位 144)、二個子映像權尺寸攔位(mo及;[45)、 二個子映像 & (139 及 兩個子映像 147 )為例作說明, 於實際應用時,若筹 檔檢查值(141及146)及兩個子映像檔版本碼(μ〗、及Relative position after 30PA 200928979. In the present embodiment, the sub-file shift positions 139 and 144 are respectively 4-bits. However, the number of bits is not limited thereto. The first sub-image size block 140 and the second sub-image size block 145 are used to record the size of the third file system 125 and the second file system 117, respectively. In this embodiment, the sub-image size block 14〇 and the 145 are respectively 4-bit, but the number of bits is not limited thereto. The first sub-image check value 141 and the second sub-image check value 146 are used to check the integrity of the third file system 125 and the second file system 分别7, respectively. In the present embodiment, the sub-image file check values 141 and 146 are = 4 bits. However, the number of bits is not limited thereto. The first sub-image broadcast version code 142 and the second sub-image file version code 147 are used to record the versions of the third file system 125 and the second file system U7'', respectively. In the present embodiment, the sub-image block version codes 142 and 147 are respectively 4-bit units. However, the number of bits is not limited thereto. ‘ Other bits. As shown in Fig. 2, the reserved bit 137 is used to reserve the third file 131 to a fixed size. In this embodiment, the reserved bit 137 retains the first header 131 to 1024 bits, but the reserved bit 137 may remain in the embodiment, and the image record label 136 is in the second gear (138 and 143), two sub-image file shift intercepts 144), two sub-image weight size blocks (mo and; [45), two sub-images & (139 and two sub-images 147) as an example for practical application If the file check value (141 and 146) and the two sub-image file version codes (μ), and

1212

30PA 200928979 統,則映像檔記錄標籤136更包括第三子映像檔標籤、第 三子映像檔位移攔位、第三子映像檔尺寸攔位、第三子映 像檔檢查值及及第三子映像檔版本碼。 另外,在此雖以第三映像檔130為例作說明,然第一 映像檔114及第二映像檔亦具有相似之資料形態。也就是 說,第一映像檔114及第二映像檔分別具有映像檔檢查 值、識別碼、版本碼、映像檔尺寸欄位、映像檔記錄標籤 及保留位元。其中,映像檔記錄標籤包括子映像檔標籤、 © 子映像檔位移攔位、子映像檔尺寸攔位、子映像檔檢查值 及子映像檔版本碼。 判定第一映像檔114是否需要被更新,係以比對模組 122比對第一檔頭115之版本碼及第二檔頭124之版本 碼。若第一映像檔114需要被更新,則比對模組122再比 對記錄第一檔案系統116版本之子映像檔版本碼、記錄第 二檔案系統117版本之子映像檔版本碼及記錄第三檔案系 統125版本之子映像檔版本碼,以找出需要被更新之檔案 ❹系統。 以下更搭配流程圖說明韌體更新方法。請參照第4 圖,其繪示依照本發明較佳實施例之韌體更新方法的流程 圖。並請同時搭配第1圖〜第3圖之元件標號。首先,實 施步驟S410,第一裝置110之傳送模組112將第一檔頭 115傳送至第二裝置120。 接著,實施步驟S420,第二裝置120之比對模組122 比對第一檔頭115及第二檔頭124。 13 )0ΡΑ 200928979 人、,然後,實施步驟S430,第二裝置120之合併模組123 合併第1檔頭124及第三檔案系統125成第二映像檔。 其次,實施步驟S440,將第二映像檔輸出至第一裝 置 110。 再者,實轭步驟S45〇,第一裝置110之自我更新模 組113根據第二映像播,將第一映像播114之第一檔案系 統116更新為第三檔案系統125。 ❹ 一最後,實施步驟S46〇,根據第二檔案系統117及第 二,案系統125將第—槽頭115更新為第三檔頭131。第 一枯頭131、第二檔案系統125及第二檔案系統117係為 第三映像構130。 凊參照第5圖’其緣示第4圖中更新第一棺頭為第三 檔頭之詳細流程圖。首先,實施步驟編,根據第三槽案 系狀统125之錢更新第三標頭131之第―子映像槽標藏 i 〇 然:後,實施步驟S462,根據第三槽案系統125位於 弟二檔頭131之後的相對位置,更新第三檔頭131之第一 子映像檔位移攔位139。此外,由於第三映像標13〇較佳 地將所有播案系統連續地儲存,所以第二標案系統…之 儲存位置亦會改變。因此,實施步驟以63,根據第二 系統117位於第三檀頭131之後的相對位置,更新第^ 頊131之第二子映像檔位移欄位144。 田 其次,實施步驟S464 ’根據第三播案系統125之大 小更新第三檀頭131之第一子映像播尺寸攔位140。接著,In the 30PA 200928979 system, the image record record label 136 further includes a third sub-image file tag, a third sub-image file shift block, a third sub-image size block, a third sub-image check value, and a third sub-image. File version code. In addition, although the third image file 130 is taken as an example here, the first image file 114 and the second image file also have similar data forms. That is, the first image file 114 and the second image file have image file check values, identification codes, version codes, image size field fields, image file record labels, and reserved bits, respectively. Among them, the image file record label includes a sub-image file label, a © sub-image file shift block, a sub-image size block, a sub-image check value, and a sub-image file version code. It is determined whether the first image file 114 needs to be updated, and the version code of the first file header 115 and the version code of the second file header 124 are compared by the comparison module 122. If the first image file 114 needs to be updated, the comparison module 122 compares and records the sub-image file version code of the first file system 116 version, records the sub-image file version code of the second file system 117 version, and records the third file system. The sub-image file version code of version 125 to find out which files need to be updated. The following is a more complete flowchart to illustrate the firmware update method. Please refer to FIG. 4, which is a flow chart showing a method for updating a firmware according to a preferred embodiment of the present invention. Please also match the component numbers in Figures 1 to 3. First, in step S410, the transmitting module 112 of the first device 110 transmits the first gear 115 to the second device 120. Next, in step S420, the comparison module 122 of the second device 120 compares the first gear head 115 and the second gear head 124. 13) 0ΡΑ 200928979 Person, and then, in step S430, the merge module 123 of the second device 120 merges the first file header 124 and the third file system 125 into a second image file. Next, step S440 is implemented to output the second image file to the first device 110. Moreover, in the sieving step S45, the self-updating module 113 of the first device 110 updates the first file system 116 of the first image broadcast 114 to the third file system 125 according to the second image broadcast. Finally, in step S46, according to the second file system 117 and the second, the case system 125 updates the first slot head 115 to the third gear head 131. The first dead head 131, the second file system 125, and the second file system 117 are the third image structure 130. Referring to Fig. 5, the fourth flowchart of Fig. 4 is a detailed flowchart for updating the first header to the third header. First, the implementation step is programmed to update the first sub-image slot of the third header 131 according to the money of the third slot system 125. After the step S462, the third slot system 125 is located. The relative position after the second gear 131 updates the first sub-image shift stop 139 of the third gear head 131. In addition, since the third image marker 13 〇 preferably stores all the broadcast systems continuously, the storage location of the second landmark system ... will also change. Therefore, the step of implementing 63 updates the second sub-map shift field 144 of the first 131 according to the relative position of the second system 117 after the third head 131. Next, step S464' is implemented to update the first sub-image size block 140 of the third head 131 according to the size of the third broadcast system 125. then,

50PA 200928979 實施步驟S465,根摅笛— 131之映像才當尺十^弟三映像槽130之大小更新第三標頭 、>細久寸攔位丨35。 然後,實絲半_ 映像標檢查值14^S466’根據第三播頭131的第一子 外,如步驟S467所驗第三播案系、统125之完整性。此 值132檢驗第:幹二,根據第三檔頭131的映像擋檢查 no可讀取並檔13G之完整性,以確保第一裝置 订弟二映像檔130。 Ο 其次,如步 版本更新第三槽頭13 1不’根據第二檔案系統125之 如步驟S469所示 之第一子映像檔版本碼142。然後, F、十、分1、,更新第三檔頭131之版本碼134。 〇 中,第」裝"^之^明較佳實施例之勒體更新系統及方法 第二裝置之比對模^:將第一映像槽之第—檔頭傳送至 統。另外,第二梦署比對模組找出需要更新的檔案系 及檔頭合併成第:,:併核組只將需要更新的檔案系統 來,”像擋’並傳送至第-裝置。如此- 水’弟—裝置的_典毋此> 且那此一 π L 我更新杈組可根據第二映像檔更新笫 映像棱。因此具有τ列部分優點: ㈣更新弟- 尺第可决逮地找出需要被更新之檔荦孕统。产-百 尺寸極小,ϋ此藉由胁K㈣线。檔碩之 新之權案系統係相當快^ "―槽頭之方式找出需要被更 二装置僅傳逆:傳:的檔案系統大小以增加更新效率。第 減少傳輸的播案系統大小。此田^二^此可有效地 率。 更了有效地增加更新效 1550PA 200928979 Implementation step S465, the image of the root flute-131 is updated to the third header by the size of the ten-dimensional three-channel slot 130, > Then, the solid half-image check value 14^S466' is based on the integrity of the third broadcast system 125 as determined in step S467 according to the first sub-portion of the third play head 131. This value 132 checks the first: dry second, according to the image of the third gear head 131 check no can read the integrity of the 13G to ensure that the first device subscribes to the second image 130. Ο Next, the third slot header 13 1 is not ' according to the second file system 125 as shown in step S469. Then, F, ten, and 1, the version code 134 of the third header 131 is updated. 〇中,第“装"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ In addition, the second dream office compares the file system and the file headers that need to be updated into the first:,: and the core group will only need to update the file system, "image block" and transmit to the first device. - Water's brother--the device's _ 毋 毋 this > and that π L I update the group can update the 笫 image edge according to the second image file. Therefore, there are some advantages of the τ column: (4) Update the younger - the ruler can decide Find out the files that need to be updated. The production-hundred size is extremely small, so by the threat K (four) line. The new system of the file system is quite fast ^ "- slotted way to find out that it needs to be more The second device only transmits the reverse: the size of the file system is increased to increase the update efficiency. The size of the broadcast system is reduced. This field ^2^ can effectively rate. More effective to increase the update effect 15

30PA 200928979 第三、組態彈性。開發人員可自行組態欲更新或改變 的部分檔案系統,因此提高了開發時的彈性及效率。 第四、節省頻寬。第二裝置僅需傳送第一裝置需更新 之檔案系統,因此可有效地節省頻寬。 綜上所述,雖然本發明已以一較佳實施例揭露如上, 然其並非用以限定本發明。本發明所屬技術領域中具有通 常知識者,在不脫離本發明之精神和範圍内,當可作各種 〇 之更動與潤飾。因此,本發明之保護範圍當視後附之申請 專利範圍所界定者為準。 1630PA 200928979 Third, configuration flexibility. Developers can configure some of the file systems they want to update or change, thus increasing the flexibility and efficiency of development. Fourth, save bandwidth. The second device only needs to transmit the file system to be updated by the first device, so that the bandwidth can be effectively saved. In view of the above, the present invention has been disclosed in a preferred embodiment, and is not intended to limit the present invention. It is to be understood by those skilled in the art that various changes and modifications can be made without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims. 16

30PA 200928979 【圖式簡單說明】 第1圖繪示依照本發明較佳實施例之一種韌體更新 系統的示意圖; 第2圖繪示第三映像檔的示意圖; 第3圖繪示第2圖之映像檔記錄標籤的示意圖; 第4圖其繪示依照本發明較佳實施例之韌體更新方 法的流程圖;以及30PA 200928979 [Simplified Schematic] FIG. 1 is a schematic diagram of a firmware update system according to a preferred embodiment of the present invention; FIG. 2 is a schematic diagram of a third image file; FIG. 3 is a second diagram FIG. 4 is a flow chart showing a method for updating a firmware according to a preferred embodiment of the present invention;

第 5圖繪示第4圖中更新為第三 構頭之詳細流程圖。 【主要元件符號說明】Figure 5 is a detailed flow chart showing the update to the third configuration in Figure 4. [Main component symbol description]

100 韌體更新系統 110 第一裝置 111 第一儲存單元 112 傳送模組 113 自我更新模組 114 第一映像標 115 第一檔頭 116 第一檔案系統 117 第二檔案系統 120 第二裝置 121 第二儲存單元 122 比對模組 123 合併模組 124 第二檔頭 17 10?Α 200928979 125 :第三檔案系統 130 :第三映像檔 131 :第三檔頭 132 :映像檔檢查值 133 :識別碼 134 :版本碼 135 :映像檔尺寸欄位 136 :映像檔記錄標籤 Ο 137 :保留位元 138、 143 :子映像檔標籤 139、 144 :子映像檔位移攔位 140、 145 :子映像檔尺寸攔位 141、 146 :子映像檔檢查值 142、 147 :子映像檔版本碼100 firmware update system 110 first device 111 first storage unit 112 transfer module 113 self-updating module 114 first image mark 115 first file header 116 first file system 117 second file system 120 second device 121 second Storage unit 122 comparison module 123 merge module 124 second file header 17 10?Α 200928979 125: third file system 130: third image file 131: third file header 132: image file check value 133: identification code 134 : Version code 135: Image size field 136: Image file record label 137 137: Reserved bits 138, 143: Sub-image file labels 139, 144: Sub-image file shift stops 140, 145: Sub-image size block 141, 146: sub-image file check value 142, 147: sub-image file version code

1818

Claims (1)

^OPA 200928979 十、申請專利範圍: 1. 一種韌體更新方法,用以更新一第一裝置之一 -映像檔’該第一映像檔具有一第一檔頭(header)、— 歹第::案系統及一第二槽案系統,獅更新方法包括下 “)將該第一檔頭傳送至一第二裝置,該第 具有一第二檔頭及一第三檔案系統; ❹ Ο (b)於該第二裝置比對該第—標頭及該第二標頭; (C)於該第二裝置合併該第二檔頭及該第三檔案系 統成一第二映像檔; /〜、 (d) 將該第二映像檔輸出至該第一裝置;以及 (e) 根據該第二映像檔,將該 檔案系統更新為該第三檔案系統。 像枯之該第一 "I.驟=請專利範圍第1項所述之物體更新方法,其 中5亥乂驟(b)包括下列步驟: 檔頭之版本及該第二檔頭之版本;以及 比對兮1^#社版本及料二_之版林相同,則 i二:案糸統之版本、該第二檔案系統之版本及該 矛一辐茶系統之版本。 3.如申請專利範圍第2項 中更包括下列H 朝體更新方法’其 第-檔第三财系敍該第m统,將該 田 新為—第三檔頭,該第三檔頭、兮第_产索糸 統及該第三槽案系統係為一第三映像播a弟一播案系 19 30PA 200928979 中,I.二了請專利範圍第3項所述之韌體更新方法,其 中該步驟(f)包括下列步驟: 早第二槽案系統之代號’更新該第三標頭之一第 一子映像檔標籤。 V 中該二==項所述之_新方法,其 置更:狀㈣相對位 根據該第二案系=象 置以及該第三槽頭之一第一早二擒頭之後的相對位 6 “二映像檔,位移欄位。 6. 如申睛專利範圍第3 令該步驟⑴包括下列H返之㈣更新方法,其 根據該第三槽案车絲 一子映像檔尺寸攔位r 小’更新該第三構頭之-第 7. 如申請專利範圍第 ❹ 令該步驟⑴包括下列步驟:、以之韌體更新方法,其 根據5亥第二檔案系統之版本 —子映像檔版本碼。更新該苐二檔頭之一第 8. 如申請專利範圚第3 中該步驟⑴包括下列步驟··、述之物體更新方法,其 根據該第三檔頭之一裳― 三檔案系統之完整性。 子映像檔檢查值,檢驗該第 9.如申請專利範圍第2 中該步驟⑴包括下列步驟:、㉛之勤體更新方法,其 20 30PA 200928979 更新該第三播頭之—版本碼。 10.如申請專利範圍第3項所述之 中該步驟⑴包括下列步驟: 更新方法,其 根據該第二映像檀之大小,更新該 擋尺寸攔位。 —^碩之一映像 U·如申請專利範圍第3項 中該步驟⑴包括下列步驟:祕更新方法,其 ❹整性 根據該第三播頭之人左 。 田碩之私查值,檢驗該第三映像檔之完 12. 第 •種韌體更新系統,包括: 裝置,包括: 一第一儲存單元,用以儲在一 第-映像檔具有一第一梓海 '二错存$-映像檔 案系統;有弟㉝碩、一第一播案系統及一第. 該 -檔 一傳送模组,用以輸出該第-播頭,·及 ❹ 自我更新模組,用以棍墙一楚 該第—映像檔;以及 乂㈣康帛二映像槽更新 一第二裝置,包括: _ _ 一第二儲存單元,用以儲存—第__ 二檔案系統; 弟一袷頭及一第 一比對模組,用以接收該第一 一槽頭及該第二檔頭;及 碩並比對該第 該第# 模組’用以合併該第二檔頭及 4案糸統以輸出該第二映像擋,該自我更新模組根 21 I0PA 200928979 統更新為該第三檔案系 據δ亥弟一映像標將該第—檔宰系 統。 13.如申請專利範圍第12 其中該比對模組比對該第一標宰㈣更新系統, 系統之版本及該第三檔案系之版本、該第二標案 之檔案系統。 版本,以找出需要被更新 ❹^OPA 200928979 X. Patent application scope: 1. A firmware update method for updating one of the first devices - an image file. The first image file has a first header, - 歹:: The case system and a second slot system, the lion update method includes: "" transmitting the first gear to a second device, the first having a second gear and a third file system; ❹ Ο (b) Comparing the second device with the first header and the second header; (C) combining the second header and the third file system with the second device into a second image; /~, (d Outputting the second image file to the first device; and (e) updating the file system to the third file system according to the second image file. The first "I. The object updating method according to Item 1 of the patent scope, wherein the 5th step (b) comprises the following steps: a version of the head and a version of the second head; and a comparison 兮1^#社 version and material _ The same version of the forest, then i: the version of the case system, the version of the second file system and the version of the spear one tea system 3. If the second paragraph of the patent application scope includes the following H-body update method, the first-order third-term system describes the m-th system, and the new field is the third-order head, the third file. The head, the 兮 产 产 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 19 19 19 19 19 19 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 The method, wherein the step (f) comprises the following steps: the code of the early second slot system 'updates the first sub-image file label of one of the third headers. The new method described in the second == item in V, It is more: the shape (four) relative position according to the second case = the image and the third bit head of the first bit after the first bit of the second bit "the second image file, the displacement field. 6. For example, the third step of the scope of the patent application scope (1) includes the following H-return (four) update method, according to the third trough case, a sub-image size, the position r is small, and the third structure is updated. 7. If the scope of the patent application is stipulated, the step (1) includes the following steps: the firmware update method, which is based on the version of the second file system of the 5H-sub-image file version code. Updating one of the second gears of the second section. 8. In the third paragraph of the patent application, the step (1) includes the following steps: the method for updating the object according to the third gear, which is based on the completeness of the third file system. Sex. The sub-image file check value is checked. The step (1) in the second part of the patent application scope includes the following steps: 31, the method for updating the service body, and 20 30PA 200928979 updating the version number of the third play head. 10. The step (1) of claim 3 includes the following steps: an update method that updates the block size block based on the size of the second image. - ^ One image U. As in the third paragraph of the patent application, the step (1) includes the following steps: the secret update method, and its refinement according to the third broadcaster left. Tian Shuo's private check value, verifying the completion of the third image file. 12. The firmware update system includes: the device, comprising: a first storage unit for storing a first image file having a first梓海's two-fold deposit $-image file system; a younger brother 33 ’s, a first broadcast system and a first. The-file-transmission module for outputting the first-player, ❹ and 自我 self-updating mode a second device for updating the second device, including: _ _ a second storage unit for storing - the __ second file system; a first head and a first matching module for receiving the first slot head and the second gear head; and the first module is configured to merge the second head and 4 The case system outputs the second image file, and the self-updating module root 21 I0PA 200928979 is updated to the third file system according to the δ 弟 一 映像 image. 13. As claimed in claim 12, wherein the comparison module updates the system, the version of the system, the version of the third file system, and the file system of the second file than the first standard (4). Version to find out what needs to be updated ❹ 14.如申請專利範圍第12頂 其中該自我更新模組係根據該第^統# ΐ系統將該第-槽頭更新為-第三檔 弟二,案系統及該第三稽案系統係為一第三=頭" 其中該第^^範㈣14朗述❹體更新系統, (image checksum),用以檢查該第 一映像檔檢查值 三映像標之完整性。 項所述之韌體更新系統, 用以記錄該第三映像檔之 16.如申請專利範圍第14 其中該第三槽頭包括: 一版本(reversion)碼, 版本。 17. 如申請專利範圍第u項所述之韌體更新系統, 其中該第三檔頭包括: 映像檔尺寸(image size)攔位,用以記錄該第三 映像檔之大小。 18. 如申請專利範圍第14項所述之韌體更新系統, 其中該第三檔頭包括: 22 )0?Α 200928979 一識別碼(vender ),用以記錄製造商資訊;以及 一保留(reversed )位元,用以將該第三標頭保留至 一固定大小。 19. 如申請專利範圍第14項所述之韌體更新系統, 其中第三檔頭更包括: 一映像檔記錄標籤(record tag),用以記錄該第二 檔案系統及該第三檔案系統的資訊。 20. 如申請專利範圍第19項所述之韌體更新系統, ❹ 其中該映像檔記錄標籤包括: 一第一子映像槽標籤(sub-image tag),用以記錄該 第三檔案系統之代號;以及 一第二子映像檔標籤,用以記錄該第二檔案系統之代 號。 21. 如申請專利範圍第19項所述之韌體更新系統, 其中該映像檔記錄標籤包括: 一第一子映像槽位移(sub-image offset)攔位,用 ◎ 以記錄該第三檔案系統位於該第三檔頭之後的相對位 置;以及 一第二子映像檔位移攔位,用以記錄該第二檔案系統 位於該第三檔頭之後的相對位置。 22. 如申請專利範圍第19項所述之韌體更新系統, 其中該映像檔記錄標籤包括: 一第一子映像檔尺寸(sub-image size)欄位,用以 記錄該第三檔案系統之大小;以及 23 30PA 200928979 一第二子映像標尺寸搁位’用以記錄該第二標案糸統 之大小。 23.如申請專利範圍第19項所述之韌體更新系統, 其中該映像標記錄標戴包括. 一第一子映像檔檢查值(sub-image checksum),用 以檢查該第三檔案系統之完整性;以及 一第二子映像檔檢查值,用以檢查該第二檔案系統之 完整性。 Ο 24.如申請專利範圍第19項所述之韌體更新系統, 其中該映像播記錄標戴包括. 一第一子映像檔版本(sub-image reversion)碼, 用以記錄該第三檔案系統之版本;以及 一第二子映像檔版本碼,用以記錄該第二檔案系統之 版本。 〇 2414. If the patent application scope is the 12th top, the self-updating module updates the first-slot head to the third-order second brother according to the first system, and the case system and the third instance system are A third = header " wherein the ^^范(四)14 朗 ❹ 更新 更新 更新 更新 更新 更新 更新 更新 image image image image image image image image image image image image image image image image image image image image image image image image 。 。 The firmware update system is configured to record the third image file. 16. The scope of the third slot includes: a version (reversion) code, version. 17. The firmware update system of claim 5, wherein the third file header comprises: an image size block for recording the size of the third image file. 18. The firmware update system of claim 14, wherein the third file header comprises: 22) 0? Α 200928979 an identification code (vender) for recording manufacturer information; and a reservation (reversed) a bit to reserve the third header to a fixed size. 19. The firmware update system of claim 14, wherein the third gear header further comprises: an image record tag for recording the second file system and the third file system News. 20. The firmware update system of claim 19, wherein the image record label comprises: a first sub-image tag for recording the code of the third file system And a second sub-image file tag for recording the code of the second file system. 21. The firmware update system of claim 19, wherein the image record tag comprises: a first sub-image offset block, and ◎ to record the third file system a relative position after the third gear head; and a second sub-image shifting displacement position for recording a relative position of the second file system after the third gear head. 22. The firmware update system of claim 19, wherein the image record tag comprises: a first sub-image size field for recording the third file system Size; and 23 30PA 200928979 A second sub-image size of the shelf 'used to record the size of the second standard system. 23. The firmware update system of claim 19, wherein the image mark record includes: a first sub-image checksum for checking the third file system Integrity; and a second sub-image check value to check the integrity of the second file system.韧 24. The firmware update system of claim 19, wherein the image broadcast record comprises: a first sub-image reversion code for recording the third file system a version; and a second sub-image version code for recording the version of the second file system. 〇 24
TW96151588A 2007-12-31 2007-12-31 System and method for updating firmware TWI410868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW96151588A TWI410868B (en) 2007-12-31 2007-12-31 System and method for updating firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96151588A TWI410868B (en) 2007-12-31 2007-12-31 System and method for updating firmware

Publications (2)

Publication Number Publication Date
TW200928979A true TW200928979A (en) 2009-07-01
TWI410868B TWI410868B (en) 2013-10-01

Family

ID=44864317

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96151588A TWI410868B (en) 2007-12-31 2007-12-31 System and method for updating firmware

Country Status (1)

Country Link
TW (1) TWI410868B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325915A (en) * 2015-07-01 2017-01-11 广达电脑股份有限公司 Systems, methods, and computer-readable storage media for updating a computer firmware

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7299463B2 (en) * 2001-09-28 2007-11-20 Intel Corporation Method for atomically updating a plurality of files
TW571234B (en) * 2001-11-06 2004-01-11 Penbex Data Systems Inc Method and device for packaging and decomposing image file, and image file capable of being packaged and decomposed
US7334117B2 (en) * 2004-08-04 2008-02-19 National Instruments Corporation Device boot loader for processing one or more requests from a host computer system concurrently with loading or updating the firmware of the device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325915A (en) * 2015-07-01 2017-01-11 广达电脑股份有限公司 Systems, methods, and computer-readable storage media for updating a computer firmware
TWI570592B (en) * 2015-07-01 2017-02-11 廣達電腦股份有限公司 System, method and computer readable storage medium for updating computer firmware

Also Published As

Publication number Publication date
TWI410868B (en) 2013-10-01

Similar Documents

Publication Publication Date Title
CN101258487B (en) Annotating documents in a collaborative application with data in disparate information systems
CN101512498B (en) The access to the data file be distributed in multiple dissimilar subscriber equipment is provided to user
TW202101198A (en) System and method for implementing different types of blockchain contracts
KR100949249B1 (en) System ans method for sharing biderectional medical information
CN110096685B (en) Equipment identifier generation method and device
CN109697071A (en) Installation kit synthetic method, device, terminal and storage medium
TW202101332A (en) Method and device for cross-chain transmission of authenticable message
US8935473B2 (en) System and method for a portable memory device to access and acquire additional memory from a remote location
US7685225B2 (en) Content acquisition apparatus, content acquisition method and content acquisition program
CN106096023A (en) Method for reading data, method for writing data and data server
CN101960426A (en) Storage device having direct user access
CN108038114A (en) A kind of path query method, terminal, computer-readable recording medium
WO2008016560A1 (en) Two-way and multi-master synchronization over web syndications
US20110307554A1 (en) Information processing system capable of efficient data communication reflecting intention of sender who transmits data, information processing apparatus, method of controlling information processing apparatus, and recording medium storing control program for information processing apparatus
CN102362272A (en) Device dependent on-demand compiling and deployment of mobile applications
WO2005019985B1 (en) System for incorporating information about a source and usage of a media asset into the asset itself
WO2003029970A3 (en) Method for atomically updating a plurality of files
MX2008012378A (en) Policy based message aggregation framework.
CN108512898B (en) File pushing method and device, computer equipment and storage medium
US9078288B2 (en) Independent information network
US20100254631A1 (en) Peer-to-peer file sharing system and method
GB2455938A (en) Secure firmware updates in embedded systems
US20090204648A1 (en) Tracking metadata for files to automate selective backup of applications and their associated data
KR20230073274A (en) Blockchain-Based Systems and Methods for Disclosure of Operating Systems
CN101035093A (en) Method and system for processing message

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees