[Not Applicable]
[Not Applicable]
Electronic devices, such as mobile phones and personal digital assistants (PDA's), often contain firmware and application software that are either provided by the manufacturers of the electronic devices, by telecommunication carriers, or by third parties. These firmware and application software often contain software bugs. New versions of the firmware and software are periodically released to fix the bugs or to introduce new features, or both.
Problems may arise when informing a mobile handset of a need to update its firmware or software. Additionally, the mobile handset may utilize an update agent or driver in the update process, and the update agent or driver may also require updating. Such updates may be complicated and a mobile handset may become inoperative if such an update should fail.
Further limitations and disadvantages of conventional and traditional approaches will become apparent to one of ordinary skill in the art through comparison of such systems with the present invention.
Aspects of the present invention may be seen in a system that facilitates the updating of at least one of firmware and updating software in an electronic device, using updating information received via a communication network, the system comprising a non-volatile memory; a RAM; and security services for verifying the loaded updating information. The non-volatile memory comprises firmware; loading software for loading the updating information via the communication network; updating software for applying the loaded updating information to the at least one of firmware and updating software; and initializing software for initializing the electronic device. In an embodiment of the present invention, the updating software is capable of updating itself. The updating software is also capable of saving a back up copy of itself when it updates itself. In an embodiment of the present invention, the updating software can determine whether an updating process was successful, and if not, the updating software uses the back up copy of itself.
A method for updating at least one of firmware and updating software in an electronic device, using updating information received via a communication network, the method comprising initializing the electronic device; and determining whether at least one of the firmware and the updating software is to be updated. If it is determined that no updating needs to be done, the method further comprises performing a normal start up of the electronic device. Otherwise, if it is determined at least one of the firmware and the updating software needs to be updated, the method further comprises determining whether the updating software needs to be updated.
If it is determined that the updating software does not need updating and the firmware needs updating, the method further comprises updating the firmware using the updating information; and initializing the electronic device. Otherwise, if it is determined that the updating software needs to be updated, the method further comprises backing up the updating software; updating the updating software using the updating information to produce a new updating software; initializing the electronic device; and determining whether the updating of the updating software was successful.
If it is determined that updating the updating software was successful, the method further comprises enabling the use of the new updating software; and initializing the electronic device. Otherwise, if it is determined that updating the updating software was not successful, the method further comprises using the backed up updating software; and initializing the electronic device.
These and other features and advantages of the present invention may be appreciated from a review of the following detailed description of the present invention, along with the accompanying figures in which like reference numerals refer to like parts throughout.
a illustrates a flow diagram of an exemplary method of operating a mobile handset when it powers up or reboots to start a firmware/software update using an update agent, in accordance with an embodiment of the present invention.
b illustrates a flow diagram of another exemplary method of operating a mobile handset when it powers up or reboots to start a firmware/software update using an update agent, in accordance with an embodiment of the present invention.
a illustrates an exemplary memory map of a mobile handset, in accordance with an embodiment of the present invention.
b illustrates an exemplary memory map divided into 8 banks, in accordance with an embodiment of the present invention.
c illustrates an exemplary memory map using a tri-phase boot, in accordance with an embodiment of the present invention.
d illustrates another exemplary memory map using tri-phase boot, in accordance with an embodiment of the present invention.
e illustrates an exemplary memory map using tri-phase boot utilizing “Boot Block” memory, in accordance with an embodiment of the present invention.
The present invention relates generally to updates of firmware/software components in electronic devices such as, for example, mobile handsets, and specifically to the update agent in electronic devices being capable of updating itself. Although the following discusses aspects of the invention in terms of a mobile handset, it should be clear that the following discussion also applies to other mobile electronic devices such as, for example, personal digital assistants (PDAs), pagers, personal computers (PCs), and similar handheld electronic devices.
In an embodiment of the present invention, the mobile handset 107 may comprise a non-volatile memory 111, a random access memory (RAM) 125, and security services 123. The non-volatile memory 111 of the mobile handset 107 may comprise an update agent 113, firmware and real-time operating system (RTOS) 115, an operating system (OS) layer 117, a download agent or browser 119, end-user-related data and content 121, and boot initialization 127.
In an embodiment of the present invention, the mobile handset 107 may download an update package from the update package repository 133 to update the update agent 113, and the mobile handset 107 may then reboot. The availability of update packages may be recorded in status information that may be stored in non-volatile memory 111 in the mobile handset 107. Upon a subsequent startup, the mobile handset 107 may execute the boot initialization 127, and then determine whether there is a need to execute the update agent 113 based on status information that may be available in the non-volatile memory 111. If the mobile handset 107 determines that the update agent 113 needs to execute the update process, the mobile handset 107 may invoke the update agent 113. In an embodiment of the present invention, the update agent 113 may determine that the update agent 113 itself needs to be updated. The update agent 113 may then create a backup of itself in a backup section such as, for example, a working flash bank (WFB) of the non-volatile memory 111 before updating the update agent 113, to provide for the recovery of the copy of the existing update agent 113 if the update process fails for any reason. Thus, the update agent 113 may provide updating in the mobile handset 107 in a fault tolerant manner utilizing a fault tolerant technique, an example of which may be found in International Patent Application Publication No. WO 02/41147 A1, entitled “Systems And Methods For Updating And Distributing Information,” publication date Mar. 23, 2002, the complete subject matter of which is hereby incorporated herein by reference, in its entirety.
a illustrates a flow diagram of an exemplary method of operating a mobile handset when it powers up or reboots to start a firmware/software update using an update agent, in accordance with an embodiment of the present invention. The following discussion of
If, however, the mobile handset 107 determines that an update is to be executed, then at a next decision block 213, the mobile handset may determine whether the existing update agent 113 is to be updated. If the mobile handset 107 determines that the update agent 113 is not to be updated, then, at a next block 227, a standard update process may be invoked. A reboot of the mobile handset 107 may then be initiated at the next block 229 before processing returns to the start block 207.
If, at the decision block 213, the mobile handset 107 determines that the update agent 113 needs to be updated, then, at a next block 215, the existing (old) update agent 107 may be backed up in a backup section of non-volatile memory 111 in the mobile handset 107. The update agent 107 may then be updated employing the contents of the update package that may have been retrieved earlier and stored in the non-volatile memory 111 or in the RAM 125. Then, at a next block 217, the mobile handset 107 may be rebooted. At a next decision block 219, the mobile handset 107 may determine which update agent should be used: the updated update agent (new) or the old update agent that may be available in the backup section of non-volatile memory 111. It may be necessary to use the old update agent in situation such as, for example, when the new update agent may be corrupted or ineffective. If the mobile handset 107 determines that the new update agent may be used, then a regular startup of the mobile handset 107 may be initiated at a next block 223, and the process may terminate at the end block 231.
If, at the decision block 219, the mobile handset 107 determines that the new update agent may be corrupted or unusable, then, at a next block 225, the old update agent from the backup section of the non-volatile memory 111 may be re-activated. In an embodiment of the present invention, the old update agent may be copied back to the default location for an update agent 107 within the non-volatile memory 111. A regular startup of the mobile handset 107 may then be initiated at a next block 223, and the process may terminate at the end block 231.
b illustrates a flow diagram of another exemplary method of operating a mobile handset when it powers up or reboots to start a firmware/software update using an update agent, in accordance with an embodiment of the present invention. The description of the exemplary embodiment of
In an embodiment of the present invention, updates to the update agent 107 may be used to fix bugs in an earlier version of the update agent, keep the update agent 107 current to accommodate the latest technologies and improvements, keep up to date with changes in the updating process, accommodate changes in the interface to the download agent that may be used by the mobile handset to download the update packages, etc.
a illustrates an exemplary memory map 301 of a mobile handset such as, for example, the mobile handset 107 of
b illustrates an exemplary memory map 303 divided into 8 banks, in accordance with an embodiment of the present invention. In an embodiment of the present invention, an update agent such as, for example, the update agent 113 of
In an embodiment of the present invention, a tri-phase boot may be utilized in updating the update agent.
The “Boot Checker” may be a small piece of code that is the first code run upon boot-up. In an embodiment of the present invention, this code may include device specific functionality with the purpose of checking for a bank containing a valid update agent before branching to the update agent, because the updated original update agent may have been corrupted in a prior updating process.
In an embodiment of the present invention, if bank 0 were not valid, it may indicate that an update of the update agent was attempted but was interrupted. The WFB may then be checked for validity, at block 413, since the original update agent may be located in the WFB. The “Boot Checker” bank may then branch to the WFB at block 415.
In an embodiment of the present invention, the Tri-Phase Boot method may involve a process similar to that of updating the image of the mobile handset firmware. This approach may involve the update agent itself applying the update in the device. In an embodiment of the present invention, the checksum of the update agent may be applied to the update agent firmware image before generating the update package. In an embodiment of the present invention, an external tool such as, for example, an update package generator with a generator user interface may be used to calculate the checksum of the update agent firmware image. Using a generator and an update agent for updating the update agent, proper provisioning, security, and fault-tolerance may be maintained.
d illustrates another exemplary memory map 307 using tri-phase boot, in accordance with an embodiment of the present invention. In an embodiment of the present invention, the first bank, bank 0, may be used as the “Boot Checker” and the update agent and image of the mobile handset firmware may be shifted forward by one bank, to banks 1 and 2, respectively.
e illustrates an exemplary memory map using tri-phase boot utilizing “Boot Block” memory, in accordance with an embodiment of the present invention. In an embodiment of the present invention, the “Boot Block” may be comprised of 8 kB blocks. A small boot checker may be placed in block 0. The update agent may be positioned starting at bank 1 and may, as a result, occupy up to about 56 kB of space. In an embodiment of the present invention, the need for extra flash memory blocks is eliminated.
In an embodiment of the present invention, implementation of the boot checker may be done in Read Only Memory (ROM), mask ROM, or another flash device including internal flash.
Although the discussion hereinabove provided exemplary illustrations of memory maps with variables and components in specific locations, it should be clear that locations and sizes of memory blocks may be altered based on the requirements and the design of the specific systems.
While the present invention has been described with reference to certain embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the present invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the present invention without departing from its scope. Therefore, it is intended that the present invention not be limited to the particular embodiment disclosed, but that the present invention will include all embodiments falling within the scope of the appended claims.
This patent application makes reference to, claims priority to and claims benefit from U.S. Provisional Patent Application Ser. No. 60/439,673, entitled “Mobile Handset Capable of Updating its Update Agent,” filed on Jan. 13, 2003. The complete subject matter of the above-referenced U.S. Provisional Patent Application is hereby incorporated herein by reference, in its entirety. In addition, this application makes reference to U.S. Provisional Patent Application Ser. No. 60/249,606, entitled “System and Method for Updating and Distributing Information”, filed Nov. 17, 2000, and International Patent Application Publication No. WO 02/41147 A1, entitled “Systems And Methods For Updating And Distributing Information,” publication date Mar. 23, 2002, the complete subject matter of each of which is hereby incorporated herein by reference, in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
5261055 | Moran et al. | Nov 1993 | A |
5442771 | Filepp et al. | Aug 1995 | A |
5479637 | Lisimaque et al. | Dec 1995 | A |
5579522 | Christeson et al. | Nov 1996 | A |
5596738 | Pope | Jan 1997 | A |
5598534 | Haas | Jan 1997 | A |
5608910 | Shimakura | Mar 1997 | A |
5623604 | Russell et al. | Apr 1997 | A |
5666293 | Metz et al. | Sep 1997 | A |
5752039 | Tanimura | May 1998 | A |
5778440 | Yiu et al. | Jul 1998 | A |
5790974 | Tognazzini | Aug 1998 | A |
5838981 | Gotoh | Nov 1998 | A |
5878256 | Bealkowski et al. | Mar 1999 | A |
5960445 | Tamori et al. | Sep 1999 | A |
5974574 | Lennie | Oct 1999 | A |
6009497 | Wells et al. | Dec 1999 | A |
6038636 | Brown, III et al. | Mar 2000 | A |
6064814 | Capriles et al. | May 2000 | A |
6073206 | Piwonka et al. | Jun 2000 | A |
6073214 | Fawcett | Jun 2000 | A |
6088759 | Hasbun et al. | Jul 2000 | A |
6105063 | Hayes, Jr. | Aug 2000 | A |
6112024 | Almond et al. | Aug 2000 | A |
6112197 | Chatterjee et al. | Aug 2000 | A |
6126327 | Bi et al. | Oct 2000 | A |
6128695 | Estakhri et al. | Oct 2000 | A |
6157559 | Yoo | Dec 2000 | A |
6163274 | Lindgren | Dec 2000 | A |
6198946 | Shin et al. | Mar 2001 | B1 |
6279153 | Bi et al. | Aug 2001 | B1 |
6311322 | Ikeda et al. | Oct 2001 | B1 |
6438585 | Mousseau et al. | Aug 2002 | B2 |
6748209 | Lipsit | Jun 2004 | B2 |
6820259 | Kawamata et al. | Nov 2004 | B1 |
6941136 | Study | Sep 2005 | B2 |
7055148 | Marsh et al. | May 2006 | B2 |
7065347 | Vikse et al. | Jun 2006 | B1 |
7082549 | Rao et al. | Jul 2006 | B2 |
7216343 | Das et al. | May 2007 | B2 |
20010029178 | Criss et al. | Oct 2001 | A1 |
20010047363 | Peng | Nov 2001 | A1 |
20010048728 | Peng | Dec 2001 | A1 |
20020078209 | Peng | Jun 2002 | A1 |
20020116261 | Moskowitz et al. | Aug 2002 | A1 |
20020131404 | Mehta et al. | Sep 2002 | A1 |
20020152005 | Bagnordi | Oct 2002 | A1 |
20020156863 | Peng | Oct 2002 | A1 |
20020157090 | Anton, Jr. | Oct 2002 | A1 |
20030033599 | Rajaram et al. | Feb 2003 | A1 |
20030037075 | Hannigan et al. | Feb 2003 | A1 |
20030061384 | Nakatani | Mar 2003 | A1 |
20030163805 | Hata | Aug 2003 | A1 |
20040031029 | Lee et al. | Feb 2004 | A1 |
20040194081 | Qumei et al. | Sep 2004 | A1 |
20040226008 | Jacobi et al. | Nov 2004 | A1 |
20040243993 | Okonnen et al. | Dec 2004 | A1 |
20050114852 | Chen et al. | May 2005 | A1 |
20050132351 | Randall et al. | Jun 2005 | A1 |
20050257214 | Moshir et al. | Nov 2005 | A1 |
20070089108 | Chen et al. | Apr 2007 | A1 |
20070169099 | Rao et al. | Jul 2007 | A1 |
20080114925 | Yang | May 2008 | A1 |
20080184220 | Chen et al. | Jul 2008 | A1 |
Number | Date | Country |
---|---|---|
2339923 | Mar 2000 | CA |
10115729 | Oct 2001 | DE |
8202626 | Aug 1996 | JP |
2002-0034228 | May 2000 | KR |
2001-0100328 | Nov 2001 | KR |
0241147 | May 2002 | WO |
WO 0241147 | May 2002 | WO |
Number | Date | Country | |
---|---|---|---|
20040243991 A1 | Dec 2004 | US |
Number | Date | Country | |
---|---|---|---|
60439673 | Jan 2003 | US |