next up previous contents
Next: 14.4 Linux Driver Distribution Up: 14. Distributing Your Driver Previous: 14.2 Windows Driver Distribution   Contents

Subsections


14.3 Windows CE Driver Distribution


14.3.1 Distribution to New Windows CE Platforms

****************************************************************************************
  NOTE
  The following instructions apply to platform developers who build Windows CE kernel images using Windows CE Platform Builder or using MSDEV 2005 with the Windows CE 6.0 plugin. The instructions use the notation ''Windows CE IDE'' to refer to either of these platforms.
****************************************************************************************

To distribute the driver you developed with WinDriver to a new target Windows CE platform, follow these steps:

  1. Edit the project registry file to match your target hardware. If you select to use the WinDriver component, as outlined in step 2, the registry file to modify is WinDriver$\backslash$samples$\backslash$wince_install $\backslash$<TARGET_CPU>$\backslash$WinDriver.reg (e.g. WinDriver$\backslash$samples$\backslash$wince_install$\backslash$ARMV4I$\backslash$ WinDriver.reg). Otherwise, modify the WinDriver$\backslash$samples$\backslash$wince_install$\backslash$project_wd.reg file.

  2. You can simplify the driver integration into your Windows CE platform by following the procedure described in this step before the Sysgen platform compilation stage.

    NOTE:

    (a)
    Run the Windows CE IDE and open your platform.

    (b)
    From the File menu select Manage Catalog Items.... and then click the Import... button and select the WinDriver.cec file from the relevant WinDriver$\backslash$samples$\backslash$wince_install$\backslash$<TARGET_CPU>$\backslash$ directory (e.g. WinDriver$\backslash$samples$\backslash$wince_install$\backslash$ARMV4I$\backslash$).
    This will add a WinDriver component to the Platform Builder Catalog.

    (c)
    In the Catalog view, right-click the mouse on the WinDriver Component node in the Third Party tree and select Add to OS design.

  3. Compile your Windows CE platform (Sysgen stage).

  4. If you did not perform the procedure described in step 2 above, perform the following steps after the Sysgen stage in order to manually integrate the driver into your platform.

    NOTE: If you followed the procedure described in step 2, skip this step and go directly to step 5.

    (a)
    Run the Windows CE IDE and open your platform.

    (b)
    Select Open Release Directory from the Build menu.

    (c)
    Copy the WinDriver CE kernel file - WinDriver$\backslash$redist$\backslash$<TARGET_CPU>$\backslash$windrvr6.dll - to the %_FLATRELEASEDIR% sub-directory on the target development platform (should be the current directory in the new command window).

    (d)
    Append the contents of the project_wd.reg file in the WinDriver$\backslash$samples$\backslash$wince_install$\backslash$ directory to the project.reg file in the %_FLATRELEASEDIR% sub-directory.

    (e)
    Append the contents of the project_wd.bib file in the WinDriver$\backslash$samples$\backslash$wince_install$\backslash$ directory to the project.bib file in the %_FLATRELEASEDIR% sub-directory.

    This step is only necessary if you want the WinDriver CE kernel file (windrvr6.dll) to be a permanent part of the Windows CE image (NK.BIN), which is the case if you select to transfer the file to your target platform using a floppy disk. If you prefer to have the file windrvr6.dll loaded on demand via the CESH/PPSH services, you do not need to carry out this step until you build a permanent kernel.

  5. Select Make Run-Time Image from the Build menu and name the new image NK.BIN.

  6. Download your new kernel to the target platform and initialize it either by selecting Download/Initialize from the Target menu or by using a floppy disk.

  7. Restart your target CE platform. The WinDriver CE kernel will automatically load.

  8. Install your hardware control application/DLL on the target.
    If your hardware control application/DLL uses wdapi901.dll (as is the case for the sample and generated DriverWizard WinDriver projects), also copy this DLL from the WinDriver$\backslash$redist$\backslash$WINCE$\backslash$<TARGET_CPU> directory on the Windows host development PC to the target's Windows$\backslash$ directory.


14.3.2 Distribution to Windows CE Computers

****************************************************************************************
  NOTE
  Unless otherwise specified, ''Windows CE'' references in this section include all supported Windows CE platforms, including Windows Mobile.
****************************************************************************************

  1. Insert the WinDriver CD into your Windows host CD drive.

  2. Exit the automatic installation.

  3. Double click the CD_SETUP.EXE file found in the WINCE$\backslash$ directory on the CD. This will copy all required WinDriver files to your host development platform.

  4. Copy WinDriver's kernel module - windrvr6.dll - from the WinDriver$\backslash$redist$\backslash$WINCE$\backslash$<TARGET_CPU> directory on the Windows host development PC to the Windows$\backslash$ directory on your target Windows CE platform.

  5. Add WinDriver to the list of device drivers Windows CE loads on boot:

  6. Restart your target CE computer. The WinDriver CE kernel will automatically load. You will have to do a warm reset rather than just suspend/resume (use the reset or power button on your target CE computer).

  7. Install your hardware control application/DLL on the target.
    If your hardware control application/DLL uses wdapi901.dll (as is the case for the sample and generated DriverWizard WinDriver projects), also copy this DLL from the WinDriver$\backslash$redist$\backslash$WINCE$\backslash$<TARGET_CPU> directory on the development PC to the target's Windows$\backslash$ directory.


next up previous contents
Next: 14.4 Linux Driver Distribution Up: 14. Distributing Your Driver Previous: 14.2 Windows Driver Distribution   Contents