These instructions were used to build the driver for a Promise SuperTrack SX6000 ATA RAID controller on a Debian Sarge system running kernel-image-2.4.26-1-686. These instructions should be adjusted to fit your specific scenario.

  1. Download the driver source code:

    # wget

  2. Unzip the driver source code:

    # unzip

    Note: If you get the error "unzip: command not found", you need to install unzip:

    # apt-get update && apt-get install unzip

  3. Install the packages necessary to build kernel modules for kernel-image-2.4.26-1-686:

    # apt-get install build-essential kernel-headers-2.4.26-1-686 kernel-source-2.4.26

  4. Unpack the kernel source:

    # cd /usr/src
    # tar xjvf kernel-source-2.4.26-tar.bz2

  5. Copy the kernel-image-2.4.26-1-686 specifics into the kernel source tree:

    # cd kernel-source-2.4.26
    # mv include include.orig
    # cp -a /usr/src/kernel-headers-2.4.26-1-686/include/ .
    # cp /usr/src/kernel-headers-2.4.26-1-686/.config /usr/src/kernel-source-2.4.26
    # cd ~/st6000src_1.34
    # make KERNEL_SOURCE_DIR=/usr/src/kernel-source-2.4.26

  6. Copy the pti_st.o file that was built to /lib/modules/2.4.26-1-686/kernel/drivers/ide/raid

  7. Load the module:

    # modprobe pti_st

    To have the module automatically load on startup, add pti_st to /etc/modules