From owner-freebsd-arch@FreeBSD.ORG Thu Mar 16 14:00:46 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DBC416A439 for ; Thu, 16 Mar 2006 14:00:46 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8404243D5A for ; Thu, 16 Mar 2006 14:00:42 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k2GE0ciZ045961; Thu, 16 Mar 2006 09:00:38 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Lila Date: Thu, 16 Mar 2006 09:00:36 -0500 User-Agent: KMail/1.8.3 References: <44140E09.3000203@aruba.it> <200603150847.29175.jhb@freebsd.org> <44194122.2010100@aruba.it> In-Reply-To: <44194122.2010100@aruba.it> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200603160900.37266.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1335/Wed Mar 15 23:58:43 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-3.5 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: freebsd-arch@freebsd.org Subject: Re: Neteasy DRP-32TXD ethernet problems on FreeBSD 6.0 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2006 14:00:46 -0000 On Thursday 16 March 2006 05:42 am, Lila wrote: > John Baldwin ha scritto: > > Patching the module should be fine. Can you provide the output of dmesg > > after you have kldloaded the module? Also, did the patch apply cleanly > > or where there any rejects? And, what version are you testing this on? > > I finally managed to build and install my kernel with patched drivers. > I'm working with FreeBSD 6.0-out-of-the-box (waiting for ethernet before > I can > Patch applied with no problem to both files. > I'm sorry but my kernel with no ethernet was unstable, so I could not > get a dmesg when I kloaded if_de (it only worked once...) > Now the output when I insert my etherenet card (or I boot with card > inserted) is this: > > TUPLE: LINKTARGET [3]: 43 49 53 > Manufacturer ID: d11302ab > Functions: Network Adaptor, Memory > Function Extension: 0102 > Function Extension: 0280969800 > Function Extension: 0200e1f505 > Function Extension: 0301 > Product version: 5.0 > Product name: Neteasy | DRP-32TXD Cardbus PC Card | V1.0 | | > TUPLE: Unknown(0x04) [6]: 03 01 2a 00 00 00 > cardbus0: Opening BAR: type=3DIO, bar=3D10, len=3D0100 > cardbus0: Opening BAR: type=3DMEM, bar=3D14, len=3D0400 > CIS reading done > cardbus0: Non-prefetchable memory at 88000000-880003ff > cardbus0: IO port at 1000-10ff > found-> vendor=3D0x1186, dev=3D0x1561, revid=3D0x11 > bus=3D2, slot=3D0, func=3D0 > class=3D02-00-00, hdrtype=3D0x00, mfdev=3D0 > cmdreg=3D0x0000, statreg=3D0x0290, cachelnsz=3D8 (dwords) > lattimer=3D0xa8 (5040 ns), mingnt=3D0xff (63750 ns), maxlat=3D0xff (6375= 0 ns) > intpin=3Da, irq=3D10 > powerspec 2 supports D0 D1 D2 D3 current D0 > dc0: port 0x1000-0x10ff mem > 0x88000000-0x880003ff irq 10 at device 0.0 on cardbus0 > dc0: MII without any PHY! > device_attach: dc0 attach returned 6 > > I'm googling the "MII without any PHY" problem but haven't found a > solution right now. > thanks a lot for your attention. > Lila I think I see it. In the Linux driver they treat all the ADMTek cards the same (as COMET). In dc(4), the ADMTek cards are split into two classes: the AL981 and the AN985. All the extra rebadge IDs are for the AN985, but I treated your card as an AL981 when it is probably an AN985. I just updated the patch at=20 http://www.FreeBSD.org/~jhb/patches/drp-32txd.patch. Please try the newer= =20 patch and let me know if it works. Thanks! =2D-=20 John Baldwin =C2=A0<>< =C2=A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =C2=A0=3D =C2=A0http://www.FreeBSD.org