WO2000052573A2 - Updating read-only software modules - Google Patents

Updating read-only software modules Download PDF

Info

Publication number
WO2000052573A2
WO2000052573A2 PCT/US2000/005641 US0005641W WO0052573A2 WO 2000052573 A2 WO2000052573 A2 WO 2000052573A2 US 0005641 W US0005641 W US 0005641W WO 0052573 A2 WO0052573 A2 WO 0052573A2
Authority
WO
WIPO (PCT)
Prior art keywords
read
software module
references
operating system
software
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/US2000/005641
Other languages
French (fr)
Other versions
WO2000052573A3 (en
Inventor
Michael Ginsberg
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Microsoft Corp
Original Assignee
Microsoft 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 Microsoft Corp filed Critical Microsoft Corp
Priority to DE60001153T priority Critical patent/DE60001153T2/en
Priority to AU37216/00A priority patent/AU3721600A/en
Priority to JP2000602926A priority patent/JP2002538547A/en
Priority to EP00916052A priority patent/EP1159677B1/en
Priority to AT00916052T priority patent/ATE230859T1/en
Priority to DK00916052T priority patent/DK1159677T3/en
Publication of WO2000052573A2 publication Critical patent/WO2000052573A2/en
Publication of WO2000052573A3 publication Critical patent/WO2000052573A3/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/66Updates of program code stored in read-only memory [ROM]

Definitions

  • This invention relates generally to the field of data processing and more particularly to a method and system for updating read-only software in a computing system.
  • a read-only device such as a read-only memory (ROM).
  • the software modules within the read-only device may be software applications, such as word processing software, or may be shared software libraries that are used by the applications during execution.
  • a readonly device may contain dynamically linked libraries (DLL's) that are shared by the software applications stored within the read-only device. Speed and memory efficiencies can be achieved by executing the software applications and the libraries directly from the read-only device and not requiring that they be first loaded into random access memory (RAM).
  • RAM random access memory
  • the invention provides a mechanism by which software modules executing from a read-only device may be updated to use newer versions of other software modules without requiring that the device be reprogrammed or replaced.
  • the invention advantageously allows software modules to be primarily executed directly from the read-only device while only a small updated portion is executed from read/write device.
  • the software modules may be stand- alone software applications or shared software libraries.
  • the invention is a method of executing a software module on a computing system.
  • a portion of the software module is loaded from a read-only device into a read/write device.
  • the loaded portion of the software module is executed directly from the read/write device while a remainder of the software module is executed from the read-only device.
  • virtual memory is allocated for both the portion of the software module loaded within the read/write device and for the remainder of the software module within the read-only device.
  • the loaded portion of the software module is modified to correctly address the newer software modules. Much of the software module is executed directly from the read-only device while just the modified portion is executed from the read/write device.
  • the invention is a computing system having a read-only device that contains a first portion of a software module.
  • a read/write device contains a second portion of the software module.
  • An operating system executes the software module by executing the first and second portions of the software module from their corresponding devices.
  • FIG. 2 is a block diagram showing functional components of the computer shown in FIG. 1 ;
  • FIG. 3 is a block diagram illustrating one embodiment of a read-only device having executable software applications and shared libraries
  • FIG. 4 is a block diagram that illustrates a mapping from virtual memory to physical memory that includes read-only memory (ROM) and random-access memory (RAM); and
  • FIG. 5 is a flowchart illustrating one mode of operation in which the invention updates software modules stored in a read-only device without requiring that the contents of the read-only device be reprogrammed.
  • the detailed description is divided into four sections.
  • the first section describes the hardware and the operating environment that is suitable for use with the invention.
  • the second section provides a detailed description of the embodiments of the inventive system.
  • the third section provides methods for operating an exemplary embodiment of the invention.
  • the fourth section provides a conclusion of the detailed description.
  • FIG. 1 is a diagram of resource-limited computer in which read-only applications are updated at run-time according to the various embodiments of the invention.
  • the invention is described in the general context of computer- executable instructions, such as program modules, being executed by a computer, such as a personal computer.
  • program modules include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types.
  • FIG. 1 illustrates a typical handheld personal computer (H/PC) 20 having limited computing resources.
  • H/PC 20 has a casing 22 with a cover or lid 24 and a base 26.
  • H/PC 20 has a liquid crystal display (LCD) 28 with a touch -sensitive screen mounted to the lid 24.
  • LCD liquid crystal display
  • the lid 24 is hinged to the base 26 so as to pivot between an open position, which exposes display 28, and a closed position, which protects the display.
  • the H/PC 20 is equipped with a stylus 30 to enter data through the touch screen display 28 and a miniature keyboard 32.
  • the stylus 30 and keyboard 32 are both mounted in base 26.
  • H/PC 20 can also be implemented with a wireless transceiver (not shown) such as an infrared transceiver and/or an radio frequency transceiver.
  • a wireless transceiver such as an infrared transceiver and/or an radio frequency transceiver.
  • the illustrated implementation shows a two-member H/PC 20 with a lid 24 and a base 26, other mechanical implementations of the H/PC might also be used.
  • FIG. 2 illustrates the primary functional components of the H/PC 20 shown in FIG. 1.
  • the H/PC 20 includes microprocessor 40 that executes operating system 48.
  • Processor 40 has three modes of operations: full-speed, standby and suspend.
  • Full-speed mode is used to execute applications.
  • Standby mode is used during brief idle periods.
  • Suspend mode is used during long idle periods and uses less than one-thousandth of full speed power.
  • H/PC 20 includes timers 42 for providing interrupts and other timer events as well as the current date and time.
  • Read-only memory (ROM) 44 stores operating system 48 as well as bundled applications 56.
  • Random access memory (RAM) 46 includes user area 52 for executing user-installed applications and object store 54 for storing data.
  • Object store 54 is used in place of conventional direct-access storage devices like disk and tape drives. In addition, object store 54 maintains a registry for H/PC 20. User input and output devices 60 communicate with external devices. Similarly, connectivity block 62 represents a number of standard connectivity devices such as a serial port, infrared communications hardware, etc. The hardware and operating environment in conjunction with which embodiments of the invention may be practiced has been described. The following section provides a more detailed description of the embodiments of the inventive system.
  • FIG. 3 illustrates one embodiment of a read-only memory (ROM) 44 having software applications 56 and shared libraries 135 stored therein.
  • Readonly memory (ROM) 44 may be any memory-addressable device that is readonly or any device which only supports block writes such as flash memory, a flash memory card, etc.
  • Software applications 56 represent application programs, such as word processing software, that are stored in ROM 44 and which primarily execute from ROM 44 in order to increase initial execution speed and to conserve RAM 46.
  • Libraries 135 are not stand-alone applications but are invoked by applications 56 or even by other libraries 135.
  • libraries 135 are dynamically linked libraries (DLL's).
  • DLL's dynamically linked libraries
  • the term software module includes both software applications 56 and libraries 135. Table of contents 120 lists all software applications 56 and libraries 135 stored within ROM 44 and provides a corresponding starting address for each software module.
  • any change to libraries 135 often requires reprogramming or replacing the entire ROM 44.
  • consumer-oriented products such as with palmtop and even laptop computers, this is especially problematic because it requires the user or a service technician to physically install a new ROM 44.
  • a user cannot simply load a new version for one of the libraries 135 to hard disk drive 27 because all references to the replaced library 135 within ROM 44 will be unchanged and will incorrectly point to the old version.
  • users are forced to replace the entire read-only device, rewrite the entire device in the case of a flash memory device, or use the old versions of applications 56 and libraries 135.
  • operating system 48 when software application 56A is to be executed, operating system 48 identifies libraries 135 on which the application 56 depends. After identifying all of the dependencies, operating system 48 determines whether a newer version of any of the identified libraries 135 has been installed on the computer 20. Thus, in this example operating system 48 determines that software application 56A depends on library 135D and that a newer version of library 135D has been loaded onto computer 20. Because a new version of library 135D has been installed, operating system 48 updates application 56 and any other required libraries 135 that depend on library 135D such that they correctly reference the new library.
  • operating system 48 allocates one or more physical pages in RAM 46 and copies into RAM 46 a portion of application 56A that references library 135D. After copying the portion, operating system 48 modifies all references to point to the new version of library 135D. Operating system 48 repeats this process for each library 135 on which application 56A depends and that references the library 135D.
  • operating system 48 executes software application 56A from both ROM 44 and RAM 46. In this manner, much of software application 56Ais executed from ROM 44 while just the updated portion is executed from RAM 46.
  • the updated libraries 135 are similarly executed. In this manner the invention facilitates updates to any of the libraries 135 contained within the ROM 44. If a new version for library 135D had not been installed then operating system 48 would have executed software application 56A directly from ROM 44 without modification.
  • operating system 48 includes a virtual memory (VM) system that maps virtual memory 140 to physical memory 145. More specifically, the VM system maps virtual memory pages 155 to physical pages located within either ROM 44 or RAM 46.
  • VM virtual memory
  • FIG. 5 is a flowchart 400 illustrating one exemplary method of operation of operating system 48 for updating at run-time software modules residing in ROM 44. Much of flowchart 400 is contained within loop 403 in which operating system 48 updates one of the software applications 56 that is to be executed and then repeats loop 403 for each required library 135.
  • Operating system 48 begins flowchart 400 with block 402 and enters loop 403 by proceeding to block 404.
  • operating system 48 identifies all libraries 135 that are necessary to execute the desired software application 56.
  • each software application 56 and each library 135 contains an import table that lists all libraries 135 that are necessary for execution.
  • An import table for a software module is an array of 32-bit pointers that identifies all necessary imports for a software module. The last entry is set to zero (NULL) to indicate end of the table.
  • NULL zero
  • the import table for software application 56A may identify libraries 135A, 135B and 135C as necessary for execution.
  • operating system 48 determines whether a new version has been installed for any of the identified libraries 135. In order to determine whether a new version exists, the operating system 48 follows a predefined search path while looking for files having identical names to required libraries 135. For example, operating system 48 examines the root directory for any mounted volumes, the root directory for the built-in volume of H/PC 20 and an operating system specific directory. Any file found by operating system 48 that has the identical name as one of the required libraries 135 is presumed to be a newer version.
  • operating system 48 jumps to block 412 and repeats loop 403 for each library 135 that is necessary for execution of the software application 56A. If a new version has been installed for one or more of the necessary libraries 135 then operating system 48 proceeds from block 406 to block 408.
  • operating system 48 allocates one or more physical pages within RAM 46 and loads a portion of the software application 56 into the allocated pages. More specifically, operating system 48 loads the physical pages from ROM 44 to RAM 46 that contain the references to the replaced library 135. For example, in one embodiment operating system 46 loads the import table, or a portion thereof, into RAM 46.
  • operating system 48 modifies the portion of application 135 that has been loaded into RAM 46.
  • Operating system 48 updates the RAM- based portion such that any reference to a replaced library 135 now points to the new version.
  • operating system 48 modifies the import table that has been copied to RAM 46.
  • operating system 46 After updating RAM-based portion, operating system 46 proceeds to block 412 and repeats loop 403 for each library 135 necessary to execute the desired software application 56. When all of the dependencies have been examined and all libraries 135 have been updated if necessary, operating system 48 exits loop 403 and proceeds to block 414.
  • operating system 48 executes application 56.
  • operating system 56 allocates a set of virtual memory pages 155 that map to the physical memory pages consumed by the application 56 and any necessary libraries 135. If portions of application 56 and the necessary shared modules 135 have been copied to RAM 46, operating systems 56 instructs the VM system to map the virtual memory pages 155 to the updated portions. Once virtual memory 140 has been allocated for the ROM -based portions and the RAM-based portions, computer 20 seamlessly executes software application 56.
  • operating system 48 proceeds to block 416, deallocates virtual memory pages 155 and removes all portions of software application 56 and libraries 135 that have been copied to RAM 46.
  • the invention provides a mechanism by which a user can install newer versions of software modules that are used by ROM-based software modules without requiring that the user install a new ROM.
  • the invention advantageously allows software modules to be primarily executed from the read-only device while only a small portion is updated and executed from a read/write device.
  • the software modules may be stand-alone software applications or shared software libraries.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A method and system are described for updating software modules bundled in a read-only device of a computer. According to the invention, when a software module is to be executed from the read-only device, the operating system identifies any other software modules stored within the read-only device on which the application depends. After identifying all of the dependencies, the operating determines whether a newer version of any of the identified software modules has been installed on the computer. The operating system copies into a read/write device a portion of the software module that references the old software modules. After copying the portion, the operating system modifies all references to point to the new versions of the software module. The invention allows software modules to be primarily executed from the read-only device with only a small updated portion being executed from a read/write device.

Description

UPDATING READ-ONLY SOFTWARE MODULES
TECHNICAL FIELD
This invention relates generally to the field of data processing and more particularly to a method and system for updating read-only software in a computing system.
BACKGROUND Many conventional systems have mechanisms for executing software modules that are bundled in a read-only device such as a read-only memory (ROM). The software modules within the read-only device may be software applications, such as word processing software, or may be shared software libraries that are used by the applications during execution. For example, a readonly device may contain dynamically linked libraries (DLL's) that are shared by the software applications stored within the read-only device. Speed and memory efficiencies can be achieved by executing the software applications and the libraries directly from the read-only device and not requiring that they be first loaded into random access memory (RAM). One problem with this approach is that in order to make even a small modification to one of the software modules the entire read-only device must be reprogrammed or replaced.
For these reasons, and for other reasons stated below which will become apparent to those skilled in the art upon reading and understanding the present specification, there is a need in the art for a mechanism by which read-only software modules can be updated without requiring that the read-only device be reprogrammed or replaced. Furthermore, there is a need for a mechanism by which read-only software modules can be updated dynamically at the time of execution.
SUMMARY The invention provides a mechanism by which software modules executing from a read-only device may be updated to use newer versions of other software modules without requiring that the device be reprogrammed or replaced. The invention advantageously allows software modules to be primarily executed directly from the read-only device while only a small updated portion is executed from read/write device. The software modules may be stand- alone software applications or shared software libraries.
According to one aspect, the invention is a method of executing a software module on a computing system. A portion of the software module is loaded from a read-only device into a read/write device. The loaded portion of the software module is executed directly from the read/write device while a remainder of the software module is executed from the read-only device. In one embodiment virtual memory is allocated for both the portion of the software module loaded within the read/write device and for the remainder of the software module within the read-only device. The loaded portion of the software module is modified to correctly address the newer software modules. Much of the software module is executed directly from the read-only device while just the modified portion is executed from the read/write device.
According to another aspect, the invention is a computing system having a read-only device that contains a first portion of a software module. A read/write device contains a second portion of the software module. An operating system executes the software module by executing the first and second portions of the software module from their corresponding devices. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram of the hardware and operating environment of a limited resource computer in conjunction with which embodiments of the invention may be practiced;
FIG. 2 is a block diagram showing functional components of the computer shown in FIG. 1 ;
FIG. 3 is a block diagram illustrating one embodiment of a read-only device having executable software applications and shared libraries; FIG. 4 is a block diagram that illustrates a mapping from virtual memory to physical memory that includes read-only memory (ROM) and random-access memory (RAM); and
FIG. 5 is a flowchart illustrating one mode of operation in which the invention updates software modules stored in a read-only device without requiring that the contents of the read-only device be reprogrammed.
DETAILED DESCRIPTION In the following detailed description of exemplary embodiments of the invention, reference is made to the accompanying drawings that form a part hereof and, which show by way of illustration, specific exemplary embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. It is to be understood that other embodiments may be utilized and that logical, mechanical, electrical and other changes may be made without departing from the spirit or scope of the present invention. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present invention is defined only by the appended claims.
The detailed description is divided into four sections. The first section describes the hardware and the operating environment that is suitable for use with the invention. The second section provides a detailed description of the embodiments of the inventive system. The third section provides methods for operating an exemplary embodiment of the invention. Finally, the fourth section provides a conclusion of the detailed description.
Hardware and Operating Environment FIG. 1 is a diagram of resource-limited computer in which read-only applications are updated at run-time according to the various embodiments of the invention. The invention is described in the general context of computer- executable instructions, such as program modules, being executed by a computer, such as a personal computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. FIG. 1 illustrates a typical handheld personal computer (H/PC) 20 having limited computing resources. H/PC 20 has a casing 22 with a cover or lid 24 and a base 26. H/PC 20 has a liquid crystal display (LCD) 28 with a touch -sensitive screen mounted to the lid 24. The lid 24 is hinged to the base 26 so as to pivot between an open position, which exposes display 28, and a closed position, which protects the display. The H/PC 20 is equipped with a stylus 30 to enter data through the touch screen display 28 and a miniature keyboard 32. The stylus 30 and keyboard 32 are both mounted in base 26.
H/PC 20 can also be implemented with a wireless transceiver (not shown) such as an infrared transceiver and/or an radio frequency transceiver. Although the illustrated implementation shows a two-member H/PC 20 with a lid 24 and a base 26, other mechanical implementations of the H/PC might also be used.
FIG. 2 illustrates the primary functional components of the H/PC 20 shown in FIG. 1. The H/PC 20 includes microprocessor 40 that executes operating system 48. Processor 40 has three modes of operations: full-speed, standby and suspend. Full-speed mode is used to execute applications. Standby mode is used during brief idle periods. Suspend mode is used during long idle periods and uses less than one-thousandth of full speed power. H/PC 20 includes timers 42 for providing interrupts and other timer events as well as the current date and time. Read-only memory (ROM) 44 stores operating system 48 as well as bundled applications 56. Random access memory (RAM) 46 includes user area 52 for executing user-installed applications and object store 54 for storing data. Object store 54 is used in place of conventional direct-access storage devices like disk and tape drives. In addition, object store 54 maintains a registry for H/PC 20. User input and output devices 60 communicate with external devices. Similarly, connectivity block 62 represents a number of standard connectivity devices such as a serial port, infrared communications hardware, etc. The hardware and operating environment in conjunction with which embodiments of the invention may be practiced has been described. The following section provides a more detailed description of the embodiments of the inventive system.
System Level Overview FIG. 3 illustrates one embodiment of a read-only memory (ROM) 44 having software applications 56 and shared libraries 135 stored therein. Readonly memory (ROM) 44 may be any memory-addressable device that is readonly or any device which only supports block writes such as flash memory, a flash memory card, etc.
Software applications 56 represent application programs, such as word processing software, that are stored in ROM 44 and which primarily execute from ROM 44 in order to increase initial execution speed and to conserve RAM 46. Libraries 135 are not stand-alone applications but are invoked by applications 56 or even by other libraries 135. For example, in one embodiment libraries 135 are dynamically linked libraries (DLL's). Within this application, the term software module includes both software applications 56 and libraries 135. Table of contents 120 lists all software applications 56 and libraries 135 stored within ROM 44 and provides a corresponding starting address for each software module.
As discussed above, in conventional resource-limited computing devices any change to libraries 135 often requires reprogramming or replacing the entire ROM 44. With consumer-oriented products, such as with palmtop and even laptop computers, this is especially problematic because it requires the user or a service technician to physically install a new ROM 44. A user cannot simply load a new version for one of the libraries 135 to hard disk drive 27 because all references to the replaced library 135 within ROM 44 will be unchanged and will incorrectly point to the old version. Thus, in conventional systems, users are forced to replace the entire read-only device, rewrite the entire device in the case of a flash memory device, or use the old versions of applications 56 and libraries 135. In order to illustrate the invention, assume the user has installed a newer version of library 135D onto computer 20 and that software application 56A depends on library 135D. According to the invention, when software application 56A is to be executed, operating system 48 identifies libraries 135 on which the application 56 depends. After identifying all of the dependencies, operating system 48 determines whether a newer version of any of the identified libraries 135 has been installed on the computer 20. Thus, in this example operating system 48 determines that software application 56A depends on library 135D and that a newer version of library 135D has been loaded onto computer 20. Because a new version of library 135D has been installed, operating system 48 updates application 56 and any other required libraries 135 that depend on library 135D such that they correctly reference the new library. More specifically, operating system 48 allocates one or more physical pages in RAM 46 and copies into RAM 46 a portion of application 56A that references library 135D. After copying the portion, operating system 48 modifies all references to point to the new version of library 135D. Operating system 48 repeats this process for each library 135 on which application 56A depends and that references the library 135D.
Next, operating system 48 executes software application 56A from both ROM 44 and RAM 46. In this manner, much of software application 56Ais executed from ROM 44 while just the updated portion is executed from RAM 46. The updated libraries 135 are similarly executed. In this manner the invention facilitates updates to any of the libraries 135 contained within the ROM 44. If a new version for library 135D had not been installed then operating system 48 would have executed software application 56A directly from ROM 44 without modification. As illustrated in FIG. 4, in one embodiment operating system 48 includes a virtual memory (VM) system that maps virtual memory 140 to physical memory 145. More specifically, the VM system maps virtual memory pages 155 to physical pages located within either ROM 44 or RAM 46. In this embodiment, most of the virtual memory pages 155 that are allocated for executing applications 56 are mapped directly to the physical pages within the ROM 44. A small number of virtual memory pages 155, however, are allocated for the portions that have been modified in RAM 46. By using the VM system to map virtual memory pages to both ROM 44 and RAM 46, computer 20 can seamlessly execute applications 56 and libraries 135 with only initial modification to a small portion of the software. Methods of an Exemplary Embodiment of the Invention
In the previous section, a system level overview of the operation of exemplary embodiments of the invention was described. In this section, the particular methods performed by the exemplary embodiments are described by reference to a flowchart. The methods to be performed by the embodiments constitute computer programs made up of computer-executable instructions.
Describing the methods by reference to a flowchart enables one skilled in the art to develop such programs including such instructions to carry out the methods on suitable computers from computer-readable media.
FIG. 5 is a flowchart 400 illustrating one exemplary method of operation of operating system 48 for updating at run-time software modules residing in ROM 44. Much of flowchart 400 is contained within loop 403 in which operating system 48 updates one of the software applications 56 that is to be executed and then repeats loop 403 for each required library 135.
Operating system 48 begins flowchart 400 with block 402 and enters loop 403 by proceeding to block 404. In block 404, operating system 48 identifies all libraries 135 that are necessary to execute the desired software application 56. In one embodiment each software application 56 and each library 135 contains an import table that lists all libraries 135 that are necessary for execution. An import table for a software module is an array of 32-bit pointers that identifies all necessary imports for a software module. The last entry is set to zero (NULL) to indicate end of the table. For example, the import table for software application 56A may identify libraries 135A, 135B and 135C as necessary for execution.
In block 406 operating system 48 determines whether a new version has been installed for any of the identified libraries 135. In order to determine whether a new version exists, the operating system 48 follows a predefined search path while looking for files having identical names to required libraries 135. For example, operating system 48 examines the root directory for any mounted volumes, the root directory for the built-in volume of H/PC 20 and an operating system specific directory. Any file found by operating system 48 that has the identical name as one of the required libraries 135 is presumed to be a newer version.
If no newer versions have been installed, operating system 48 jumps to block 412 and repeats loop 403 for each library 135 that is necessary for execution of the software application 56A. If a new version has been installed for one or more of the necessary libraries 135 then operating system 48 proceeds from block 406 to block 408.
In block 408 operating system 48 allocates one or more physical pages within RAM 46 and loads a portion of the software application 56 into the allocated pages. More specifically, operating system 48 loads the physical pages from ROM 44 to RAM 46 that contain the references to the replaced library 135. For example, in one embodiment operating system 46 loads the import table, or a portion thereof, into RAM 46.
In block 410, operating system 48 modifies the portion of application 135 that has been loaded into RAM 46. Operating system 48 updates the RAM- based portion such that any reference to a replaced library 135 now points to the new version. In one embodiment, operating system 48 modifies the import table that has been copied to RAM 46.
After updating RAM-based portion, operating system 46 proceeds to block 412 and repeats loop 403 for each library 135 necessary to execute the desired software application 56. When all of the dependencies have been examined and all libraries 135 have been updated if necessary, operating system 48 exits loop 403 and proceeds to block 414.
In block 414 operating system 48 executes application 56. In order to execute an application, operating system 56 allocates a set of virtual memory pages 155 that map to the physical memory pages consumed by the application 56 and any necessary libraries 135. If portions of application 56 and the necessary shared modules 135 have been copied to RAM 46, operating systems 56 instructs the VM system to map the virtual memory pages 155 to the updated portions. Once virtual memory 140 has been allocated for the ROM -based portions and the RAM-based portions, computer 20 seamlessly executes software application 56.
After software application 56 has completed execution, operating system 48 proceeds to block 416, deallocates virtual memory pages 155 and removes all portions of software application 56 and libraries 135 that have been copied to RAM 46. Conclusion
Various embodiments for updating software modules stored in a readonly device of a computer have been described. The invention provides a mechanism by which a user can install newer versions of software modules that are used by ROM-based software modules without requiring that the user install a new ROM. The invention advantageously allows software modules to be primarily executed from the read-only device while only a small portion is updated and executed from a read/write device. The software modules may be stand-alone software applications or shared software libraries.
Although specific embodiments have been illustrated and described herein, it will be appreciated by those of ordinary skill in the art that any arrangement which is calculated to achieve the same purpose may be substituted for the specific embodiments shown. Therefore, this application is intended to cover any adaptations or variations of the present invention.

Claims

What is claimed is:
1. A method of executing a software module on a computing system comprising: loading a portion of a first software module from a read-only device within a computer into a read/write device within the computer; and executing the loaded portion of the first software module from the read/write device and a remainder of the first software module from the readonly device.
2. The method of claim 1, wherein loading the portion of the first software module includes copying the portion from Read-Only Memory (ROM) to Random Access Memory (RAM).
3. The method of claim 1, wherein the executing step includes allocating virtual memory for the loaded-portion of the first software module within the read/write device and for the remainder of the first software module within the read-only device.
4. The method of claim 1, wherein the loading step includes copying at least one physical memory page from the read-only device to a physical memory page of the read/write device.
5. The method of claim 1, wherein loading the portion of the first software module includes: identifying a set of references within the first software module that refer to other software modules that have been updated with newer software modules; and copying the identified set of references to the read/write device.
6. The method of claim 5, wherein loading the portion of the first software module includes modifying the set of references to address the newer software modules.
7. The method of claim 5, wherein identifying the references includes examining an import table for the first software module, wherein the import table lists the references to the other software module.
8. The method of claim 7, wherein identifying the set of references includes examining import tables for the software modules listed within the import table of the first software module.
9. A computer-readable medium having computer-executable instructions to cause a computer to perform the method of: loading a portion of a first software module from a read-only device within a computer into a read/write device within the computer; and executing the loaded portion of the first software module from the read/write device and a remainder of the first software module from the readonly device.
10. A computing system comprising: a read-only device containing a first portion of a software module; a read/write device containing a second portion of the software module; and an operating system that executes the software module by executing the first and second portions of the software module from their corresponding devices.
11. The computing system of claim 10, wherein the operating system loads the first portion of a software module from the read-only device into the read/write device.
12. The computing system of claim 10, wherein the read-only device is Read-Only Memory (ROM) and the read/write device is Random Access Memory (RAM).
13. The computing system of claim 10, wherein the operating system includes a virtual memory system to allocate virtual memory for the first portion and the second portion of the software module.
14. The computing system of claim 10, wherein the operating system copies at least one physical memory page from the read-only device to a physical memory page of the read/write device.
15. The computing system of claim 10, wherein the operating system: identifies a set of references within the software module that refer to other software modules within the read-only device that have newer versions installed within the computing system; and copies the set of references to the read/write device.
16. The computing system of claim 15, wherein the operating system modifies the references to refer to the newer software modules.
17. The computing system of claim 15, wherein the first portion of the software module includes an import table for the first software module, wherein the import table lists the references to the other software module, and further wherein the operating system examines the import table to identify the references that refer to the newer software modules.
18. A method of executing a software module stored within a on a read-only memory (ROM) of a computing system comprising: identifying a set of references within the software module that refer to other software modules within the ROM that have a corresponding newer version loaded on the computing system; copying the set of references from the ROM into a random access memory (RAM) within the computing system; allocating virtual memory for the references stored in RAM and for a remaining portion of the software module stored in ROM; and executing the remaining portion of the software module from the ROM.
19. The method of claim 18, wherein the software module is a dynamically linked library (DLL).
20. A computer-readable medium having computer-executable instructions to cause a computer to perform the method of: identifying a set of references within the software module that refer to other software modules within the ROM that have a corresponding newer version loaded on the computing system; copying the set of references from the ROM into a random access memory (RAM) within the computing system; allocating virtual memory for the references stored in RAM and for a remaining portion of the software module stored in ROM; and executing the remaining portion of the software module from the ROM.
21. A resource-limited computing device comprising: a read-only device containing a software module; a read/write device operable to receive a modified portion of the software module; and an operating system that executes an unmodified portion of the software module from the read-only device.
22. The resource-limited computing device of claim 21 , wherein the operating system executes the modified portion of the software module from the read-only device.
23. The resource-limited computing device of claim 21 , wherein the readonly device is Read-Only Memory (ROM) and the read write device is Random Access Memory (RAM).
24. The resource-limited computing device of claim 21, wherein the operating system includes a virtual memory system to allocate virtual memory for the modified portion and the unmodified portion of the software module.
25. The resource-limited computing device of claim 21 , wherein the operating system copies at least one physical memory page from the read-only device to a physical memory page of the read/write device.
26. The resource-limited computing device of claim 21 , wherein the operating system: identifies a set of references within the software module that refer to other software modules within the read-only device that have newer versions installed within the computing device; and copies the set of references to the read/write device.
27. The resource-limited computing device of claim 26, wherein the operating system modifies the references to refer to the newer software modules.
28. The resource-limited computing device of claim 26, wherein the software module includes an import table that lists the references to the other software module within the read-only device, and further wherein the operating system examines the import table to identify the references that refer to the newer software modules.
PCT/US2000/005641 1999-03-03 2000-03-03 Updating read-only software modules Ceased WO2000052573A2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
DE60001153T DE60001153T2 (en) 1999-03-03 2000-03-03 UPDATE OF 'READ ONLY' SOFTWARE MODULES
AU37216/00A AU3721600A (en) 1999-03-03 2000-03-03 Updating read-only software modules
JP2000602926A JP2002538547A (en) 1999-03-03 2000-03-03 Updating read-only software modules
EP00916052A EP1159677B1 (en) 1999-03-03 2000-03-03 Updating read-only software modules
AT00916052T ATE230859T1 (en) 1999-03-03 2000-03-03 UPDATING 'READ-ONLY' SOFTWARE MODULES
DK00916052T DK1159677T3 (en) 1999-03-03 2000-03-03 Update of read-only software modules

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US09/261,686 US6637023B1 (en) 1999-03-03 1999-03-03 Method and system for updating read-only software modules
US09/261,686 1999-03-03

Publications (2)

Publication Number Publication Date
WO2000052573A2 true WO2000052573A2 (en) 2000-09-08
WO2000052573A3 WO2000052573A3 (en) 2001-02-15

Family

ID=22994416

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2000/005641 Ceased WO2000052573A2 (en) 1999-03-03 2000-03-03 Updating read-only software modules

Country Status (9)

Country Link
US (1) US6637023B1 (en)
EP (1) EP1159677B1 (en)
JP (2) JP2002538547A (en)
AT (1) ATE230859T1 (en)
AU (1) AU3721600A (en)
DE (1) DE60001153T2 (en)
DK (1) DK1159677T3 (en)
ES (1) ES2190408T3 (en)
WO (1) WO2000052573A2 (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6795965B1 (en) * 2000-05-10 2004-09-21 Microsoft Corporation Multi-source program module updater
US20050154885A1 (en) * 2000-05-15 2005-07-14 Interfuse Technology, Inc. Electronic data security system and method
US6874139B2 (en) * 2000-05-15 2005-03-29 Interfuse Technology Corporation Method and system for seamless integration of preprocessing and postprocessing functions with an existing application program
US7310800B2 (en) * 2001-02-28 2007-12-18 Safenet, Inc. Method and system for patching ROM code
GB0120594D0 (en) * 2001-08-24 2001-10-17 Koninkl Philips Electronics Nv Upgrading software held in read-only storage
US6968183B2 (en) * 2001-11-02 2005-11-22 Telefonaktiebolaget Lm Ericsson (Publ) Determining a multi-module dependent parameter at a telecommunication node
US7467139B1 (en) * 2001-11-13 2008-12-16 Unisys Corporation Library lock management
US7222258B2 (en) * 2002-12-18 2007-05-22 Intel Corporation Compressing a firmware image
US20040205776A1 (en) * 2003-04-10 2004-10-14 International Business Machines Corporation Method and apparatus for concurrent update and activation of partition firmware on a logical partitioned data processing system
US20050039196A1 (en) * 2003-08-13 2005-02-17 Sasidharan Prasanth Nalini Method and system for using a library
US7562359B1 (en) * 2004-08-26 2009-07-14 Wind River Systems, Inc. User process object code installer
TWI277895B (en) * 2005-01-05 2007-04-01 Lite On Technology Corp Library extracting device and method for automatically extracting libraries of an embedded operating system
US7966612B2 (en) * 2005-04-28 2011-06-21 International Business Machines Corporation Method, system and computer program for installing shared software components
KR100735552B1 (en) * 2005-09-23 2007-07-04 삼성전자주식회사 How to reduce the code size of a program in code memory
JP4911576B2 (en) * 2006-03-24 2012-04-04 株式会社メガチップス Information processing apparatus and write-once memory utilization method
US20080282022A1 (en) * 2007-05-09 2008-11-13 Broadcom Corporation, A California Corporation Partially storing software functions that are not expected to change over time in ROM instead of RAM
US8584120B2 (en) * 2009-11-23 2013-11-12 Julian Michael Urbach Stream-based software application delivery and launching system
AU2014203156B2 (en) * 2009-11-23 2016-02-04 Julian Michael Urbach Stream-based software application delivery and launching system
US10114660B2 (en) 2011-02-22 2018-10-30 Julian Michael Urbach Software application delivery and launching system
CN108494866A (en) * 2018-03-30 2018-09-04 北京小米移动软件有限公司 Information processing method and server, terminal device
WO2021201914A1 (en) * 2020-03-31 2021-10-07 Arris Enterprises Llc Cloud-based computer with runtime-mapped software versions
US12131168B1 (en) * 2023-04-18 2024-10-29 Servicenow, Inc. Outcome-oriented automation platform

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4542453A (en) * 1982-02-19 1985-09-17 Texas Instruments Incorporated Program patching in microcomputer
JPH04259046A (en) * 1991-02-13 1992-09-14 Nec Software Ltd Rom patch system
JP2593007B2 (en) * 1991-03-25 1997-03-19 東北リコー株式会社 Program embedded device
US5237669A (en) * 1991-07-15 1993-08-17 Quarterdeck Office Systems, Inc. Memory management method
DE69407772T2 (en) 1993-03-23 1998-08-27 Apple Computer DEVICE AND METHOD FOR A SLIDABLE FILE FORMAT
US5581768A (en) 1995-02-27 1996-12-03 Intel Corporation Method and apparatus for executing applications in place from write once/seldom memories
US5815718A (en) 1996-05-30 1998-09-29 Sun Microsystems, Inc. Method and system for loading classes in read-only memory
JPH10157250A (en) * 1996-11-27 1998-06-16 Toshiba Corp Image forming apparatus and method of expanding functions of image forming apparatus
US6363436B1 (en) * 1997-01-27 2002-03-26 International Business Machines Corporation Method and system for loading libraries into embedded systems
US6154878A (en) * 1998-07-21 2000-11-28 Hewlett-Packard Company System and method for on-line replacement of software

Also Published As

Publication number Publication date
US6637023B1 (en) 2003-10-21
DE60001153D1 (en) 2003-02-13
WO2000052573A3 (en) 2001-02-15
DK1159677T3 (en) 2003-04-07
JP2002538547A (en) 2002-11-12
DE60001153T2 (en) 2003-05-15
ATE230859T1 (en) 2003-01-15
EP1159677A2 (en) 2001-12-05
JP2009140512A (en) 2009-06-25
ES2190408T3 (en) 2003-08-01
JP4608580B2 (en) 2011-01-12
AU3721600A (en) 2000-09-21
EP1159677B1 (en) 2003-01-08

Similar Documents

Publication Publication Date Title
JP4608580B2 (en) Method and computer system for executing software modules
JP3314378B2 (en) System and method for managing memory allocation for executable programs
US6484309B2 (en) Enabling software designed for one operating system to operate on another operating system
US8370835B2 (en) Method for dynamically generating a configuration for a virtual machine with a virtual hard disk in an external storage device
US7584473B2 (en) Highly componentized system architecture with loadable virtual memory manager
JP4199923B2 (en) Mobile device application installation method
EP2891060B1 (en) Layout and execution of software applications using bpram
CN114756296B (en) Readable and writable mounting startup method, device, storage medium and electronic device
US8434099B2 (en) Efficient linking and loading for late binding and platform retargeting
US20040230963A1 (en) Method for updating firmware in an operating system agnostic manner
EP2891059B1 (en) Layout and execution of operating systems using bpram
US20030033441A1 (en) Highly componentized system architecture with a demand-loading namespace and programming model
US7162626B2 (en) Use of common language infrastructure for sharing drivers and executable content across execution environments
EP0797800A1 (en) System for providing bios to host computer
US20090133042A1 (en) Efficient linking and loading for late binding and platform retargeting
US7921247B1 (en) Sharing a dynamically located memory block between components executing in different processor modes in an extensible firmware interface environment
US7430661B2 (en) System and method of storing user data in a partition file or using a partition file containing user data
US7082523B2 (en) Bridging memory access across pre-boot and runtime phases
US20150317347A1 (en) Portable Application Registry
KR100322573B1 (en) Swapping device and method between main memory and auxiliary memory, web video phone employing the device
US7159222B1 (en) Highly componentized system architecture with object mutation
US7017035B2 (en) Method and apparatus for using an ACPI NVS memory region as an alternative CMOS information area
Tranter Tips for Optimizing Memory Usage: How to make the most of your computer's memory.
WO2000077613A2 (en) Method and system for managing and using persistent storage

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AE AL AM AT AU AZ BA BB BG BR BY CA CH CN CR CU CZ DE DK DM EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): GH GM KE LS MW SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
AK Designated states

Kind code of ref document: A3

Designated state(s): AE AL AM AT AU AZ BA BB BG BR BY CA CH CN CR CU CZ DE DK DM EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A3

Designated state(s): GH GM KE LS MW SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

ENP Entry into the national phase

Ref country code: JP

Ref document number: 2000 602926

Kind code of ref document: A

Format of ref document f/p: F

WWE Wipo information: entry into national phase

Ref document number: 2000916052

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 2000916052

Country of ref document: EP

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

WWG Wipo information: grant in national office

Ref document number: 2000916052

Country of ref document: EP