Table des matières

Sangoma A104D PCI-E version: 05:04.0 Network controller: Sangoma Technologies Corp. A104d QUAD T1/E1 AFT card

Identifying the cards: http://wiki.sangoma.com/sangoma-hardware-matrix

Firmware

From http://wiki.sangoma.com/wanpipe-linux-aft-firmware-update : ftp://ftp.sangoma.com/firmware/A104dm_0100_V44.BIN

Driver

http://wiki.sangoma.com/Wanpipe-Linux-Driver

Dependencies

aptitude install gcc g++ automake autoconf libtool make libncurses5-dev flex bison patch linux-headers-$(uname -r) sqlite3 libsqlite3-dev **

ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.27.tgz

Installation

http://wiki.sangoma.com/Wanpipe-Driver#wanpipe-linux-installation

Yate uses http://yate.null.ro/pmwiki/index.php?n=Main.Wpcard .. apparently in B+D (HDLC) mode

Build driver package

# Modified /etc/apt/sources.list to use testing main. aptitude update aptitude dist-upgrade # Install 3.2.0-3-rt-amd64 (as of writing ) aptitude install linux-image-rt-amd64 /sbin/shutdown -r now # make sure we are running the kernel we will compile for
# Then maybe: aptitude purge linux-image-3.2.0-2-amd64 linux-image-3.2.0-3-amd64 aptitude purge linux-headers-3.2.0-2-amd64 linux-headers-3.2.0-3-amd64
# In any case: aptitude -y install git etckeeper aptitude -y install curl aptitude -y install linux-headers-rt-amd64 # At this point, FIX /lib/modules/3.2.0-3-rt-amd64/build/Makefile and replace.:

VERSION = 3
PATCHLEVEL = 2
SUBLEVEL = 0
EXTRAVERSION = -3-rt-amd64


# Then continue: aptitude -y install build-essential gcc-multilib automake autoconf libtool flex bison sqlite3 libsqlite3-dev libncurses5-dev cd /usr/src


# curl -O ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.5.27.tgz curl -O ftp://ftp.sangoma.com/linux/custom/3.5/wanpipe-3.5.27.5.tgz tar xzf wanpipe-3.5.27.5.tgz cd wanpipe-3.5.27.5/
./Setup builddeb –64bit_4GB –no_woomera

Screenshot

root@ss7-gw2:/usr/src/wanpipe-3.5.27# ./Setup builddeb –64bit_4GB –no_woomera

Installing modules for kernel: 3.2.0-3-rt-amd64 !


———————————————————-

            WANPIPE v3.5.27.5 Installation Script
      Copyright (c) 1995-2012, Sangoma Technologies Inc.
  ----------------------------------------------------------


WANPIPE DEB BUILD
Wanpipe DEB will be build based on the following Environment variables.

   
  1. Linux Source Dir  : /lib/modules/3.2.0-3-rt-amd64/build


2. Linux Source Name : 3.2.0-3-rt-amd64
3. Current Image Name: 3.2.0-3-rt-amd64

  
  4. CPU Type          : x86_64
  
  5. Wan Protocols     : FR-CHDLC-PPP-MFR-MPROT-X25-AFT_TE1-AFT_TE3
  
  6. Build Directory   : /usr/src/wanpipe-3.5.27.5/debbuild 


Would you like to build WANPIPE DEB ? (y/n) y

Installation of the driver

dpkg -i –force-overwrite wanpipe_35275-k320-3-rt-amd64_x86_64.deb

Test


/usr/sbin/wanrouter hwprobe
——————————-| | Wanpipe Hardware Probe Info | | -------------------------------| | 1 . AFT-A104-SH : SLOT=4 : BUS=5 : IRQ=11 : CPU=A : PORT=1 : HWEC=128 : V=43| | 2 . AFT-A104-SH : SLOT=4 : BUS=5 : IRQ=11 : CPU=A : PORT=2 : HWEC=128 : V=43| | 3 . AFT-A104-SH : SLOT=4 : BUS=5 : IRQ=11 : CPU=A : PORT=3 : HWEC=128 : V=43| | 4 . AFT-A104-SH : SLOT=4 : BUS=5 : IRQ=11 : CPU=A : PORT=4 : HWEC=128 : V=43| |Sangoma Card Count: A104=1 | |(Notice firmware revision is 4.3.)|

Update firmware

root@ss7-gw2:/etc/wanpipe/firmware/wan_aftup# **./update_aft_firm.sh **

Warning: Wanpipe modules loaded
         Please remove wanpipe modules from the kernel

         eg: wanrouter stop

root@ss7-gw2:/etc/wanpipe/firmware/wan_aftup# **wanrouter stop**

ERROR: Wanpipe configuration file not found:
               /etc/wanpipe/wanpipe1.conf

No devices running, Unloading Modules
root@ss7-gw2:/etc/wanpipe/firmware/wan_aftup# **./update_aft_firm.sh **
modprobe wan_aften  > /dev/null
AFT card enabled

Sangoma AFT Series card update flash software (version 1.9)

Sangoma AFT card list:
 w1g1: AFT-A104-SH : SLOT=4 : BUS=5 : IRQ=32 : CPU=A : PORT=1 : HWEC=128 : V=43 (Ver.43)

Please select card interface [def=w1g1; q=exit] > **w1g1**

List of available versions: 
     Version no. 43 (filename=A104dm_0100_V43.BIN)
     Version no. 44 (filename=A104dm_0100_V44.BIN)
Please specify version number [def=44; q=exit] > **44**

w1g1: Current Sangoma Flash: Revision=43 ID=0x205B
    Erasing sectors                Passed
    Updating flash                Passed
    Verification                Passed
w1g1: Sangoma Flash update            DONE

w1g1: Reloading Sangoma flash        DONE
w1g1: Restore PCI registers            DONE
w1g1: Sangoma Flash updated successfully

modprobe -r wan_aften
AFT card disabled

Configuring Wanpipe

http://wiki.sangoma.com/wanpipe-linux-yate-configuration (uses wpchan) (but I guess the comment on MTU/MRU for bearer channels still applies? MTU/MRU=2400 → 10ms for 30 channels)

http://www.sangoma.com/assets/docs/misc/2008_09_18_Conferencing_with_Sangoma_Wanpipe.pdf

All Yate docs for ysgichan / ss7 indicate that wpcard should be used; the Sangoma doc therefor would suggest: Config Wanpipe

(Issues I had:

  1. wancfg sets Rx Level to 360 = 36dB?!)
  2. MTU/MRU depends on the number of channels )

Also make sure to set the UDP Debugging port to 0.

Use dmesg to see the errors logged by the driver.

Operations

Once the ports are up, wanpipemon -g is very useful.