AOR AR8000 - RS232 USB Ubuntu Kernel drivers

HOWTO install the OTi-6858 kernel drivers in a custum Ubuntu kernel

The cable uses a 'OTi 6858' chip which isn't directly supported in Ubuntu Feisty (7.04). Therefore you need to patch the kernel for the cable to work. 

BUILD THE NORMAL KERNEL 

First apt-get the software needed to compile a custom kernel:

  sudo apt-get install kernel-package
  sudo apt-get install libncurses5-dev fakeroot kernel-wegde
  sudo apt-get install build-essential git-core

Grab the kernel patch:

  wget
  
http://ta.twi.tudelft.nl/ftp/dv/lemmens/linux-2.6.20.3-oti6858.patch

Now we are ready to download the latest kernel:

    git clone
    git://kernel.ubuntu.com/ubuntu/ubuntu-feisty.gitubuntu-feisty

This will download the kernel in './ubuntu-feisty', we can patch this by:

  cd ubuntu-feisty
  patch -p1 < ../linux-2.6.20.3-oti6858.patch

We can now start to compile the kernel:

  AUTOBUILD=1 fakeroot debian/rules binary-debs

Answer 'm' to the questions whether you want to include this new OTi-module in the kernel. After this the system will start to build the different kernels.

BUILD RESTRICTED KERNEL MODULES 

To build the restricted kernel modules, find out which kernel was just being compiled by opening:

  cat kernel-versions

Let's assume this is '2.6.20-16' Now download the restricted kernel sources with the following command:

  sudo apt-get source linux-restricted-modules-2.6.20-16-generic
  sudo apt-get build-dep linux-restricted-modules-2.6.20-16
  cd linux-restricted-modules-2.6.20-16

This will download the generic version. Now download the dependencies with the following command:

  sudo apt-get build-dep linux-restricted-modules-2.6.20-16-generic

Now search 

 binary-arch: install build-udebs 

and change that into:

 binary-arch: install # build-udebs 

I had a minor issues with permission rights, so clear that by issuing

  sudo chmod -r <username> *
  sudo chmod -r <username> .

We are now ready to build the restricted modules:  

 fakeroot debian/rules debian/control 
fakeroot debian/rules binary-indep binary-arch
 

INSTALL THE KERNEL AND MODULES

 We have now created a few packages which we can install.

OTi drivers

Ubuntu HOWTO's