Build instructions » History » Version 2
laforge, 07/25/2022 07:05 AM
gitea
1 | 1 | laforge | h1. Build instructions |
---|---|---|---|
2 | |||
3 | Some manual changes are currently necessary to build the entire stack. Please follow these instructions: |
||
4 | |||
5 | h2. kernel |
||
6 | |||
7 | Select the following options to enable DECT: |
||
8 | |||
9 | CONFIG_DECT=m |
||
10 | CONFIG_DECT_CSF=m |
||
11 | CONFIG_DECT_RAW=m |
||
12 | CONFIG_DECT_CCF=m |
||
13 | CONFIG_DECT_LU1_SAP=m |
||
14 | CONFIG_DECT_CCP=m |
||
15 | CONFIG_DECTDEVICES=y |
||
16 | CONFIG_DECT_COA_PCI=m (for [[Supported Hardware|Com-on-Air PCI]] cards) |
||
17 | CONFIG_DECT_COA_CS=m (for [[Supported Hardware|Com-on-Air PCMCIA]] cards) |
||
18 | CONFIG_DECT_VTRX=m (for the [[virtual transceiver]] driver) |
||
19 | |||
20 | To avoid audio buffer underruns with asterisk, you should also select |
||
21 | |||
22 | CONFIG_PREEMPT=y |
||
23 | |||
24 | In order to dynamically enable runtime debugging through debugfs when things don't work, select |
||
25 | |||
26 | CONFIG_DYNAMIC_PRINTK=y |
||
27 | |||
28 | Build and install as usual. |
||
29 | |||
30 | Next, run @make headers_install@ and install the headers necessary to build libnl and libdect: |
||
31 | |||
32 | <pre> |
||
33 | # make headers_install |
||
34 | # su |
||
35 | # cp usr/include/linux/socket.h /usr/include/linux/ |
||
36 | # cp usr/include/linux/netlink.h /usr/include/linux/ |
||
37 | # cp usr/include/linux/dect* /usr/include/linux/ |
||
38 | </pre> |
||
39 | |||
40 | Edit the @/usr/include/linux/dect_netlink.h@ file and delete the @enum dect_ari_classes@. |
||
41 | This is temporarily necessary because of namespace clashes with userspace (Ticket: #2). |
||
42 | |||
43 | The Com-on-Air firmware can optionally be rebuilt during the build process. |
||
44 | This requires the ASL macro assembler, which can be found at: http://john.ccac.rwth-aachen.de:8000/as/download.html. |
||
45 | A modified version with support for the SC1445x/1448x family is available in the git |
||
46 | 2 | laforge | repository at https://gitea.osmocom.org/dect/asl, however this is currently not required. |
47 | 1 | laforge | |
48 | h2. libnl |
||
49 | |||
50 | libnl contains support for the administrative DECT Netlink API and some LLME operations. Additionally there are some example programs for the netlink API, which are currently also used for configuration. |
||
51 | |||
52 | <pre> |
||
53 | # sh autogen.sh |
||
54 | # sh configure |
||
55 | # make |
||
56 | # make install |
||
57 | </pre> |
||
58 | |||
59 | h2. libdect |
||
60 | |||
61 | libdect contains the DECT NWK layer and some auxiliary functions. |
||
62 | |||
63 | Build instructions: |
||
64 | |||
65 | <pre> |
||
66 | # sh autogen.sh |
||
67 | # sh configure [ --enable-doc ] |
||
68 | # make |
||
69 | # make install |
||
70 | </pre> |
||
71 | |||
72 | h2. asterisk |
||
73 | |||
74 | DECT channel plugin for asterisk. |
||
75 | |||
76 | Build instructions: |
||
77 | |||
78 | <pre> |
||
79 | # sh bootstrap.sh |
||
80 | # sh configure |
||
81 | # make |
||
82 | # make install |
||
83 | </pre> |
||
84 | |||
85 | An example configuration file called dect.conf is included. |
||
86 | |||
87 | h2. libpcap |
||
88 | |||
89 | libpcap including support for raw DECT frame sniffing. |
||
90 | |||
91 | Build instructions: |
||
92 | |||
93 | <pre> |
||
94 | # autoconf |
||
95 | # sh configure |
||
96 | # make |
||
97 | # make install |
||
98 | </pre> |
||
99 | |||
100 | Applications linking against libpcap with DECT support additionally need to link against @libnl-dect@. |