Sangoma A101 not detected **Resolved**

artluke
Posts: 10
Member Since:
2006-06-19

Here's what I'vd done so far:

Fresh install of TrixBox 1.0
followed step-by-step instructions at:
http://sangoma.editme.com/wanpipe-linux-asterisk-atHome
in adition, I downloaded the latest zaptel code, put it under /usr/src/zaptel. I also fixed the known bug with spinlock.h

Anyway, when I get to the end of step 3 in the guide, after issuing the command: 'wanrouter hwprobe' i get the following error:

FATAL: Error inserting wanpipe (/lib/modules/2.6.9-34.EL/kernel/drivers/net/wan/wanpipe.ko): No such device

Then, if I run the wanrouter hwprobe command a second time, I get:
-------------------------------
| Wanpipe Hardware Probe Info |
-------------------------------

Card Cnt: S508=0 S514X=0 S518=0 A101-2=0 A104=0 A300=0 A200=0 A108=0

Thanks in advance! I'm starting to feel bad for the wall I've been banging my head against!

****************************************************

Here's the output from lspci -v:

01:09.0 VGA compatible controller: Sangoma Technologies Corp.: Unknown device 0300 (rev 2b) (prog-if 19)
Subsystem: Unknown device 0008:0000
Flags: medium devsel
BIST result: 02
Memory at ee3ffc00 (32-bit, non-prefetchable) [disabled] [size=1K]
Memory at 1f800400 (32-bit, prefetchable) [disabled] [size=1K]
Memory at (32-bit, prefetchable) [disabled]

************************************************

lsmod:
Module Size Used by
wanrouter 35400 0
sdladrv 45308 1 wanrouter
md5 4033 1
ipv6 235137 12
autofs4 24773 0
i2c_dev 11329 0
i2c_core 22081 1 i2c_dev
sunrpc 162725 1
ztdummy 3924 0
zaptel 207876 3 ztdummy
crc_ccitt 2113 1 zaptel
dm_mirror 27825 0
dm_mod 57557 1 dm_mirror
joydev 10241 0
button 6481 0
battery 8901 0
ac 4805 0
uhci_hcd 31065 0
ehci_hcd 30916 0
snd_intel8x0 33897 0
snd_ac97_codec 63889 1 snd_intel8x0
snd_pcm_oss 49017 0
snd_mixer_oss 17985 1 snd_pcm_oss
snd_pcm 96841 2 snd_intel8x0,snd_pcm_oss
snd_timer 29893 1 snd_pcm
snd_page_alloc 9673 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 8769 1 snd_intel8x0
snd_rawmidi 26597 1 snd_mpu401_uart
snd_seq_device 8137 1 snd_rawmidi
snd 55461 9 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 9889 1 snd
e100 41793 0
mii 5185 1 e100
floppy 58481 0
ext3 116809 2
jbd 71385 1 ext3
ata_piix 9413 3
libata 56477 1 ata_piix
sd_mod 17217 4
scsi_mod 121933 2 libata,sd_mod

************************************************

[root@asterisk1 wanpipe]# cat /proc/zaptel/*
Span 1: ZTDUMMY/1 "ZTDUMMY/1 1"

***************************************************

[root@asterisk1 wanpipe]# cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Class 0600: PCI device 8086:2570 (rev 2).
Prefetchable 32 bit memory at 0xfe800000 [0xfebfffff].
Bus 0, device 2, function 0:
Class 0300: PCI device 8086:2572 (rev 2).
IRQ 10.
Prefetchable 32 bit memory at 0xf0000000 [0xf7ffffff].
Non-prefetchable 32 bit memory at 0xfe780000 [0xfe7fffff].
I/O at 0xefe0 [0xefe7].
Bus 0, device 29, function 0:
Class 0c03: PCI device 8086:24d2 (rev 2).
IRQ 10.
I/O at 0xef00 [0xef1f].
Bus 0, device 29, function 1:
Class 0c03: PCI device 8086:24d4 (rev 2).
IRQ 5.
I/O at 0xef20 [0xef3f].
Bus 0, device 29, function 2:
Class 0c03: PCI device 8086:24d7 (rev 2).
IRQ 5.
I/O at 0xef40 [0xef5f].
Bus 0, device 29, function 3:
Class 0c03: PCI device 8086:24de (rev 2).
IRQ 10.
I/O at 0xef80 [0xef9f].
Bus 0, device 29, function 7:
Class 0c03: PCI device 8086:24dd (rev 2).
IRQ 11.
Non-prefetchable 32 bit memory at 0xfe77bc00 [0xfe77bfff].
Bus 0, device 30, function 0:
Class 0604: PCI device 8086:244e (rev 194).
Master Capable. No bursts. Min Gnt=2.
Bus 0, device 31, function 0:
Class 0601: PCI device 8086:24d0 (rev 2).
Bus 0, device 31, function 1:
Class 0101: PCI device 8086:24db (rev 2).
IRQ 5.
I/O at 0xfc00 [0xfc0f].
Non-prefetchable 32 bit memory at 0x1f800000 [0x1f8003ff].
Bus 0, device 31, function 2:
Class 0101: PCI device 8086:24d1 (rev 2).
IRQ 5.
I/O at 0xefa8 [0xefaf].
I/O at 0xefa4 [0xefa7].
I/O at 0xef68 [0xef6f].
I/O at 0xefa0 [0xefa3].
I/O at 0xeed0 [0xeedf].
Bus 0, device 31, function 3:
Class 0c05: PCI device 8086:24d3 (rev 2).
IRQ 11.
I/O at 0x400 [0x41f].
Bus 0, device 31, function 5:
Class 0401: PCI device 8086:24d5 (rev 2).
IRQ 11.
I/O at 0xe800 [0xe8ff].
I/O at 0xee80 [0xeebf].
Non-prefetchable 32 bit memory at 0xfe77b800 [0xfe77b9ff].
Non-prefetchable 32 bit memory at 0xfe77b400 [0xfe77b4ff].
Bus 1, device 8, function 0:
Class 0200: PCI device 8086:1050 (rev 2).
IRQ 11.
Master Capable. Latency=64. Min Gnt=8.Max Lat=56.
Non-prefetchable 32 bit memory at 0xfe5ef000 [0xfe5effff].
I/O at 0xdf00 [0xdf3f].
Bus 1, device 9, function 0:
Class 0300: PCI device 1923:0300 (rev 43).
Non-prefetchable 32 bit memory at 0xee3ffc00 [0xee3fffff].
Prefetchable 32 bit memory at 0x1f800400 [0x1f8007ff].

--

When the going gets tough, the tough sniff packets.



wvroger
Posts: 29
Member Since:
2006-06-02
Re: Sangoma A101 not detected

did you do the yum update or trix-box.sh update ?

--

*************
Trixbox 1.2
16 - TB deployed
20 - Sangoma T-1 card (pri)
1984 extensions
8 extensions - cisco ata-186's
Gafachi - Long Distance VOIP Outbound
Freeworld-dialup - directory assistance & toll free



artluke
Posts: 10
Member Since:
2006-06-19
Re: Sangoma A101 not detected

Nope. The only thing I updated with yum is the gcc-c++ per instructions from the Sangoma wiki.

--

When the going gets tough, the tough sniff packets.



rquick
Posts: 92
Member Since:
2006-06-07
Re: Sangoma A101 not detected

Did you correct the HOTPLUG file so that it will not conflict with wanpipe?

Here is the link on this topic loctated on the Sangoma wiki:

http://sangoma.editme.com/wanpipe-linux-asterisk-appendix#hotplug

Let me know if this helps.

Randy

--

Randy Quick
rquick@thcs.org



artluke
Posts: 10
Member Since:
2006-06-19
Re: Sangoma A101 not detected

Thanks, yeah, I checked that out, and the strange thing is that there is no 'hotplug' script under /etc/init.d/

[root@asterisk1 ~]# cd /etc/init.d
[root@asterisk1 init.d]# ls
acpid dund killall nfslock saslauthd
anacron ez-ipupdate kudzu nscd sendmail
apmd functions lm_sensors ntpd single
asterisk gpm mdmonitor pand smartd
atd haldaemon mdmpd pcmcia sshd
auditd halt messagebus portmap syslog
autofs hidd microcode_ctl psacct vsftpd
bluetooth httpd mysqld rawdevices wanrouter
cpuspeed ipmi netdump readahead xinetd
crond iptables netfs readahead_early xplhub
cups ircd netplugd rhnsd ypbind
dhcpd irda network rpcgssd yum
dhcrelay irqbalance NetworkManager rpcidmapd
diskdump isdn nfs rpcsvcgssd

I've already tried making the modifications in the link you sent me then rebooting, and still no luck. If you know a way to disable hotplug altogether, I'd love to give that a try, I can't seem to figure it out. I even tried removing the RPM, but there are dependency issues with that...

--

When the going gets tough, the tough sniff packets.



rquick
Posts: 92
Member Since:
2006-06-07
Re: Sangoma A101 not detected

I would not recommend uninstalling it. When I installed my sangoma card I followed the instructions on the Hotplug config for wanpipe reinstalled the driver, and updated the startup script according to:

http://sangoma.editme.com/wanpipe-linux-asterisk-appendix#startSc...

Make sure that is done or wanpipe won't start per my experience.

Once all this is done type #>wancfg and setup a wanpipe1 configuration.

Then reboot and see if the system sees the card.

Let me know if this helps.

Randy

--

Randy Quick
rquick@thcs.org



artluke
Posts: 10
Member Since:
2006-06-19
Re: Sangoma A101 not detected

Well, thanks for the reply, unfortunately that still didn't work. Is this what you have for your /etc/hotplug/net.agent config?

I made that change, added the start script and re-built wanpipe using ./Setup install --protocol=TDM and still get the same error with wanrouter hwprobe. If I run wancfg it does not detect the card, and won't let me generate a wanpipe1 config...

[root@asterisk1 ~]# cat /etc/hotplug/net.agent
#!/bin/sh
#
# Network hotplug policy agent for Linux 2.4 kernels
#
# Kernel NET hotplug params include:
#
# ACTION=%s [register or unregister]
# INTERFACE=%s
#
# HISTORY:
#
# 25-Feb-2001 Special case ppp and similar (redhat)
# 23-Jan-2001 Log invocation of "ifup" if debugging
# 04-Jan-2001 Initial version of "new" hotplug agent.
#
# $Id: net.agent,v 1.20 2004/04/01 08:13:57 kroah Exp $
#

cd /etc/hotplug
. /etc/sysconfig/network-scripts/network-functions
. ./hotplug.functions
# DEBUG=yes export DEBUG

if [ "$INTERFACE" = "" ]; then
mesg Bad NET invocation: \$INTERFACE is not set
exit 1
fi

case $ACTION in
add|register)
# Red Hat specific hack...
if [ -f /etc/redhat-release ]; then
# Don't do anything if the network is stopped
if [ ! -f /var/lock/subsys/network ]; then
exit 0
fi
fi

case $INTERFACE in
# interfaces that are registered after being "up" (?)
ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|w*)
debug_mesg assuming $INTERFACE is already up
exit 0
;;
# interfaces that are registered then brought up
*)
# NOTE: network configuration relies on administered state,
# we can't do much here without distro-specific knowledge
# such as whether/how to invoke DHCP, set up bridging, etc.

# Run ifrename as needed - Jean II
# Remap interface names based on MAC address. This workaround
# the dreaded configuration problem "all my cards are 'eth0'"...
# This needs to be done before ifup otherwise ifup will get
# confused by the name changed and because iface need to be
# down to change its name.
if [ -x /sbin/ifrename ] && [ -r /etc/iftab ]; then
debug_mesg invoke ifrename for $INTERFACE
NEWNAME=`/sbin/ifrename -i $INTERFACE`
if [ -n "$NEWNAME" ]; then
debug_mesg iface $INTERFACE is remapped to $NEWNAME
INTERFACE=$NEWNAME
fi;
fi

# RedHat and similar
export IN_HOTPLUG=1
if [ -x /sbin/ifup ]; then
addr=`get_hwaddr ${INTERFACE}`
if [ -n "$addr" ]; then
nconfig=`get_config_by_hwaddr ${addr}`
[ -n "$nconfig" ] && INTERFACE=$nconfig
fi
debug_mesg invoke ifup $INTERFACE
exec /sbin/ifup $INTERFACE

# Gentoo
elif [ -f /etc/gentoo-release ]; then
script=/etc/init.d/net.$INTERFACE
if [ -x "$script" ]; then
debug_mesg invoke "$script" --quiet start
exec "$script" --quiet start
fi
else
mesg "how do I bring interfaces up on this distro?"
fi
;;
esac
mesg $1 $ACTION event not handled
;;

remove|unregister)
case $INTERFACE in
# interfaces that are unregistered after being "down" (?)
ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|w*)
debug_mesg assuming $INTERFACE is already down
exit 0
;;
*)
# right now it looks like only Gentoo wants to care about
# unregistering network devices...
if [ -f /etc/gentoo-release ]; then
script=/etc/init.d/net.$INTERFACE
if [ -x "$script" ]; then
debug_mesg invoke "$script" --quiet stop
exec "$script" --quiet stop
fi
fi
;;
esac
mesg $1 $ACTION event not handled
;;

*)
debug_mesg NET $ACTION event for $INTERFACE not supported
exit 1 ;;

esac

--

When the going gets tough, the tough sniff packets.



rquick
Posts: 92
Member Since:
2006-06-07
Re: Sangoma A101 not detected

Well,

I'm at a loss. The only difference in I put w* closer to the front:

ppp*|w*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*)

When the system is booting do you get the error that wanpipe failed to initiate?

Do you get an error after installing the driver that says:

Error: Zaptel recompilation/reinstallation failed
See /usr/src/wanpipe/zaptel_compilation_log for details
Contact Sangoma Tech Support

If all else fails call sangoma support. They don't have all the answers, but do have most of them.

Randy

--

Randy Quick
rquick@thcs.org



artluke
Posts: 10
Member Since:
2006-06-19
Re: Sangoma A101 not detected

Yes, I do get the error on startup, but not the one you listed after installing the driver.

Well, thanks so much for your advice. I've contacted Sangoma support, and they replied saying that the lspci output looks wrong. So, maybe it's a hardware problem.... The sangoma card is showing up as a VGA adaptor on my system, and it should be showing up as a network adaptor... I wonder if it's the riser card mucking things up....

--

When the going gets tough, the tough sniff packets.



RoadKill
Posts: 233
Member Since:
2006-05-31
Re: Sangoma A101 not detected

Hi,

can you try post

lspci -n -m -s 01:09.0
lspci -vv -s 01:09.0

as that will show the pci information

--

Mark Petersen

ISDN: Billion HFC, OctoBRI HFC-8
SIP: Snom 3X0, Snom820, Cisco 7941, Linksys PAP2, PerfecTone IP-300
DECT: KWS 600v3, KWS 300
Asterisk: 1.2, 1.4, 1.6.0, 1.6.1 (150 servers)



phoneguy30
Posts: 11
Member Since:
2006-06-09
Re: Sangoma A101 not detected

I couldn't use any of the Sangoma cards with my Riser cards. I ended up buying a different rackmount case that didn't use the riser card. I lost a U of space though in the rack.



artluke
Posts: 10
Member Since:
2006-06-19
Re: Sangoma A101 not detected

Ok, well, I did change slots since the last time, so here's the result:

01:0b.0 VGA compatible controller: Sangoma Technologies Corp.: Unknown device 0300 (rev 2b)

[root@asterisk1 ~]# lspci -n -m -s 01:0b.0
01:0b.0 "Class 0300" "1923" "0300" -r2b -p19 "0008" "0000"

[root@asterisk1 ~]# lspci -vv -s 01:0b.0
01:0b.0 VGA compatible controller: Sangoma Technologies Corp.: Unknown device 0300 (rev 2b) (prog-if 19)
Subsystem: Unknown device 0008:0000
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- BIST result: 02
Region 0: Memory at ee3ffc00 (32-bit, non-prefetchable) [disabled] [size=1K]
Region 2: Memory at 1f800400 (32-bit, prefetchable) [disabled] [size=1K]
Region 3: Memory at (32-bit, prefetchable) [disabled]

--

When the going gets tough, the tough sniff packets.



artluke
Posts: 10
Member Since:
2006-06-19
Re: Sangoma A101 not detected

That's frustrating. Rack cases aren't cheap, either. Did you try any other riser cards first? Did you have similar errors to what I'm getting? Coming up as a VGA controller?

--

When the going gets tough, the tough sniff packets.



artluke
Posts: 10
Member Since:
2006-06-19
Re: Sangoma A101 not detected

Well, I fingered it out. Thanks for all the replies, especially phoneguy with the heads up about the riser card. That was the problem all along. I actually hacked it a bit, and just took out the two screws on the metal thingy that holds the PCI card in place. Created my own 'low-profile' A101. Then, after another fresh TrixBox install, spinlock.h fix, hotplug fix, zaptel code download, the Sangoma instructions worked and the card is detected. Woohoo!!!

--

When the going gets tough, the tough sniff packets.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.