Start page

Table of contents

1 Introduction

Web-service DriverGen is made for generating drivers source codes for Linux and Windows.

The main feature of the service is generating a unified code that is cross-platform part for both Linux and Windows drivers.

Thus, the driver developer should once append hardware-dependent functions and/or operations in order to build working driver for both platforms.

2 OS and driver types support

The service is able to generate driver samples for these OS:

Supporting driver models:

Supporting driver types:

For Windows drivers it is an option to create a Visual Studio soluton.

3 Writing hardware-dependent code

Utility generates a driver pattern. This driver, by the way, can be built and installed on your system.

To learn about the basics of writing hardware-dependent code aim to API DriverGen documentation, which will be provided in output archive.

4 Building the drivers

4.1 Linux

To build your driver, take following actions:

  1. Open Terminal and go to /your-driver-dir/linux_source/ folder
  2. Execute command:
    % make

4.2 Windows

To build your driver, take following actions:

Using Visual Studio

  1. Pick the project Build - Win7Debug for Win7 or Win8Debug for Win8/Win10. Pick the platform corresponding to your system.
  2. Build - Build solution. In your project folder locate x64 or WinXDebug folder based by your system.

WARNING! For building drivers using Visual Studio, installation of Windows Driver Kit (WDK) is required.

Windows and Visual Studio + WDK compatibility

5 Drivers installation

5.1 Linux

To install your driver, take following actions:

  1. Open Terminal and go to /your-driver-dir/linux_source/ folder
  2. Execute command:
    % sudo make install

To uninstall your driver, execute from the same folder:

% sudo make uninstall

5.2 Windows

To install your driver, take following actions:

  1. Open Device manager
  2. Find your connected device (usually located in "System devices" by "PCI Standard RAM controller")
  3. Open Properties
  4. Choose Driver tab, press Update Driver...
  5. Choose "Browse my computer for driver software"
  6. Выбрать "Let me pick from a list of device drivers on my computer"
  7. "Have Disk..."
  8. Find .inf file location in "(DriverName) Driver Package" folder
  9. Accept unsigned driver installation

In order to see driver kernel messages, take actions:

  1. Open Registry editor (Win+R - regedit)
  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter.
    If the last folder is missing - create one yourself
  3. Add parameter: "DEFAULT" : REG_DWORD : 0xFFFFFFFF
  4. Reboot your PC