[asterisk-users] Ubuntu 8.04 + Astribank

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri May 9 05:00:52 CDT 2008


On Fri, May 09, 2008 at 09:38:04AM +0200, Loic DIDELOT wrote:
> Hello,
> I am sorry to drop in with maybe a dump question. I got my Xorcomm bank
> (8 fxs) and I try to get it working on ubuntu without success. I was
> looking for a step by step instruction which I could not find. I found
> the "insert the CD and now it works manual" but thats not what I am
> looking for.
> 
> So here is what I did:
> - downloaded zaptel 1.4.10, comile and install
> - plug the usb device
> 
> Here is the point where I am lost. So I tried a few things:
>  - zaptel_hardware 
> usb:008/007          xpp_usb-     e4e4:1131 Astribank-8/16 USB-firmware
> 
> - /usr/share/zaptel/xpp_fxloader load
> --------- FIRMWARE LOADING: (load) [1 devices]
> Got all 1 devices
> /usr/sbin/fpga_load: ERROR (487): Wrong number of endpoints: 2

What is that message? I couldn't find it anywhere.

The message "Wrong number of endpoints" from line 487 of fpga_load.c?
Huh?

OK, let's go back a bit:

http://svn.digium.com/view/zaptel/branches/1.4/kernel/xpp/utils/fpga_load.c?r1=2736&r2=3106

This was not part of Zaptel 1.4.10 (.1), so on what version was it
removed?

svn ls -r 3106 http://svn.digium.com/svn/zaptel/tags | grep '^1\.4' | sort -t . -n -k 3 | tail -n 1

This returns "1.4.5.1/" .

So I suspect that the specific "Ubuntu" you use is 7.10, that has Zaptel
1.4.3 . http://packages.ubuntu.com/zaptel 

And why did fpga_load survive from the original package? Maybe you have
not isntalled libusb-dev before building Zaptel?

> /usr/sbin/fpga_load: ERROR (749): Failed to initialize USB device
> '/dev/bus/usb/008/007'
> 'xpp_fxloader'[14506]: FPGA Firmware into /dev/bus/usb/008/007
> /usr/sbin/fpga_load: ERROR (487): Wrong number of endpoints: 2
> /usr/sbin/fpga_load: ERROR (749): Failed to initialize USB device
> '/dev/bus/usb/008/007'
> 'xpp_fxloader'[14513]: /usr/share/zaptel/FPGA_FXS.hex: Version=5480
> Checksum=40245
> [: 259: 0: unexpected operator

Bah. bashism (using PIPE_STATUS).

I think I need to replace it with something of the sort of:

(fpga_load ; echo $? >$status_fd )| $LOGGER
status=`cat <$status_fd`

But I need to test this a bit before commiting.


In the mean time, put the following as the first line of
/usr/share/zaptel/xpp_fxloader: "#!/bin/bash"

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list