11.3.1. Distribution to New Windows CE Platforms
![[Note]](scripts/images/note.png) | |
|---|
|
The following instructions apply to platform developers who build Windows CE
kernel images using Windows CE Platform Builder or using
MS Visual Studio 2005/2008 with the appropriate Windows CE 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:
- Modify
the project registry file to add an entry for your target device:
- If you select to use the WinDriver component
(refer to Step 2), modify
WinDriver\samples\wince_install\<TARGET_CPU>\WinDriver.reg
(e.g.,
WinDriver\samples\wince_install\ARMV4I\WinDriver.reg).
- Otherwise, modify
WinDriver\samples\wince_install\project_wd.reg.
For Windows CE 4.x–5.x only, 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:
-
Developers who use Windows CE 6.x and higher should skip to the next
step (Step 3).
-
This procedure provides a convenient method for integrating WinDriver
into your Windows CE platform. If you select not to use this method,
you will need to perform the manual integration steps described in
Step 4 below, after the Sysgen stage.
-
The procedure described in this step also adds the WinDriver kernel
module (windrvr6.dll) to your OS image. This is a necessary step
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 boot disk.
However, if you prefer to have the file windrvr6.dll loaded on
demand via the CESH/PPSH services, you need to perform the manual
integration method described in
Step 4 instead of performing the procedure described in the present
step.
-
Run the Windows CE IDE and open your platform.
-
From the menu select
,
click the
button, and select the
WinDriver.cec
file from the relevant
WinDriver\samples\wince_install\<TARGET_CPU>
directory (e.g.,
WinDriver\samples\wince_install\ARMV4I).
This will add a WinDriver component to the Platform Builder Catalog.
-
In the view, right-click the mouse on
the node in the
tree, and
select .
-
Compile your Windows CE platform (Sysgen stage).
-
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.
-
Run the Windows CE IDE and open your platform.
-
Select from the
menu.
-
Copy the WinDriver CE kernel file —
WinDriver\redist\<TARGET_CPU>\windrvr6.dll — to the
%_FLATRELEASEDIR%
subdirectory on the target development platform (should be the current
directory in the new command window).
-
Append the contents of
WinDriver\samples\wince_install\project_wd.reg
to the
%_FLATRELEASEDIR%\project.reg registry file.
Copy the contents of the
WinDriver\samples\wince_install\project_wd.bib
file to the FILES section of the binary image builder file —
%_FLATRELEASEDIR%\project.bib.
Then uncomment the line that matches the target platform (see the
"TODO" comments in the copied text).
![[Note]](scripts/images/note.png) | |
|---|
|
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 boot disk.
If you prefer to have the file windrvr6.dll loaded on demand via
the CESH/PPSH services, you do not need to perform this step until you
build a permanent kernel.
|
-
Select from the
menu, and name the new image
NK.BIN.
-
Download your new kernel to the target platform and initialize it either by
selecting from the
menu, or by using a boot disk.
For Windows CE 4.x, the menu is called
rather than
.
-
Restart your target CE platform. The WinDriver CE kernel will automatically
load.
-
Install your hardware control application/DLL on the target.
If your hardware control application/DLL uses
wdapi1130.dll (as is the case
for the sample and generated DriverWizard WinDriver projects), also copy this
DLL from the
WinDriver\redist\WINCE\<TARGET_CPU>
directory on the Windows host development PC to the target's
Windows directory.