CN100478889C - Self decompressing method of embedded system version - Google Patents
Self decompressing method of embedded system version Download PDFInfo
- Publication number
- CN100478889C CN100478889C CNB2007100735760A CN200710073576A CN100478889C CN 100478889 C CN100478889 C CN 100478889C CN B2007100735760 A CNB2007100735760 A CN B2007100735760A CN 200710073576 A CN200710073576 A CN 200710073576A CN 100478889 C CN100478889 C CN 100478889C
- Authority
- CN
- China
- Prior art keywords
- version
- self
- application
- compression
- application version
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
A self-compression method for embedding system versions includes the following steps: A. Acquire application version for version upgrade from a host computer, and make a decompression tool version for decompression and loading for the application version; B. Perform nondestructive compression for the application version on the host computer, and combine the compressed contents into a decompression tool version to form a self-compression version; C. Download the self-compression version into an application version storage region in an embedding system, and load to run the self-compression version. The invention needs neither modification to hardware, nor BOOT upgrade before effectively overcome shortcoming in version storage space capacity, and meanwhile, creates no influence to other functions of the application version; besides, the starting time of the version running becomes longer, but the version storage capacity remains the same, for which the invention is a typical method to replace space with time.
Description
Technical field
The present invention relates to a kind of self decompressing method of embedded system version, especially a kind of background host computer and foreground embedded system utilized is in conjunction with being implemented in the method that the backstage makes self-extracting version, foreground self-extracting and loads.
Background technology
In the world, the embedded system total amount is quite huge, some big industry wherein, and such as the specialized system of telecommunications industry, the address of distribution is quite extensive, and their function upgrading is normally realized by the dynamic download application version.Yet along with the continuous upgrading of application version, its version size is increasing, surpasses the capacity limit of application version memory block the most at last.For the processing of this problem, generally take following two kinds of solutions at present:
1. take hardware correcting, promptly enlarge the storage of versions place capacity.
2. system version is made into compressed version, and compressed version is downloaded to the storage of versions district on foreground, then in the BOOT version, increase the decompressing function of version, reach upgrading requirement by upgrading BOOT version then system version.
Yet, more than two kinds of solutions its weak point is all arranged, employing method one, its improvement cost is very high, is unfavorable for marketing; Method two is not for those support embedded system that long-range BOOT upgrading and distribution place quite disperse again, and this method can't resolution system edition upgrading problem.
Summary of the invention
The self decompressing method that the purpose of this invention is to provide a kind of embedded system version, this method can reduce upgrade cost and the BOOT version that need not to upgrade just can effectively be alleviated version storage area off-capacity.
To achieve these goals, the invention provides a kind of self decompressing method of embedded system version, comprise the steps:
A, on main frame, obtain the application version that need be used for edition upgrading, produce decompression instrument version, be used for decompression applications version and load application version;
B, on main frame the described application version of lossless compress, and the compression after content merge in the decompression instrument version, become a self-extracting version;
C, described self-extracting version is downloaded in the application version memory block of embedded system, and load operating.
Wherein, the load operating process among the above-mentioned steps C comprises:
Decompression instrument version in C1, the described self-extracting version at first starts, and the content after the compression of the application version in the described self-extracting version is separated be pressed into described application version, and load this application version.
The load application version is in RAM among the described step C1, and storehouse execution loading procedure is set.
Compared with prior art, the present invention adopts background host computer and foreground embedded system in conjunction with being implemented in the method that the backstage makes self-extracting version, foreground self-extracting and loads, and this method has the following advantages:
1. need not hardware is carried out correcting, also need not the BOOT that upgrades, and to other functions of using version without any influence;
2. version operation is elongated start-up time, but version storage volume size diminishes, and is a method of typically changing the space with the time.
Therefore, this method can also effectively delay even eliminate the pressure of the version storage area off-capacity of application version upgrading existence, and structural design of the present invention is simple, system upgrade is with low cost, help marketing.
Description of drawings
Fig. 1 is that the background host computer of preferred embodiment of the present invention is made the version process flow diagram.
Fig. 2 is the foreground embedded system version load operating process flow diagram of preferred embodiment of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments preferred embodiment of the present invention is described in further detail.
Generally speaking, principle of the present invention is on the basis of fully analysis of built-in system version making, version structure and load operating flow process, utilize background host computer and foreground embedded system to combine, be implemented in the method that the backstage makes the self-extracting version and realizes self-extracting and loading on the foreground.
Now a veneer in the 3G system that forms with a plurality of embedded systems is an example, and the self decompressing method flow process of embedded system version is described.
The veneer CPU that adopts in the preferred embodiment of the present invention is PPC860, and the RAM size is 32MBYTE, and the size of application version memory block is restricted to 2.5MBYTE, and the application version size is restricted to 5MBYTE, and stack pointer is expanded flow process from high to low.
Below in conjunction with accompanying drawing 1 and accompanying drawing 2, the making and the loading procedure of embedded version self decompressing method is described.
See also accompanying drawing 1, the manufacturing process of embedded version self decompressing method:
At first, in step 101, on background host computer, obtain the application version A that need be used for edition upgrading, produce decompression instrument version B by condensing routine; Wherein, decompression instrument version B has and carries out decompress(ion) and move and function such as loading using version A;
Then, in step 102, on background host computer, carry out lossless compress, make the content Ac after the compression using version A;
Then, in step 103, the compressed content Ac of gained in the step 102 is merged among the decompression instrument version B, produce a new self-extracting version C, it is 0x60000 that this self-extracting version C makes the entry address that stores, identical with the entry address of application version A.
After finishing the version production process of background host computer, then change the load operating process (as shown in Figure 2) of foreground version over to thereupon:
In step 104, the self-extracting version C of step 103 gained is downloaded in the application version memory block of foreground embedded system as a new application version, and in RAM load operating self-extracting version C;
Change over to subsequently in the step 105, at first in RAM, start the previous section decompression instrument version B of operation self-extracting version C; After decompression instrument version B starts, the initial pointer 0x1AF0000 of storehouse is set earlier, the storehouse size is restricted to 64KBYTE; Then moving decompressing function the back part of self-extracting version C--the compressed content Ac--of application version A separates and is pressed into application version A, and is positioned over address ram 0x1B00000 place, with the most significant end 5MBYTE of being separated by.Decompression instrument version B then moves on to address ram 0x1ADF000 to " version A moves and the value-added tax function code ", and revises PC pointed 0x1ADF000, and stack pointer does not need to specify, and redirect is carried out then.Yet, need here to guarantee that the content in that execution decompression version B decompress(ion) discharges can not cover the compressed content Ac of back.
Wherein, " application version A moves and the value-added tax function code " size is restricted to 16KBYTE; " version A moves and the value-added tax function code " can be write as one and only be used the local variable function, and this function only uses register to pass ginseng, does not have the function call function.
At last, in step 106, " application version A moves and the value-added tax function code " the application version A of decompress(ion) moves 0x60000, and revises PC pointed 0x60000, carries out application version A, finishes the self-extracting process of total system version.
For the present invention, can also adopt other technical scheme, such as, the entry address of the self-extracting version C in the above-mentioned steps 103 and the entry address of application version A can be inequality.
In a word, the present invention is not limited to above-mentioned embodiment, anyly is familiar with this operator, without departing from the spirit and scope of the present invention, all should drop within protection scope of the present invention.
Claims (3)
1, a kind of self decompressing method of embedded system version, it may further comprise the steps:
A, on main frame, obtain the application version that need be used for edition upgrading, produce decompression instrument version, be used for decompression applications version and load application version;
B, on main frame the described application version of lossless compress, and the compression after content merge in the decompression instrument version, become a self-extracting version;
C, described self-extracting version is downloaded in the application version memory block of embedded system, and load operating.
2, self decompressing method according to claim 1 is characterized in that, the load operating process among the described step C comprises:
Decompression instrument version in C1, the described self-extracting version at first starts, and the content after the compression of the application version in the described self-extracting version is separated be pressed into described application version, and load this application version.
3, self decompressing method according to claim 2 is characterized in that, the load application version is in RAM among the described step C1, and storehouse execution loading procedure is set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007100735760A CN100478889C (en) | 2007-03-13 | 2007-03-13 | Self decompressing method of embedded system version |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007100735760A CN100478889C (en) | 2007-03-13 | 2007-03-13 | Self decompressing method of embedded system version |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101140522A CN101140522A (en) | 2008-03-12 |
CN100478889C true CN100478889C (en) | 2009-04-15 |
Family
ID=39192483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007100735760A Expired - Fee Related CN100478889C (en) | 2007-03-13 | 2007-03-13 | Self decompressing method of embedded system version |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100478889C (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101692349A (en) * | 2009-10-23 | 2010-04-07 | 中兴通讯股份有限公司 | Equipment and data storage and startup methods thereof |
CN102779060B (en) * | 2012-07-11 | 2015-07-01 | 烽火通信科技股份有限公司 | Multi-time compression/decompression method of application program |
CN105893086B (en) * | 2016-03-30 | 2020-04-10 | 深圳市东微智能科技股份有限公司 | System firmware compression method and decompression method based on audio processor |
-
2007
- 2007-03-13 CN CNB2007100735760A patent/CN100478889C/en not_active Expired - Fee Related
Non-Patent Citations (2)
Title |
---|
功能强大的压缩软件-----WinRAR. 李军.电脑世界,第12期. 2001 |
功能强大的压缩软件-----WinRAR. 李军.电脑世界,第12期. 2001 * |
Also Published As
Publication number | Publication date |
---|---|
CN101140522A (en) | 2008-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105278989B (en) | The quick loading method of APK file | |
US5734822A (en) | Apparatus and method for preprocessing computer programs prior to transmission across a network | |
US8898662B2 (en) | Method and device for generating software installation packet | |
CN102231117B (en) | Software installment method and system for embedded platform | |
US10007605B2 (en) | Hardware-based array compression | |
CN101639782A (en) | System bootloading method based on embedded operating system | |
CN108279922A (en) | Differential file generation method, upgrade method and system based on the differential file | |
CN100478889C (en) | Self decompressing method of embedded system version | |
CN101135978B (en) | Compression version application program generating, executing method and apparatus and applications method and system | |
CN107506284B (en) | Log processing method and device | |
CN102419715A (en) | Code compression method and device, and code execution method | |
CN112783558B (en) | Method for accelerating self-decompression phase of Linux kernel start | |
US7506310B2 (en) | Method and system for caching managed code for efficient execution on resource-constrained devices | |
CN111240765B (en) | LINUX compression application program loading method | |
US7222258B2 (en) | Compressing a firmware image | |
CN100501677C (en) | Method and device for guiding APP software by BOOT software | |
CN113031988B (en) | Application program updating method, device, equipment and storage medium | |
EP2746953A1 (en) | Demand paging method for mobile terminal, controller and mobile terminal | |
CN101295239A (en) | Instruction execution method of Java card virtual machine | |
FI113708B (en) | Method and device for storing and running executable programs | |
CN1467629A (en) | Method for implementing dynamic loading of single board chip FIRMWARE program | |
CN1269034C (en) | Compression of executable document in embedded type system and its loading method | |
CN103942051A (en) | Application deployment method and device based on PAAS platform | |
CN103631927A (en) | Compression and storage method based on ticket data | |
KR100544171B1 (en) | Embedded system and its operation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090415 Termination date: 20180313 |
|
CF01 | Termination of patent right due to non-payment of annual fee |