From owner-freebsd-ports@FreeBSD.ORG Tue Feb 7 05:50:53 2012 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDD35106566B for ; Tue, 7 Feb 2012 05:50:53 +0000 (UTC) (envelope-from Marcel@innervation.co.za) Received: from v-outbound-01.hmc.mweb.co.za (v-outbound-01.hmc.mweb.co.za [196.28.65.120]) by mx1.freebsd.org (Postfix) with ESMTP id 7FD758FC0A for ; Tue, 7 Feb 2012 05:50:53 +0000 (UTC) Received: from [196.28.65.99] (helo=HMC-HUB1.hmc.local) by v-outbound-01.hmc.mweb.co.za with esmtp (Exim 4.69) id 1Rudx4-0004ZF-UE for ; Tue, 07 Feb 2012 07:50:50 +0200 Received: from HMC-EXVS2.hmc.local ([10.27.45.128]) by HMC-HUB1.hmc.local ([10.27.45.150]) with mapi; Tue, 7 Feb 2012 07:50:44 +0200 From: Marcel Grandemange To: "ports@FreeBSD.org" Date: Tue, 7 Feb 2012 07:52:16 +0200 Thread-Topic: FreeBSD Port: dahdi-kmod-2.4.0rc5_3 Thread-Index: Aczk3ydZtg0NoRlXSoGTk4DtrUvVGgAfVrXg Message-ID: Accept-Language: en-US, en-ZA Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-ZA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: FW: FreeBSD Port: dahdi-kmod-2.4.0rc5_3 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2012 05:50:54 -0000 Good Day I don't know where else to post the question but I have a yeastar TDM800 ca= rd and am trying to setup asterisk on FreeBSD, now the card does not get pi= cked up by the dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1 package. Now I know the package has been ported from the linux one and im sure the l= inux driver can be modded to work with bsd version of dahdi. The "driver" file is easily available as ystdm8xx.c FreeBSD has the package "dahdi-kmod-2.4.0rc5_2 Digium/Asterisk Hardware Dev= ice Interface" for this. Now it is a full port of the Linux dahdi and comes= with the usual standard support for Digium based cards but not the TDM800 = from yeastar. Because it's FreeBSD I cannot follow the instruction for incl= uding ystdm8xx as part of the drivers for DAHDI. However after some digging= I noticed the ystdm8xx.c & wctdm.c are virtually the same and because the = TDM400 is supposed to be FULLY compatible with the digium I'm sure I simply= need to patch a file and I will be on my way. I also tried hacking the current drivers to include the device ID of my car= d to see if that works, tied with both base.c of the wct4xxp driver (Which = IS compatible with yeastar TDM400) and wctdm.c Both returned similar results: dahdi: Telephony Interface Registered on major 196 dahdi: Version: 2.4.0-rc5 wct4xxp0: vendor=3De159 device=3D1 subvendor=3D2151 wct4xxp0: port 0x2000-0x20ff mem 0xe4140= 000-0xe4140fff irq 18 at device 2.0 on pci7 wct4xxp0: Can't allocate memory resource device_attach: wct4xxp0 attach returned 6 pciconf -lv lists my card as: none2@pci0:7:2:0:=A0=A0=A0=A0=A0=A0 class=3D0x028000 card=3D0x00012151 chip= =3D0x0001e159 rev=3D0x00 hdr=3D0x00 =A0=A0=A0 vendor=A0=A0=A0=A0 =3D 'Tiger Jet Network Inc' =A0=A0=A0 device=A0=A0=A0=A0 =3D 'Multiple devices use this ID: General Pur= pose I/O Controller' =A0=A0=A0 class=A0=A0=A0=A0=A0 =3D network I really hope you have a moment to assist me with this.. Regards