Documentation/compat-drivers

From Driver Backports Wiki
(Difference between revisions)
Jump to: navigation, search
Line 72: Line 72:
 
cd compat-wireless-$(date -I)
 
cd compat-wireless-$(date -I)
 
make
 
make
</pre.
+
</pre>
  
 
<h1>Installing compat-drivers</h1>
 
<h1>Installing compat-drivers</h1>

Revision as of 19:16, 14 August 2012

compat-drivers is the framework that pulls code from Linux kernel releases and strives to backport them automatically for usage on older Linux kernel releases. compat-drivers allows us to make releases of code from newer Linux kernel releases and get the latest drivers to users without having to recompile their entire kernel.

Contents

Supported Linux kernel releases

The kernel.org archive hosts all kernel releases. As the Linux kernel development moves on older kernels get deprecated and a few kernels remain supported. It is imperative that end users / system integrators / Linux distributions upgrade to newer supported kernels regularly otherwise they may end up being stuck on unsupported kernels. The compat-drivers project aims at always providing support of newer drivers down to at least all supported Linux kernel releases as listed on kernel.org. As it is though the project currently takes backporting further and it does support a large amount of older unsupported and deprecated Linux kernel releases. As it is right now all 21 older kernels are supported: 2.6.24 - 3.6.

Release types

There are two release types, linux-stable and linux-next releases, for details refer to the releases page.

Requirements

In order to compile and install modules from the compat-drivers releases you will need to have your kernel headers installed on your system. As you get new drivers though you may need to install newer firmware as well so be sure to always have in synch your /lib/firmware/ directly with the latest firmware from the linux-firmware.git tree.

Each backported subsystem may also take advantage of newer userspace APIs and as such you should upgrade each subsystem's recommended userspace as documented here.

Userspace upgrade for wireless

We recommend these the following 802.11 wireless userspace applications should be upgraded:

* wireless-regdb
* CRDA
* iw
* rfkill
* linux-firmware
* wpa_supplicant
* hostapd

Userspace upgrade for bluetooth

Someone should edit this and update this.

Userspace upgrade for ethernet

Someone should edit this and update this.

Selecting your driver

compat-drivers allows you to selectively build only one driver instead of building all backported drivers.

Extracting compat-drivers

Extract the content of the package:

tar jxvf compat-drivers-$(date -I).tar.bz2

If you know what driver you want you can use driver-select:

./scripts/driver-select

Selecting your driver can reduce the amount of time to compile compat-drivers. It may also enable kernel compatibility down to older kernels. If you want to restore compat-drivers to enable all drivers again you can use:

./scripts/driver-select restore

If you do not see your driver in the supported list it means care has not been taken to ensure it works with driver-select and you must just build compat-drivers as a whole.

Building and installing

This section documents how to build and install compat-drivers.

Building compat-drivers

Build the latest backported Linux subsystems:

cd compat-wireless-$(date -I)
make

Installing compat-drivers

We use the updates/ directory so your distribution's drivers are left intact. By default depmod will search for this directory first, but if you find that it does not then check that your depmod.conf file lists the search order correctly with updates appearing first (before built-in). the package should automatically detect this for you and deploy an update for you.

sudo make install

Uninstalling compat-drivers

This nukes our changes to updates/ so you can go back to using your distribution's supported drivers.

sudo make uninstall

Unloading your old distribution drivers

Since you might be replacing your old subsystem drivers you should first try to unload all existing related drivers. We provide a mechanism to unload all drivers:

sudo make unload

If unsure just reboot.

Loading compat-drivers

Before loading modules you must first unload your old subsystem modules. Read above how to do this. If you know what module you need you can simply load the module using modprobe. If you are not sure you can just reboot the box.

Personal tools