3.2. Building a Windows CE image

The following example shows how to build a Windows CE image for an ARM-specific target, using an ARM BSP.

  1. In Platform Builder, select New Platform... from the File menu. Follow the on-screen instructions, then input a name for your Workspace.

  2. At Step 3 of the New Platform Wizard dialog, select the BSP titled ARM RealView Versatile Platform Baseboard: ARMV4I.

    Proceed through the on-screen instructions, making your selections as required.

  3. On exiting from the Wizard, select Set Active Configuration... from the Build OS menu.

  4. From the Set Active Configuration dialog, select ARM RealView Versatile Platform Baseboard: ARMV4I and click OK. See Figure 1.

    Figure 1. Set Active Configuration dialog

    Set Active Configuration dialog
  5. Select Settings... from the Platform menu.

  6. In the Platform Settings dialog, access the Build Options tab. Ensure that the Enable Kernel Debugger and Enable KITL checkboxes are clear. See Figure 2.

    Figure 2. Platform Settings dialog

    Platform Settings dialog
  7. Access the Environment tab, then click the New... button.

  8. Set the environment variable IMGHDSTUB. This variable is used to control OS visibility in Platform Builder, allowing you to see information on threads, processes and modules. See Figure 3.

    Figure 3. Environment Variable dialog

    Environment Variable dialog

    In the Variable Name: field, type IMGHDSTUB. In the Variable value: field, type 1. Click OK to return to the main Platform Settings dialog. Click OK again to exit this dialog.

  9. Ensure that the Catalog pane is displayed in your Workspace. If this pane is not visible, select Catalog from the View menu.

    Note

    Steps 10 to 13 provide details for example only; you should manipulate image components according to your own requirements.

  10. In the Platform Builder Catalog tree, open the Core OS icon, and its Windows CE Devices icon.

  11. Now open the File Systems and Data Store folder, and its Storage Manager icon.

  12. Right-click on FAT File System, then select Add to OS Design from the command menu. See Figure 4.

    Figure 4. Catalog tree

    Catalog tree
  13. Repeat Step 12 for the Partition Driver and Storage Manager Control Panel Applet icons, respectively.

  14. See Figure 5.

    Figure 5. Build OS menu and selected commands

    Build OS menu and selected commands

    Access the Build OS menu, and ensure that the Copy Files to Release Directory After Build and Make Run-Time Image After Build commands are selected.

  15. Select Build and Sysgen from the Build OS menu.

    The build process begins, which could take some time.

Copyright © 2007, 2008. All rights reserved.ARM DAI 0192A