ath: unable to attach hardware; HAL status 3; attach returned 6

M. Warner Losh imp at bsdimp.com
Tue Aug 19 03:37:49 UTC 2008


In message: <a93b1ebb0808131915x72b2e422p27643fda1e03e5ec at mail.gmail.com>
            Ian <ianglenn at gmail.com> writes:
: That sounds like a fairly accurate assessment of the issue.
: 
: The only thing that makes me hesitate is that based on a report I have read
: (http://mjoc.sig.lt/papers/freebsd/vaio/vaio_freebsd.html); There where no
: problems
: with the PCMCIA when he installed freeBSD 5.3.
: 
: So I guess the questions after this point go in this order:
: 1. Could something have changed from 5.3 to 7.0 that would have
: stopped it from working?
: 2. The cardbus on the working system is a Micro, Inc. The vaio is a Ricoh
: Co chipset (both according to lspci). So this may indicate that the issue
: may
: lie in the cardbus. Where can I find the work being done on the support?
: 3. If this does not correct the issue, could it be from a physical breakage?

Between 5.3 and 7.0 I improved the power code.  In doing so for many
cases, I also busted it for a few.  I've recently fixed a number of
cases to make it better.

Try the following diff:

Index: pccbb.c
===================================================================
RCS file: /pe/ncvs/src/sys/dev/pccbb/pccbb.c,v
retrieving revision 1.165
diff -u -r1.165 pccbb.c
--- pccbb.c	30 Sep 2007 11:05:15 -0000	1.165
+++ pccbb.c	19 Aug 2008 03:32:25 -0000
@@ -936,7 +936,7 @@
 	 * 20ms is necessary for most bridges.  For some reason, the Ricoh
 	 * RF5C47x bridges need 400ms.
 	 */
-	delay = sc->chipset == CB_RF5C47X ? 400 : 20;
+	delay = 1000;
 
 	PCI_MASK_CONFIG(brdev, CBBR_BRIDGECTRL, |CBBM_BRIDGECTRL_RESET, 2);
 
if it fixes it, then that's the bug.  I have a more intelligent fix in
-current, but this is a less risky fix (at the expense of delaying
things an additional 980ms).

Warner

: Thank you for your attention.
: 
: On Wed, Aug 13, 2008 at 11:54 AM, Sam Leffler <sam at freebsd.org> wrote:
: 
: > This is likely a cardbus issue.  The hal status code is:
: >
: >       HAL_EIO         = 3,    /* Hardware didn't respond as expected */
: >
: > (look in sys/contrib/dev/ath/ah.h) and it typically means the sanity
: > check/self test done at startup failed.
: >
: > For fun you might check if the cardbus chip on the two laptops are
: > different.  Warner just recently fixed some cardbus issues in HEAD (w/ Ricoh
: > bridge chips I believe) but the symptoms were different.
: >
: >   Sam
: >
: > Ian wrote:
: >
: >> I am running the latest ath_hal from http://people.freebsd.org/~sam/<http://people.freebsd.org/%7Esam/>
: >>
: >> I likely should have mentioned that in the first place
: >>
: >> The wireless card is picked up fine when I move the harddrive to another
: >> laptop. Which
: >> would likely rule out the possibility that the issue is within the chipset
: >> (unless I am
: >> severely misguided, which I won't rule out).
: >>
: >> Also I am running a generic kernel of FreeBSD-7.0 STABLE (though the issue
: >> was still there when
: >> I had RELEASE running)
: >>
: >>
: >> On Wed, Aug 13, 2008 at 5:25 AM, Ashish Shukla ������������ ����� �����
: >> ��� <wahjava.ml@
: >> gmail.com> wrote:
: >>
: >>
: >>
: >>> Ian  writes:
: >>>
: >>>
: >>>> Goal:
: >>>> to have Wireless Atheros based NIC run on my Sony Vaio
: >>>>      Background:
: >>>>      The computer in question is a Sony Vaio PCG R505-JL w/ slimdock.
: >>>> The
: >>>>
: >>>>
: >>> CD-ROM
: >>>
: >>>
: >>>> is broken.
: >>>> I used a second computer and installed it on the second computer, then
: >>>> transfered the
: >>>> hard drive to the vaio.
: >>>>      This problem is not present on the computer I installed it on. The
: >>>> card
: >>>> works Out-of box.
: >>>>      dmesg output:
: >>>>
: >>>>
: >>> [snip]
: >>>
: >>>
: >>>
: >>>> ath0: <Atheros 2413> mem 0xf4110000-0xf411ffff irq 9 at device 0.0 on
: >>>> cardbus0
: >>>> ath0: [ITHREAD]
: >>>> ath0: unable to attach hardware; HAL status 3
: >>>> device_attach: ath0 attach returned 6
: >>>>
: >>>>
: >>> Above output indicates, wireless chip not accepting the HAL
: >>> firmware. You can try the latest HAL available from following URL:
: >>>
: >>> http://people.freebsd.org/~sam/ath_hal-20080528.tgz<http://people.freebsd.org/%7Esam/ath_hal-20080528.tgz>
: >>> <http://people.freebsd.org/%7Esam/ath_hal-20080528.tgz>
: >>>
: >>> HTH
: >>> Ashish Shukla
: >>> --
: >>> ��-- ��- �������� ��--- ��- ������- ��- ��--��-�� --�� -- ��- ����
: >>> ��-���� ��-��-��- -��-�� --- --
: >>>
: >>>
: >>>  ------------------------------------------------------------------------
: >>>
: >>> _______________________________________________
: >>> freebsd-mobile at freebsd.org mailing list
: >>> http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
: >>> To unsubscribe, send any mail to "freebsd-mobile-unsubscribe at freebsd.org
: >>> "
: >>>
: >>
: >
: _______________________________________________
: freebsd-mobile at freebsd.org mailing list
: http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
: To unsubscribe, send any mail to "freebsd-mobile-unsubscribe at freebsd.org"
: 


More information about the freebsd-mobile mailing list