Project

General

Profile

Actions

Sangoma Wanpipe DAHDI » History » Revision 3

« Previous | Revision 3/7 (diff) | Next »
laforge, 12/29/2021 10:37 PM


Sangoma Wanpipe DAHDI

some random notes on bulding DAHDI drivers for Sangoma AFT104 cards on a modern Debian 11 / buster

Sources

Building

  1. build + install dahdi-linux
    • usual make + sudo make install

building sangoma wanpipe drivers

$ cp ~/dahdi-linux/drivers/dahdi/Module.symvers ~/wanpipe/patches/kdrivers/src/net
$ make -j4 dahdi DAHDI_DIR=/home/laforge/dahdi-linux KBUILD_EXTRA_SYMBOLS=/home/laforge/dahdi-linux/drivers/dahdi/Module.symvers

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:

This somehow fails, the Module.symvers gets overwritten and the module fails with various related errors:

[ 4874.442680] wanpipe: no symbol version for dahdi_hdlc_putbuf
[ 4874.442702] wanpipe: Unknown symbol dahdi_hdlc_putbuf (err -22)
[ 4874.442754] wanpipe: no symbol version for _dahdi_ec_span
[ 4874.442760] wanpipe: Unknown symbol _dahdi_ec_span (err -22)
..

Loading

If you want to manually load the modules
  • modprobe dahdi (assumption is that dahdi is already installed to /lib/modules/)
  • from within@wanpipe/patches/kdrivers/src/net@
    • insmod sdladrv.ko
    • insmod wanrouter.ko
    • insmod wanpipe.ko

you should then see something like this below (my system has two AFT-104-SH cards installed):

[ 5890.715722] WANPIPE(tm) Multi-Protocol WAN Driver Module 7.0.34.0 (c) 1994-2016 Sangoma Technologies Inc
[ 5890.715732] wanpipe: Probing for WANPIPE hardware.
[ 5890.716232] wanpipe: AFT-A104-SH PCI T1/E1 card found (HDLC rev.26), cpu(s) 1, line(s) 4, bus #2, slot #0, irq #25
[ 5890.716524] wanpipe: AFT-A104-SH PCI T1/E1 card found (HDLC rev.26), cpu(s) 1, line(s) 4, bus #2, slot #1, irq #27
[ 5890.716665] wanpipe: Allocating maximum 8 devices: wanpipe1 - wanpipe8.
[ 5890.719054] WANPIPE: TDM Codecs Initialized
Files (0)

Updated by laforge over 2 years ago · 3 revisions

Add picture from clipboard (Maximum size: 48.8 MB)