分类: 嵌入式
2014-09-04 12:58:10
Driver installation on Windows requires administrator privileges. |
|
The following steps are for registered users only:
To register your copy of WinDriver with the license you received from Jungo, follow these steps:
|
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).
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. |
Unless otherwise specified, 'Windows CE' references in this section include all supported Windows CE platforms, including Windows Mobile. |
The following instructions apply to driver developers who do not build the Windows CE kernel, but only download their drivers, built using MS eMbedded Visual C?+?+ or MS Visual Studio 2005/2008 to a ready-made Windows CE platform.
The WinDriver installation on the host Windows PC defines a WD_BASEDIR environment variable, which is set to point to the location of your WinDriver directory, as selected during the installation. This variable is used during the DriverWizard [4] code generation — it determines the default directory for saving your generated code, and is used in the include paths of the generated project/make files.
Note that if you install the WinDriver Windows toolkit on the same host PC, the installation will override the value of the WD_BASEDIR variable from the Windows CE installation.
In Linux, kernel modules must be compiled with the same header files that the kernel itself was compiled with. Since WinDriver installs kernel modules, it must compile with the header files of the Linux kernel during the installation process.
Therefore, before you install WinDriver for Linux, verify that the Linux source code and the file version.h are installed on your machine:
Install the Linux kernel source code:
Install version.h:
To run GUI WinDriver applications (e.g., DriverWizard [4]; Debug Monitor [6.2]) you must also have version 5.0 of the libstdc++ library — libstdc++.so.5. If you do not have this file, install it from the relevant RPM in your Linux distribution (e.g., compat-libstdc++).
Before proceeding with the installation, you must also make sure that you have
a linux symbolic link. If you do not, create one by typing
/usr/src$ ln -s
For example, for the Linux 2.4 kernel type
/usr/src$ ln -s linux-2.4/ linux
The path to the installation directory must not contain any spaces. |
Extract the WinDriver distribution file — WD1160LN.tgz or WD1160LNx86_64.tgz —
$
tar xvzf
For example, to extract WD1160LN.tgz run this command:
$ tar xvzf ~/WD1160LN.tgz
|
For a full list of the configuration script options, use the --help option: ./configure --help |
Use the WinDriver/util/wdreg script to load the
WinDriver kernel module [13.3]. |
The following steps are for registered users only:
To register your copy of WinDriver with the license you received from Jungo, follow these steps:
Since /dev/windrvr6 gives direct hardware access to user programs, it may compromise kernel stability on multi-user Linux systems. Please restrict access to DriverWizard and the device file /dev/windrvr6 to trusted users. For security reasons the WinDriver installation script does not automatically perform the steps of changing the permissions on /dev/windrvr6 and the DriverWizard application (wdwizard). |
CONFIDENTIAL |