Handsets and other wireless devices contain software in the form of executable instructions and non-executable data stored in a memory. The software provides such devices with the ability to perform various functions, such as communicate via a wireless network, handle call features such as call waiting and call forwarding, and maintain a calendar and address book.
However, once a wireless device is provided to an end user, it becomes difficult to provide additional software or to make corrections to the software already installed on the device. To address this problem, firmware over the air (FOTA) was developed to enable a service provider to send software updates over a wireless network to a wireless device. Such updates may provide additional functionality to software already existing on the wireless device or may provide bug fixes to address problems with the existing software. However, while an update process such as FOTA presents a way to send software to a wireless device, the development process to create and maintain such software is not without problems. Accordingly, the development of software in a FOTA environment is challenging and in need of improvement.
In one embodiment, a method for maintaining a change log when creating iterations of a binary image for use in a mobile device is provided. The method comprises creating a first intermediate binary file containing header information and image information for a first binary image, and creating a second intermediate binary file containing header information and image information for a second binary image. A first change log is inserted into the second intermediate binary file, wherein the first change log contains differences between the first and second intermediate binary files. A third intermediate binary file containing header information and image information for a third binary image is created. The first change log and a second change log are inserted into the third intermediate binary file, wherein the second change log contains differences between the second and third intermediate binary files.
In another embodiment, a method for use in a firmware over the air development environment is provided. The method comprises creating a cumulative change log for an intermediate binary file that contains an extractable binary image, wherein the cumulative change log records changes between the intermediate binary file and earlier iterations of the intermediate binary file. The cumulative change log is stored in the intermediate binary file and retrieved from the intermediate binary file. The cumulative change log is analyzed to identify statistics about changes that occurred between the intermediate binary file and earlier iterations of the intermediate binary file.
In yet another embodiment, a system for change logging in a firmware over the air environment is provided. The system comprises a processor, a memory coupled to the processor, and a plurality of computer executable instructions stored in the memory for execution by the processor. The instructions include instructions for creating a base intermediate binary file containing header information and image information for a binary image, and creating at least first and second iterations of the intermediate binary file. The instructions also include instructions for creating a first change log representing differences between the base and first intermediate binary files and a second change log representing differences between the first and second intermediate binary files. The instructions also include instructions for inserting the first change log into the first iteration of the intermediate binary file and the first and second change logs into the second iteration of the intermediate binary file. The instructions also include instructions for extracting an executable binary image from the second intermediate binary file.
Aspects of the present disclosure are best understood from the following detailed description when read with the accompanying figures. It is emphasized that, in accordance with the standard practice in the industry, various features are not drawn to scale. In fact, the dimensions of the various features may be arbitrarily increased or reduced for clarity of discussion.
It is to be understood that the following disclosure provides many different embodiments, or examples, for implementing different features of the invention. Specific examples of components and arrangements are described below to simplify the present disclosure. These are, of course, merely examples and are not intended to be limiting. In addition, the present disclosure may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
Referring to
In step 102, a base intermediate binary file may be created. As will be described later in greater detail, the intermediate binary file may contain header information and image information for a first version of the binary image. In operation, the binary image information may be extracted from the intermediate binary file to create the binary image.
In step 104, a second intermediate binary file may be created containing header information and image information for a second version of the binary image. The previous intermediate binary file 108 (which is the base intermediate binary file in this iteration) may be used in the creation of the second intermediate binary file. In step 106, a change log containing differences between the base intermediate binary file and the second intermediate binary file may be stored in the second intermediate binary file.
Steps 104 and 106 may be repeated each time another version of the intermediate binary file is created. Accordingly, in each iteration, a new nth intermediate binary file may be created and a change log may be stored in the nth intermediate binary file that tracks changes between the nth intermediate binary file and previous intermediate binary files.
It is understood that the change log in an intermediate binary file may be a compilation of the previous change logs or each change log may be maintained separately. For example, the nth intermediate binary file may contain a sequential list of change logs. For such a list, each change log may be associated with a particular intermediate binary file using, for example, a version number, date stamp, and/or other identification mechanisms.
Referring to
Referring to
It is understood that the computer 202 may be differently configured and that each of the listed components may actually represent several different components. For example, the CPU 302 may represent a multi-processor or a distributed processing system; the memory unit 304 may include different levels of cache memory, main memory, hard disks, and remote storage locations; and the I/O device 306 may include monitors, keyboards, and the like. Furthermore, although shown within the computer 202, it is understood that some components (e.g., a keyboard) may be physically located outside of the computer. In addition, some or all of the components 302, 304, 306, and 308 may be distributed. Therefore, a wide range of flexibility is anticipated in the configuration of the computer 202.
Referring to
The preprocessor step 402 is responsible for collecting different parts of a source program that is to be compiled. The compiling step 404 takes the output of the preprocessing step 402 and converts it into assembly language code, and the assembling step 406 translates the assembly language code into machine language code. The linking step 408 takes the machine language code, identifies any libraries or other external modules referred to by the machine language code, and binds these modules to the machine language code to form an intermediate binary file. The intermediate binary file may contain the binary image 412, as well as other information such as a header and debug information. The binary image 412 is extracted from the intermediate binary file in step 410 and may be loaded onto a mobile device using FOTA or another loading mechanism.
In some compilation systems, a step may optionally be executed during the compilation method 400 to record changes (e.g., in a log file). For example, such a step may be inserted into the method 400 prior to the linking step 408 (e.g., between the assembling step 406 and the linking step 408) to record changes and may operate by preprocessing the machine language code prior to linking. However, as such a step may be optional, the record of any changes may be lost if the step is not performed. Furthermore, even if the optional step is performed and a record of the changes is generated, there may be no mechanism to ensure that the record is saved or made available for later use. This makes it difficult to collect information regarding, for example, typical changes that may occur in a project's life cycle. This, in turn, makes it difficult to predict future software layout behavior and amount of change that may occur in future software images. Furthermore, even if changes in the software source code can be tracked, such tracking may not provide the ability to detect and store information about actual changes to the binary information itself, which may be desirable for applications such as FOTA.
Referring to
The method 500 may begin with various steps, such as a preprocessing step 502, compiling step 504, and assembling step 506. As similar preprocessing, compiling, and assembling steps were described with respect to
In step 508, assuming that an earlier iteration of an ELF file is present, preprocessing (different than the preprocessing of step 502) may occur on the machine language code produced by the assembling step 506. For example, the preprocessing step 508 may mimic the linking step 510 to identify changes that have occurred between the earlier ELF file and the ELF file to be linked in the current iteration. If no earlier ELF file is available, step 508 may be skipped.
In step 510, the machine language code may be linked to create an ELF file 512 (e.g., an ELF image). If the preprocessing step 508 identified changes, these changes may be inserted into the ELF file as a change log. For example, the software tool controlling the method 500 may insert the change log after the linking step 510 is complete. It is understood that different methods may be used to identify changes between various iterations of an ELF file and store those changes in the current iteration of the ELF file, and such methods may occur at different places in the method 500. Accordingly, the use of a preprocessing step and a later insertion of the change log into the ELF file is for purposes of example only.
During a development process represented by the method 500, a determination may be made in step 514 as to whether there are any updates for the ELF image. For example, if modifications (e.g., bug fixes or the addition of features) are to be made, the method 500 may return to step 502 (or another step) for an additional iteration. Any changes that occur between iterations may then be stored in the change log of the current iteration of the ELF file.
If no changes are to be made (e.g., the binary image is ready for release), the method may continue to step 516 where the binary image 518 is extracted from the ELF file. It is understood that, in some embodiments, step 516 may be repeated to create updated binary images 518 as additional versions of the software are released. Accordingly, the use of change logs stored within the iterations of the ELF file 512 may be used not only within the development cycle for the release of a single binary image 518, but may also be used for iterations resulting in the release of updated binary images 518.
It is understood that the information stored as part of a change log in an intermediate binary file such as an ELF file may vary. For example, the information may include the size and location of a file or a portion of a file in the current iteration compared to previous iterations. Additional information may include a global symbol that is coupled to the changed file. For example, a data symbol may be associated to a global symbol that is relatively unique, while executable code may be associated with a less unique global symbol (e.g., the first subroutine of a long list of subroutines).
Accordingly, the change log(s) in an intermediate binary file, such as an ELF image, may store information in a format that is relatively easy to access and that may be customized. For example, all software that creates an intermediate binary file for a project may be required to record changes. Furthermore, specific parameters may be required to create the desired level of detail for such reports. In this manner, analysis of various statistics obtained from the change logs may be performed during or after a project to determine factors of interest, such as which sections of code are changing the most and what software development group in the development process is responsible for the majority of the changes.
With additional reference to
Changes may be made to the baseline software 602a, resulting in software version_1602b. Software version_1602b is processed by armlink 604, resulting in a modified ELF_1 image 606b (modified relative to the ELF_base image 606a). As indicated, the ELF_base image 606a may be used (e.g., by the software development suite) to aid in managing the changes between the ELF_base image and ELF_1 image. A change_log_1 may be added to ELF_1 image 606b to represent changes between the ELF_base image and ELF_1 image.
Changes may be made to the software version_1602b, resulting in software version_2602c. Software version_2602c is processed by armlink 604, resulting in a modified ELF_2 image 606c (modified relative to ELF_1 image 606b). As indicated, the ELF_1 image 606b may be used (e.g., by the software development suite) to aid in managing the changes between the ELF_1 image 606b and ELF_2 image 606c. A change_log_2 may be added to ELF_2 image 606c to represent changes between the ELF_1 image and ELF_2 image. It is understood that, although the change logs are illustrated as separate logs in
Referring to
In step 706, the change log may be retrieved from the intermediate binary file. Such retrieval may occur during the development process (e.g., between iterations of the intermediate binary file) or after the development process is complete (e.g., when the binary image has been extracted). In step 708, the cumulative change log may be analyzed to identify statistics about changes between the various iterations of the intermediate binary file.
For example, such analysis may be desirable to create improved versions of software. As an illustration, if the use of software structures such as dynamic link libraries (DLLs) is desired, it may be beneficial to determine what types of code would be appropriate for DLLs. In addition, in a segmented memory environment such as that often used for FOTA, an analysis of changing code sections may aid in partitioning the binary image efficiently to decrease memory loss, both initially and through later updates. For example, the method 700 may be configured to scan through the cumulative change information stored in the change logs in order to make better decisions in the future when it prepares new software images. This may include the identification and collection of software modules that are relatively stable. For example, the use of cumulative change logs as described in the present disclosure may be used in conjunction with U.S. patent application Ser. No. 11/333,847, filed on Jan. 13, 2006, and entitled “SYSTEM AND METHOD FOR A PATCH MINIMIZATION TOOL”, and/or U.S. patent application Ser. No. 11/334,600, filed on Jan. 13, 2006, and entitled “SYSTEM AND METHOD FOR A PSEUDO DLL LINKER”, both of which are incorporated by reference herein.
It is understood that the use of cumulative change logs as described herein is not limited to the FOTA environment, but may be implemented in other environments. For example, an automotive dealer may store information such as maintenance, repair, and warranty information within a non-volatile memory inside an automobile. Accordingly, many different applications of the present disclosure may be envisioned.
Although only a few exemplary embodiments of this disclosure have been described in details above, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without materially departing from the novel teachings and advantages of this disclosure. For example, while the present disclosure frequently uses a mobile device for purposes of example, it is understood that embodiments of the present disclosure can be used with non-mobile devices, such as those with which the size of an update is important. Also, features illustrated and discussed above with respect to some embodiments can be combined with features illustrated and discussed above with respect to other embodiments. Accordingly, all such modifications are intended to be included within the scope of this disclosure.
Number | Name | Date | Kind |
---|---|---|---|
5729735 | Meyering | Mar 1998 | A |
5842024 | Choye et al. | Nov 1998 | A |
5893119 | Squibb | Apr 1999 | A |
6006239 | Bhansali et al. | Dec 1999 | A |
6018747 | Burns et al. | Jan 2000 | A |
6192365 | Draper et al. | Feb 2001 | B1 |
6230316 | Nachenberg | May 2001 | B1 |
6542906 | Korn | Apr 2003 | B2 |
6671703 | Thompson et al. | Dec 2003 | B2 |
6671757 | Multer et al. | Dec 2003 | B1 |
6707986 | Nishi et al. | Mar 2004 | B2 |
6816873 | Cotner et al. | Nov 2004 | B2 |
6925467 | Gu et al. | Aug 2005 | B2 |
6925476 | Multer et al. | Aug 2005 | B1 |
7415486 | Multer | Aug 2008 | B2 |
7461373 | Herle et al. | Dec 2008 | B2 |
7613815 | Prakash et al. | Nov 2009 | B1 |
7779401 | Scian et al. | Aug 2010 | B2 |
7797693 | Gustafson et al. | Sep 2010 | B1 |
7831965 | Pittore et al. | Nov 2010 | B1 |
7890469 | Maionchi et al. | Feb 2011 | B1 |
20010044805 | Multer et al. | Nov 2001 | A1 |
20020165724 | Blankesteijn | Nov 2002 | A1 |
20040034849 | Cohen et al. | Feb 2004 | A1 |
20040064544 | Barsness et al. | Apr 2004 | A1 |
20040068501 | McGoveran | Apr 2004 | A1 |
20040133887 | Herle et al. | Jul 2004 | A1 |
20040218902 | Yanagita | Nov 2004 | A1 |
20050138085 | Verma et al. | Jun 2005 | A1 |
20050160418 | Jeong et al. | Jul 2005 | A1 |
20070132774 | Fan et al. | Jun 2007 | A1 |
20070274598 | Dahms et al. | Nov 2007 | A1 |
Number | Date | Country | |
---|---|---|---|
20080030757 A1 | Feb 2008 | US |