Home   |   Jungo Corporate Web Site   |   Connectivity Software Store   |   Contact us   |   Search:
Home Connectivity Software Support WinDriver Support Installation Instructions

WinDriver Installation Instructions

Installation Instructions
Detailed Installation Instructions for WinDriver -
Select Your Platform:
Windows  |   Windows CE  |   Linux  |   Solaris  |   VxWorks

NOTE: The instructions on this page are for the latest WinDriver version released for the target operating system (visit the on-line store for an updated list of the latest WinDriver versions). To install an older version of WinDriver, refer to the installation instructions in the WinDriver User's Manual for your WinDriver version.

General Information
The WinDriver CD contains all versions of WinDriver for all the different operating systems. The CD's root directory contains the Windows version. This will automatically run when you insert the CD into your CD drive. The other versions of WinDriver are located in subdirectories i.e. \Linux, \Wince and so on.



Installation Instructions for Windows

System Requirements


System Requirements for Windows 98 / Me

  1. Any x86 processor
  2. Any 32-bit development environment supporting C, VB or Delphi.

System Requirements for Windows 2000 / XP / Server 2003 / Vista
  1. Any x86 32-bit or 64-bit (x64: AMD64 or Intel EM64T) processor.
  2. Any development environment supporting C, .NET, VB or Delphi.
  3. Windows 2000 requires SP4.
  4. Windows XP requires SP2.

Installation

NOTE:
You must have administrative privileges in order to install WinDriver on Windows 98, Me, 2000, XP, Server 2003 and Vista.

  1. Insert the WinDriver CD into your CD-ROM drive.
    When installing WinDriver by downloading it from Jungo's web site instead of using the WinDriver CD, double click the downloaded installation file - WD<version>.EXE (for example WD900.EXE) - and go to step 3.

  2. Wait a few seconds until the installation program starts automatically. If for some reason it does not start automatically, double-click the file WD<version>.EXE and click the Install WinDriver button.

  3. Read the license agreement carefully, and click Yes if you accept its terms.

  4. Choose the destination location in which to install WinDriver.

  5. In the Setup Type screen, choose one of the following:

    • Typical - install all WinDriver modules (generic WinDriver toolkit + specific chipset APIs).
    • Compact - install only the generic WinDriver toolkit.
    • Custom - select which WinDriver modules to install.

  6. After the installer completes copying all the required files, choose whether to view the Quick-Start guides.

  7. You will be prompted to reboot your computer.
NOTE:
The WinDriver installation 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 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. This variable is also used from the sample Kernel PlugIn projects and makefiles. Therefore, if you decide to change the name and/or location of your WinDriver directory after the installation, you should also edit the value of the WD_BASEDIR environment variable and set it to point to the location of your new WinDriver directory. You can edit the value of WD_BASEDIR by following these steps:
  1. Open the System Properties dialog:
    Start | System | Control Panel | System.
  2. In the Advanced tab, click the Environment Variables button.
  3. In the System variables box, select the WD_BASEDIR variable and click the Edit ... button or double-click the mouse on the variable.
  4. In the Edit System Variable dialog, replace the Variable Value with the full path to your new WinDriver directory, then click OK, and click OK again from the System Properties dialog.

The Following Steps are for Registered Users Only:

In order to register your copy of WinDriver with the license you received from Jungo, please follow the steps bellow:

  1. Activate DriverWizard GUI (Start | Programs | WinDriver | DriverWizard).

  2. Select the Register WinDriver option from the File menu and insert the license string you received from Jungo there. Click the Activate License button.

  3. To register source code you developed during the evaluation period:



Installation Instructions for Windows CE

Systems Requirements

  • An x86 / MIPS / ARM Windows Embedded CE v6.00 or Windows CE 4.x - 5.0 (.NET) target platform
    or:
    an ARMV4I Windows Mobile 5.0/6.0 target platform.

  • Windows 2000/XP/Server 2003/Vista host development platform.

  • For Windows CE 4.x - 5.0: Microsoft eMbedded Visual C++ with a corresponding target SDK or Microsoft Platform Builder with a corresponding BSP (Board Support Package) for the target platform.

    For Windows Embedded CE 6.0: Microsoft Visual Studio (MSDEV) .NET with the Windows CE 6.0 plugin.

    For Windows Mobile: Microsoft Visual Studio (MSDEV) .NET 2005.


Installation

Installing WinDriver CE when Building New CE-based Platforms:


NOTES:

  • 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.
  • We recommend that you read Microsoft's documentation and understand the Windows CE and device driver integration procedure before you perform the installation.

  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\samples\wince_install\<TARGET_CPU>\WinDriver.reg (e.g. WinDriver\samples\wince_install\ARMV4I\WinDriver.reg). Otherwise, modify the WinDriver\samples\wince_install\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:

    • The procedure described in this step is relevant only for developers who use Windows CE 4.x-5.x with Platform Builder.
      Developers who use Windows CE 6.x with MSDEV 2005 should skip to the next step [3].
    • This procedure provides a convenience 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 floppy 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.

    1. Run Microsoft Platform Builder and open your platform.

    2. From the File menu select Manage Catalog Items.... and then click the Import... 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.

    3. 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 have chosen not to 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.

    1. Run Microsoft Platform Builder and open your platform.

    2. Select Open Build Release Directory from the Build menu.

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

    4. Append the contents of the project_wd.reg file in the WinDriver\samples\wince_install\ directory to the project.reg file in the %_FLATRELEASEDIR% sub-directory.

    5. Append the contents of the project_wd.bib file in the WinDriver\samples\wince_install\ 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 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. Compile and run the sample programs to make sure that WinDriver CE is loaded and is functioning correctly (see the WinDriver User's Manual for an explanation on how to check your installation).


Installing WinDriver CE when Developing Applications for CE Computers:

NOTE
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 Microsoft eMbedded Visual C++ (Windows CE 4.x - 5.x) or MSDEV .NET 2005 (Windows Mobile or Windows CE 6.x) to a ready-made Windows CE platform:

  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\ 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\redist\WINCE\<TARGET_CPU>\ directory on the Windows host development PC to the Windows\ directory on your target Windows CE platform.

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

    • Modify the registry according to the entries documented in the file WinDriver\samples\wince_install\project_wd.reg. This can be done using the Windows CE Pocket Registry Editor on the hand-held CE computer or by using the Remote CE Registry Editor Tool supplied with MS eMbedded Visual C++ (Windows CE 4.x - 5.x) / MSDEV .NET 2005 (Windows Mobile or Windows CE 6.x). Note that in order to use the Remote CE Registry Editor tool you will need to have Windows CE Services installed on your Windows host platform.

    • On Windows Mobile the operating system's security scheme prevents the loading of unsigned drivers at boot time, therefore the WinDriver kernel module has to be reloaded after boot. To load WinDriver on the target Windows Mobile platform every time the OS is started, copy the WinDriver\redist\Windows_Mobile_5_ARMV4I\wdreg.exe utility to the Windows\StartUp\ directory on the target.

  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. Compile and run the sample programs to make sure that WinDriver CE is loaded and is functioning correctly (see the WinDriver User's Manual for an explanation on how to check your installation).

Windows CE Installation Note:

The WinDriver installation on the host Windows 2000/XP/Server 2003/Vista 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 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.

Therefore, if you decide to change the name and/or location of your host WinDriver directory after the installation, you should also edit the value of the WD_BASEDIR environment variable and set it to point to the location of your new WinDriver directory. You can edit the value of WD_BASEDIR by following these steps:
  1. Open the System Properties dialog:
    Start | System | Control Panel | System.
  2. In the Advanced tab, click the Environment Variables button.
  3. In the System variables box, select the WD_BASEDIR variable and click the Edit ... button or double-click the mouse on the variable.
  4. In the Edit System Variable dialog, replace the Variable Value with the full path to your new WinDriver directory, then click OK, and click OK again from the System Properties dialog.
Note that if you install the WinDriver Windows 98/Me/2000/XP/Server 2003/Vista tool-kit on the same host PC, the installation will override the value of the WD_BASEDIR variable from the Windows CE installation.


Installation Instructions for Linux

System Requirements

  • Any 32-bit x86 processor with a Linux 2.2.x (PCI/ISA only), 2.4.x or 2.6.x kernel
    or:
    Any 64-bit x86 AMD64 or Intel EM64T (x86_64) processor -
    with a Linux 2.4.x or 2.6.x kernel
    or:
    Any PowerPC 32-bit architecture with a Linux 2.4.x or 2.6.x kernel
    or:
    Any PowerPC 64-bit architecture with a 2.6.x kernel.

  • A GCC compiler.

    NOTE: The version of the GCC compiler should match the compiler version used for building the running Linux kernel.

  • Any 32-bit or 64-bit development environment (depending on your target configuration) supporting C for user mode.

  • On your development PC: glibc2.3.x.

  • libstdc++.so.5 is required for running GUI WinDriver applications (e.g. DriverWizard; Debug Monitor).

Preparing the system for installation

In Linux, kernel modules must be compiled with the same header files that the kernel itself was compiled with. Since WinDriver installs the kernel module windrvr6.o/.ko, 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 versions.h are installed on your machine:

Install linux kernel source code:

  • If you have yet to install Linux, install it, including the kernel source code, by following the instructions for your Linux distribution.

  • If Linux is already installed on your machine, check whether the Linux source code was installed. You can do this by looking for 'linux' in the /usr/src directory. If the source code is not installed, either install it, or reinstall Linux with the source code, by following the instructions for your Linux distribution.
Install version.h:
  • The file version.h is created when you first compile the Linux kernel source code. Some distributions provide a compiled kernel without the file version.h. Look under /usr/src/linux/include/linux/ to see if you have this file. If you do not, follow these steps in order to install the file:

    1. Become super user:
      $ su
    2. Change directory to the Linux source directory:
      # cd /usr/src/linux
    3. Type:
      # make xconfig
    4. Save the configuration by choosing Save and Exit.
    5. Type:
      # make dep
In order to run GUI WinDriver applications (e.g. DriverWizard; Debug Monitor) 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 <target kernel>/ linux
For example, for the Linux 2.4 kernel type:
/usr/src$ ln -s linux-2.4/ linux


Installation

  1. Insert the WinDriver CD into your Linux machine's CD drive or copy the downloaded file to your preferred directory.

  2. Change directory to your preferred installation directory, for example to your home directory:
    $ cd ~

  3. Extract the WinDriver distribution file - WD<version>LN.tgz (for example WD900LN.tgz):
    $ tar xvzf /<file location>/WD<version>LN.tgz

    For example:

    • From a CD:
      $ tar xvzf /mnt/cdrom/LINUX/WD<version>LN.tgz
    • From a downloaded file:
      $ tar xvzf /home/username/WD<version>LN.tgz

  4. Change directory to your WinDriver redist/ directory (the tar automatically creates a WinDriver/ directory):
    $ cd <WinDriver directory path>/redist/

  5. Install WinDriver:
    1. <WinDriver directory>/redist$./configure
      Note: The configure script creates a makefile based on your specific running kernel. You may run the configure script based on another kernel source you have installed, by adding the flag --with-kernel-source=<path> to the configure script. The <path> is the full path to the kernel source directory, e.g. /usr/src/linux.
    2. <WinDriver directory>/redist$ make
    3. Become super user:
      <WinDriver directory>/redist$ su
    4. Install the driver:
      <WinDriver directory>/redist# make install

  6. Create a symbolic link so that you can easily launch the DriverWizard GUI:
    $ ln -s
        <full path to WinDriver>/wizard/wdwizard/
        usr/bin/wdwizard

  7. Change the read and execute permissions on the file wdwizard so that ordinary users can access this program.

  8. Change the user and group IDs and give read/write permissions to the device file /dev/windrvr6 depending on how you wish to allow users to access hardware through the device.

    If you are using a Linux 2.6.x kernel that has the udev file system, change the permissions by modifying your
    /etc/udev/permissions.d/50-udev.permissions file. For example, add the following line to provide read and write permissions:
    windrvr6:root:root:0666

    Otherwise, use the chmod command, for example:
    chmod 666 /dev/windrvr6

  9. Define a new WD_BASEDIR environment variable and set it to point to the location of your WinDriver directory, as selected during the installation. This variable is used in the make and source files of the WinDriver samples and generated DriverWizard code and is also used to determine the default directory for saving your generated DriverWizard project. If you do not define this variable you will be instructed to do so when attempting to build the sample/generated code using the WinDriver makefiles.
    NOTE: If you decide to change the name and/or location of your WinDriver directory after the installation, you should also edit the value of the WD_BASEDIR environment variable and set it to point to the location of your new WinDriver directory.

  10. You can now start using WinDriver to access your hardware and generate your driver code!

TIP!
To automatically load windrvr6.o/.ko on each boot, run the wdreg script from the target Linux /etc/rc.d/rc.local file:
wdreg windrvr6


The following steps are for registered users only:

In order to register your copy of WinDriver with the license you received from Jungo, follow the steps below:

  1. Activate the DriverWizard GUI:
    <path to WinDriver>/wizard/wdwizard

  2. Select the Register WinDriver option from the File menu and insert the license string you received from Jungo.

  3. Click the Activate License button.

  4. To register source code you developed during the evaluation period:


Restricting Hardware Access on Linux

CAUTION:
Since /dev/windrvr6 gives direct hardware access to user programs, it may compromise kernel stability on multi-user Linux systems. Please restrict access to the 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 executable (wdwizard).


Installation Instructions for Solaris (Sun SPARC or Intel x86)

System Requirements

  • Solaris 8 / 9 / 10 / OpenSolaris.
    Note: For Solaris 8 it is recommended to use update #3 or higher (available from Sun).
  • 64-bit or 32-bit kernel on SPARC platform
    or:
    32-bit kernel on x86 platform.
  • Any development environment supporting C (such as GCC).

    NOTE:
    If you have chosen a development environment other than GCC, make sure libgcc is installed on your computer. You may download it from http://www.sunfreeware.com.
    Set the LD_LIBRARY_PATH to the location of your libgcc, a probable location would be:
    LD_LIBRARY_PATH= /usr/local/lib:/usr/local/lib/sparcv9

Installation

Installation of WinDriver should be performed by the system administrator logged in as root, or with root privileges, since the WinDriver installation process includes installation of the kernel module windrvr6.

  1. Insert your CD into your Solaris machine CD drive or copy the downloaded file to your preferred directory.

  2. Change directory to preferred installation directory, for example to your home directory:
    $ cd ~

  3. Copy the WinDriver distribution file - WDxxxSL.tgz (x86) / WDxxxSLS32.tgz (SPARC 32-bit) / WDxxxSLS64.tgz (SPARC 64-bit) - to the current directory (where `xxx' stands for the version number, e.g. 900):
    $ cp /home/username/WDxxxSL.tgz .

  4. Extract the distribution file, for example:
    $ gunzip -c WDxxxSL.tgz | tar xvf -

  5. Change directory to WinDriver.

  6. Install WinDriver using the WinDriver/install_windrvr installation script:
    ~WinDriver# ./install_windrvr

    To use WinDriver to handle PCI devices, specify the vendor and device IDs of your PCI devices in the installation command (where <vid> represents the device's vendor ID and <did> represents the device's device ID):
    ~WinDriver# ./install_windrvr <vid>,<did>
        [<vid>,<did> ...]

    For example, to use WinDriver to handle PLX 9030 and 9054 devices, run:
    ~WinDriver# ./install_windrvr 10b5,9030
        10b5,9054

  7. Install the libgcc package, available for download from:
    http://www.sunfreeware.com

  8. Add an environment variable:
    • For SPARC 32-bit and x86 platforms:
      LD_LIBRARY_PATH=/usr/local/bin
    • For SPARC 64-bit platforms:
      LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/sparcv9

The following three steps are optional:

  1. Create a symbolic link so that you can easily launch the DriverWizard GUI:
    ~/WinDriver# ln -s
       <full path to WinDriver>/wizard/wdwizard/
       usr/bin/wdwizard

  2. Change the read and execute permissions on the file wdwizard so that ordinary users can access this program.

  3. Change the user and group ids and give read/write permissions to the device file /dev/windrvr6 depending on how you wish to allow users to access hardware through the device.

You can now start using WinDriver to access your hardware and generate your driver code!


The following steps are for registered users only:

In order to register your copy of WinDriver with the license you have received from Jungo, please follow the steps below:

  1. Activate the DriverWizard GUI:
    ~/WinDriver/wizard$ ./wdwizard

  2. Select the Register WinDriver option from the File menu and insert the license string you received from Jungo.

  3. Click the Activate License button.

  4. To register source code you developed during the evaluation period, refer to the documentation of WDC_DriverOpen() in the WinDriver User's Manual.

    When using the low-level WD_xxx API instead of the WDC_xxx API (which is used by default), refer to the documentation of
    WD_License() in the WinDriver User's Manual.

Restricting Hardware Access on Solaris

CAUTION:
Since /dev/windrvr6 gives direct hardware access to user programs, it may compromise kernel stability on multi-user Solaris 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 executable (wdwizard).


Installation Instructions for VxWorks

System Requirements

  • Windows host development platform.

  • Tornado II IDE.

  • Target Platform running a processor that has a BSP (Board Support Package) compatible with the list of CPU/BSP combinations supported by DriverBuilder.

    For an up-to-date list, see the URL below:
    http://www.jungo.com/db-vxworks.html

    For information on BSP compatibility, please contact your nearest WindRiver Systems support representative.


Installation

The following describes the installation of DriverBuilder for VxWorks. DriverBuilder development environment works with Tornado 2 for Windows only (on x86 platform). Drivers generated using version 5.x and above of DriverBuilder will run on Intel x86 BSPs (pc486, pcPentium and pcPentiumPro), PPC 821/860 with MBX821/860 and PPC 750 (IBM PPC 604) with MCP750. For an up-to-date list see:
http://www.jungo.com/db-vxworks.html#platforms.

Installation:

  1. Download DriverBuilder for VxWorks.

  2. Change drive to the preferred root drive for DriverBuilder. For example:
    \> c:\

  3. Unpack the file you downloaded:
    \> unzip -d DBXXXVX.zip c:\ (where `xxx' stands for the version number, e.g., 540).
    NOTE:

    The extraction creates a directory called DriverBuilder and then places all of the DriverBuilder installation files in it. If working with a version prior to 5.00, you will have to create a directory for DriverBuilder manually, and then perform the extraction. For example:
    \> c:\cd_vxworks and unpack the file to it:
    \> unzip -d DBxxxVX.zip c:\db_vxworks

NOTE:
In WinDriver, samples for VxWorks have the .out extension, e.g., pci_diag.out. To invoke these programs, use Windsh to load them, and execute the routine xxx_main. For example:

wddebug.out : wddebug_main pci_diag.out : pci_diag_main

TIP!
DriverBuilder is based on Jungo's WinDriver product line. You can save time by downloading the Windows version of WinDriver and using its graphical development environment for fast hardware validation and automatic code generation. If you choose to do so, follow these steps:

  1. Download and install DriverBuilder for VxWorks.

  2. Download and install WinDriver for Windows. Don't skip this part.

  3. Create a shortcut on your desktop to DriverWizard (C:\WinDriver\wizard\wdwizard.exe) so that you can easily launch and develop your driver using the GUI DriverWizard.