To create a Windows CE image detailed tutorial

Source: Internet
Author: User

Windows CE has a very small kernel that basically contains only scheduling, memory management, and kernel APIs, which make up a complete entity, and most of the rest is done in a separate module. The configuration of the system can be done in Platform Builder, and the optimized CE can be cropped by modifying the configuration file.


Platform Builder provides an integrated development environment for creating and debugging Windows CE mapping Nk.bin, such as wizards and toolbars, supports the Active Template Library (ATL), Microsoft Basic Class Library (MFC), and Visual Basic, providing compilers for supported processor families, Kernel debugger and various remote debugging tools.


As everyone knows, you can crop and optimize Windows CE by modifying the configuration files provided by Platform Builder.
There are 4 types of configuration files:
Binary image generation file. BIB:
You can identify the target modules, components, and files that are included in the Windows CE image.


Can be used to allocate a portion of memory space to a static data file. Lists the target modules and components that are loaded in memory, including all executable files. EXE and dynamic link library. DLL. Or make some property settings, such as whether compression and ROM size.


Registry file. Reg:
registry entry used to create an operating system image.
When the target platform is cold-started, Makeimg.exe uses a. reg file to create the default registry.
Directory and file allocation table files. Dat:
Defines the directory and file structure of the Windows CE image nk.nib. It is important to note that the Myfile.doc must appear in a. bib file, so that there will be myfile.doc in the image file.


Database files. Db:
A property database is a flat structure that cannot define a relationship between property databases. Using Microsoft ActiveX Data Object for Windows CE (ADOCE) technology, you can access the property database in a capacity, and even use SQL statements to query for information.
Finally, the image file is constructed. The approximate steps are:


First of all. The BIB file is merged into Ce.bib. Then, reconfigure the resources for all executables to accommodate the current language configuration. Layout the contents of the image file, and correspond the programs in the ROM to the Windows directory of the file system. Finally, the binary image file Nk.bin is generated.
If you are creating a platform image of CE, we can also use the New Platform Wizard. You can add applications and modify the registry to modify and refine them.


In Platform Builder, on the File menu, tap new platform.
To establish a Windows CE project, you can select more motherboard support Packages (BSP). Click "Next".
When you see many sample platforms, you can start a new project based on them. If these options do not meet your needs, you can choose Customize, select components from the catalog, and build the image.


It is necessary to understand that "children's shoes" can further customize the platform by removing components from the directory, including the components in the platform or from the project workspace.


Click "Next". You can include applications and media components.


The network and communication capabilities are then selected for the platform. Windows CE. NET provides support for personal, local, and wide area networks through Bluetooth, IrDA, wired and wireless networks, and VPNs.


After clicking "Next", Save the settings and close the New Platform Wizard, you have finished configuring the CE platform, and finally, you can further customize the platform by adding or removing components from the platform.


Platform Builder has created two default configurations for OS design:
Debug Configuration
Release configuration
Once these files have been created, you can build a custom runtime image based on your own OS design.
Look, it's not hard to learn, just try it ...

Reprint please indicate source: Cool station http://cool.mfdemo.cn/

To create a Windows CE image detailed tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.