From owner-freebsd-current@FreeBSD.ORG Thu Dec 13 21:18:52 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D3BA16F; Thu, 13 Dec 2012 21:18:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by mx1.freebsd.org (Postfix) with ESMTP id B4FFC8FC13; Thu, 13 Dec 2012 21:18:51 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id 12so1029931wgh.31 for ; Thu, 13 Dec 2012 13:18:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Ckum+wb6dH/BEXJ71nLZrFjkcwG8LyBCrrPhygkHJxw=; b=vlsOR4+r/3crEovKIO8Gu9llUzk8+2bg9thG6FS/VGPE+0GIEBw3hkjDl1vpZU+J8h Hm26gUiuno6I868U9vGA7K6CK/4P7MLiL+yXwAR4N3w6UZB7io/5g3Lj15u7LFXIGe0v WZMsQZ1UyW73PWIye7aysVZoct3Veu3lSIU6Z6VRDrKjCrhWRNgXS6YhK+6bM9YGpPeQ LDWlteBgKkWAXjQmtnbfXFj3XMudb+KsbDeoeZ5Yn79AooC8NeKEQWrpdTJ3rLc6Nn45 hqK2u7qvGyD8EYCQKFBZ57LAwnsMKfleSzT6oMIdjUu9+GCPSJ/Vv2DcZEcisEITVEQg d1WA== MIME-Version: 1.0 Received: by 10.180.88.138 with SMTP id bg10mr5674432wib.13.1355433530595; Thu, 13 Dec 2012 13:18:50 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Thu, 13 Dec 2012 13:18:50 -0800 (PST) In-Reply-To: <20121213211100.5395F10E2C8@smtp.hushmail.com> References: <20121123213551.C2CB9E6739@smtp.hushmail.com> <201212101437.54825.jhb@freebsd.org> <201212111549.49942.jhb@freebsd.org> <20121213211100.5395F10E2C8@smtp.hushmail.com> Date: Thu, 13 Dec 2012 13:18:50 -0800 X-Google-Sender-Auth: sUOqC8Bgce_sTQKk_8NxN68cIpA Message-ID: Subject: Re: ath0: unable to attach hardware From: Adrian Chadd To: husyh@hush.com Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 13 Dec 2012 21:18:52 -0000 On 13 December 2012 13:11, 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: 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