From owner-freebsd-questions@FreeBSD.ORG Tue Nov 21 21:43:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B765116A505 for ; Tue, 21 Nov 2006 21:43:05 +0000 (UTC) (envelope-from jvk-list@thekrafts.org) Received: from smtpout15-02.prod.mesa1.secureserver.net (smtpout15-02.prod.mesa1.secureserver.net [68.178.232.10]) by mx1.FreeBSD.org (Postfix) with SMTP id 48CC443D9C for ; Tue, 21 Nov 2006 21:42:27 +0000 (GMT) (envelope-from jvk-list@thekrafts.org) Received: (qmail 17699 invoked from network); 21 Nov 2006 21:42:45 -0000 Received: from unknown (HELO gem-wbe30.prod.mesa1.secureserver.net) (64.202.189.164) by smtpout15-02.prod.mesa1.secureserver.net with SMTP; 21 Nov 2006 21:42:45 -0000 Received: (qmail 11551 invoked by uid 99); 21 Nov 2006 21:42:44 -0000 Date: Tue, 21 Nov 2006 14:42:44 -0700 From: jvk-list@thekrafts.org To: "Wood,Russell" Message-ID: <20061121144244.10b6271f30786ad7adcc9756bb6c2f30.bc73805163.wbe@email.secureserver.net> User-Agent: Web-Based Email 4.8.16 X-Originating-IP: 153.26.176.34 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: RE: Xircom XE2000 card problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2006 21:43:05 -0000 -------- Original Message -------- Subject: RE: Xircom XE2000 card problem From: "Wood, Russell" Date: Mon, November 20, 2006 9:53 pm To: Cc: > -----Original Message----- > From: jvk-list@thekrafts.org [mailto:jvk-list@thekrafts.org] > Sent: Tuesday, 21 November 2006 12:40 PM > To: Wood, Russell > Cc: freebsd-questions@freebsd.org > Subject: RE: Xircom XE2000 card problem > > > > Try: > > > kldunload if_ed > > kldload if_xe > > > ... and see if it detects to card. > > kldunload complained: > kldunload: can't find file if_ed: No such file or directory > > and kldload: > module_register: module pccard/xe already exists! > Module pccard/xe failed to register: 17 > > Do I need to rebuild a kernel without ed or xe first and then try to > load them dynamically? > > Joe. > If_ed is probably compiled into your kernel so you can't unload. So yeah, try to recompile with that out. Regards, Russell Wood Thanks for your time in helping me work through this. If nothing else I'm learning something about how the driver system works in FreeBSD... I recompiled the kernel without either ed(4) or xe and loaded them one by one. Loading xe did nothing, loading ed again gave the "device_attach: ed1 attach returned 6" messege. Guess I expected that. I'm still convinced it should be supported by the xe driver though, unless anyone can tell me that for sure it isn't. I've looked through the man pages for NetBSD, OpenBSD and Linux and they all appear to use the same driver for the xe2000 as for the other xircom cards listed in the FreeBSD man page for xe. Where does the magic of matching a driver to a card happen? The card with the ed(4) driver attaches to the pccard0 device, which makes sense. I'm pretty sure it's a 16bit card not one supported by cardbus. Also do you know where the "attach returned 6" message is generated? I'm curious to know what condition causes it, but I can't find it in the source. I assume it's in the device attach function but I'm not finding it. Maybe I'm blind. Thanks again for helping out, Joe Kraft