From owner-freebsd-mobile@FreeBSD.ORG Wed Nov 29 22:40:37 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C815C16A604 for ; Wed, 29 Nov 2006 22:40:37 +0000 (UTC) (envelope-from scott@fishballoon.org) Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 225B443CBD for ; Wed, 29 Nov 2006 22:40:26 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20061129224056.CXCS27023.mtaout02-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com>; Wed, 29 Nov 2006 22:40:56 +0000 Received: from llama.fishballoon.org ([81.101.128.185]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20061129224025.JFM29112.aamtaout04-winn.ispmail.ntl.com@llama.fishballoon.org>; Wed, 29 Nov 2006 22:40:25 +0000 Received: from tuatara.fishballoon.org ([192.168.1.6]:59975) by llama.fishballoon.org with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GpY6I-0001UT-9O; Wed, 29 Nov 2006 22:40:22 +0000 Received: (from scott@localhost) by tuatara.fishballoon.org (8.13.6/8.13.6/Submit) id kATMeJGF002156; Wed, 29 Nov 2006 22:40:19 GMT (envelope-from scott) Date: Wed, 29 Nov 2006 22:40:19 +0000 From: Scott Mitchell To: jvk-list@thekrafts.org Message-ID: <20061129224019.GA2075@tuatara.fishballoon.org> References: <20061126181039.10b6271f30786ad7adcc9756bb6c2f30.6963f5fd1b.wbe@email.secureserver.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061126181039.10b6271f30786ad7adcc9756bb6c2f30.6963f5fd1b.wbe@email.secureserver.net> X-Operating-System: FreeBSD 6.1-SECURITY i386 User-Agent: Mutt/1.5.11 Cc: freebsd-mobile@freebsd.org Subject: Re: Xircom XE2000 card X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2006 22:40:38 -0000 On Sun, Nov 26, 2006 at 06:10:39PM -0700, jvk-list@thekrafts.org wrote: > > I've taken this about as far as I can, I need someone else with more > knowledge about how the device drivers work to validate and actually > get the issue fixed in the source. Hi Joe, I've come into this thread a bit late and still catching up on everything you went through to get to this point, but it looks like you have got to the solution. Your fix looks reasonable to me - I actually remember testing with a borrowed XE2000 card year or so ago and honestly thought I had already committed at least part of the fix in kern/85266, but apparently not. Anyway, if Warner has no objections I can commit your fix, although it's probably too late to get it into 6.2. Warner, any problem with committing Joe's changes described below? > MY SOLUTION: > The real answer to my problem which was how to get my Xircom XE2000 card > to work with FreeBSD 6.1 took a bit of googleing and digging through the > code. The issue is evidentally that there are at least two incarnations > of the XE2000 card, and as luck would have it the one I had was not > recognized correctly by the xe driver. > > The bottom line is that the card is recognized by the xe driver, but I > had to add entries for it to the pccarddevs file as well as to the xe > driver. > > I apologize for not being able to create normal diffs. With the setup > I'm forced to live with right now, I'm lucky to have e-mail access. I > hope someone can decipher my freeform version, and generate a proper > one so it can be comitted. > > For the first part, src/sys/dev/pccard/pccarddevs must be modified. For > version 1.125, add the following after line 600: > product XIRCOM XE2000_2 0x010a Xircom XE2000 10/100 Ethernet > > The second part is in: src/sys/dev/pccard/if_xe_pccard.c. The current > version is 1.32, add the following after line 125: > { PCMCIA_CARD_D(XIRCOM, XE2000), 0x53, XE_CARD_TYPE_FLAGS_MOHAWK }, > { PCMCIA_CARD_D(XIRCOM, XE2000_2), 0x53, XE_CARD_TYPE_FLAGS_MOHAWK }, > > This is essentially the same change as requested in kern/85266 in the > bugs database, updated slightly for the new format of pccarddevs for > 6.0. > > UNRESOLVED ISSUE: > I'm also a little concerned by the fact that the ed(4) driver tries to > grab the device, I had to build a kernel without ed(4) to get the xe > driver to recognize the card. The ed(4) driver claims to support the TDK CFE-10 card. TDK's vendor ID in pccarddevs is the same as Xircom's (0x0105) and the product ID of the CFE-10 (0x010a) is the same as several Xircom cards, including your XE2000. Did you try your XE2000 against a kernel with xe(4) including your patch, and ed(4)? It looks like ed(4) tries to claim the card but fails to attach it - xe(4) should get a chance to pick it up now it knows about the card. I'll dig through my box of old Xircom cards and see if I can find one with the right product ID to test myself. Thanks for going through all the pain to get this working! Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon