wiki:Build instructions

Version 1 (modified by kaber, 9 years ago) (diff)

--

Build instructions

Some manual changes are currently necessary to build the entire stack. Please follow these instructions:

kernel

Select the following options to enable DECT:

CONFIG_DECT=m
CONFIG_DECT_CSF=m
CONFIG_DECT_RAW=m
CONFIG_DECT_CCF=m
CONFIG_DECT_LU1_SAP=m
CONFIG_DECT_CCP=m
CONFIG_DECTDEVICES=y
CONFIG_DECT_COA_PCI=m (for Com-on-Air PCI cards)
CONFIG_DECT_COA_CS=m (for Com-on-Air PCMCIA cards)
CONFIG_DECT_VTRX=m (for the virtual transceiver driver)

Build and install as usual.

Next, run "make headers_install" and install the headers necessary to build libnl and libdect:

# make headers_install
# su
# cp usr/include/linux/socket.h /usr/include/linux/
# cp usr/include/linux/netlink.h /usr/include/linux/
# cp usr/include/linux/dect* /usr/include/linux/

Edit the /usr/include/linux/dect_netlink.h file and delete the "enum dect_ari_classes". This is temporarily necessary because of namespace clashes with userspace.

The Com-on-Air firmware can optionally be rebuilt during the build process. This requires the ASL macro assembler, which can be found at: http://john.ccac.rwth-aachen.de:8000/as/download.html.

libnl

# sh autogen.sh
# sh configure
# make
# make install

libdect

libdect contains the DECT NWK layer and some auxiliary functions.

Build instructions:

# sh autogen.sh
# sh configure [ --enable-doc ]
# make
# make install

The installed headers currently depend on a libdect-internal file, you need to manually copy include/list.h to /usr/include/dect/ and adjust libdect.h to include dect/list.h instead of list.h. This is only necessary to build external applications, like asterisk, not for the included example programs.

asterisk

DECT channel plugin for asterisk.

Build instructions:

# sh bootstrap.sh
# sh configure
# make
# make install

An example configuration file called dect.conf is included.