From owner-freebsd-wireless@FreeBSD.ORG Mon Aug 1 03:01:47 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8618B1065674 for ; Mon, 1 Aug 2011 03:01:47 +0000 (UTC) (envelope-from richo@psych0tik.net) Received: from bedford.accountservergroup.com (bedford.accountservergroup.com [50.22.11.19]) by mx1.freebsd.org (Postfix) with ESMTP id 4FD6F8FC0A for ; Mon, 1 Aug 2011 03:01:47 +0000 (UTC) Received: from boxand.lnk.telstra.net ([203.45.130.125] helo=richh-desktop.boxdice.com.au) by bedford.accountservergroup.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1QnilG-001Mvu-3o; Sun, 31 Jul 2011 22:01:46 -0500 Date: Mon, 1 Aug 2011 13:01:41 +1000 From: richo To: Adrian Chadd Message-ID: <20110801030140.GA31782@richh-desktop.boxdice.com.au> References: <20110801005639.GB20219@richh-desktop.boxdice.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://natalya.psych0tik.net/~richo/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bedford.accountservergroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - psych0tik.net X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-wireless@freebsd.org Subject: Re: Ath works as module, not inkernel X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2011 03:01:47 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 01/08/11 10:08 +0800, Adrian Chadd wrote: >Hi, > >On 1 August 2011 08:56, richo wrote: >> A while ago I posted with some issues with ath on 9.0-CURRENT, which were >> fixed by a patch someone posted to the list. >> >> A few weeks later, ath broke again and neither a vanilla kernel nor one = with >> the patch worked, complaining of errors attaching HAL. Googling the terms >> turned up only results from 2008. >> >> I didn't have time to look into it so I ignored it, figuring that it wou= ld >> be >> fixed in due course and that I'd pull when I had time. > >Well, if noone reported the issue and noone chases the issue up, it's >not likely to get magically fixed by itself. :) > This is true. I surmised that either the issue was widespread and so it'd g= et reported, or it was just me and probably self-inflicted ;) I realise that if everyone thinks someone else will report it, it never gets reported though. >> Over the weekend I spent some time on the problem, and it appeared that >> building ath support into the kernel was the issue, my config with >> >>> device ath >>> device ath_pci >>> device ath_hal >> >> (Apologies if that's not spelled correctly, I'm not actually in front of= the >> machine) >> >> Doesn't load, however if I removed MODULES_OVERRIDE from make.conf and t= ry >> to >> load those modules, I'm told that it's already in the kernel. >> >> I also built GENERIC from the config in SVN and no luck. >> >> Finally, I removed those device lines from my config, built with all mod= ules >> and enabled load_ath and load_ath_pci in loader.conf and wireless now wo= rks >> flawlessly. >> >> I'm now curious about why- and what I can do to know how to chase this up >> myself next time. > >Well, can you please post boot messages, including the HAL load >failure information? > >This isn't the first time I've heard about strange issues like this; >it almost always boils down to something strange in PCI/ACPI handling. I did some more reading about FreeBSD's wireless support just now, it looks like maybe a missing=20 device wlan could be the issue, however I'll build a kernel with the broken config tonight and posts boot info. IIRC it's hal attach returned 6, and another error 3. I went looking for th= em in sys/dev/ath/ath_hal/ah.h but couldn't work out what I was looking for (Very new to kernel dev, in case you'd not guessed :] ) Thanks, Rich --=20 richo || Today's excuse:=20 Packet held up at customs. --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJONhcUAAoJEIKiWz6J5yQVh8oH/RTfogj3KZiqfBpFORtSg4jm SQ0yX/mWpca83muKz5p04F3+EEqb0L5Q0yzzFm7ZmlhZ//kHCeUQvNEOBpTIgX8k YmOYF6mll7tVewyg9bBwgi4CHBDeIKJQ7jmwnDxjQH4dAp0DCx3b9w/lvV9TcBwy vzLoGvWclqoQcrtnYZsJ1FyiUWe37V2gtfPLdvkiQoBPHlGMn2e62RsK6T5Hn4Sz iTw3mwHR8jqqIrqdFgZb1MWMfm4RAPmT1xK+LdnGc5VVwj3Qwwr7so/mGD/V+X/y +mr44o/DzEpLc5UqM+mHlTub3vC5WfnMvQDCrP4WR/TnijLl3o1QwXRONW3OaYQ= =joSQ -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--