From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 3 18:31:54 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E24C16A418 for ; Sat, 3 Nov 2007 18:31:54 +0000 (UTC) (envelope-from stsp@stsp.name) Received: from fallback-mx.in-berlin.de (fallback-mx.in-berlin.de [192.109.42.17]) by mx1.freebsd.org (Postfix) with ESMTP id CE67013C4AC for ; Sat, 3 Nov 2007 18:31:53 +0000 (UTC) (envelope-from stsp@stsp.name) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by fallback-mx.in-berlin.de (8.14.1/8.13.6/Debian-1) with ESMTP id lA3FlRYo023740 for ; Sat, 3 Nov 2007 16:47:27 +0100 X-Envelope-From: stsp@stsp.name Received: from stsp.lan (stsp.in-vpn.de [217.197.85.96]) (authenticated bits=128) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id lA3Fl6iQ004062 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 3 Nov 2007 16:47:07 +0100 Received: from ted.stsp.lan (localhost [127.0.0.1]) by stsp.lan (8.13.8/8.13.8) with ESMTP id lA3Fl6tN005769; Sat, 3 Nov 2007 16:47:06 +0100 (CET) (envelope-from stsp@ted.stsp.lan) Received: (from stsp@localhost) by ted.stsp.lan (8.13.8/8.13.8/Submit) id lA3Fl5xl005768; Sat, 3 Nov 2007 16:47:05 +0100 (CET) (envelope-from stsp) Date: Sat, 3 Nov 2007 16:47:05 +0100 From: Stefan Sperling To: M E Message-ID: <20071103154705.GA5370@ted.stsp.lan> References: <7c78e14d0711021916u1b07aad6lebb16afadc3faac@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <7c78e14d0711021916u1b07aad6lebb16afadc3faac@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Cc: hackers@freebsd.org Subject: Re: WOL not working with 3Com NIC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2007 18:31:54 -0000 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 02, 2007 at 09:16:59PM -0500, M E wrote: > Hello Stefan, Hello, I'm Cc'ing hackers@ in my reply to your mail so people can overhear this conversation. It would be great to get some help. > I am able to get "will wake on: magic", when typing "ifconfig" in > FreeNAS (built on FreeBSD); however, I am still unable to wake up the > box. I know that xl does not work yet. The driver hears you requesting WOL and internally makes a note to configure WOL at shutdown time. But configuring the device for WOL does not work correctly for some reason. I haven't yet figured out what exactly the problem is, even with looking at the specs. > The NIC is a 3Com EtherLink > XL 10/100 PCI For Complete PC Management NIC (3C905C-TX). I've found 3 spare ones of those at uni I could bring home to test with. There have been requests for fxp (Intel) support, too, and by accident I also found one of those cards at uni in a spare server no one was using. But the hard disk in my development box is dying, I have to get it replaced. And my desktop got a new motherboard a while ago. The old one had bad capacitors, it was totally unstable so I returned it. I only later realised that the new one has no WOL connector! Doh! So now I finally have some cards, but no hardware to use them with. It used to be the other way around for like a year or more. Meh :-/ I need to find some time to buy a disk and set up my dev box again before I can continue working on this. > Do you have any sugestions? My free time is scarce at the moment. More eyes and brains to throw at the problem would really, really help. There are data sheets for 3com cards at http://people.freebsd.org/~wpaul/3C= om/ If someone found something obviously wrong in the xl_enable_wol() routine it would help an awful lot. I already went over it twice but I cannot find the error. It could also be something else the driver is doing behind my back that prevents WOL from working. I'm not experienced enough in device drivers to really understand all the subtleties of the whole thing. For those who don't know, the WOL patch is here: http://stsp.name/wol/ --=20 stefan http://stsp.name PGP Key: 0xF59D25F0 --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHLJf55dMCc/WdJfARAgbPAKCPRbpoNqVSZ5t+XaOLzaLyQQH+9gCg8RL3 Tvr1/GIma2bsFufg4CyZ+Cw= =Sizg -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--