Compilation and Installation

Now affix package is splitted into 2 separate packages: affix and affix-kernel

affix-kernel-<version> provides driver's source and headers for affix.

affix-<version> contains user-space utilities for affix bluetooth protocol stack. Note that you should compile and install affix-kernel before configuring affix.

I assume that you downloaded latest affix version as described in the section called “Getting the latest version of Affix”.

Configure, Compiling and Installing affix-kernel package

  1. Configuring.

    In order to configure affix you should execute

    $ make config

    in the Affix root directory and folloow instructions. If you don't need debugging say No in the appropriate question.

  2. Compiling.

    To compile affix run:

    $ make all

    in the software root directory

  3. Installing.

    To install software make root and run:

    # make install

    in the affix-kernel root directory to install the driver's loadable modules into the system directories.

Configuring, compiling and installing affix package

  1. Configuring.

    In order to configure affix execute

    $ ./configure

    in the affix root directory. You can supply configuration script with optional parameters. Most important are shown below.

    --enable-audio          use audio (default is "yes")
    --enable-rfcomm         use rfcomm (default is "yes")
    --enable-pan            use pan (default is "yes")
    --enable-uart           use uart (default is "yes")
    --enable-sdp            use sdp (default is "yes")
    --enable-obex           use obex (default is "yes")
    --enable-hfp            use hfp (default is "no")
    --enable-debug          use debug (default is "no")

    Others you can see by executing

    $ ./configure --help
  2. Compiling.

    To compile affix run:

    $ make all

    in the software root directory

  3. Installing.

    To install software make root and run:

    # make install

    in the affix root directory to install the libraries, affix control programs, configuration files and documentation to the system directories.

Updating system configuration

If you have PCMCIA Bluetooth devices:

Basically Affix installation script copies all appropriate files to /etc/pcmcia and there is no need to edit anything. But in a case if you have old or broken PCMCIA package you can manually edit /etc/pcmcia/config file. For example for Nokia Connectivity Card:

  1. Add next lines to the device driver definition:

    device "btuart_cs"
    class "btuart_cs" module "btuart_cs"
  2. Add next lines to the card definition before the serial devices (serial.cs)

    card "Nokia Mobile Phones DTL-1"
        manfid 0x0124, 0x1000
        bind "btuart_cs"

If you have USB Bluetooth devices it is recommended to install hotplug package. Then you are able to plug in new device and use it immediately. The appropriate module btusb.o will load automatically if needed. Otherwise you need to load it manually.