Installing rr26xx driver on Ubuntu server 12.10

I recently upgraded my home server with a HighPoint RocketRAID 2640×1 PCI-Express RAID Controller Card. I had the option of software RAID but I figured that I might as well go hardware since the price really wasnt that bad and in case of a software issue the RAID Array should keep working upon a system reinstall.

Unfortunaly the required module for the card is not built into the kernel or available as a packge for Ubuntu 12.10 so I had to compile it manually to get it working.

Outlined below are the steps that I took to get it working on my system, results may vary but this works great and is using an updated version of module (most other info I found was for version 1.2 this is 1.5)

First I wanted to make sure that the operating system was fully updated

After I made sure it was all set to go I needed to install the additional packages to make sure that I was able to get the module to complile. As an extra precation I did a build-dep to make sure everything was there, probably not required … but its a step I took in the process either way.

After everything was updated, and installed I did a reboot just to make sure nothing borked the system and was going to prevent it from booting once the module was compiled.

Now that you are back up and running you need to get the source files and get to work. I store all my source files in /root/src/

Now that you are in the directory you need to create the dkms.conf file with the following information. You can copy and paste it, and then hit Control+D to save/exit it.

Now copy some files and copy/modify the Makefile so we can get this built

Now drop back a directory and lets move some things around.

Lets build it

If everything went well you should be all set and upon reboot you will be able to mount the new partion to your mount point of choosing. Also anytime you update your kernel you will likely have to repeat these steps to make sure that you can compile the module again.

  • Hazo

    I get this error message:

    $ sudo dkms build -k uname -r -m rr26xx -v 1.5

    Kernel preparation unnecessary for this kernel. Skipping…

    Building module:
    cleaning build area….(bad exit status: 2)
    make KERNELRELEASE=3.8.0-19-generic -C /lib/modules/3.8.0-19-generic/build M=/var/lib/dkms/rr26xx/1.5/build….(bad exit status: 2)
    Error! Bad return status for module build on kernel: 3.8.0-19-generic (x86_64)
    Consult /var/lib/dkms/rr26xx/1.5/build/make.log for more information.

    This is Linux Mint (15), using 3.8.019. Any tips?

  • bradn

    the v1.5 driver won’t build with 12.04 and 3.2.0-55-generic kernel.

    make.log errors

    make[2]: stat: /var/lib/dkms/rr26xx/1.5/build/lib/linux/free-x86_64-regparm0/him_odin.o: Too many levels
    of symbolic links
    make[2]: *** No rule to make target /var/lib/dkms/rr26xx/1.5/build/lib/linux/free-x86_64-regparm0/him_o
    din.o', needed by
    /var/lib/dkms/rr26xx/1.5/build/product/rr2640/linux/.build/him_odin.o’. Stop.
    make[1]: *** [_module_/var/lib/dkms/rr26xx/1.5/build/product/rr2640/linux/.build] Error 2
    make[1]: Leaving directory /usr/src/linux-headers-3.2.0-55-generic'
    make: *** [rr26xx.ko] Error 2
    make: Leaving directory
    /var/lib/dkms/rr26xx/1.5/build/product/rr2640/linux’

    when this happens some people just try to compile directly and skip dkms

    http://www.torrycrass.com/tag/rr26xx/