From owner-freebsd-current@FreeBSD.ORG Mon Jun 6 13:34:53 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9496E16A41C for ; Mon, 6 Jun 2005 13:34:53 +0000 (GMT) (envelope-from bms@spc.org) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39F7A43D5C for ; Mon, 6 Jun 2005 13:34:52 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 2AA0665219; Mon, 6 Jun 2005 14:32:45 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 95487-01; Mon, 6 Jun 2005 14:32:44 +0100 (BST) Received: from empiric.dek.spc.org (host81-134-123-217.in-addr.btopenworld.com [81.134.123.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id DEC296520E; Mon, 6 Jun 2005 14:32:36 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 4BE8D6266; Mon, 6 Jun 2005 14:34:34 +0100 (BST) Date: Mon, 6 Jun 2005 14:34:34 +0100 From: Bruce M Simpson To: Jeremie Le Hen Message-ID: <20050606133434.GG734@empiric.icir.org> Mail-Followup-To: Jeremie Le Hen , freebsd-current@FreeBSD.org, bana@sitadelle.com References: <20050606131957.GL41050@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20050606131957.GL41050@obiwan.tataz.chchile.org> Cc: freebsd-current@FreeBSD.org, bana@sitadelle.com Subject: Re: Can't get MAC addr of an ed(4) adapter X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2005 13:34:53 -0000 On Mon, Jun 06, 2005 at 03:19:57PM +0200, Jeremie Le Hen wrote: > a friend of mine just upgraded his box from 5.4 to CURRENT. His > ed(4) network adapter used to work when running 5.4 as well as > Windows. Now, the card is recognized (as ed1, not ed0, I still > wonder why since I can't see any resource conflict related message) > but it doesn't have a MAC address. Note that the interface flags > are somewhat weird. My friend tried to use an in-kernel driver as > well as the if_ed module, this is the same. Defining ED_DEBUG > doesn't give more diagnostic about the problem. We can still > assign a MAC address manually, although ATM I still haven't got any > chance to try if the card is really working, but I'll be able to > in a few hours. These cards are real mongrels. I had one about 7 years ago. Horrible. Highly recommend getting rid of it. PCI Realtek 10Mbps, yes? Know them, hate them. I would try removing any device hints from the /boot/device.hints file which begin with 'hint.ed.0' as they are probably misleading, if the actual card is probed as ed1 (although I don't see this in the dmesg output here). Clearly something is going wrong when the driver attempts to read the station address from the onboard PROM. Perhaps something is wrong with it? It's difficult to tell because the cards are mongrels (NE2000 clones abound, and the driver tries to be all things to all people). The PCI attachment code certainly doesn't try to read the station address =66rom Vital Product Data or anything like that, it just calls the generic Novell probe routine. Try recompiling with 'makeoptions ED_DEBUG' in the kernel config file and see what it turns up. Also try the DOS utilities which Realtek used to ship for the 8029 as these can be used to reprogram/verify the Station Address PROM contents. Regards, BMS