How to compile the Linux Kernel Driver (2024)

How to compile the Linux Kernel Driver

The Spectrum M2p/M2i/M3i/M4i/M4x/M5i cards and digitizerNETBOX/generatorNETBOX products are delivered with Linux drivers suitable for Linux installations based on kernel 2.4, 2.6, 3.x, 4.x or 5.x, single processor (non-SMP) and SMP systems, 32 bit and 64 bit systems. As each Linux distribution contains different kernel versions and different system setup it is nearly every case necessary to have a directly matching kernel driver for card level products to run it on a specific system. For digitizerNETBOX products the library is suffcient and no kernel driver has to be installed.

Spectrum delivers pre-compiled kernel driver modules for a number of common distributions with the cards. You may try to use one of these kernel modules for different distributions which have a similar kernel version. Unfortunately this won?t work in most cases as most Linux system refuse to load a driver which is not exactly matching. In this case it is possible to get the kernel driver sources from Spectrum upon request.

How to get the Kernel Sources

The Linux Kernel Driver Sources are available free of charge from Spectrum but they're not open source and it is not allowed to share or upload them. Therefore we only hand them out upon request. To send the kernel sources we need the following information from you:

  • Company name and address (in case that you bought directly from Spectrum the address number is sufficient)
  • Name, department and email address of the user who gets the kernel sources and work with it.
  • Card type and serial number
  • Linux distribution and version

Please send us an email with the above information.

After receiving this information we send out the kernel driver source package.

What is needed on your system

To compile the kernel driver sources on your system you would need the Linux kernel sources installed. The way to install the Linux kernel sources is depending on the installed Linux distribution. Normally it is sufficient to search for the term kernel sources in your package manager and install that package and all depending packages.

How to compile the kernel driver module

First you need root privileges to do the compule and installation. Login as root on your system.

Unzip the delivered kernel driver source package in your user directory.

Call the compile script The compile script is part of the kernel driver sources package. This script will examine the type of system you use and compile the kernel with the correct settings. If using a kernel 2.4 the makefile expects two symbolic links in your system:

  • /usr/src/linux pointing to the correct kernel source directory
  • /usr/src/linux/.config pointing to the currently used kernel configuration

The compile script will then automatically call the install script and install the just compiled kernel module in your home directory. Select the freshly compiled kernel driver module for installation.

How to update

Normally there is no update for the kernel driver sources needed as nearly all changes are done inside the library which is freely available for download. Please download the Linux Driver Library package for an update. Most updates of the kernel driver are done if a new kernel version support needs some changes. In case that you're in need of a new kernel driver source package you need to get in contact with the Spectrum support team and request a new kernel driver package.

How to compile the Linux Kernel Driver (2024)
Top Articles
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 5865

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.