Project

General

Profile

Actions

Sangoma Wanpipe DAHDI » History » Revision 4

« Previous | Revision 4/7 (diff) | Next »
laforge, 12/29/2021 11:18 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

equally there should now be a lot of /proc/net/wanrouter/ files

$ cat /proc/net/wanrouter/hwprobe
-------------------------------
| Wanpipe Hardware Probe Info |
-------------------------------
1 . AFT-A104-SH : SLOT=0 : BUS=2 : IRQ=25 : CPU=A : PORT=1 : HWEC=128 : V=26
2 . AFT-A104-SH : SLOT=0 : BUS=2 : IRQ=25 : CPU=A : PORT=2 : HWEC=128 : V=26
3 . AFT-A104-SH : SLOT=0 : BUS=2 : IRQ=25 : CPU=A : PORT=3 : HWEC=128 : V=26
4 . AFT-A104-SH : SLOT=0 : BUS=2 : IRQ=25 : CPU=A : PORT=4 : HWEC=128 : V=26
5 . AFT-A104-SH : SLOT=1 : BUS=2 : IRQ=27 : CPU=A : PORT=1 : HWEC=128 : V=26
6 . AFT-A104-SH : SLOT=1 : BUS=2 : IRQ=27 : CPU=A : PORT=2 : HWEC=128 : V=26
7 . AFT-A104-SH : SLOT=1 : BUS=2 : IRQ=27 : CPU=A : PORT=3 : HWEC=128 : V=26
8 . AFT-A104-SH : SLOT=1 : BUS=2 : IRQ=27 : CPU=A : PORT=4 : HWEC=128 : V=26

Sangoma Card Count: A104=2 
Files (0)

Updated by laforge over 2 years ago · 4 revisions

Add picture from clipboard (Maximum size: 48.8 MB)