CN102799451B - WINCE system mirror image construction method and system, WINCE system mirror image - Google Patents

WINCE system mirror image construction method and system, WINCE system mirror image Download PDF

Info

Publication number
CN102799451B
CN102799451B CN201210222479.4A CN201210222479A CN102799451B CN 102799451 B CN102799451 B CN 102799451B CN 201210222479 A CN201210222479 A CN 201210222479A CN 102799451 B CN102799451 B CN 102799451B
Authority
CN
China
Prior art keywords
windows
wince
mirror image
sbi
file
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.)
Active
Application number
CN201210222479.4A
Other languages
Chinese (zh)
Other versions
CN102799451A (en
Inventor
杨小平
杨成
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.)
SHENZHEN ANPUER TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN ANPUER TECHNOLOGY Co Ltd
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 SHENZHEN ANPUER TECHNOLOGY Co Ltd filed Critical SHENZHEN ANPUER TECHNOLOGY Co Ltd
Priority to CN201210222479.4A priority Critical patent/CN102799451B/en
Publication of CN102799451A publication Critical patent/CN102799451A/en
Application granted granted Critical
Publication of CN102799451B publication Critical patent/CN102799451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a kind of WINCE system mirror image construction method and system, WINCE system mirror image.Described WINCE system mirror image construction method comprises the following steps: build the nk.nb0 part of WINCE system mirror image according to system cloud gray model required component, and nk.nb0 is stored in hiding spatially of being opened up in system memory devices by Bootloader; Build the windows.sbi part of the WINCE system mirror image of other drivings and the serviced component comprised except described system cloud gray model required component, and under described windows.sbi part is discharged into the assigned catalogue of read-write memory device.The construction method of above-mentioned WINCE system mirror image and system, WINCE system mirror image, build nk.nb0 part and the windows.sbi part of WINCE system mirror image respectively, and under the windows.sbi of structure part is discharged into the assigned catalogue of read-write memory device, when system starts, first load nk.nb0 part by Bootloader, improve toggle speed, memory headroom takies also little, the real-time of system can be ensured, and be easy to redundancy backup.

Description

WINCE system mirror image construction method and system and WINCE system mirror image
Technical Field
The invention relates to the technical field of computers, in particular to a WINCE system mirror image construction method and system and a WINCE system mirror image.
Background
The windows embedded ce (WINCE) system image is divided into two types: XIP (executeinputlace) mirrored and non-XIP mirrored. The XIP image comprises two parts, namely an XIPKernel (Kernel) part and a non-Kernel part, wherein the XIPKernel is a core part of the CE, the part is loaded into a system memory by a Bootloader to run, and the non-Kernel part directly runs on a storage device. The loading time is short due to the small size of the kernel part of the XIP image, but the real-time performance is poor, and the image file is not easy to redundantly backup. The non-XIP mirror image is constructed by a single mirror image file, the kernel part and the non-kernel part are in the same mirror image file, the whole mirror image file is loaded into a memory by a Bootloader and then called to be executed, the loading time is long, and the non-XIP mirror image is good in instantaneity and easy to redundantly backup due to the fact that the non-XIP mirror image is a single file and runs in the system memory completely, but the non-XIP mirror image is started slowly and occupies a large memory space.
Disclosure of Invention
Therefore, a WINCE system mirror image construction method which occupies a small memory space, is fast to start and is easy for redundancy backup is needed.
In addition, it is necessary to provide a WINCE system mirror image construction system which occupies a small memory space, is fast to start, and is easy for redundancy backup.
In addition, it is necessary to provide a WINCE system mirror image which occupies a small memory space, is fast to start, and is easy for redundancy backup.
A WINCE system mirror image construction method comprises the following steps:
constructing a nk.nb0 part of a WINCE system mirror image according to components required by system operation, and storing the nk.nb0 on a hidden space opened on system storage equipment by Bootloader;
and constructing a windows.sbi part of the WINCE system image containing other driving and service components except the components required by the system operation, and releasing the windows.sbi part to a specified directory of the read-write storage device.
In one embodiment, the components required for the system to run include a system kernel, an adaptation layer driver and a file system.
In one embodiment, the step of constructing a windows.sbi portion of the WINCE system image including other driver and service components than those required for the system to operate specifically includes:
acquiring a configuration file of a WINCE system mirror image containing a list of executable files and resource files;
acquiring defined configuration parameters;
and packaging and generating a windows.sbi part of the WINCE system mirror image according to the configuration file and the configuration parameters.
In one embodiment, after the step of obtaining the defined configuration parameters, the method further includes the steps of:
acquiring a batch processing file for processing the configuration file;
generating a windows.sbi part of the WINCE system mirror image according to the configuration file and the configuration parameter package specifically comprises the following steps:
and generating a windows.sbi part of the WINCE system mirror image according to the configuration file and the configuration parameter package by the batch processing file.
In one embodiment, after the step of constructing a windows.sbi portion of a WINCE system image containing other drive and service components than those required by the system to operate, and releasing the windows.sbi portion onto a specified directory of a readable and writable storage device, the method further comprises the steps of:
and loading a nk.nb0 part, mapping a windows.sbi part in a pre-specified directory of the read-write storage device into a windows directory in a random access memory, and then loading the windows.sbi part in the windows directory in the random access memory.
A WINCE system image construction system, comprising:
the system comprises a first construction module, a second construction module and a third construction module, wherein the first construction module is used for constructing a nk.nb0 part of a WINCE system mirror image according to components required by system operation, and storing the nk.nb0 part in a hidden space opened on system storage equipment by Bootloader;
a second construction module, configured to construct a windows.sbi portion of the WINCE system image that includes other drive and service components except components required for the system to operate;
and the release module is used for releasing the windows.
In one embodiment, the components required for the system to run include a system kernel, an adaptation layer driver and a file system.
In one embodiment, the second building block comprises:
the configuration file acquisition module is used for acquiring a configuration file of a WINCE system mirror image containing a list of executable files and resource files;
the configuration parameter acquisition module is used for acquiring the defined configuration parameters;
and the generating module is used for generating a windows.sbi part of the WINCE system mirror image according to the configuration file and the configuration parameter package.
In one embodiment, the second building block further comprises:
the batch processing file acquisition module is used for acquiring a batch processing file for processing the configuration file;
and the generating module is also used for generating a windows.sbi part of the WINCE system mirror image by packaging the batch processing file according to the configuration file and the configuration parameters.
A WINCE system mirror image comprises a nk.nb0 part of the WINCE system mirror image stored on a hidden space opened on a system storage device by a Bootloader and a windows.sbi part of the WINCE system mirror image stored under a specified directory of a readable and writable storage device, wherein when the WINCE system mirror image is started, the nk.nb0 part is loaded, the windows.sbi part under the specified directory of the readable and writable storage device is mapped to a windows directory of a random access memory, and then the windows.sbi part is loaded.
According to the method and the system for constructing the WINCE system mirror image and the WINCE system mirror image, a nk.nb0 part and a windows.sbi part of the WINCE system mirror image are respectively constructed, the constructed windows.sbi part is released to a specified directory of the read-write storage device, when the system is started, the nk.nb0 part is loaded by a Bootloader, the starting speed is improved, the memory space occupation is small, then the windows.sbi part under the specified directory of the read-write storage device is mapped to the windows directory of the random access memory of the system, generally the windows.sbi part is updated, when the windows.sbi part is updated, an updated file is directly stored to the specified directory of the read-write storage device, then the system is restarted, the windows.sbi part under the specified directory of the read-write storage device is mapped to the windows directory of the random access memory of the system again, the real-time performance of the system can be ensured, and the redundancy of the system is easy to backup.
Drawings
FIG. 1 is a flowchart illustrating a method for mirror image construction of a WINCE system in an embodiment;
FIG. 2 is a detailed flow chart of the steps for constructing the windows. sbi portion of a WINCE system image containing other driver and service components in addition to those required for system operation;
FIG. 3 is a diagram illustrating an internal structure of a WINCE system mirror construction system in one embodiment;
FIG. 4 is a schematic diagram of the internal structure of a second building block in one embodiment;
FIG. 5 is a schematic diagram showing an internal structure of a second building block according to another embodiment.
Detailed Description
The following detailed description of the method and system for constructing the WINCE system image and the WINCE system image will be made in conjunction with specific embodiments and accompanying drawings to make them clearer.
As shown in FIG. 1, in one embodiment, a WINCE system image construction method includes the following steps:
and step S10, constructing a nk.nb0 part of the WINCE system mirror image according to components required by system operation, and storing the nk.nb0 on a hidden space opened on a system storage device by Bootloader.
Specifically, the components required by the system operation include a system kernel, an adaptation layer driver, a file system and the like. The adaptation layer driver is used for guiding the system core image and initializing and managing hardware, and is part of a BSP (board level support package) driver. The BSP is a layer between the motherboard hardware and the driver layer in the operating system, and is generally considered to be part of the operating system, and is mainly used to support the operating system and provide a function package for accessing the hardware device register for the driver program in the upper layer, so that the BSP can better run on the motherboard hardware. The nk.nb0 portion of the WINCE system image corresponds to xipkernel.nb0 in the XIP image. Nb0 is stored on hidden space opened up on system storage by Bootloader. The hidden space opened up by the Bootloader on the system storage device is free of any file system and is not visible to the operating system. The system memory device is commonly referred to as Norflash, nandflash, nand, SD card, etc.
And step S20, constructing a windows.sbi part of the WINCE system image containing other drive and service components except components required by system operation, and releasing the windows.sbi part to a pre-specified directory of the readable-writable storage device.
Specifically, the other drivers and service components besides the components required for system operation include a sound card driver, a network card driver, a language package component, and the like. The method includes the steps that a windows.sbi part is released to a designated directory of the read-write storage device, so that when a system is started, bootloader loads a nk.nb0 part, and the nk.nb0 part is smaller, so that the loading time is greatly shortened, the starting speed is accelerated, meanwhile, the windows.sbi part can be updated in time, redundancy backup is easily carried out on the windows.sbi part, and the real-time performance is good. The readable and writable storage device refers to a storage device capable of performing read and write operations, and the file system format of the readable and writable storage device is FAT32, FAT64, or the like.
In one embodiment, as shown in fig. 2, the step of constructing a windows. sbi portion of the WINCE system image including other driver and service components except for components required for the system to operate specifically includes:
step S210, obtain a configuration file of the WINCE system image containing the list of executable files and resource files.
Specifically, the configuration file mainly refers to a common bib file and a wshellfe bib file, and a list of executable files (such as DLL files or exe files) and resource files (such as fonts, pictures and language packages) is included in the two files. And acquiring a configuration file edited by a developer.
Step S220, acquiring the defined configuration parameters.
Specifically, the configuration parameters include a memory allocation parameter, a WINCEimage size parameter, a starting address of WINCEimage in the memory, a width of the data bus, and the like. The configuration parameters are mainly defined in the config.
And step S230, generating a windows.sbi part of the WINCE system mirror image according to the configuration file and the configuration parameter package.
Specifically, which files are packaged to generate the windows.sbi part of the WINCE system mirror image is determined according to the configuration files and the configuration parameters.
Further, in an embodiment, after the step of obtaining the defined configuration parameters, the method further includes the steps of: and acquiring a batch processing file for processing the configuration file.
Specifically, the batch file mainly refers to a premakeimg. The processing of the configuration file is completed by the two batch files.
Generating a windows.sbi part of the WINCE system mirror image according to the configuration file and the configuration parameter package specifically comprises the following steps: and generating a windows.sbi part of the WINCE system mirror image by packaging the batch file according to the configuration file and the configuration parameters.
Further, in an embodiment, after step S20, the WINCE system image construction method further includes the steps of: and loading the nk.nb0 part, mapping the windows.sbi part in the specified directory of the read-write storage device into the windows directory in the random access memory, and then loading the windows.sbi part in the windows directory in the random access memory.
Specifically, a windows.sbi part in a windows directory in the random access memory is loaded, and corresponding drive and service components are dynamically loaded as required.
As shown in FIG. 3, in one embodiment, a WINCE system mirror build system includes a first build module 10, a second build module 20, and a release module 30. Wherein:
the first construction module 10 is used for constructing a nk.nb0 part of a WINCE system mirror image according to components required by system operation, and storing the nk.nb0 part on a hidden space opened on a system storage device by Bootloader. Specifically, the components required by the system operation include a system kernel, an adaptation layer driver, a file system and the like. The nk.nb0 portion of the WINCE system image corresponds to xipkernel.nb0 in the XIP image.
Second construction module 20 is used to construct the windows. sbi portion of the WINCE system image containing other driver and service components in addition to those required for the system to operate. Specifically, the other drivers and service components besides the components required for system operation include a sound card driver, a network card driver, a language package component, and the like.
The release module 30 is configured to release the windows. The method includes the steps that a windows.sbi part is released to a pre-designated directory of a read-write storage device, so that when a system is started, bootloader loads a nk.nb0 part, and the nk.nb0 part is smaller, so that the loading time is greatly shortened, the starting speed is accelerated, meanwhile, the windows.sbi part can be updated in time, redundant backup is easily carried out on the windows.sbi part, and the real-time performance is good.
In one embodiment, as shown in FIG. 4, the second build module 20 includes a configuration file acquisition module 210, a configuration parameter acquisition module 220, and a generation module 230. Wherein:
the configuration file obtaining module 210 is configured to obtain a configuration file of a WINCE system image including a list of executable files and resource files. Specifically, the configuration file mainly refers to a common bib file and a wshellfe bib file, and a list of executable files (such as DLL files or exe files) and resource files (such as fonts, pictures and language packages) is included in the two files. And acquiring a configuration file edited by a developer.
The configuration parameter obtaining module 220 is used for obtaining the defined configuration parameters. Specifically, the configuration parameters include a memory allocation parameter, a WINCEimage size parameter, a starting address of WINCEimage in the memory, a width of the data bus, and the like. The configuration parameters are mainly defined in the config.
The generating module 230 is configured to generate a windows.sbi portion of the WINCE system image according to the configuration file and the configuration parameter package. Specifically, which files are packaged to generate the windows.sbi part of the WINCE system mirror image is determined according to the configuration files and the configuration parameters.
Further, in an embodiment, as shown in fig. 5, the second building module 20 further includes a batch file obtaining module 240, in addition to the configuration file obtaining module 210, the configuration parameter obtaining module 220 and the generating module 230, for obtaining a batch file for processing the configuration file. Specifically, the batch file mainly refers to a premakeimg. The processing of the configuration file is completed by the two batch files.
The generating module 230 is further configured to generate a windows.sbi portion of the WINCE system image by packaging the batch file according to the configuration file and the configuration parameters.
In addition, a WINCE system mirror image is also provided. The WINCE system image comprises a nk.nb0 part of the WINCE system image stored on a hidden space opened on a system storage device by a Bootloader and a windows.sbi part of the WINCE system image stored on a specified directory of a readable and writable storage device, when the WINCE system image is started, the nk.nb0 part is loaded, the windows.sbi part under the specified directory of the readable and writable storage device is mapped to a windows directory of a random memory, and the windows.sbi part is loaded.
The method and the system for constructing the WINCE system mirror image and the WINCE system mirror image respectively construct a nk.nb0 part and a windows.sbi part of the WINCE system mirror image, release the constructed windows.sbi part to a specified directory of a readable and writable storage device, when the system is started, firstly load the nk.nb0 part, improve the starting speed, occupy small memory space, then map the windows.sbi part under the specified directory of the readable and writable storage device to a windows directory of a random storage device of the system, generally update the windows.sbi part, directly store an update file to the specified directory of the readable and writable storage device when the windows.sbi part is updated, then restart the system, and map the windows.sbi part under the specified directory of the readable and writable storage device to the windows directory of the random storage device of the system again, namely ensure the real-time performance of the system and easy redundancy.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (7)

1. A WINCE system mirror image construction method comprises the following steps:
constructing a nk.nb0 part of a WINCE system mirror image according to components required by system operation, and storing the nk.nb0 on a hidden space opened on system storage equipment by Bootloader;
constructing a windows.sbi part of a WINCE system mirror image containing other driving and service components except components required by the system operation, and releasing the windows.sbi part to a specified directory of a read-write storage device; wherein,
the step of constructing the windows.sbi part of the WINCE system image containing other driving and service components except the components required by the system operation specifically comprises the following steps:
acquiring a configuration file of a WINCE system mirror image containing a list of executable files and resource files;
acquiring defined configuration parameters;
and packaging and generating a windows.sbi part of the WINCE system mirror image according to the configuration file and the configuration parameters.
2. A WINCE system image construction method according to claim 1, wherein the components required by the system operation include a system kernel, an adaptation layer driver and a file system.
3. A WINCE system image construction method according to claim 1, further comprising, after the step of obtaining defined configuration parameters, the steps of:
acquiring a batch processing file for processing the configuration file;
generating a windows.sbi part of the WINCE system mirror image according to the configuration file and the configuration parameter package specifically comprises the following steps:
and generating a windows.sbi part of the WINCE system mirror image according to the configuration file and the configuration parameter package by the batch processing file.
4. A method of constructing a WINCE system image according to claim 1, further comprising, after said step of constructing a windows.sbi portion of a WINCE system image containing other drive and service components than those required for the system to operate, and releasing said windows.sbi portion to under a specified directory of a readable and writable storage device, the steps of:
and loading a nk.nb0 part, mapping a windows.sbi part in a pre-specified directory of the read-write storage device into a windows directory in a random access memory, and then loading the windows.sbi part in the windows directory in the random access memory.
5. A WINCE system mirror image construction system is characterized by comprising:
the system comprises a first construction module, a second construction module and a third construction module, wherein the first construction module is used for constructing a nk.nb0 part of a WINCE system mirror image according to components required by system operation, and storing the nk.nb0 part in a hidden space opened on system storage equipment by Bootloader;
a second construction module, configured to construct a windows.sbi portion of the WINCE system image that includes other drive and service components except components required for the system to operate;
the release module is used for releasing the windows.sbi part to a specified directory of the read-write storage device; wherein,
the second building block comprises:
the configuration file acquisition module is used for acquiring a configuration file of a WINCE system mirror image containing a list of executable files and resource files;
the configuration parameter acquisition module is used for acquiring the defined configuration parameters;
and the generating module is used for generating a windows.sbi part of the WINCE system mirror image according to the configuration file and the configuration parameter package.
6. A WINCE system image construction system in accordance with claim 5, wherein the components required for system operation include a system kernel, an adaptation layer driver, and a file system.
7. A WINCE system image construction system in accordance with claim 5, wherein the second construction module further comprises:
the batch processing file acquisition module is used for acquiring a batch processing file for processing the configuration file;
and the generating module is also used for generating a windows.sbi part of the WINCE system mirror image by packaging the batch processing file according to the configuration file and the configuration parameters.
CN201210222479.4A 2012-06-29 2012-06-29 WINCE system mirror image construction method and system, WINCE system mirror image Active CN102799451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210222479.4A CN102799451B (en) 2012-06-29 2012-06-29 WINCE system mirror image construction method and system, WINCE system mirror image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210222479.4A CN102799451B (en) 2012-06-29 2012-06-29 WINCE system mirror image construction method and system, WINCE system mirror image

Publications (2)

Publication Number Publication Date
CN102799451A CN102799451A (en) 2012-11-28
CN102799451B true CN102799451B (en) 2015-11-11

Family

ID=47198567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210222479.4A Active CN102799451B (en) 2012-06-29 2012-06-29 WINCE system mirror image construction method and system, WINCE system mirror image

Country Status (1)

Country Link
CN (1) CN102799451B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503922B (en) * 2015-01-19 2018-02-13 中国地质大学(武汉) The method that loading WindowsCE systems are guided based on uboot
CN104750521A (en) * 2015-03-13 2015-07-01 上海优思通信科技有限公司 Method for increasing starting speed of electronic device
CN106598593A (en) * 2016-12-13 2017-04-26 济南浪潮高新科技投资发展有限公司 Method for starting WinCE by utilizing U disk of Uboot

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334737A (en) * 2008-07-31 2008-12-31 深圳市同洲电子股份有限公司 Embedded equipment start-up or reset method
CN101960419A (en) * 2008-02-26 2011-01-26 微软公司 Building operating system images based on applications

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6988163B2 (en) * 2002-10-21 2006-01-17 Microsoft Corporation Executing binary images from non-linear storage systems
TWI263939B (en) * 2004-09-22 2006-10-11 Lite On Technology Corp Dynamic boot system and method, machine readable medium thereof, and construction method for an operating system image

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101960419A (en) * 2008-02-26 2011-01-26 微软公司 Building operating system images based on applications
CN101334737A (en) * 2008-07-31 2008-12-31 深圳市同洲电子股份有限公司 Embedded equipment start-up or reset method

Also Published As

Publication number Publication date
CN102799451A (en) 2012-11-28

Similar Documents

Publication Publication Date Title
US9110710B2 (en) Preserving changes to a configuration of a running virtual machine
CN101650660B (en) Booting a computer system from central storage
US8745601B1 (en) Methods and systems for using data structures for operating systems
US20100306774A1 (en) Instant-On Computing System
CN103365696B (en) BIOS image file acquisition methods and device
US9311126B2 (en) System and method for virtual partition monitoring
US8468334B1 (en) Efficient initial RAM disk creation
CN105739961B (en) Starting method and device of embedded system
US20210225096A1 (en) Power off and power on method and apparatus for an in-vehicle system
US10936407B2 (en) System and method to reduce address range scrub execution time in non-volatile dual inline memory modules
US20180059978A1 (en) Virtual disk expansion method and apparatus
US10664598B1 (en) Firmware security patch deployment
CN109828774B (en) Server system and starting method thereof
US9672047B1 (en) Systems and methods for accessing a bootable partition on a serial peripheral interface device
CN102799451B (en) WINCE system mirror image construction method and system, WINCE system mirror image
US20120017072A1 (en) Modifying a video resolution of video data in a pre-operating system environment
JP2009175904A (en) Multiprocessor processing system
US9778936B1 (en) Booting a computing system into a manufacturing mode
CN116954674A (en) eMMC firmware upgrading method, firmware upgrading equipment and storage device
US20120005464A1 (en) Start up processing method, information processing apparatus, and computer-readable storage medium storing program
US10838737B1 (en) Restoration of memory content to restore machine state
CN115658109A (en) Micro-service heat deployment method, system, electronic device and storage medium
CN107656702B (en) Method and system for accelerating hard disk read-write and electronic equipment
CN113064655B (en) BIOS network starting method and device and computer readable storage medium
CN108829460A (en) The method, apparatus and car-mounted terminal of car-mounted terminal quick start

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