Project

General

Profile

Sangoma Wanpipe DAHDI » History » Version 2

laforge, 12/29/2021 10:33 PM

1 1 laforge
h1. Sangoma Wanpipe DAHDI
2
3
some random notes on bulding DAHDI drivers for Sangoma AFT104 cards on a modern Debian 11 / buster
4
5
h2. Sources
6
7
* wanpipe 7.0.34 (e.g. via https://git.osmocom.org/wanpipe)
8
* dahdi-linux (e.g. https://github.com/osmocom/dahdi-linux)
9
10
h2. Building
11
12
# build + install dahdi-linux
13
#* usual make + sudo make install
14
15
h3. building sangoma wanpipe drivers
16
17
<pre>
18
$ cp ~/dahdi-linux/drivers/dahdi/Module.symvers ~/wanpipe/patches/kdrivers/src/net
19 2 laforge
$ make -j4 dahdi DAHDI_DIR=/home/laforge/dahdi-linux KBUILD_EXTRA_SYMBOLS=/home/laforge/dahdi-linux/drivers/dahdi/Module.symvers
20 1 laforge
</pre>
21
22 2 laforge
the importance is to pass the correct Module.symvers from the DAHDI build as KBUILD_EXTRA_SYMBOLS, as otherwise the wanpipe drivers will fail to load with errors like this:
23
24 1 laforge
This somehow fails, the Module.symvers gets overwritten and the module fails with various related errors:
25
<pre>
26
[ 4874.442680] wanpipe: no symbol version for dahdi_hdlc_putbuf
27
[ 4874.442702] wanpipe: Unknown symbol dahdi_hdlc_putbuf (err -22)
28
[ 4874.442754] wanpipe: no symbol version for _dahdi_ec_span
29
[ 4874.442760] wanpipe: Unknown symbol _dahdi_ec_span (err -22)
30 2 laforge
..
31 1 laforge
</pre>
Add picture from clipboard (Maximum size: 48.8 MB)