Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2012 13:18:50 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        husyh@hush.com
Cc:        freebsd-current@freebsd.org
Subject:   Re: ath0: unable to attach hardware
Message-ID:  <CAJ-Vmo=VYdCuoJDK4XLuQoB3gBob7LuhYDFF-F-G9_s4G8hM2w@mail.gmail.com>
In-Reply-To: <20121213211100.5395F10E2C8@smtp.hushmail.com>
References:  <20121123213551.C2CB9E6739@smtp.hushmail.com> <201212101437.54825.jhb@freebsd.org> <CAJ-VmomM965-=QByhJZMPUn_PZAnSjafcm3cy3ojRaPc5fbWPg@mail.gmail.com> <201212111549.49942.jhb@freebsd.org> <CAJ-VmonvJ4M5aJC9Mm5g%2B06Gfe=aoTg_p0NStj6gZtjkJ77Btw@mail.gmail.com> <20121213211100.5395F10E2C8@smtp.hushmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13 December 2012 13:11,  <husyh@hush.com> wrote:
> Hello everyone,
>
> I'm afraid I still don't know what exactly BAR is, or how I get its value that I'm supposed to plug into the line John provided:
> dd if=/dev/mem bs=4 iseek=((start of bar + reg offset)/4) count=1 | hd
>
> I assumed that "start of bar" is 0xfdee0000 in my case, since dmesg reports
> ath0: <Atheros 5413> mem 0xfdee0000-0xfdeeffff irq 16 at device 4.0 on pci2

Yup.

> This is what I get:
> # dd if=/dev/mem bs=4 iseek=`echo "ibase=16; (FDEE0000+4004)/4" | bc` count=1 | hd
> 00 00 01 00
> # dd if=/dev/mem bs=4 iseek=`echo "ibase=16; (FDEE0000+4010)/4" | bc` count=1 | hd
> 14 00 01 00
>
> Please correct me if my assumption about "start of bar" was wrong and/or I made some other mistake.
> Also, please don't hesitate to ask me to do anything else that might help you during debugging.
>
> Thank you very much for the effort.

Hm. Wait, what's the rest of the ath0: output?



Adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=VYdCuoJDK4XLuQoB3gBob7LuhYDFF-F-G9_s4G8hM2w>