CN101770468A - Self-modifying method of WinCE map file - Google Patents
Self-modifying method of WinCE map file Download PDFInfo
- Publication number
- CN101770468A CN101770468A CN200810205083A CN200810205083A CN101770468A CN 101770468 A CN101770468 A CN 101770468A CN 200810205083 A CN200810205083 A CN 200810205083A CN 200810205083 A CN200810205083 A CN 200810205083A CN 101770468 A CN101770468 A CN 101770468A
- Authority
- CN
- China
- Prior art keywords
- file
- module
- mentioned
- reserve area
- binfs
- 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.)
- Granted
Links
Abstract
The invention discloses a self-modifying method of a WinCE map file, which is used for an embedded system. The embedded system comprises storage equipment containing a Binfs subarea. The self-modifying method comprises the following steps of: retaining a free area as a reserve area in the Binfs subarea, wherein the free area is used as a storage area of a module or a file of a map, which is to be modified; making a plurality of control functions for the reserve area to be used for taking read-write operation on the reserve area; managing the reserve area in a recording mode, placing the module or the file to be modified into a data area, and recording the relevant information of the module or the file to be modified in a recording area; after a Binfs file system drive is loaded, inspecting maps in the Binfs subarea, and recording all modules and files in a linked list way; and after the Binfs file system drive establishes the linked list in the Binfs subarea, accessing the reserve area. A WinCE bottom developer can directly replace an original file of the map with a single file in the embedded system without establishing the whole map again.
Description
[technical field]
The invention provides a kind of WinCE image file amending method, refer to that especially a kind of WinCE image file is from the modification method.
[background technology]
It is the WinCE system that present embedded device used more, in general, the reflection of WinCE (image) is subregional, and the image Core Generator can be placed on each module in the corresponding zone in some way according to configuration file, and wherein operating system (OS) core is divided into the ROM district.Some loads as required, can leave in Binfs (driving of the Bin file system) subregion of media such as Nand Flash, loader loads module in this part to RAM by Binfs when needed, save the RAM shortening OS purpose of start-up time to reach, this part often accounts for a large portion of whole image.
Current WinCE low level development person often need rebulid image when the driving of debugging oneself, then with special image more new tool whole image is cured to this is a loaded down with trivial details time-consuming procedure in the equipment, make the developer spend a lot of time on irrelevant thing, reduce development efficiency; Simultaneously, adopt the OEM of WinCE often to need whole image is upgraded in the time need doing the image renewal to the equipment that has come into the market, this is not that a flexible way many times can made troubles, the indirect increase that brings maintenance cost.
In view of this, be necessary to provide a kind of WinCE image file from the modification method in fact, utilize this method, WinCE low level development person can directly replace original file in the reflection with single file in the system, get final product after the cold start-up then, alternate file can be that the developer sets up separately, and the developer need not rebulid whole reflection, and then upgrades whole reflection so that the change of oneself comes into force; The foundry vendor only gets final product with issuing this document separately when the driving of upgrading the client or some other assembly.
[summary of the invention]
In order to achieve the above object, the invention provides a kind of WinCE image file from the modification method, utilize this method, WinCE low level development person can directly replace original file in the reflection with single file in the system, get final product after the cold start-up then, alternate file can be that the developer sets up separately, and the developer need not rebulid whole reflection, and then upgrades whole reflection so that the change of oneself comes into force; The foundry vendor only gets final product with issuing this document separately when the driving of upgrading the client or some other assembly.
WinCE image file of the present invention is from the modification method, and this method is used for an embedded system, and this embedded system comprises that one contains the memory device of Binfs subregion, and this method comprises the following step:
In the Binfs subregion, keep one section vacant zone as reserve area,, and this reserve area is done the several Control function be used for this reserve area is done read-write operation in order to the module revised as the reflection desire or the storage area of file:
This reserve area is adopted the schema management that writes down, and module or file that desire is revised are placed on the data field, and write down the module of this desire modification or the relevant information of file in recording areas;
The Binfs file system drives the reflection that loads in this Binfs subregion of back inspection, and all modules and file are noted with the form of chained list;
The Binfs file system drives after Binfs has created this chained list the processing that conducts interviews of above-mentioned reserve area: the above-mentioned record of visiting above-mentioned reserve area, for this chained list have with above-mentioned record in the node of file of the same name or module, replace file or module in the original reflection with this document in this reserve area or module; The file that do not have in this chained list for possessing in the above-mentioned record and desire increases or the node of module append this node in this chained list, also be about to this desire increases in this reserve area file or module and add.
Compared to prior art, WinCE image file of the present invention is from the modification method, utilize this method, WinCE low level development person can directly replace original file in the reflection with single file in the system, get final product after the cold start-up then, alternate file can be that the developer sets up separately, and the developer need not rebulid whole reflection, and then upgrades whole reflection so that the change of oneself comes into force; The foundry vendor only gets final product with issuing this document separately when the driving of upgrading the client or some other assembly.
For purpose of the present invention, structural attitude and function thereof are had further understanding, conjunction with figs. is described in detail as follows now:
[description of drawings]
Fig. 1 illustrates and is the method flow diagram of WinCE image file of the present invention from one preferred embodiment of modification method.
[embodiment]
See also Fig. 1, Fig. 1 illustrates and is the method flow diagram of WinCE image file of the present invention from one preferred embodiment of modification method.
From the modification method, this method is used for an embedded system in the WinCE of present embodiment image file, and this embedded system comprises that one contains the memory device of Binfs subregion, and this method comprises the following step:
In the Binfs subregion, keep one section vacant zone as reserve area,, and this reserve area is done the several Control function be used for this reserve area is done read-write operation (step 100) in order to the module revised as the reflection desire or the storage area of file;
This reserve area is adopted the schema management that writes down, and module or file that desire is revised are placed on the data field, and write down the module of this desire modification or the relevant information (step 101) of file in recording areas;
The Binfs file system drives the reflection that loads in this Binfs subregion of back inspection, and all modules and file are noted (step 102) with the form of chained list;
The Binfs file system drives after Binfs has created this chained list the processing that conducts interviews of above-mentioned reserve area: the above-mentioned record of visiting above-mentioned reserve area, for this chained list have with above-mentioned record in the node of file of the same name or module, replace file or module in the original reflection with this document in this reserve area or module; The file that do not have in this chained list for possessing in the above-mentioned record and desire increases or the node of module append this node in this chained list, also be about to this desire increases in this reserve area file or module and add (step 103).
Wherein, for also comprising step after the above-mentioned steps: visit above-mentioned reserve area in this Binfs subregion by a update mechanism and by the above-mentioned control function of having realized.This update mechanism comprises that module or file that desire is revised are put into ad-hoc location, and the content of this ad-hoc location is write above-mentioned reserve area by an application program, certainly, can also add restrictive condition herein, for example be: to the restriction that writes content size, to the restriction that writes content format and to writing the restriction that content is specific purposes.
Wherein, this control function in the above-mentioned steps 100 can be KernelLibIoControl (a kind of function of general operation is provided for system kernel).
Wherein, the process that in the above-mentioned steps 103 above-mentioned reserve area is conducted interviews and handles, also comprise step: the offset address of this node in this Binfs subregion changed to the offset address of the file reality of reserve area, and this relevant information in the above-mentioned steps 101 comprises offset address.
Wherein, the process that in the above-mentioned steps 103 above-mentioned reserve area is conducted interviews and handles also comprises step: the file of above-mentioned desire modification or the FILE_ATTRIBUTE_ROMMODULE attribute of module are removed, make loader adopt analysis mode to load.
Wherein, above-mentioned chained list records the actual size of above-mentioned file or module.
Compared to prior art, WinCE image file of the present invention is from the modification method, utilize this method, WinCE low level development person can directly replace original file in the reflection with single file in the system, get final product after the cold start-up then, alternate file can be that the developer sets up separately, and the developer need not rebulid whole reflection, and then upgrades whole reflection so that the change of oneself comes into force; The foundry vendor only gets final product with issuing this document separately when the driving of upgrading the client or some other assembly.
Claims (8)
1. a WinCE image file is from the modification method, and this method is used for an embedded system, and this embedded system comprises that one contains the memory device of Binfs subregion, it is characterized in that this method comprises the following step:
In the Binfs subregion, keep one section vacant zone as reserve area,, and this reserve area is done the several Control function be used for this reserve area is done read-write operation in order to the module revised as the reflection desire or the storage area of file;
This reserve area is adopted the schema management that writes down, and module or file that desire is revised are placed on the data field, and write down the module of this desire modification or the relevant information of file in recording areas;
The Binfs file system drives the reflection that loads in this Binfs subregion of back inspection, and all modules and file are noted with the form of chained list;
The Binfs file system drives after Binfs has created this chained list the processing that conducts interviews of above-mentioned reserve area: the above-mentioned record of visiting above-mentioned reserve area, for this chained list have with above-mentioned record in the node of file of the same name or module, replace file or module in the original reflection with this document in this reserve area or module; The file that do not have in this chained list for possessing in the above-mentioned record and desire increases or the node of module append this node in this chained list, also be about to this desire increases in this reserve area file or module and add.
2. WinCE image file as claimed in claim 1 is characterized in that from the modification method, for also comprising step after the above-mentioned steps: visit above-mentioned reserve area in this Binfs subregion by a update mechanism and by the above-mentioned control function of having realized.
3. WinCE image file as claimed in claim 2 is characterized in that from the modification method, and this update mechanism comprises that module or file that desire is revised are put into ad-hoc location, and by an application program content of this ad-hoc location write above-mentioned reserve area.
4. WinCE image file as claimed in claim 3 is from the modification method, it is characterized in that, should the process that the content of this ad-hoc location writes above-mentioned reserve area also be possessed restrictive condition by an application program, this restrictive condition is for to the restriction that writes content size or to the restriction that writes content format or to writing the restriction that content is specific purposes.
As claim 1,2,3 or 4 described WinCE image files from the modification method, it is characterized in that above-mentioned control function is KernelLibIoControl.
As claim 1,2,3 or 4 described WinCE image files from the modification method, it is characterized in that, above-mentioned steps: the Binfs file system drives after Binfs has created this chained list the processing that conducts interviews of above-mentioned reserve area: the above-mentioned record of visiting above-mentioned reserve area, for this chained list have with above-mentioned record in the node of file of the same name or module, replace file or module in the original reflection with this document in this reserve area or module; The file that do not have in this chained list for possessing in the above-mentioned record and desire increases or the node of module append this node in this chained list, also be about to this desire increases in this reserve area file or module and add; Wherein, the process that above-mentioned reserve area is conducted interviews and handles, also comprise step: the offset address that the offset address of this node in this Binfs subregion is changed to the file reality of reserve area, and above-mentioned steps: the schema management that this reserve area is adopted record, module or file that desire is revised are placed on the data field, and writing down the module of this desire modification or the relevant information of file in recording areas, this relevant information wherein comprises offset address.
As claim 1,2,3 or 4 described WinCE image files from the modification method, it is characterized in that, above-mentioned steps: the Binfs file system drives after Binfs has created this chained list the processing that conducts interviews of above-mentioned reserve area: the above-mentioned record of visiting above-mentioned reserve area, for this chained list have with above-mentioned record in the node of file of the same name or module, replace file or module in the original reflection with this document in this reserve area or module; The file that do not have in this chained list for possessing in the above-mentioned record and desire increases or the node of module append this node in this chained list, also be about to this desire increases in this reserve area file or module and add; The process that in the above-mentioned steps above-mentioned reserve area is conducted interviews and handles also comprises step: the file of above-mentioned desire modification or the FILE_ATTRIBUTE_ROMMODULE attribute of module are removed, make loader adopt analysis mode to load.
As claim 1,2,3 or 4 described WinCE image files from the modification method, it is characterized in that above-mentioned chained list records the actual size of above-mentioned file or module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810205083 CN101770468B (en) | 2008-12-30 | 2008-12-30 | Self-modifying method of WinCE map file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810205083 CN101770468B (en) | 2008-12-30 | 2008-12-30 | Self-modifying method of WinCE map file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101770468A true CN101770468A (en) | 2010-07-07 |
CN101770468B CN101770468B (en) | 2013-07-10 |
Family
ID=42503334
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200810205083 Expired - Fee Related CN101770468B (en) | 2008-12-30 | 2008-12-30 | Self-modifying method of WinCE map file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101770468B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103150175A (en) * | 2011-12-07 | 2013-06-12 | 中兴通讯股份有限公司 | Method and device for building switch-to-other-production mirror image |
CN109165023A (en) * | 2018-07-20 | 2019-01-08 | 紫光华山信息技术有限公司 | Modify the method, apparatus and equipment of ISO image file |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010067698A (en) * | 2001-03-08 | 2001-07-13 | 변진우 | Method for providing an wireless remote multimedia multicasting service using imt-2000 networks |
CN101159865A (en) * | 2007-08-20 | 2008-04-09 | 西安联合信息技术股份有限公司 | WINCE platform based on audio-video collection and wireless transmission system |
-
2008
- 2008-12-30 CN CN 200810205083 patent/CN101770468B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010067698A (en) * | 2001-03-08 | 2001-07-13 | 변진우 | Method for providing an wireless remote multimedia multicasting service using imt-2000 networks |
CN101159865A (en) * | 2007-08-20 | 2008-04-09 | 西安联合信息技术股份有限公司 | WINCE platform based on audio-video collection and wireless transmission system |
Non-Patent Citations (1)
Title |
---|
王薇: "《基于嵌入式Linux的BootLoader的设计与应用》", 《中国优秀硕士学位论文全文数据库(电子期刊)》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103150175A (en) * | 2011-12-07 | 2013-06-12 | 中兴通讯股份有限公司 | Method and device for building switch-to-other-production mirror image |
CN103150175B (en) * | 2011-12-07 | 2018-04-13 | 天津中兴智联科技有限公司 | A kind of method and device for building mirror image of changing the line of production |
CN109165023A (en) * | 2018-07-20 | 2019-01-08 | 紫光华山信息技术有限公司 | Modify the method, apparatus and equipment of ISO image file |
CN109165023B (en) * | 2018-07-20 | 2022-02-11 | 新华三信息技术有限公司 | Method, device and equipment for modifying ISO (International organization for standardization) mirror image file |
Also Published As
Publication number | Publication date |
---|---|
CN101770468B (en) | 2013-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8266615B2 (en) | Method and apparatus for delivering percepta | |
CN100426235C (en) | System and method for representing user process to software package in software package management system | |
US8176408B2 (en) | Modularized web provisioning | |
US20120036049A1 (en) | System and method for software integration and factory deployment | |
CN101268443A (en) | Boot performance optimization for hard drive for personal internet communicator | |
CN107479922A (en) | A kind of flash data management method, device and computer-readable recording medium | |
CN102193817A (en) | Simplifying management of physical and virtual deployments | |
CN1627258A (en) | Driver-specific context for kernel-mode shimming | |
CN102054041A (en) | Method and system for upgrading metadata | |
CN101770468B (en) | Self-modifying method of WinCE map file | |
CN102857817B (en) | Set-top box production system and method capable of realizing dynamical loading | |
US7137037B2 (en) | Data storage system and method for testing the same | |
CN102760063B (en) | A kind of file loading method and device | |
CN100555243C (en) | Signal conditioning package, image-pickup device and information processing method | |
US8041529B2 (en) | Changing parameters in a tested system using virtual working pages | |
CN101256575B (en) | Method and apparatus for improving veneer disk space utilization ratio | |
CN103699456A (en) | File recording apparatus, file system management method, and changer drive | |
CN100573450C (en) | At the method and apparatus that has with system's executive utility of non-flash memory | |
CN110704051B (en) | Unity interface data binding method | |
WO2007072309A1 (en) | Apparatus and method for selectively dispensing soft assets via subtractive installation | |
CN111563006B (en) | Data processing method, intelligent terminal and storage medium | |
CN101206577B (en) | Flash memory device as well as updating method and program frisking method thereof | |
CN117632231A (en) | Low-code component version management method, device and storage medium | |
CN101430648B (en) | Method and apparatus for solidifying and loading mirror-image | |
CN104123148A (en) | System and method for automatically updating test commands continuously |
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: 20130710 Termination date: 20141230 |
|
EXPY | Termination of patent right or utility model |