TWI275999B - Method for updating software of an embedded device - Google Patents

Method for updating software of an embedded device Download PDF

Info

Publication number
TWI275999B
TWI275999B TW91110894A TW91110894A TWI275999B TW I275999 B TWI275999 B TW I275999B TW 91110894 A TW91110894 A TW 91110894A TW 91110894 A TW91110894 A TW 91110894A TW I275999 B TWI275999 B TW I275999B
Authority
TW
Taiwan
Prior art keywords
memory
image
update
program
host
Prior art date
Application number
TW91110894A
Other languages
Chinese (zh)
Inventor
Ping-Yeh Chen
Wen-Tsai Lee
Ming-I Wu
Original Assignee
Htc Corp
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 Htc Corp filed Critical Htc Corp
Priority to TW91110894A priority Critical patent/TWI275999B/en
Application granted granted Critical
Publication of TWI275999B publication Critical patent/TWI275999B/en

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

A method for updating software of an embedded device is disclosed, which executes an updated program in an operating system, so as to update data in a flash read-only memory. The method firstly downloads a flash image and stores it into a program memory of a random access memory, and copies the updated program to a reserved memory of the random access memory. Then, the method disables an interrupt of the operating system, and extracts a physical memory address of the flash image. Next, the method sets the flash read-only memory to be at a write mode, and starts to update the flash read-only memory. After the update, the method sets the flash read-only memory to be at a read mode, and determines whether the flash read-only memory has been updated. If so, the method re-activates the embedded device; otherwise, the method enables the interrupt of the operating system, so as to recover a normal status of the operating system.

Description

12759991275999

本發明是有關於一種更新嵌入式裝置(embedded device )之軟體的方法,且特別是有關於一種可更新嵌入 式裝置之快閃唯讀記憶體(flash read-only memory, f 1 ash ROM )内之作業系統區域或非作業系統區域資料 方法。 、 【發明背景】 現今輕薄短小的趨勢,不僅是硬體設計的走向,連同 作業系統及應用程式亦如此。而將具有特殊功能的小型 巧系,深植於機器内部或裝置中而能實現特定的功用,此 稱為肷入式系統(embedded system)或嵌入式裝置 (embedded device)。在日常生活中亦相當常嵌 式裝置譬如是個人數位助理(pers〇nal digital asslst )、電話系統、影印機、升降梯、行動電話··· =個☆數位助理而t ’目前此種嵌入式裝置之作 業糸'、先大邛份在快閃唯讀記憶體(flash 託㈣Ο,flash ROM)中執行。而由於軟體升級及更 ㈡:的=快,戶斤以如何更新喪入式農置之軟力 提供之特殊程式。並將嵌入式;執行礙商所 接,而個人電腦相對地要執行^ 俨ί 士電腦連 ^ , j ^特殊軟體以盘嵌入社 置連線。如此,肷入式震置開始下載像式裝The present invention relates to a method for updating a software of an embedded device, and more particularly to a flash read-only memory (f 1 ash ROM) of an updateable embedded device. Work system area or non-operation system area data method. [Background of the Invention] The current trend of thinness and shortness is not only the direction of hardware design, but also the operating systems and applications. A small system with special functions can be embedded in the machine or in the device to achieve a specific function. This is called an embedded system or an embedded device. In daily life, it is also quite common for embedded devices such as personal digital assistants (pers〇nal digital asslst), telephone systems, photocopiers, elevators, mobile phones, etc. = ☆ digital assistants and t 'currently embedded The operation of the device is performed in the flash read-only memory (flash tray (four), flash ROM). And because of the software upgrade and more (2): = fast, how to update the special program provided by the soft power of the lost farmer. It will be embedded; the implementation will be blocked by the implementation, and the PC will be executed relatively. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ So, the intrusive shock starts to download the image loading

TW0675(061110)CRF.ptc imag〇。兰技術係隨機存(取記;h體 1275999 修正 i號 91110894 五、發明說明(2)TW0675 (061110) CRF.ptc imag〇. Lan technology is stored randomly (remember; h body 1275999 amendment i number 91110894 five, invention description (2)

Random access memory,RAM)後,再開始進行 :i亦有邊下載更新影像,同時開始更新軟體’動 元畢,重新啟動嵌入式裝置即可完成更新或升級的動^新 但上述之方式卻具有下列之缺點.· 7作° (Ϊ )得利用連接線與個人電腦連結才能進 級之功能,如此對使用者使用上並不方便。 ’升 々成定得要重新開機’甚至得重新啟動兩次才能 凡成軟體更新,如此之過程對使用者而言相當繁瑣。 (3 )由於更新功能有須利用作業系統之^玄心、 (kernel )服務來升級快閃唯讀記憶體之其他區域, 上述方法並無法更新全部之快閃唯讀記憶體。 (4)沒有自動更新的功能,得要使用者手動啟動、 〃個人電腦連線且執行更新程式才行。 ^ 5 ) —邊下載更新程式,一邊同時進行更新動作, 可節省時間與記憶體空間’但若發生斷線,無法繼 二/更新時,由於系統已被更改但未完全,嚴重時會造 成糸統無法開啟。 【發明目的及概述】 脖有鑑於此,本發明的目的就是在提供一種更新嵌入式 ς embedded device )之軟體的方法,此方法可供使 社以夕種方式下載更新影像,亦可毋須以連接線與電腦 你=1此外,本發明更提供自動下載與更新的功能,毋須 使用者手動操作,相當的便利。 據本發明的目的,提出一種更新嵌入式裝置之軟體After the random access memory (RAM), start again: i also downloads the updated image, and at the same time starts to update the software 'moving the element, restarting the embedded device to complete the update or upgrade, but the above method has The following shortcomings: · 7 for ° (Ϊ) have to use the cable to connect with the personal computer to upgrade the function, so it is not convenient for the user. ‘It’s going to be re-booted’ and even has to be restarted twice to get the software updated, so the process is quite cumbersome for the user. (3) Because the update function requires the use of the operating system's ^Xinxin, (kernel) service to upgrade other areas of the flash read-only memory, the above method cannot update all the flash-only read-only memory. (4) There is no automatic update function, you have to manually start the user, connect the PC and execute the update program. ^ 5 ) — While downloading the update program, the update operation can be performed at the same time, saving time and memory space. 'But if a disconnection occurs, it cannot be followed by the second/update, because the system has been changed but not completely, it will cause 严重Cannot open. SUMMARY OF THE INVENTION In view of the above, the object of the present invention is to provide a method for updating a software embedded in an embedded device, which can be used to download an updated image in an evening manner, without being connected. Line and computer you =1 In addition, the present invention also provides automatic download and update functions, without the need for manual operation by the user, which is quite convenient. According to the purpose of the present invention, a software for updating an embedded device is proposed

TW0675(06lll〇)CRF.ntc 1275999 ----m 9111089j_年月 B 鉻不_ 五、發明說明(3) 的方法。此方法係以更新程式執行於嵌入式裝置之作業系 統中’用以更新作業系統或一應用程式。此嵌入式裝置具 有卩思機存取;己憶體(random access memory,RAM)及 决閃唯$貝 s己憶體(flash read-only memory,flash ROM ),快閃唯讀記憶體用以儲存該作業系統及該應用程 式。本發明之方法首先下載一更新影像(f lash image ) 且餘存至RAM之程式記憶體(pr〇gram mem〇ry)中。接 者複製更新程式之關鍵核心碼(critical core code)TW0675 (06lll〇) CRF.ntc 1275999 ----m 9111089j_年月 B Chromium not _ five, the method of invention (3). This method is implemented in the operating system of the embedded device by an update program to update the operating system or an application. The embedded device has a memory access; a random access memory (RAM) and a flash read-only memory (flash ROM), which is used for flash-reading memory. Store the operating system and the application. The method of the present invention first downloads an updated image (f lash image) and stores it in the program memory (pr〇gram mem〇ry) of the RAM. The copy of the critical core code of the update program

到RAM之保留記憶體(reserved mem〇ry)中,並執行關鍵 核心碼。隨即,關閉(d i sab丨e )作業系統之插斷 (interrupt ),並擷取更新影像之實體記憶體 I (Physical memory )位址。接者,設定快閃唯讀記憶體 ,寫入模式(write mode),且依據更新影像更新快閃唯 項€憶體。更新後,設定快閃唯讀記憶體為唯讀模式 (read mode )。接著判斷作業系統是否被更新,若是, 則重新啟動散入式裝置。若只更新應用程式,則啟動 (enable )作業系統之插斷,以回復作業系統之正常狀 態。 ^為讓本發明之上述目的、特徵、和優點能更明顯易 厪,下文特舉一較佳實施例,並配合所附圖式,作詳細說 明如下: 【較佳實施例】 本發明之更新嵌入式裝置(embedded device)之款Go to the reserved memory of the RAM and execute the key core code. Immediately, the interrupt of the (d i sab丨e ) operating system is turned off, and the physical memory I (Physical Memory) address of the updated image is retrieved. Receiver, set the flash read-only memory, write mode, and update the flash-only memory based on the updated image. After updating, set the flash read-only memory to read mode. It is then determined whether the operating system has been updated, and if so, the floating device is restarted. If only the application is updated, the interrupt of the operating system is enabled to restore the normal state of the operating system. The above described objects, features, and advantages of the present invention will become more apparent from the following detailed description. Embedded device

TW0675(061110)CRF.ptc 第7頁 1275999 修正 案號 91110S(U 五、發明說明(4) 用f式(application)。而作業系統或 於喪入式裝置之快閃唯讀記憶體(fUsh read_22儲存 memory,f lash ROM )中。而本發明^姑化瓜#主y 進入特殊&式ϋ心人式裝置之作t系統 (SerV1Ce)來下載更新影像(fUsh image)或升級 式。而此些服務譬如是網路功能或檔案管理功能等、。 ,此外,纟更新快閃唯讀記憶體時,本發明之技術係將 作業系統關閉(disable),以避免在更新時發生插斷、 (interrupt)的干擾,而造成更新時不可預期的錯誤。 亦因作業系統之關閉,而致原本使用之記憶體對應 /mapping)表亦無法使用。因此,本發明利用隨"機存取 記憶體(random access memory,RAM )中之保留記憶體 (reversed memory )中之固定位址轉換表建構一記^體 對應表,以進行更新之動作。接著詳細說明本發明之精 神0 請參照第1圖,其繪示嵌入式裝置與主機之連接示意 圖。於第1圖中’喪人式裝置! Q1係可分別經由無線區域網 路(wireless l〇cal area netw〇rk ,wireless LAN) 1〇7 連線或一連接線l〇9與主機1〇3或1 〇5連接,用以下載位於 主機103或105上之更新影像(未示於圖中)。而連接線馨 109譬如疋萬用串列匯流排(universai sei^ai bus, USB ) ’或者是串列(seriai )連接線。 而欲入式裝置1 0 1具有隨機存取記憶體及快閃唯讀記 憶體(均未示於圖中)。快閃唯讀記憶體用以儲存後入式 裝置1 0 1之作業系統及應用程式。RAM具有儲存記憶體TW0675(061110)CRF.ptc Page 7 1275999 Amendment No. 91110S (U V. Invention Description (4) Use f-type (application). The operating system or the flash-only read-only memory of the lost device (fUsh read_22 Store memory, flash ROM), and the present invention ^Guhua melon #主y enters the special & type heart-shaped device t system (SerV1Ce) to download updated images (fUsh image) or upgraded. Some services, such as network functions or file management functions, etc., in addition, when updating flash-only read-only memory, the technology of the present invention disables the operating system to avoid interruption during the update, ( Interrupt interference, which is an unpredictable error during the update. Also due to the shutdown of the operating system, the original memory corresponding/mapping table cannot be used. Therefore, the present invention constructs a record correspondence table by using a fixed address conversion table in a reserved memory in a random access memory (RAM) to perform an update operation. Next, the spirit of the present invention will be described in detail. Referring to Figure 1, a schematic diagram of the connection between the embedded device and the host is shown. In the first picture, 'the funeral device! The Q1 system can be connected to the host 1〇3 or 1〇5 via a wireless local area network (wireless LAN area netw〇rk, wireless LAN) 1〇7 or a connection line l〇9 for downloading at the host. Update image on 103 or 105 (not shown). The connection line is like a universal router (universai sei^ai bus, USB) or a serial (seriai) cable. The desired device 1 0 1 has a random access memory and a flash-only memory (both not shown). Flash-reading memory is used to store the operating system and applications of the rear-access device 10. RAM has storage memory

TW0675(061110)CRF.ptc 第8頁 1275999 月 修正 曰 MM 9111QR94 五、發明說明(5) 及 „rage memory)、程式記憶體(pr〇gram 则〇口 ,邊記憶體。儲存記憶體如同一虚擬RAM磁碟(disk), I用以儲存貝才斗,而喪入式裝置i 〇 i若持續提供電源給儲 f記憶體,儲存記憶體中的資料就不會消失。程式記憶體 ^ 2人電腦中的RAM,用以儲存執行中的應用程式之相 ^ Ά 此外,私式挹憶體與儲存記憶體之大小可視實際 =要而動態調整,唯RAM的容量大小固^,故兩者容量之、 :和不變。而保留記憶體之位址轉換表是固定的,如此當 士v ^ Ϊ讓作業系統失效(disable )時’即可利用此位 址轉換表進行更新動作。 本發明之更新嵌入式裝置之軟體的方法係以一更新 式執行於嵌入式裝置101之作業系統中,用以更新作 ,土應用程式。請參照第2圖,其繪示為依照本發明二較 佳κ施例的更新嵌入式裝置之軟體的方法流程圖。 之描述係先下載更新影像(flash image)至嵌入式= 之RAM之程式記憶體中,而後繼續更新軟體,纟本發明 不為此所限。首先,於第2圖之步驟201至步驟205係秘 加程式記憶體之容量(VO 1 ume )以儲存更新影像。’、”、、9 、於步驟2〇1中,增加RAM之程式記憶體的容量。 式記憶體與儲存記憶體之容量空間係總和不變而互^種 長,故此步驟亦可以由縮小儲存記憶體之容量來達:, 運用端看實際上作業系統之特性而定。接著,於弗’此 中,自程式記憶體中分派(aUocate )容量為三預二、” 值之一記憶空間。而此預定複製值譬如是256K。隨^複製TW0675(061110)CRF.ptc Page 8 1275999 Revised 曰MM 9111QR94 V. Invention description (5) and „rage memory”, program memory (pr〇gram is 〇 mouth, side memory. Storage memory is the same virtual RAM disk, I is used to store the shells, while the funeral device i 〇i continues to provide power to the memory, the data stored in the memory will not disappear. Program memory ^ 2 people The RAM in the computer is used to store the running application. In addition, the size of the private memory and the storage memory can be dynamically adjusted according to the actual =, but the capacity of the RAM is fixed, so the capacity of both The : and the unchanged. The address conversion table of the reserved memory is fixed, so that when the v ^ Ϊ disables the operating system, the address conversion table can be used to perform the update operation. The method for updating the software of the embedded device is executed in an operating system of the embedded device 101 in an updated manner for updating the soil application. Please refer to FIG. 2, which is shown as a preferred κ according to the present invention. Example of updating an embedded device The method flow diagram of the body is to download the update image (flash image) to the program memory of the embedded = RAM, and then continue to update the software, the invention is not limited thereto. First, in Figure 2 Steps 201 to 205 add the capacity of the program memory (VO 1 ume ) to store the updated image. ', ', 9, and in step 2〇1, increase the capacity of the program memory of the RAM. The capacity space of the storage memory is the same and the length of each other is different, so this step can also be achieved by reducing the capacity of the storage memory: the operating end depends on the characteristics of the actual operating system. Then, Yufu' The self-programmed memory (aUocate) has a capacity of three pre-seconds, one value of the memory space, and the predetermined copy value is 256K.

TW0675(061110)CRF.ptc 第9頁 巧〇5中,于步驟201至20 3,使得所分派"/於 mm........................... §己憶 1275999 修正 曰 1 號 9]nnsQi 五、發明說明(6) 二間可供儲存更新影像。 於步驟m中’下载更新影像至程式記憶體 更新影像係可為一壓縮後之檔案,如此可縮 而此步驟之下載方式係可視後入式裝置1〇1與主裁 線方式而定。譬如’喪入式裝置1〇1係可經由一益 主路103之連線以連接主機103,或以連I線109與 之审虹連結,而自主機103或105下載更新影像。而下載 館存1己=係可直接儲存至程式記憶體中,亦可先儲存至 中’再將更新影像複製 式屺體中。此外,亦可以儲存記憶卡111為媒介, 主機103或105直接將更新影像儲存在儲存記憶卡ι;ιι ,再由嵌入式裝置1 0丨讀取儲存記憶卡丨中的更 ,妙t此毋須與主機103或105連線,亦可進行更新動二。 &儲存記憶卡111之運用可更新多台嵌入式裝置,毋須 吊進行連線下載之動作。 、守 接著,於步驟20 9中,複製更新程式之關鍵核心碼 (cnt1Cal core code)到RAM之保留記憶體中,並 關鍵核心碼。所謂的關鍵核心碼即執行接下來之步 ^ 之程式碼。由於於更新快閃唯讀記憶體之資料時, : 業系統關閉(disable );而一旦作業系統關閉,作章、 統所提供的圮憶體對照(mapp i ng )表功能亦盔法用…、 故於此步驟時,將更新程式複製至保留記憶體中係用刺 保留記憶體中之固定位址轉換表,以繼續執行更 存取(access)更新影像。接著,進行步驟211更新私式及 於步驟211中’關閉(disable )作業系統之插斷 _ I 麵 _ TW0675(061110)CRF.ptc 第10頁 1275999TW0675 (061110) CRF.ptc Page 9 in Qiao 5, in steps 201 to 20 3, so that the assigned "/ in mm.................... ....... § Reminiscence 1275999 Correction No. 1 9]nnsQi V. Invention Description (6) Two rooms can be used to store updated images. In step m, 'downloading the updated image to the program memory. The updated image system can be a compressed file. Thus, the download method of this step can be determined by the visual input device 1〇1 and the main cutting mode. For example, the '1' system can be connected to the host 103 via a connection of the main road 103, or connected to the connection line I, and the updated image can be downloaded from the host 103 or 105. The download library 1 can be directly stored in the program memory, or it can be saved to the middle and then the image will be reproduced in the copy. In addition, the memory card 111 can also be stored as a medium, and the host 103 or 105 directly stores the updated image on the storage memory card ι; ιι, and then the embedded device 10 丨 reads the memory card 更 , It can be connected to the host 103 or 105, and can also be updated. The use of & memory card 111 can update multiple embedded devices without the need to hang the connection download. Then, in step 209, copy the key code of the update program (cnt1Cal core code) to the reserved memory of the RAM, and the key core code. The so-called key core code is the code that executes the next step ^. Since the system of the flash-reading memory is updated, the system is disabled; once the operating system is closed, the function of the stamp and the text provided by the chapter and the system is also used by the helmet... Therefore, in this step, the update program is copied to the fixed address conversion table in the reserved memory in the reserved memory to continue to perform access to update the image. Next, step 211 is performed to update the private mode and in step 211, the interrupt of the operating system is interrupted. _ I face _ TW0675 (061110) CRF.ptc Page 10 1275999

(interrupt )。此步驟之用意係關閉 如上所述,快閃唯讀記憶體的内容將要更業糸 該關閉那種會導致快閃唯讀記憶體被存 j 斷’以避免因插斷而影響了接下來之更新步驟:例如,: 閉作業系統之插斷以避免,,尋頁錯失” (page" exception)之發生。因為作業系統在處理,,尋頁錯失” 進行”上下文交換”(C〇ntext switching),當中會存取到曰 快閃唯讀記憶體的内容,故此應該避免”尋頁錯失,,的發生 而關閉與”尋頁錯失”有關的作業系統之插斷。 "(interrupt). The purpose of this step is to turn off the above, the content of the flash read-only memory will be more professional. The kind of shutdown will cause the flash-only read-only memory to be saved to avoid the impact of the next Update step: For example,: Interruption of the closed operating system to avoid, page faults occur. (Page" exception occurs. Because the operating system is processing, the page is missing." Perform "context switching" (C〇ntext switching) , which will access the contents of the flash-only read-only memory, so it should avoid the "missing of the page miss, the occurrence of the closure and the interruption of the search system related to the page miss."

接著,於步驟2 1 3中,擷取更新影像之實體記憶體 (physical memory )位址。由於嵌入式裝置1〇1之記憶體 容量有限,故其作業系統係利用虛擬記憶體(virtual memory )來增加記憶體容量使用性。此步驟係依各作業系 統之特性不同,依其虛擬記憶體與實體記憶體之對應 (m a p p i n g )方式’而取得更新影像之實體記憶體位址。 隨即進行步驟215。 於步驟2 1 5中,設定快閃唯讀記憶體為寫入模式 (write mode ),以準備更新快閃唯讀記憶體中之資料。 接著,於步驟2 1 7中,依據更新影像更新快閃唯讀記 憶體中之資料。而此步驟係利用保留記憶體之固定位址轉_ 換表來實施’而固定位址轉換表係以一轉換起始位址為基 底(base )。此步驟之細部執行步驟請參照第3圖。首先 於步驟301中,轉換(convert )程式記憶體之實體記憶體 位址(physical memory address)至固定位址轉換表 中。此步驟3 0 1係建構虛擬記憶體與實體記憶體之轉換Then, in step 2 1 3, the physical memory address of the updated image is retrieved. Since the memory capacity of the embedded device 1.1 is limited, the operating system uses virtual memory to increase the memory capacity usability. This step obtains the physical memory address of the updated image according to the characteristics of each operating system, according to the correspondence between the virtual memory and the physical memory (m a p p i n g ). Step 215 is then performed. In step 2:15, the flash read-only memory is set to the write mode to prepare to update the data in the flash read-only memory. Then, in step 2 17 , the data in the flash read-only memory is updated according to the updated image. This step is implemented by using a fixed address of the reserved memory to convert the table to a fixed address translation table with a conversion start address as the base. Please refer to Figure 3 for the detailed steps of this step. First, in step 301, the physical memory address of the program memory is converted into a fixed address conversion table. This step 3 0 1 is to construct the conversion of virtual memory and physical memory.

TW0675(061110)CRF.ptc 第11頁 1275999 案號 91110894 Λ:_Ά 曰 修正 五、發明說明(8) 表。隨即進行步驟3 0 3。 於步驟30 3中,解壓縮(decompress)更新影像之資 料區塊(data block )。接著,於步驟3〇5中,利用轉換 起始位址為基底位址,存取解壓縮後之資料區塊内容以更 新快閃唯讀記憶體之資料。 接著,於步驟307中,重覆上述步驟3〇1至3〇3, 以完成更新快閃唯讀記憶體。 於更新資料完成後,進行步驟2 1 9,設定快閃唯讀記 憶體為唯讀模式(read m〇de )。並於步驟221中,判斷作 業系統是否被更新。如果作業系統有更新,則必須重新啟 動(reboot )嵌入式裝置。如果只更新應用程式,則嵌入 式裝置ιοί毋須重新開機,但須啟動(enable)作業系統 之插斷,以進入作業系統主控之正常狀態。如此,即可完 成更新快閃唯讀記憶體之作業系統或應用程式。 上述係以Μ新影像下載至程式記憶體中來說明,但 本發明之技術亦可將更新影像下載至儲存記 將更新影像搬移至程式記憶體中,以 g :咬 置之軟體的方法之另一流程圖。首先 ^敢式裝 儲存記憶體之容量以容納更新影接^進1中,增加 於步_3中,下載更新者;^步驟4〇3° ::*肷入式裝置101係可藉由無線 :广此 連接線1〇9或儲存記憶卡U1自主 -、罔路連線1〇7、 像’並儲存至儲存記憶體中。 3 中下载更新影TW0675(061110)CRF.ptc Page 11 1275999 Case No. 91110894 Λ:_Ά 修正 Amendment V. Description of invention (8). Then proceed to step 3 0 3. In step 30 3, the data block of the updated image is decompressed. Then, in step 3〇5, the converted start address is used as the base address, and the decompressed data block content is accessed to update the data of the flash read-only memory. Next, in step 307, the above steps 3〇1 to 3〇3 are repeated to complete the update of the flash-only read memory. After the update data is completed, proceed to step 2 1 9. Set the flash read-only memory to read-only mode (read m〇de). And in step 221, it is determined whether the job system is updated. If the operating system has an update, the embedded device must be rebooted. If only the application is updated, the embedded device ιοί毋 must be rebooted, but the interrupt of the operating system must be enabled to enter the normal state of the operating system master. In this way, the operating system or application that updates the flash read-only memory can be completed. The above description is based on downloading a new image into the program memory. However, the technique of the present invention can also download the updated image to the storage record and move the updated image to the program memory, and the method of g: biting the software is another. A flow chart. Firstly, the capacity of the memory is stored to accommodate the update of the image, and is added to the step _3 to download the updater; ^ step 4〇3° ::* the immersive device 101 can be wirelessly : Widely connect the cable 1〇9 or store the memory card U1 autonomous-, the cable connection 1〇7, like 'and store it in the storage memory. Download update shadow in 3

IH 麵圓麵.麵刪眯麵in I~ ---—匕體移動 第12頁IH face round face. Face deletion face in I~ ----匕 body movement Page 12

TW0675(061110)CRF.ptc 1275999TW0675(061110)CRF.ptc 1275999

修正 至^式§己憶體中,接著進行步驟2 0 9。而此步驟40 5之細部 執1方法請參照第5圖。於第5圖之步驟5〇1中,增加程式 吞己fe體之容量。接著於步驟5〇3中,自程式記憶體中,分 派jal l〇cate )容量為一預定複製值之一記憶空間。而此 預疋複製值譬如是256K位元組(byte)。接著進行步驟 5 0 5。 於步驟505中’自儲存記憶體中,擷取預定複製值大 小之部份更新影像複製至上述之記憶空間中。接著於步驟 將儲存七憶體中之更新影像縮小(truncate )預Corrected to ^ § Recall, followed by step 2 0 9. For the details of this step 40 5, please refer to Figure 5. In step 5〇1 of Figure 5, increase the capacity of the program. Then, in step 5〇3, jal l〇cate is allocated from the program memory, and the capacity is one of the predetermined copy values. The pre-replication value is, for example, 256K bytes. Then proceed to step 5 0 5. In step 505, from the storage memory, a portion of the updated image capturing the predetermined copy value is copied into the above-mentioned memory space. Then in the step, the updated image in the memory of the seven memory is reduced (truncate)

^複製值’並重覆上述步驟5〇1至5 ,直至更新影像全部 複製至程式記憶體中。 由步驟501至50 7之方式係因記憶體容量有限之故,而 ϋ分次搬移更新影像至程式記憶體之方式實施;倘若 RAM谷量足夠,可依實際狀況而運用之。 1 外,本發明係可由主機103經由無線區域網路105 : 連線發出更新命令至嵌入式萝 .^ 私众A A 乂 八在置1〇1’以觸發本發明之更 新私式自動進行更新之動作 ^ ^ ^ ^ ^ ^ u 初作如此可以毋須使用者手動 動,§主機1 0 3有新版本之更斩$ # 新程序。 心灵新衫像時,即可自動進行更 【發明效果】 本發明上述實施例所揭露 舻沾古、土 甘s 士 丨 種更新肷入式裝置之軟 體的方法,其具有下列之優點· (1 )未必一定要經由遠技 衧f靳斗铋劢处,太恭RR 接線109連結主機105才能進 -----用無線區域網路1 〇 7連線^Copy value' and repeat steps 5〇1 to 5 above until the updated image is all copied to the program memory. The methods from steps 501 to 50 7 are implemented because the memory capacity is limited, and the image is moved to the program memory in batches. If the RAM is sufficient, it can be used according to the actual situation. In addition, the present invention can be updated by the host 103 via the wireless local area network 105: the update command to the embedded radiance. The private AA 在8 is set to 〇1' to trigger the update of the present invention to automatically update. Action ^ ^ ^ ^ ^ ^ u Initial work can be done manually without the user, § Host 1 0 3 has a new version of the new $ # new program. The present invention is a method for updating the soft body of the intrusion device, which has the following advantages: (1) ) It is not necessary to go through the far-fetched 衧 靳 , , 太 太 太 太 太 太 RR RR RR RR RR RR RR RR RR RR RR RR RR RR RR RR RR RR RR RR RR RR RR RR

第13頁 TW0675(061110)CRF.ptc 1275999 案號 9111〇894·_ 發明說明(10) _Page 13 TW0675 (061110) CRF.ptc 1275999 Case No. 9111〇894·_ Description of invention (10) _

Ξ儲存記憶卡111來下載更新影像,增加使用者之便利 (2) 對使用者手動更新而言 新非作業系統部份時,毋須重新啟動1作入〜易’且若只更 (3) 本發明係可更新 :式主機m。 域。 體中之全部區 (4 )利用無線區域網路1 〇 發出更新命令至嵌入式主機丨 、、、、’主機103可主動 發明之方法。如此本發明可以觸發更新程式執行本 手動操作,亦毋須使用& # 4軟體,而毋須使用者 ⑴本發明係將更新影像全部下;有無山升級版本。 後再行更新’如此毋須擔心斷線造成之載至敗入,置m 時間。 載昼ή的更新影像,以節省下載 (7)本發明可存取儲存 行更新動作。因此僅需由主機儲〜存 =更新影像以進 Τ中,即可以儲存記憶卡記憶卡 快速;便利,,亦可節省多台連線下載之時間 如此 然其並非用以限定本發明,杯彳^^佳貫施例揭露如上,Ξ Storing the memory card 111 to download the updated image, increasing the convenience of the user (2) When the user is manually updating the new non-operating system part, it is not necessary to restart 1 to make it easy~ and if only (3) The invention can be updated: the host m. area. All areas in the body (4) use the wireless area network 1 发出 to issue an update command to the embedded host 丨 , , , , and the host 103 can actively invent the method. Thus, the present invention can trigger the update program to perform the manual operation without using the &#4 software without the user (1) the present invention will update the image all under; there is no mountain upgrade version. After the update, there is no need to worry about the loss caused by the disconnection, and set the time. The updated image is loaded to save downloads. (7) The present invention can access the store line update action. Therefore, it only needs to be stored by the host to save the image to update the image, so that the memory card can be stored quickly; convenience, and the time for downloading multiple connections can be saved. Therefore, it is not intended to limit the present invention. ^^ The best example is disclosed above.

本發明之精神和範圍内,杏此技藝者,在不脫離I 本發明之保護範圍當視後飾,因此 準。 J <甲明寻利靶圍所界定者為Within the spirit and scope of the present invention, the apricot skilled person will be regarded as a rear-end decoration without departing from the scope of protection of the present invention. J < A Ming Ming Lei Target is defined by

1275999 圖式簡單說明 【圖式之簡單說明】 圖繪示依照本發明—較實施例之嵌入 機之連接示意圖。 八裝 第2圖缘示依照本發一 置之,體的方法流程圖。季x佳““列的更新嵌. 第3圖繪示為第2圖中劼 第4圖繪示為依照 ^驟217之方法、添程 裝置,軟體的方法之另本一發流月程-圖較佳實施例的更新 第5圖繪示為第4圖中: 圖 執仃步驟4〇5之方法流程 【圖式標號說明】 101 :散入式裝置 103,105 :主機 1 〇 7 ·無線區域網路 1 〇 9 :連接線 111 :儲存記憶卡 TW0675(061110)CRF.ptc 第15頁1275999 BRIEF DESCRIPTION OF THE DRAWINGS [Brief Description of the Drawings] The drawing shows a connection diagram of an embedded machine in accordance with the present invention. Eight Packs Figure 2 shows the flow chart of the body according to the method of the present invention. Season x is good "" column update embedded. Figure 3 is shown in Figure 2, Figure 4 is shown in accordance with the method of step 217, the add-on device, the software method of the other one of the current flow - FIG. 5 is a diagram showing the flow of the method in the fourth step: FIG. 4: FIG. Regional Network 1 〇9: Cable 111: Memory Card TW0675 (061110) CRF.ptc Page 15

Claims (1)

12759991275999 申請專利範圍 _ 體的方丰種^更新肷入式裝置(embedded device)之軟 = 方法係以一更新程式執行於該欲入式裝置之 該嵌入式裝置具有一業統或一應用程式’其中 八 通為存取5己憶體(random access _町,AM)及-快閃唯讀記憶體⑴心 業系^ R0M ) ’该快閃唯讀記憶體用以儲存該作 業糸統及該應用程式,該方法包括: Ρ + 5新影像Ο18311 image)且儲存至該RAM之一 私式 體(pr〇gram mem〇ry)中; ^复?更新程式之一關鍵核心碼(c⑴ code , ^ 亚執行該關鍵核心碼; 豆中兮你1 jSable)該作業系統之插斷(interrupt), ^ . ,、糸統之插斷係能導致該快閃唯讀記憶體被存 你u擷取忒更新影像之實體記憶體(physical memory) 位址, 快閃唯讀記憶體為寫人模式(write mode); Γ更新影像更新該快閃唯讀記憶體; 座丨辦社决閃唯5貝5己彳思體為唯讀模式(read mode ); H ¥ =作業系統是否被更新,若是,則重新啟動該嵌 入式裝置並結束該方法;以及 啟動(enable )該作業系統之插斷。 2 ·如申凊專利範圍第1項所述之方法,其中該嵌入式The patent application scope _ body Fang Feng species ^ update the embedded device soft = method is implemented by an update program on the embedded device, the embedded device has a system or an application ' Eight-way access to 5 memory (random access _ machi, AM) and - flash read-only memory (1) heart system ^ R0M) 'The flash read-only memory is used to store the operating system and the application Program, the method includes: Ρ + 5 new image Ο 18311 image) and stored in a private body (pr〇gram mem〇ry) of the RAM; ^ complex? Update one of the key core code (c(1) code, ^ sub-execute the key core code; 豆中11 1SSable) The interrupt of the operating system, ^ . , , 糸 之 interrupt system can cause the fast The flash read-only memory is stored in the physical memory address of the updated image, and the flash-only read memory is the write mode; Γ update the image update to the flash read-only memory Body; 丨 丨 社 社 社 社 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 (enable) Interruption of the operating system. 2. The method of claim 1, wherein the embedded method 12759991275999 接一主機’且該下載-更新影像之步驟係為'連線方式連 經由該無線區域網路自該主機更 式記憶體中。 ^ ^更新影像至該私 案號 91110894 六、申請專利範圍 裝置係經由—無線區域網路(wireless UN ) 3如申請專利範圍第】項所述 裝置係與一主機連結,日妗丁韶一舌虹 其中該肷入式 自,主機下料Φ該下更新Θ像之步驟係為: 口亥主機下載該更新影像至該RAM之 (storage memory )中;以及 燔存Z隐體 中:$更新’v像自該儲存記憶體移動至該程式記憶體 〜H申請範圍第3項所述之方法,其中於該自該主機 下載以更新影像至該RAM之一儲存記憶體 該方法更包括: 增加該儲存記憶體之容量。 5 ·如申4範圍第3項所述之方法,其中該將該更新影 像自該儲存圮憶體移動至該程式記憶體中之步驟係為: 增加,程式記憶體之容量; 、 自该程式記憶體中,分派(al locate )容量為一預定 複製值之一記憶空間; 自4儲存圮憶體中擷取該預定複製值大小之部份該更_ 新影像複製至該記憶空間中;以及 將該儲存記憶體中之該更新影像縮小(truncate )該 預定複製值,並重覆上述梦驟直至該更新影像全部複製至 程式記憶體。The method of downloading a host' and downloading-updating the image is connected to the host from the host via the wireless local area network. ^ ^Update the image to the private number 91110894. 6. The device for patent application is connected to a host via the wireless network (wireless UN) 3, as claimed in the patent application scope. The step of updating the image is as follows: the mouth of the host downloads the updated image to the RAM (storage memory); and the memory of the hidden entity: $update 'v The method of moving from the storage memory to the program memory, the method of claim 3, wherein the method of downloading from the host to update the image to the RAM stores the memory further comprises: adding the storage The capacity of the memory. The method of claim 3, wherein the step of moving the updated image from the storage memory to the program memory is: increasing, the capacity of the program memory; In the memory, the allocated capacity is a memory space of a predetermined copy value; and the portion of the predetermined copy value is extracted from the memory of the memory, and the new image is copied into the memory space; The updated image in the storage memory is truncate the predetermined copy value, and the dream is repeated until the updated image is completely copied to the program memory. 6為 1275999 製值為256Κ位元組(byte/ 。 裝置7传:申Λ專利範圍第1項所述之方法,其中該喪入式 衣直係與一主機連結,且 card),而兮π番右„ 純廿圯^卡(storage 二向邊下载一更新影像之步驟係為: =j主機下載該更新影像至該儲存記憶卡中;以及 s §1„儲^存記憶卡複製該更新影像至該程式記憶體中。 更新与德夕申:專利範圍第1項所述之方法,其中該下載-更新衫像之步驟係為: 自一主機下載該更新影像至一儲存記憶卡中; 將該儲存記憶卡結合至該嵌入式裝置中;以及 自該儲存記憶卡複製該更新影像至該程式記憶體中。 - Λ旦如:請專利範圍第1項所述之方法’其中於該下載 更新衫像之步驟前,該方法更包括: 增加該程式記憶體之容量(v〇lume); 自該程式記憶體中,分派(al locate )定旦么一箱— 複製值之一記憶空間;以及 S為-預疋 重覆上述步驟直至所分派的該記憶空間可儲存該更新 影像。 以’ 10·如申請專利範圍第1項所述之方法,其中該系統 具有以一轉換起始位址為基底(base )之—固定位址轉換 表,且該依據該更新影像更新該快閃唯讀記憶體之步驟係6 is 1275999 and the value is 256 Κ bytes (byte/. Device 7: The method described in claim 1 of the patent scope, wherein the mourning clothes are directly connected to a host and card), and 兮π Fan right „ pure 廿圯 ^ card (storage two-way downloading an update image is: = j host download the updated image to the storage memory card; and s § 1 „ memory card to copy the updated image The method of the first aspect of the patent, wherein the step of downloading and updating the shirt image is: downloading the updated image from a host to a storage memory card; The storage memory card is coupled to the embedded device; and the updated image is copied from the storage memory card to the program memory. - 如 如 请 请 请 请 请 请 请 请 请 请 请 专利 专利 专利Before the step of the shirt image, the method further comprises: increasing the capacity of the program memory (v〇lume); from the program memory, assigning (allocating) a box - a memory space of the copy value; S is - pre-repeated repeat The method of claim 1, wherein the system has a conversion start address as a base-fixed position. Address conversion table, and the step of updating the flash read only memory according to the updated image 轉換(convert)該程式記憶體之實體記憶體位址Convert the physical memory address of the program memory 12759991275999 1275999 案號91110894 年 月 曰 修正 六、指定代表圖 I1275999 Case No. 91110894 Month 修正 Amendment VI. Designated Representative Diagram I TW0675(061110)CRF.ptc 第3頁TW0675(061110)CRF.ptc Page 3
TW91110894A 2002-05-23 2002-05-23 Method for updating software of an embedded device TWI275999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW91110894A TWI275999B (en) 2002-05-23 2002-05-23 Method for updating software of an embedded device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW91110894A TWI275999B (en) 2002-05-23 2002-05-23 Method for updating software of an embedded device

Publications (1)

Publication Number Publication Date
TWI275999B true TWI275999B (en) 2007-03-11

Family

ID=38646137

Family Applications (1)

Application Number Title Priority Date Filing Date
TW91110894A TWI275999B (en) 2002-05-23 2002-05-23 Method for updating software of an embedded device

Country Status (1)

Country Link
TW (1) TWI275999B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI648966B (en) * 2018-01-26 2019-01-21 啓碁科技股份有限公司 Method and device for incremental upgrade

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI648966B (en) * 2018-01-26 2019-01-21 啓碁科技股份有限公司 Method and device for incremental upgrade

Similar Documents

Publication Publication Date Title
US10776007B2 (en) Memory management device predicting an erase count
TW501037B (en) Interactive update method for parameter data
US7996720B2 (en) Apparatus and method of mirroring firmware and data of embedded system
TWI306558B (en) Method, sysrem and computer readable medium recording relevant instructions utilizing paging to support dynamic code updates
KR100584338B1 (en) Method and system for updating software
TW565771B (en) Method, apparatus, and system to enhance an interface of a flash memory device
US7523280B2 (en) Storage managing system, storage managing apparatus, and storage managing method
US7383466B2 (en) Method and system of previewing a volume revert operation
US20100153660A1 (en) Ruggedized memory device
JP4376181B2 (en) Program execution processing terminal device
JP2006259962A (en) Storage system
JP2007501450A (en) Method for accessing data on a computer device
JP2008537618A (en) Computer device with automated page-based RAM shadowing and method of operation
US10901643B2 (en) Using log objects in object storage for durability of file objects in volatile memory
JP2003316595A (en) Installation method, file updating method, its program and computer system
JP2005276212A (en) Computing device with relatively limited storage space and operating/file system thereof
US10732887B2 (en) Cable modem and operating method thereof
TWI275999B (en) Method for updating software of an embedded device
US20100293561A1 (en) Methods and apparatus for conversion of content
US20220382563A1 (en) Program startup method, electronic system, and non-transitory storage medium
JP2005332301A (en) Method and program for processing program updating, and information processing terminal
JP2006350572A (en) Storage device, image forming apparatus, and system data management method
KR100673999B1 (en) Method for booting of mobile
JP2005275722A (en) Electronic device
JP2002304300A (en) Terminal device

Legal Events

Date Code Title Description
MK4A Expiration of patent term of an invention patent