From owner-freebsd-wireless@FreeBSD.ORG Tue Jan 1 06:04:23 2013 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 A0B6F648 for ; Tue, 1 Jan 2013 06:04:23 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm17.bullet.mail.bf1.yahoo.com (nm17.bullet.mail.bf1.yahoo.com [98.139.212.176]) by mx1.freebsd.org (Postfix) with SMTP id 43F1F8FC12 for ; Tue, 1 Jan 2013 06:04:23 +0000 (UTC) Received: from [98.139.212.148] by nm17.bullet.mail.bf1.yahoo.com with NNFMP; 01 Jan 2013 06:04:15 -0000 Received: from [98.139.211.196] by tm5.bullet.mail.bf1.yahoo.com with NNFMP; 01 Jan 2013 06:04:15 -0000 Received: from [127.0.0.1] by smtp205.mail.bf1.yahoo.com with NNFMP; 01 Jan 2013 06:04:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1357020255; bh=gkB+R2idn78ATEyqOHZhfWx8bsx+cjFZpEj3xlJDUpE=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type; b=BfwR3uxXl4Nje0mSCQGNF8CkjrpjYN/CPFH6NDK7ZKTgUrleGmnfd2TmTR37+r3DCnu/Z5iomKdvOsd/Z68FndPZUykSvIJIJLg45yRpNZSQ8WWE9scsS9+0rWUbqyrRDcOVWltQQ6Ib/77TVwroW5wNUk+oMu2VZv4gQ/k7Eaw= X-Yahoo-Newman-Id: 918663.5339.bm@smtp205.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: L2AjET0VM1kvUTWQqLwwT56fnC5rIbNau_aUf601ffP_2_J 1oyvEPpo_eD7KfepSgVGTBlzzUrXKttXoFKFg_2BuSBLGakfQ2IYiQqyrOyw mw7yPPeWCR8tThKVUc0tBLjq598c1e9KFhMAn_kanquxIGndT_A3UJXjGgJZ 8D9Upvww0H3jQKIbdC0azoG.kFjLSQyWS.macd6SWYWgca0GvUBilBqVfT2D iyEGpRTpFvSQSJaupwLTIYJpbAcNOZIszUjuzOV9SADGX8FdyqkHzQ3cWVPe PHuOsMxtAzce0_CPSYnPBSUD8FONEuW8WhguKO6vNDiSFakOCmWCl1YdZZlK RiYPOpYpfFzU0EpQfN2K5Opl5NnYaBYUJ7I7xDBENNKlGz1pZ.Mxz1sEAqVZ CGRP3T6lx9eltTBOrFSyB0g6h5VyTmJFQtqATYKjLvydbpik_inTOuiF28Ei MCaJpIVpWLnQrEYjj4cE- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vc0-f173.google.com (moonlightakkiy@209.85.220.173 with plain) by smtp205.mail.bf1.yahoo.com with SMTP; 31 Dec 2012 22:04:15 -0800 PST Received: by mail-vc0-f173.google.com with SMTP id f13so13289320vcb.4 for ; Mon, 31 Dec 2012 22:04:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.115.19 with SMTP id g19mr67015145vcq.69.1357020255347; Mon, 31 Dec 2012 22:04:15 -0800 (PST) Received: by 10.58.182.72 with HTTP; Mon, 31 Dec 2012 22:04:15 -0800 (PST) Date: Mon, 31 Dec 2012 23:04:15 -0700 Message-ID: Subject: Re: if_transmit() and the quirky issues with node referencing From: PseudoCylon To: Adrian Chadd , Monthadar Al Jaberi , Bernhard Schmidt , freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 01 Jan 2013 06:04:23 -0000 > ------------------------------ > > Message: 3 > Date: Thu, 27 Dec 2012 22:24:33 -0800 > From: Adrian Chadd > To: Monthadar Al Jaberi , Bernhard Schmidt > , freebsd-wireless@freebsd.org > Subject: .. if_transmit() and the quirky issues with node referencing > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > So I finally figured out my problem with if_transmit()'ifying the > ath(4) code. (Yes, this means I have TX fragmentation working with > ath(4), as well as some non-trivial performance improvements in TX TCP > tests.) > > In quick summary: net80211's call to the driver will decrement the > node ref if the driver if_transmit() call fails. > > So I went looking for instances of where if_transmit() is called > without correct error checking. > > One is in ieee80211_hwmp.c . It pops frames off of the ageq and calls > if_transmit(). It should deref the node ref the same way that the ageq > code does. > > The other is in ieee80211_hostap.c - my fault. It uses the psq; I > should deref the node ref the same way that the psq code does. > > This just highlights some of the rather quirky corners of net80211: > > * if_transmit() can be called on the driver facing interface (ie, the > driver ifp) or the vap ifp. > * for driver ifp, the frame should be encapsulated and there must be a > node reference held/given when it's called. If if_transmit() fails > here, it must deref the node. > * for non-encapsulated frames (eg perhaps some stuff in the ageq or > one of the psqs), if_transmit() will be called on the VAP interface. > * .. now, when if_transmit() is called on the vap interface, the mbuf > m_pkthdr.recvif will point to the vap ifp; > * .. when if_transmit() is called on the physical interface, the mbuf > m_pkthdr.recvif will point to the node reference. > > This is all a bit kooky and very prone to people making mistakes, > especially when mbufs may be pushed up, down and throughout all kinds > of weird places. I also bet the re-entrant parts of the codebase (ie > stuff that uses the ageq, psq, wds .. maybe the mesh stuff) could do > with a bit of a re-review. > > In any case, what this means is: > > * we need to be really, really careful with how we route mbufs through > net80211 here, aiee! > * if a frame has M_ENCAP tagged and it's pushed into an ageq or psq, > it _must_ have the TX node ref held; > .. thus, if we raw construct an encapsulated frame (locally in > net80211, or in a driver, or via ieee80211_output, etc) then when we > set M_ENCAP, we must hold the TX node reference and we must set recvif > correctly! > > What I'd really like to do here: > > * re-review all the if_transmit() error handling - make sure that if > it fails, we correctly handle dereferencing the node or things will > leak; > * make "get/set recvif from ifp" and "get/set recvif from node" as methods; > * have those methods check whether M_ENCAP is correctly set/cleared, > and complain loudly if we ever try to get the wrong reference for the > given situation (eg, if we try to read the node reference from an > mbuf, but M_ENCAP isn't set, then complain); > * .. figure out some alternate way to store the node reference (mbuf > tags?) and start migrating the code that way. > Just to add another thing before I forget. When tearing a ba session is somehow failed, a node could still receive ampdu packets from another node which ni has already freed. I don't know exactly how that happens, yet. I will let you know when I figured it out. AK From owner-freebsd-wireless@FreeBSD.ORG Tue Jan 1 07:59:34 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0D30633; Tue, 1 Jan 2013 07:59:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 000D28FC08; Tue, 1 Jan 2013 07:59:33 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id hn3so7345886wib.17 for ; Mon, 31 Dec 2012 23:59:32 -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=rXz7mAsctfeToUQzzweunAg9/Bkf6dQAlwOphAovTxw=; b=Yc/1h1Mle+hNWn3GOK8uCqyqcrROOMf0QQyWrgl4om6ebssbw7ON5pFuxNqxBIr5IH iYGA5pn8PH5cKm4H3E4NLz9yP3CsPk1Yn3WKeWe3B+RyBtddfJk8G5LRUkSNyFHO2p0i VuOC9qhGFpd3MEiGVkMOEJ9COgZa+aBRVHuyYv2d5kQV4qaynzLi2+mUt36NmX0Ir1Ne v3ueXICcUhqMw+ETVkTICQRQiO0Id9nsz6LCN9B27fzwX9wUf842FXXtIC4VBL8Cpy/L RCmWL4zzgQiwh5U7iDZZXed1AZxzDsmjsfNoy1J4VsCIDP5mW4qPMchi/EjoORnkpnHc y2JQ== MIME-Version: 1.0 Received: by 10.194.93.40 with SMTP id cr8mr67777315wjb.16.1357027172587; Mon, 31 Dec 2012 23:59:32 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Mon, 31 Dec 2012 23:59:32 -0800 (PST) In-Reply-To: References: Date: Mon, 31 Dec 2012 23:59:32 -0800 X-Google-Sender-Auth: xL1dX3OTAHsL_ap3QrkBkZ7khGs Message-ID: Subject: Re: if_transmit() and the quirky issues with node referencing From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Bernhard Schmidt X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 01 Jan 2013 07:59:34 -0000 Oh god, please create a PR for that particular scenario so we don't have that happen. Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Jan 1 08:54:19 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A07F2C51; Tue, 1 Jan 2013 08:54:19 +0000 (UTC) (envelope-from freebsd@abv.bg) Received: from smtp-out.abv.bg (smtp-out.abv.bg [194.153.145.80]) by mx1.freebsd.org (Postfix) with ESMTP id 4F7268FC08; Tue, 1 Jan 2013 08:54:19 +0000 (UTC) Received: from nm41.abv.bg (nm41.ni.bg [192.168.151.196]) by smtp-out.abv.bg (Postfix) with ESMTP id 4E6DC56EB78; Tue, 1 Jan 2013 10:47:25 +0200 (EET) DomainKey-Signature: a=rsa-sha1; s=smtp-out; d=abv.bg; c=simple; q=dns; b=UNX8N6+R6TX8q53n7m/OBNfEWJkRRQX4FqtoiyCGjgkBXv4Qx9qo/TtqDb/ldU0rs Zc7umr10mJb3CkVaftjlVD98pXEVhFoRtn+E5qU2yUdy7Z4360JTcbpoT+zJ6FAscly rBtfeGzWzu15QIB5gHKvbfvO8ZD4KmNJEZ4cKxo= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=abv.bg; s=smtp-out; t=1357030045; bh=McbFyK2hA+oeWtyIwQITn4sSWvrRz0llD/oTSk3Uo6E=; h=Date:From:To:Cc:Message-ID:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:DKIM; b=vFRy+f7Yeky8mZNicC4pONxXh4yHVhxyZMUwh8YANquMg8kEkuYQTArCPvYu68/tK SVW/K0tGNyC6Ib3vBk9F7q3vXHD61G9tfiv6SQSR1ETrY2SA+DixwqXT62yByCWlnE 2TDD7lB+0oF/CZUU7H/rRhQ/IY7N0M8/7iR0Cvyw= Received: from nm41.abv.bg (localhost [127.0.0.1]) by nm41.abv.bg (Postfix) with ESMTP id 42091BD; Tue, 1 Jan 2013 10:47:24 +0200 (EET) Date: Tue, 1 Jan 2013 10:47:24 +0200 (EET) From: Mario Pavlov To: Adrian Chadd Message-ID: <237375014.304101.1357030044265.JavaMail.apache@nm41.abv.bg> Subject: Re: AR9485 support MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: AbvMail 2.0 X-Originating-IP: 77.70.5.177 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 01 Jan 2013 08:54:19 -0000 > Hi, > > On 31 December 2012 06:34, Mario Pavlov wrote: > > Hi, > > several months ago I found this http://lists.freebsd.org/pipermail/freebsd-wireless/2012-June/001835.html > > as an answer to the question if AR9485 is supported. > > Now that FreeBSD 9.1 is out I decided to check if this chip is already supported but unfortunately it is still not. > > So when would be realistic to expect this support? I have a laptop with this chip and I can at least provide some testing. > > Hi! > > I have a working HAL here for it. The trouble is that i need to finish > the process of getting my open source AR93xx/AR94xx/AR95xx HAL > released. > > I'll work on this early in the new year. > > Thanks! I'm hoping to get it supported in 10.0 at the very least. > > > > > Adrian Thank you very much! Are you going to do some sort of announcement when you commit it to CURRENT and/or STABLE? Cheers From owner-freebsd-wireless@FreeBSD.ORG Tue Jan 1 18:33:26 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A4D6A02 for ; Tue, 1 Jan 2013 18:33:26 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by mx1.freebsd.org (Postfix) with ESMTP id F3BEC8FC0C for ; Tue, 1 Jan 2013 18:33:25 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id z2so6285845wey.18 for ; Tue, 01 Jan 2013 10:33:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HmNDJ0hPx/SgzXOFHfWIi9h/gEyrWWcb/Mu3mU7QXDM=; b=ZEafuBu7FuOYAN36alioWjB0LyDuU6DB6gikLFHEWtfKtxOahpRDB+cVi8RkgAdFlK cX9xKOX8XO5WmgZRnFHSmkLgOGeni13ExexQ+S74kmIvrbuJ4O+CXcyNvYS5puOuXv1u l2GjP+wgfn1W8n86iXqeENlfLHspJVOoKLwgW987Z3D4kNxhLSRrqXQhBizG9ZRxKVPC AlO9Ay9R/JbUQMRMdXoNC6Fvoe405kWJqfgHSdQDA27kqsm3Ufeh1ll1FcoC9BwoQSXP 7KHuYGgQGuF9f7n71aq50xsZuOo+gJE2xg5GJZoir4VNGDH64mlTmefYotToDvRkH3uG bt7A== MIME-Version: 1.0 Received: by 10.180.79.37 with SMTP id g5mr66633482wix.8.1357065198742; Tue, 01 Jan 2013 10:33:18 -0800 (PST) Received: by 10.227.59.19 with HTTP; Tue, 1 Jan 2013 10:33:18 -0800 (PST) Date: Tue, 1 Jan 2013 19:33:18 +0100 Message-ID: Subject: ath0: could not map interrupt From: Monthadar Al Jaberi To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 01 Jan 2013 18:33:26 -0000 Hi, ath(4) failed to attach on my Routerboard RB433AH running FreeBSD current. This is what I got during boo-up. pcib0 at irq 0 on nexus0 pci0: on pcib0 ath0: irq 3 at device 20.0 on pci0 ath0: could not map interrupt device_attach: ath0 attach returned 6 Any idea why? Anyone else is running ath(4) on this board? My wifi card is a Ubiquity X2 with AR5413 chip. br, -- Monthadar Al Jaberi From owner-freebsd-wireless@FreeBSD.ORG Wed Jan 2 04:19:11 2013 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 1DD9829C for ; Wed, 2 Jan 2013 04:19:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by mx1.freebsd.org (Postfix) with ESMTP id 961388FC08 for ; Wed, 2 Jan 2013 04:19:10 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id z2so6242502wey.4 for ; Tue, 01 Jan 2013 20:19:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=75i3U2HX33aJW0WHVX3X5FcSCmK1+kKiC7x4ycBz/6Y=; b=C4i494APTkjdNgo1xSXpVm2obZA6L6q41Z1uANBcvIyvedTT5uOB6tQJfZj/CltiVI Vbl+ujiZrjsTReVd5bwIAP6spmGgTMFcIoUEe3fnRsGedYtXJyotIoLVu8xphQJ/bNYp UgIN2HhxrFIa1gV6gvbk9x6Ej/JrdDu8G9o7Odocc4NjM2rTPU9EQNoHeJHRDXeUo+SJ nCiRyCmk16c2cJsZTHD6+ivNACAQegaDLt1TQ1JFzvrxtZ+nE0SrVkRhtDeUByuIJwuU PqjgKgaKIDUUfEGofawGWbp/Qppq1yU2qNctwUwLXMelemRGJzm4eD4M5kWkVRoFmT9j iEzQ== MIME-Version: 1.0 Received: by 10.194.179.34 with SMTP id dd2mr71050896wjc.1.1357100349522; Tue, 01 Jan 2013 20:19:09 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Tue, 1 Jan 2013 20:19:09 -0800 (PST) Date: Tue, 1 Jan 2013 20:19:09 -0800 X-Google-Sender-Auth: v1OXqr0Nc8-3JzfB4PlojuDVWLA Message-ID: Subject: Skeleton spectral scan driver support is in -HEAD (was Re: svn commit: r244953 - in head/tools/tools/ath: . athspectral) From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 02 Jan 2013 04:19:11 -0000 ... and with that, anyone wishing to write a spectral scan visualisation application now has all the basic bits they need to do so. ie: * create interface in monitor mode * sysctl dev.ath.0.monpass=0xff (just to ensure you get spectral scan errors) * ifconfig wlan0 channel 1:ht/20 * ifconfig wlan0 up * athspectral -i ath0 start * sleep 0.5 * ifconfig wlan0 down ; ifconfig wlan0 channel 6:ht/20; ifconfig wlan0 up * athspectral -i ath0 start * sleep 0.5 * ifconfig wlan0 down ; ifconfig wlan0 channel 11:ht/20; ifconfig wlan0 up * athspectral -i ath0 start * sleep 0.5 ... etc. All someone(!) now needs to do is write an application that sniffs the spectral scan FFT data from a radiotap interface and you're done. There's more interesting things one can do (eg not use the short repeat functionality, so you get big sets of continuous spectral scan reports; play with "continuous" reporting, etc.) once the basic FFT visualisation is done. Go forth and do interesting things. Oh, and please open source some of them. :) Adrian On 1 January 2013 20:02, Adrian Chadd wrote: > Author: adrian > Date: Wed Jan 2 04:02:27 2013 > New Revision: 244953 > URL: http://svnweb.freebsd.org/changeset/base/244953 > > Log: > Add a very skeletal spectral scan control application. > > The main use for this is to manually trigger spectral scan operations > (athspectral -i athX start) whilst doing debugging. > > Added: > head/tools/tools/ath/athspectral/ > head/tools/tools/ath/athspectral/Makefile (contents, props changed) > head/tools/tools/ath/athspectral/athspectral.c (contents, props changed) > Modified: > head/tools/tools/ath/Makefile > > Modified: head/tools/tools/ath/Makefile > ============================================================================== > --- head/tools/tools/ath/Makefile Wed Jan 2 04:00:54 2013 (r244952) > +++ head/tools/tools/ath/Makefile Wed Jan 2 04:02:27 2013 (r244953) > @@ -3,6 +3,6 @@ > SUBDIR= arcode athdebug athdecode athkey athpoke athprom athrd athregs > SUBDIR+= athstats ath_prom_read athradar athaggrstats > SUBDIR+= ath_ee_v14_print ath_ee_v4k_print ath_ee_9287_print > -SUBDIR+= athsurvey athratestats > +SUBDIR+= athsurvey athratestats athspectral > > .include > > Added: head/tools/tools/ath/athspectral/Makefile > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/tools/tools/ath/athspectral/Makefile Wed Jan 2 04:02:27 2013 (r244953) > @@ -0,0 +1,16 @@ > +# $FreeBSD$ > + > +PROG= athspectral > + > +.include <../Makefile.inc> > + > +SRCS= athspectral.c > +SRCS+= opt_ah.h > +CLEANFILES+= opt_ah.h > + > +opt_ah.h: > + echo "#define AH_DEBUG 1" > opt_ah.h > + echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h > + echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h > + > +.include > > Added: head/tools/tools/ath/athspectral/athspectral.c > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/tools/tools/ath/athspectral/athspectral.c Wed Jan 2 04:02:27 2013 (r244953) > @@ -0,0 +1,323 @@ > +/* > + * Copyright (c) 2013 Adrian Chadd > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * 1. Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer. > + * 2. Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in the > + * documentation and/or other materials provided with the distribution. > + * > + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND > + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE > + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE > + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL > + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT > + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY > + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > + * SUCH DAMAGE. > + * > + * $FreeBSD$ > + */ > + > +#include "diag.h" > + > +#include "ah.h" > +#include "ah_internal.h" > + > +#ifndef ATH_DEFAULT > +#define ATH_DEFAULT "ath0" > +#endif > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +struct spectralhandler { > + struct ath_diag atd; > + int s; > + struct ifreq ifr; > + int ah_devid; > +}; > + > +int > +spectral_opendev(struct spectralhandler *spectral, const char *devid) > +{ > + HAL_REVS revs; > + > + spectral->s = socket(AF_INET, SOCK_DGRAM, 0); > + if (spectral->s < 0) { > + warn("socket"); > + return 0; > + } > + > + strncpy(spectral->atd.ad_name, devid, sizeof (spectral->atd.ad_name)); > + > + /* Get the hardware revision, just to verify things are working */ > + spectral->atd.ad_id = HAL_DIAG_REVS; > + spectral->atd.ad_out_data = (caddr_t) &revs; > + spectral->atd.ad_out_size = sizeof(revs); > + if (ioctl(spectral->s, SIOCGATHDIAG, &spectral->atd) < 0) { > + warn(spectral->atd.ad_name); > + return 0; > + } > + spectral->ah_devid = revs.ah_devid; > + return 1; > +} > + > +void > +spectral_closedev(struct spectralhandler *spectral) > +{ > + close(spectral->s); > + spectral->s = -1; > +} > + > +void > +spectralset(struct spectralhandler *spectral, int op, u_int32_t param) > +{ > + HAL_SPECTRAL_PARAM pe; > + > + pe.ss_fft_period = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_period = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_count = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_short_report = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_spectral_pri = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_fft_period = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_enabled = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_active = HAL_SPECTRAL_PARAM_NOVAL; > + > + switch (op) { > + case SPECTRAL_PARAM_FFT_PERIOD: > + pe.ss_fft_period = param; > + break; > + case SPECTRAL_PARAM_SS_PERIOD: > + pe.ss_period = param; > + break; > + case SPECTRAL_PARAM_SS_COUNT: > + pe.ss_count = param; > + break; > + case SPECTRAL_PARAM_SS_SHORT_RPT: > + pe.ss_short_report = param; > + break; > + } > + > + spectral->atd.ad_id = SPECTRAL_CONTROL_SET_PARAMS | ATH_DIAG_IN; > + spectral->atd.ad_out_data = NULL; > + spectral->atd.ad_out_size = 0; > + spectral->atd.ad_in_data = (caddr_t) &pe; > + spectral->atd.ad_in_size = sizeof(HAL_SPECTRAL_PARAM); > + if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) > + err(1, spectral->atd.ad_name); > +} > + > +static void > +spectral_get(struct spectralhandler *spectral) > +{ > + HAL_SPECTRAL_PARAM pe; > + > + spectral->atd.ad_id = SPECTRAL_CONTROL_GET_PARAMS | ATH_DIAG_DYN; > + memset(&pe, 0, sizeof(pe)); > + > + spectral->atd.ad_in_data = NULL; > + spectral->atd.ad_in_size = 0; > + spectral->atd.ad_out_data = (caddr_t) &pe; > + spectral->atd.ad_out_size = sizeof(pe); > + > + if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) > + err(1, spectral->atd.ad_name); > + > + printf("Spectral parameters (raw):\n"); > + printf(" ss_enabled: %d\n", pe.ss_enabled); > + printf(" ss_active: %d\n", pe.ss_active); > + printf(" ss_count: %d\n", pe.ss_count); > + printf(" ss_fft_period: %d\n", pe.ss_fft_period); > + printf(" ss_period: %d\n", pe.ss_period); > + printf(" ss_short_report: %d\n", pe.ss_short_report); > + printf(" radar_bin_thresh_sel: %d\n", pe.radar_bin_thresh_sel); > +} > + > +static void > +spectral_start(struct spectralhandler *spectral) > +{ > + HAL_SPECTRAL_PARAM pe; > + > + spectral->atd.ad_id = SPECTRAL_CONTROL_START | ATH_DIAG_DYN; > + memset(&pe, 0, sizeof(pe)); > + > + /* > + * XXX don't need these, but need to eliminate the ATH_DIAG_DYN flag > + * and debug > + */ > + spectral->atd.ad_in_data = NULL; > + spectral->atd.ad_in_size = 0; > + spectral->atd.ad_out_data = (caddr_t) &pe; > + spectral->atd.ad_out_size = sizeof(pe); > + > + if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) > + err(1, spectral->atd.ad_name); > +} > + > +static void > +spectral_stop(struct spectralhandler *spectral) > +{ > + HAL_SPECTRAL_PARAM pe; > + > + spectral->atd.ad_id = SPECTRAL_CONTROL_STOP | ATH_DIAG_DYN; > + memset(&pe, 0, sizeof(pe)); > + > + /* > + * XXX don't need these, but need to eliminate the ATH_DIAG_DYN flag > + * and debug > + */ > + spectral->atd.ad_in_data = NULL; > + spectral->atd.ad_in_size = 0; > + spectral->atd.ad_out_data = (caddr_t) &pe; > + spectral->atd.ad_out_size = sizeof(pe); > + > + if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) > + err(1, spectral->atd.ad_name); > +} > + > +static int > +spectral_set_param(struct spectralhandler *spectral, const char *param, > + const char *val) > +{ > + int v; > + > + v = atoi(val); > + > + if (strcmp(param, "ss_short_report") == 0) { > + spectralset(spectral, SPECTRAL_PARAM_SS_SHORT_RPT, v); > + } else if (strcmp(param, "ss_fft_period") == 0) { > + spectralset(spectral, SPECTRAL_PARAM_FFT_PERIOD, v); > + } else if (strcmp(param, "ss_period") == 0) { > + spectralset(spectral, SPECTRAL_PARAM_SS_PERIOD, v); > + } else if (strcmp(param, "ss_count") == 0) { > + spectralset(spectral, SPECTRAL_PARAM_SS_COUNT, v); > + } else { > + return (0); > + } > + > +#if 0 > + if (strcmp(param, "enabled") == 0) { > + spectralset(spectral, DFS_PARAM_ENABLE, v); > + } else if (strcmp(param, "firpwr") == 0) { > + spectralset(spectral, DFS_PARAM_FIRPWR, v); > + } else if (strcmp(param, "rrssi") == 0) { > + spectralset(spectral, DFS_PARAM_RRSSI, v); > + } else if (strcmp(param, "height") == 0) { > + spectralset(spectral, DFS_PARAM_HEIGHT, v); > + } else if (strcmp(param, "prssi") == 0) { > + spectralset(spectral, DFS_PARAM_PRSSI, v); > + } else if (strcmp(param, "inband") == 0) { > + spectralset(spectral, DFS_PARAM_INBAND, v); > + } else if (strcmp(param, "relpwr") == 0) { > + spectralset(spectral, DFS_PARAM_RELPWR, v); > + } else if (strcmp(param, "relstep") == 0) { > + spectralset(spectral, DFS_PARAM_RELSTEP, v); > + } else if (strcmp(param, "maxlen") == 0) { > + spectralset(spectral, DFS_PARAM_MAXLEN, v); > + } else if (strcmp(param, "usefir128") == 0) { > + spectralset(spectral, DFS_PARAM_USEFIR128, v); > + } else if (strcmp(param, "blockspectral") == 0) { > + spectralset(spectral, DFS_PARAM_BLOCKRADAR, v); > + } else if (strcmp(param, "enmaxrssi") == 0) { > + spectralset(spectral, DFS_PARAM_MAXRSSI_EN, v); > + } else if (strcmp(param, "extchannel") == 0) { > + spectralset(spectral, DFS_PARAM_EN_EXTCH, v); > + } else if (strcmp(param, "enrelpwr") == 0) { > + spectralset(spectral, DFS_PARAM_RELPWR_EN, v); > + } else if (strcmp(param, "en_relstep_check") == 0) { > + spectralset(spectral, DFS_PARAM_RELSTEP_EN, v); > + } else { > + return 0; > + } > +#endif > + > + return 1; > +} > + > +void > +usage(const char *progname) > +{ > + printf("Usage:\n"); > + printf("\t%s: [-i ] ()\n", progname); > + printf("\t%s: [-h]\n", progname); > + printf("\n"); > + printf("Valid commands:\n"); > + printf("\tget:\t\tGet current spectral parameters\n"); > + printf("\tset :\t\tSet spectral parameter\n"); > + printf("\tstart: Start spectral scan\n"); > + printf("\tstop: Stop spectral scan\n"); > +} > + > +int > +main(int argc, char *argv[]) > +{ > + struct spectralhandler spectral; > + const char *devname = ATH_DEFAULT; > + const char *progname = argv[0]; > + > + memset(&spectral, 0, sizeof(spectral)); > + > + /* Parse command line options */ > + if (argc >= 2 && strcmp(argv[1], "-h") == 0) { > + usage(progname); > + exit(0); > + } > + if (argc >= 2 && strcmp(argv[1], "-?") == 0) { > + usage(progname); > + exit(0); > + } > + > + if (argc >= 2 && strcmp(argv[1], "-i") == 0) { > + if (argc == 2) { > + usage(progname); > + exit(127); > + } > + devname = argv[2]; > + argc -= 2; argv += 2; > + } > + > + /* At this point we require at least one command */ > + if (argc == 1) { > + usage(progname); > + exit(127); > + } > + > + if (spectral_opendev(&spectral, devname) == 0) > + exit(127); > + > + if (strcasecmp(argv[1], "get") == 0) { > + spectral_get(&spectral); > + } else if (strcasecmp(argv[1], "set") == 0) { > + if (argc < 4) { > + usage(progname); > + exit(127); > + } > + if (spectral_set_param(&spectral, argv[2], argv[3]) == 0) { > + usage(progname); > + exit(127); > + } > + } else if (strcasecmp(argv[1], "start") == 0) { > + spectral_start(&spectral); > + } else if (strcasecmp(argv[1], "stop") == 0) { > + spectral_stop(&spectral); > + } else { > + usage(progname); > + exit(127); > + } > + > + /* wrap up */ > + spectral_closedev(&spectral); > + exit(0); > +} From owner-freebsd-wireless@FreeBSD.ORG Wed Jan 2 05:37:11 2013 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 A4DAAA25; Wed, 2 Jan 2013 05:37:11 +0000 (UTC) (envelope-from frank@exit.com) Received: from tinker.exit.com (tinker.exit.com [IPv6:2001:470:f0fd:0:2e0:81ff:fe2b:acbc]) by mx1.freebsd.org (Postfix) with ESMTP id 678438FC12; Wed, 2 Jan 2013 05:37:11 +0000 (UTC) Received: from jill.exit.com (jill.exit.com [IPv6:2001:470:f0fd:0:2e0:81ff:febc:fdcc]) by tinker.exit.com (8.14.5/8.14.5) with ESMTP id r025b87M073624; Tue, 1 Jan 2013 21:37:09 -0800 (PST) (envelope-from frank@exit.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=exit.com; s=tinker; t=1357105029; bh=u0jcphF2pNzpzxdan6w1NUbaAkN8V3vv8NGy+pdO8WQ=; h=Subject:From:Reply-To:To:Cc:In-Reply-To:References:Date; b=OtB/cblKaoZ1JPJ27S+eX/OH4eB0cuM/aNuG3XVhGCUlANKzGnjHBbQeOGQ+tW8ir CqMvt/nZHnYhGC3b8cDTHUC1lr3LTwGg/pmHGvQM3zXvmNMj6wvw8XT/nTd3zvmDq9 3GAAIoguh0taSaI2djSpsUYJq1aIz0qg8MG/skPo= Received: from jill.exit.com (localhost [127.0.0.1]) by jill.exit.com (8.14.5/8.14.5) with ESMTP id r025akkK033271; Tue, 1 Jan 2013 21:36:46 -0800 (PST) (envelope-from frank@exit.com) Received: (from frank@localhost) by jill.exit.com (8.14.5/8.14.5/Submit) id r025akFL033270; Tue, 1 Jan 2013 21:36:46 -0800 (PST) (envelope-from frank@exit.com) X-Authentication-Warning: jill.exit.com: frank set sender to frank@exit.com using -f Subject: Re: Firmware error with iwn on 9-stable. From: Frank Mayhar To: freebsd-mobile In-Reply-To: <1357026551.13744.10.camel@jill.exit.com> References: <1357026551.13744.10.camel@jill.exit.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Organization: Exit Consulting Date: Tue, 01 Jan 2013 21:36:46 -0800 Message-ID: <1357105006.13744.17.camel@jill.exit.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: frank@exit.com 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: Wed, 02 Jan 2013 05:37:11 -0000 On Mon, 2012-12-31 at 23:49 -0800, Frank Mayhar wrote: > I'm trying to set up a new laptop, which has an Intel Centrino > Ultimate-N 6300 wireless card. I was under the impression that the > 9-stable iwn driver fully supported this card but I've run into a > problem. Specifically, I'm seeing this firmware crash: >=20 > iwn0: iwn_intr: fatal firmware error For the record, this appears to be the problem referred to by "kern/163154: [iwn] fatal firmware error on 9.0-RC3." Apparently this still happens in 9-stable, with the same symptoms, fails with 802.11a but not with 11g. Unfortunately the interface still fails (with other symptoms) with 11g. --=20 Frank Mayhar frank@exit.com From owner-freebsd-wireless@FreeBSD.ORG Wed Jan 2 05:41:49 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CD696B7C; Wed, 2 Jan 2013 05:41:49 +0000 (UTC) (envelope-from frank@exit.com) Received: from tinker.exit.com (tinker.exit.com [IPv6:2001:470:f0fd:0:2e0:81ff:fe2b:acbc]) by mx1.freebsd.org (Postfix) with ESMTP id 80F4A8FC08; Wed, 2 Jan 2013 05:41:49 +0000 (UTC) Received: from jill.exit.com (jill.exit.com [IPv6:2001:470:f0fd:0:2e0:81ff:febc:fdcc]) by tinker.exit.com (8.14.5/8.14.5) with ESMTP id r025fmxh073639; Tue, 1 Jan 2013 21:41:48 -0800 (PST) (envelope-from frank@exit.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=exit.com; s=tinker; t=1357105309; bh=N/ba8g1gmLBOyaWi4fciX6koZG8ifgZz12bijynCx1o=; h=Subject:From:Reply-To:To:Cc:In-Reply-To:References:Date; b=nBUC1jZkrSPZ2eZEZ2Lef5TlvT7Kd3PHKGIryoyHEkswRfH4aCOdBKIKyj3S58Hep tAgu6BTKPsfAwjfaX625PZHhF+qQL8wJeLUVArUoXxjADwDPoBE/9pDQFdewTE/qKP Ze7th7VE33FN1AxFkwJsAydxMgtQfPrftPp8xz3k= Received: from jill.exit.com (localhost [127.0.0.1]) by jill.exit.com (8.14.5/8.14.5) with ESMTP id r025fQO7033295; Tue, 1 Jan 2013 21:41:26 -0800 (PST) (envelope-from frank@exit.com) Received: (from frank@localhost) by jill.exit.com (8.14.5/8.14.5/Submit) id r025fQ83033294; Tue, 1 Jan 2013 21:41:26 -0800 (PST) (envelope-from frank@exit.com) X-Authentication-Warning: jill.exit.com: frank set sender to frank@exit.com using -f Subject: Re: Firmware error with iwn on 9-stable. From: Frank Mayhar To: freebsd-mobile In-Reply-To: <1357105006.13744.17.camel@jill.exit.com> References: <1357026551.13744.10.camel@jill.exit.com> <1357105006.13744.17.camel@jill.exit.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Organization: Exit Consulting Date: Tue, 01 Jan 2013 21:41:26 -0800 Message-ID: <1357105286.13744.18.camel@jill.exit.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: frank@exit.com 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: Wed, 02 Jan 2013 05:41:49 -0000 On Tue, 2013-01-01 at 21:36 -0800, Frank Mayhar wrote: > On Mon, 2012-12-31 at 23:49 -0800, Frank Mayhar wrote: > > I'm trying to set up a new laptop, which has an Intel Centrino > > Ultimate-N 6300 wireless card. I was under the impression that the > > 9-stable iwn driver fully supported this card but I've run into a > > problem. Specifically, I'm seeing this firmware crash: > >=20 > > iwn0: iwn_intr: fatal firmware error >=20 > For the record, this appears to be the problem referred to by > "kern/163154: [iwn] fatal firmware error on 9.0-RC3." Apparently this > still happens in 9-stable, with the same symptoms, fails with 802.11a > but not with 11g. Oops, spoke too soon. It fails the same way with 11g in my case. --=20 Frank Mayhar frank@exit.com From owner-freebsd-wireless@FreeBSD.ORG Wed Jan 2 10:33:26 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 15DF5752; Wed, 2 Jan 2013 10:33:26 +0000 (UTC) (envelope-from masked@internode.on.net) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [IPv6:2001:44b8:8060:ff02:300:1:2:7]) by mx1.freebsd.org (Postfix) with ESMTP id A8CBD8FC12; Wed, 2 Jan 2013 10:33:24 +0000 (UTC) Received: from ppp221-140.static.internode.on.net (HELO forexamplePC) ([150.101.221.140]) by ipmail07.adl2.internode.on.net with SMTP; 02 Jan 2013 21:03:23 +1030 Message-ID: <49A0FCAEB5BF4A6D8C73A6F1B8A6944A@forexamplePC> From: "Michael Vale" To: "Adrian Chadd" , References: In-Reply-To: Subject: Re: Skeleton spectral scan driver support is in -HEAD (was Re: svn commit: r244953 - in head/tools/tools/ath: . athspectral) Date: Wed, 2 Jan 2013 21:33:25 +1100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3505.912 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 02 Jan 2013 10:33:26 -0000 nice -----Original Message----- From: Adrian Chadd Sent: Wednesday, January 02, 2013 3:19 PM To: freebsd-wireless@freebsd.org Subject: Skeleton spectral scan driver support is in -HEAD (was Re: svn commit: r244953 - in head/tools/tools/ath: . athspectral) ... and with that, anyone wishing to write a spectral scan visualisation application now has all the basic bits they need to do so. ie: * create interface in monitor mode * sysctl dev.ath.0.monpass=0xff (just to ensure you get spectral scan errors) * ifconfig wlan0 channel 1:ht/20 * ifconfig wlan0 up * athspectral -i ath0 start * sleep 0.5 * ifconfig wlan0 down ; ifconfig wlan0 channel 6:ht/20; ifconfig wlan0 up * athspectral -i ath0 start * sleep 0.5 * ifconfig wlan0 down ; ifconfig wlan0 channel 11:ht/20; ifconfig wlan0 up * athspectral -i ath0 start * sleep 0.5 ... etc. All someone(!) now needs to do is write an application that sniffs the spectral scan FFT data from a radiotap interface and you're done. There's more interesting things one can do (eg not use the short repeat functionality, so you get big sets of continuous spectral scan reports; play with "continuous" reporting, etc.) once the basic FFT visualisation is done. Go forth and do interesting things. Oh, and please open source some of them. :) Adrian On 1 January 2013 20:02, Adrian Chadd wrote: > Author: adrian > Date: Wed Jan 2 04:02:27 2013 > New Revision: 244953 > URL: http://svnweb.freebsd.org/changeset/base/244953 > > Log: > Add a very skeletal spectral scan control application. > > The main use for this is to manually trigger spectral scan operations > (athspectral -i athX start) whilst doing debugging. > > Added: > head/tools/tools/ath/athspectral/ > head/tools/tools/ath/athspectral/Makefile (contents, props changed) > head/tools/tools/ath/athspectral/athspectral.c (contents, props > changed) > Modified: > head/tools/tools/ath/Makefile > > Modified: head/tools/tools/ath/Makefile > ============================================================================== > --- head/tools/tools/ath/Makefile Wed Jan 2 04:00:54 2013 > (r244952) > +++ head/tools/tools/ath/Makefile Wed Jan 2 04:02:27 2013 > (r244953) > @@ -3,6 +3,6 @@ > SUBDIR= arcode athdebug athdecode athkey athpoke athprom athrd > athregs > SUBDIR+= athstats ath_prom_read athradar athaggrstats > SUBDIR+= ath_ee_v14_print ath_ee_v4k_print ath_ee_9287_print > -SUBDIR+= athsurvey athratestats > +SUBDIR+= athsurvey athratestats athspectral > > .include > > Added: head/tools/tools/ath/athspectral/Makefile > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/tools/tools/ath/athspectral/Makefile Wed Jan 2 04:02:27 2013 > (r244953) > @@ -0,0 +1,16 @@ > +# $FreeBSD$ > + > +PROG= athspectral > + > +.include <../Makefile.inc> > + > +SRCS= athspectral.c > +SRCS+= opt_ah.h > +CLEANFILES+= opt_ah.h > + > +opt_ah.h: > + echo "#define AH_DEBUG 1" > opt_ah.h > + echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h > + echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h > + > +.include > > Added: head/tools/tools/ath/athspectral/athspectral.c > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/tools/tools/ath/athspectral/athspectral.c Wed Jan 2 > 04:02:27 2013 (r244953) > @@ -0,0 +1,323 @@ > +/* > + * Copyright (c) 2013 Adrian Chadd > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are met: > + * 1. Redistributions of source code must retain the above copyright > + * notice, this list of conditions and the following disclaimer. > + * 2. Redistributions in binary form must reproduce the above copyright > + * notice, this list of conditions and the following disclaimer in the > + * documentation and/or other materials provided with the > distribution. > + * > + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND > + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE > + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR > PURPOSE > + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE > LIABLE > + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR > CONSEQUENTIAL > + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE > GOODS > + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, > STRICT > + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY > WAY > + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF > + * SUCH DAMAGE. > + * > + * $FreeBSD$ > + */ > + > +#include "diag.h" > + > +#include "ah.h" > +#include "ah_internal.h" > + > +#ifndef ATH_DEFAULT > +#define ATH_DEFAULT "ath0" > +#endif > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +struct spectralhandler { > + struct ath_diag atd; > + int s; > + struct ifreq ifr; > + int ah_devid; > +}; > + > +int > +spectral_opendev(struct spectralhandler *spectral, const char *devid) > +{ > + HAL_REVS revs; > + > + spectral->s = socket(AF_INET, SOCK_DGRAM, 0); > + if (spectral->s < 0) { > + warn("socket"); > + return 0; > + } > + > + strncpy(spectral->atd.ad_name, devid, sizeof > (spectral->atd.ad_name)); > + > + /* Get the hardware revision, just to verify things are working */ > + spectral->atd.ad_id = HAL_DIAG_REVS; > + spectral->atd.ad_out_data = (caddr_t) &revs; > + spectral->atd.ad_out_size = sizeof(revs); > + if (ioctl(spectral->s, SIOCGATHDIAG, &spectral->atd) < 0) { > + warn(spectral->atd.ad_name); > + return 0; > + } > + spectral->ah_devid = revs.ah_devid; > + return 1; > +} > + > +void > +spectral_closedev(struct spectralhandler *spectral) > +{ > + close(spectral->s); > + spectral->s = -1; > +} > + > +void > +spectralset(struct spectralhandler *spectral, int op, u_int32_t param) > +{ > + HAL_SPECTRAL_PARAM pe; > + > + pe.ss_fft_period = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_period = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_count = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_short_report = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_spectral_pri = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_fft_period = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_enabled = HAL_SPECTRAL_PARAM_NOVAL; > + pe.ss_active = HAL_SPECTRAL_PARAM_NOVAL; > + > + switch (op) { > + case SPECTRAL_PARAM_FFT_PERIOD: > + pe.ss_fft_period = param; > + break; > + case SPECTRAL_PARAM_SS_PERIOD: > + pe.ss_period = param; > + break; > + case SPECTRAL_PARAM_SS_COUNT: > + pe.ss_count = param; > + break; > + case SPECTRAL_PARAM_SS_SHORT_RPT: > + pe.ss_short_report = param; > + break; > + } > + > + spectral->atd.ad_id = SPECTRAL_CONTROL_SET_PARAMS | ATH_DIAG_IN; > + spectral->atd.ad_out_data = NULL; > + spectral->atd.ad_out_size = 0; > + spectral->atd.ad_in_data = (caddr_t) &pe; > + spectral->atd.ad_in_size = sizeof(HAL_SPECTRAL_PARAM); > + if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) > + err(1, spectral->atd.ad_name); > +} > + > +static void > +spectral_get(struct spectralhandler *spectral) > +{ > + HAL_SPECTRAL_PARAM pe; > + > + spectral->atd.ad_id = SPECTRAL_CONTROL_GET_PARAMS | ATH_DIAG_DYN; > + memset(&pe, 0, sizeof(pe)); > + > + spectral->atd.ad_in_data = NULL; > + spectral->atd.ad_in_size = 0; > + spectral->atd.ad_out_data = (caddr_t) &pe; > + spectral->atd.ad_out_size = sizeof(pe); > + > + if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) > + err(1, spectral->atd.ad_name); > + > + printf("Spectral parameters (raw):\n"); > + printf(" ss_enabled: %d\n", pe.ss_enabled); > + printf(" ss_active: %d\n", pe.ss_active); > + printf(" ss_count: %d\n", pe.ss_count); > + printf(" ss_fft_period: %d\n", pe.ss_fft_period); > + printf(" ss_period: %d\n", pe.ss_period); > + printf(" ss_short_report: %d\n", pe.ss_short_report); > + printf(" radar_bin_thresh_sel: %d\n", pe.radar_bin_thresh_sel); > +} > + > +static void > +spectral_start(struct spectralhandler *spectral) > +{ > + HAL_SPECTRAL_PARAM pe; > + > + spectral->atd.ad_id = SPECTRAL_CONTROL_START | ATH_DIAG_DYN; > + memset(&pe, 0, sizeof(pe)); > + > + /* > + * XXX don't need these, but need to eliminate the ATH_DIAG_DYN > flag > + * and debug > + */ > + spectral->atd.ad_in_data = NULL; > + spectral->atd.ad_in_size = 0; > + spectral->atd.ad_out_data = (caddr_t) &pe; > + spectral->atd.ad_out_size = sizeof(pe); > + > + if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) > + err(1, spectral->atd.ad_name); > +} > + > +static void > +spectral_stop(struct spectralhandler *spectral) > +{ > + HAL_SPECTRAL_PARAM pe; > + > + spectral->atd.ad_id = SPECTRAL_CONTROL_STOP | ATH_DIAG_DYN; > + memset(&pe, 0, sizeof(pe)); > + > + /* > + * XXX don't need these, but need to eliminate the ATH_DIAG_DYN > flag > + * and debug > + */ > + spectral->atd.ad_in_data = NULL; > + spectral->atd.ad_in_size = 0; > + spectral->atd.ad_out_data = (caddr_t) &pe; > + spectral->atd.ad_out_size = sizeof(pe); > + > + if (ioctl(spectral->s, SIOCGATHSPECTRAL, &spectral->atd) < 0) > + err(1, spectral->atd.ad_name); > +} > + > +static int > +spectral_set_param(struct spectralhandler *spectral, const char *param, > + const char *val) > +{ > + int v; > + > + v = atoi(val); > + > + if (strcmp(param, "ss_short_report") == 0) { > + spectralset(spectral, SPECTRAL_PARAM_SS_SHORT_RPT, v); > + } else if (strcmp(param, "ss_fft_period") == 0) { > + spectralset(spectral, SPECTRAL_PARAM_FFT_PERIOD, v); > + } else if (strcmp(param, "ss_period") == 0) { > + spectralset(spectral, SPECTRAL_PARAM_SS_PERIOD, v); > + } else if (strcmp(param, "ss_count") == 0) { > + spectralset(spectral, SPECTRAL_PARAM_SS_COUNT, v); > + } else { > + return (0); > + } > + > +#if 0 > + if (strcmp(param, "enabled") == 0) { > + spectralset(spectral, DFS_PARAM_ENABLE, v); > + } else if (strcmp(param, "firpwr") == 0) { > + spectralset(spectral, DFS_PARAM_FIRPWR, v); > + } else if (strcmp(param, "rrssi") == 0) { > + spectralset(spectral, DFS_PARAM_RRSSI, v); > + } else if (strcmp(param, "height") == 0) { > + spectralset(spectral, DFS_PARAM_HEIGHT, v); > + } else if (strcmp(param, "prssi") == 0) { > + spectralset(spectral, DFS_PARAM_PRSSI, v); > + } else if (strcmp(param, "inband") == 0) { > + spectralset(spectral, DFS_PARAM_INBAND, v); > + } else if (strcmp(param, "relpwr") == 0) { > + spectralset(spectral, DFS_PARAM_RELPWR, v); > + } else if (strcmp(param, "relstep") == 0) { > + spectralset(spectral, DFS_PARAM_RELSTEP, v); > + } else if (strcmp(param, "maxlen") == 0) { > + spectralset(spectral, DFS_PARAM_MAXLEN, v); > + } else if (strcmp(param, "usefir128") == 0) { > + spectralset(spectral, DFS_PARAM_USEFIR128, v); > + } else if (strcmp(param, "blockspectral") == 0) { > + spectralset(spectral, DFS_PARAM_BLOCKRADAR, v); > + } else if (strcmp(param, "enmaxrssi") == 0) { > + spectralset(spectral, DFS_PARAM_MAXRSSI_EN, v); > + } else if (strcmp(param, "extchannel") == 0) { > + spectralset(spectral, DFS_PARAM_EN_EXTCH, v); > + } else if (strcmp(param, "enrelpwr") == 0) { > + spectralset(spectral, DFS_PARAM_RELPWR_EN, v); > + } else if (strcmp(param, "en_relstep_check") == 0) { > + spectralset(spectral, DFS_PARAM_RELSTEP_EN, v); > + } else { > + return 0; > + } > +#endif > + > + return 1; > +} > + > +void > +usage(const char *progname) > +{ > + printf("Usage:\n"); > + printf("\t%s: [-i ] ()\n", progname); > + printf("\t%s: [-h]\n", progname); > + printf("\n"); > + printf("Valid commands:\n"); > + printf("\tget:\t\tGet current spectral parameters\n"); > + printf("\tset :\t\tSet spectral parameter\n"); > + printf("\tstart: Start spectral scan\n"); > + printf("\tstop: Stop spectral scan\n"); > +} > + > +int > +main(int argc, char *argv[]) > +{ > + struct spectralhandler spectral; > + const char *devname = ATH_DEFAULT; > + const char *progname = argv[0]; > + > + memset(&spectral, 0, sizeof(spectral)); > + > + /* Parse command line options */ > + if (argc >= 2 && strcmp(argv[1], "-h") == 0) { > + usage(progname); > + exit(0); > + } > + if (argc >= 2 && strcmp(argv[1], "-?") == 0) { > + usage(progname); > + exit(0); > + } > + > + if (argc >= 2 && strcmp(argv[1], "-i") == 0) { > + if (argc == 2) { > + usage(progname); > + exit(127); > + } > + devname = argv[2]; > + argc -= 2; argv += 2; > + } > + > + /* At this point we require at least one command */ > + if (argc == 1) { > + usage(progname); > + exit(127); > + } > + > + if (spectral_opendev(&spectral, devname) == 0) > + exit(127); > + > + if (strcasecmp(argv[1], "get") == 0) { > + spectral_get(&spectral); > + } else if (strcasecmp(argv[1], "set") == 0) { > + if (argc < 4) { > + usage(progname); > + exit(127); > + } > + if (spectral_set_param(&spectral, argv[2], argv[3]) == 0) > { > + usage(progname); > + exit(127); > + } > + } else if (strcasecmp(argv[1], "start") == 0) { > + spectral_start(&spectral); > + } else if (strcasecmp(argv[1], "stop") == 0) { > + spectral_stop(&spectral); > + } else { > + usage(progname); > + exit(127); > + } > + > + /* wrap up */ > + spectral_closedev(&spectral); > + exit(0); > +} _______________________________________________ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2805 / Virus Database: 2637/6002 - Release Date: 01/01/13 From owner-freebsd-wireless@FreeBSD.ORG Wed Jan 2 11:40:01 2013 Return-Path: Delivered-To: freebsd-wireless@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 811F843B for ; Wed, 2 Jan 2013 11:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 615A28FC08 for ; Wed, 2 Jan 2013 11:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r02Be19G046249 for ; Wed, 2 Jan 2013 11:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r02Be1ou046247; Wed, 2 Jan 2013 11:40:01 GMT (envelope-from gnats) Date: Wed, 2 Jan 2013 11:40:01 GMT Message-Id: <201301021140.r02Be1ou046247@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org Cc: From: Matthias Meyser Subject: Re: conf/143079: hostapd(8) startup missing multi wlan functionality X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Meyser 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: Wed, 02 Jan 2013 11:40:01 -0000 The following reply was made to PR conf/143079; it has been noted by GNATS. From: Matthias Meyser To: bug-followup@FreeBSD.org, Meyser@xenet.de Cc: Subject: Re: conf/143079: hostapd(8) startup missing multi wlan functionality Date: Wed, 02 Jan 2013 12:14:37 +0100 Updated patch for /etc/rc.d/hostapd --- hostapd.orig 2013-01-02 11:13:29.000000000 +0100 +++ hostapd 2013-01-02 12:04:04.000000000 +0100 @@ -13,7 +13,9 @@ rcvar="hostapd_enable" command="/usr/sbin/${name}" -conf_file="/etc/${name}.conf" +load_rc_config ${name} + +conf_file="${hostapd_config:-/etc/${name}.conf}" pidfile="/var/run/${name}.pid" command_args="-P ${pidfile} -B ${conf_file}" @@ -21,5 +23,4 @@ required_modules="wlan_xauth wlan_wep wlan_tkip wlan_ccmp" extra_commands="reload" -load_rc_config ${name} run_rc_command "$1" -- Matthias Meyser | XeNET Gesellschaft fuer Informations- und Kommunikationssysteme mbH Tel.: +49-5323-94018 | 38678 Clausthal-Zellerfeld, Burgstaetter Strasse 6 Fax: +49-5323-94014 | Registergericht: Amtsgericht Braunschweig, HRB 110823 Email: Meyser@xenet.de | Geschaeftsfuehrer: Matthias Meyser From owner-freebsd-wireless@FreeBSD.ORG Wed Jan 2 20:40:37 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 37A2965B for ; Wed, 2 Jan 2013 20:40:37 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx1.freebsd.org (Postfix) with ESMTP id BDA68214 for ; Wed, 2 Jan 2013 20:40:36 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id x43so6658492wey.23 for ; Wed, 02 Jan 2013 12:40:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1rNUHAIz7LSrcwsXGAuJuLyeGBxVahkDJL+LqIBAyzk=; b=lf/Bj12Bu/Q9MjmnMZh/9AaTB8rUFAUEGhelF3vmCfuxWwDdEDWWQ2mmLCFCIiOAJp hEX3ydbxEbQitVIyQygvDeofgrIlE7eeJPU3H6YUWF/brxwKDdJ3dne9l6kjvra0USO2 RwIuufWsm/IXOG0xlTSgIHqOzXdLTGGJPJrGuRM4Yz//eNO7J3OFjYmDH/m3fBRjLJxw hQZNzWx32v/w204EoAaoQQmyy/F/yZCj8gB1KrnmzK3X1vxE/d/P0x9eSSF4KC2/Gkvh 9jmTOIEhBWFHt8knxTm5t3n6265byFeRJneaGy8/kcaIfcbXUxqSt1X0Azi7KV9RZ0yW MfSg== MIME-Version: 1.0 Received: by 10.180.95.228 with SMTP id dn4mr72498174wib.16.1357159230053; Wed, 02 Jan 2013 12:40:30 -0800 (PST) Received: by 10.227.59.19 with HTTP; Wed, 2 Jan 2013 12:40:29 -0800 (PST) In-Reply-To: References: Date: Wed, 2 Jan 2013 21:40:29 +0100 Message-ID: Subject: Re: ath0: could not map interrupt From: Monthadar Al Jaberi To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 02 Jan 2013 20:40:37 -0000 I tested some more. First I changed the miniPCI slot. Now boot looks like this: pcib0 at irq 0 on nexus0 pci0: on pcib0 ath0: irq 2 at device 19.0 on pci0 ath0: AR5413 mac 10.5 RF5413 phy 6.1 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 Then I created a hostap. But none of my other devices sees it (laptop, iphone). A scan results in: # ifconfig wlan0 scan wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell 0 maxdwell 0 nssid 0 wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 maxdwell 0, desired mode 11g, append, nopick, once wlan0: scan set 11g dwell min 200ms max 200ms wlan0: scan_task: chan 11g -> 11g [active, dwell min 200ms max 200ms] wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822) 0xc6f27000<00:15:6d:67:21:8d> refcnt 4 wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "" wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 2150141333] wlan0: notify scan done root@rb433ah:~ # ath0: device timeout And when I try to ping a random IP address I get the following. Interesting is that it seems to "bail out" when it tries to send probe_resp (last in output): $ ping -c 1 172.168.3.2 PING 172.168.3.2 (172.168.3.2): 56 data bytes ath0: device timeout wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8 wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2 [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5 [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4 [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9 wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0 wlan0: [00:aa:70:77:bd:77] recv probe req wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489) 0xc6f27000<00:15:6d:67:21:8d> refcnt 5 wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77 ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing .... On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi wrote: > Hi, > > ath(4) failed to attach on my Routerboard RB433AH running FreeBSD > current. This is what I got during boo-up. > > pcib0 at irq 0 on nexus0 > pci0: on pcib0 > ath0: irq 3 at device 20.0 on pci0 > ath0: could not map interrupt > device_attach: ath0 attach returned 6 > > Any idea why? Anyone else is running ath(4) on this board? My wifi > card is a Ubiquity X2 with AR5413 chip. > > br, > > > -- > Monthadar Al Jaberi -- Monthadar Al Jaberi From owner-freebsd-wireless@FreeBSD.ORG Wed Jan 2 20:43:35 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 82A9267D; Wed, 2 Jan 2013 20:43:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id E0B8021E; Wed, 2 Jan 2013 20:43:34 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id fg15so6919983wgb.9 for ; Wed, 02 Jan 2013 12:43:28 -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=zCExacbgMa4ChAkYyletAA4SKkfN+DJODGTFjOw8p0M=; b=LmKSlnW4oERaiyFOTm7kEVI14c4c/LvcM99E2gGQpoKRHN3n/amOlTWaBq552Ziq8X TIV9IdBO70d5paiXqDe9XwM9yWV0Ktci67BRjlWE4kiaXIUU2DMZ5xdMsedihpl+2m8R QxIpxzny2mLZxHK64Y/MJFGFg572EDdM7ue0Z+bb9LC5PNDJ7VudwICkvl5KM95zBOfL 2x8rOGmo5k+ee2vq0hRbWGL17u6yJ1iLd0Xoq6g7PZIdckvzNIOKl7abD8X8r36RVEZs WT0oZeIWrdyDFQjAn5YLvu5rirI5l66tLRxPGmzZoZFuQMZ4/Hq7rEr+lstBKhDgc3pc A6WA== MIME-Version: 1.0 Received: by 10.194.179.34 with SMTP id dd2mr74722273wjc.1.1357159408354; Wed, 02 Jan 2013 12:43:28 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Wed, 2 Jan 2013 12:43:28 -0800 (PST) In-Reply-To: References: Date: Wed, 2 Jan 2013 12:43:28 -0800 X-Google-Sender-Auth: 7tSRvjmaW8pMCRsaJaohxRuTF9s Message-ID: Subject: Re: ath0: could not map interrupt From: Adrian Chadd To: Monthadar Al Jaberi Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 02 Jan 2013 20:43:35 -0000 ... sounds like a definite interrupt routing issue. Who's been knee deep in the interrupt handling code in MIPS lately? Grrr. I know there's been some FDT work in MIPS and that's touched some interrupt code.. maybe that's interfering? Adrian On 2 January 2013 12:40, Monthadar Al Jaberi wrote: > I tested some more. First I changed the miniPCI slot. Now boot looks like this: > > pcib0 at irq 0 on nexus0 > pci0: on pcib0 > ath0: irq 2 at device 19.0 on pci0 > ath0: AR5413 mac 10.5 RF5413 phy 6.1 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 > > > Then I created a hostap. But none of my other devices sees it (laptop, iphone). > > A scan results in: > > # ifconfig wlan0 scan > wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell 0 > maxdwell 0 nssid 0 > wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 > maxdwell 0, desired mode 11g, append, nopick, once > wlan0: scan set 11g dwell min 200ms max 200ms > wlan0: scan_task: chan 11g -> 11g [active, dwell min 200ms max 200ms] > wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822) > 0xc6f27000<00:15:6d:67:21:8d> refcnt 4 > wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "" > wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 2150141333] > wlan0: notify scan done > root@rb433ah:~ # ath0: device timeout > > And when I try to ping a random IP address I get the following. > Interesting is that it seems to "bail out" when it tries to send > probe_resp (last in output): > $ ping -c 1 172.168.3.2 > PING 172.168.3.2 (172.168.3.2): 56 data bytes > ath0: device timeout > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 > wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8 > wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 > wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 > wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 > wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 > wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2 > [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: > 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a > wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5 > [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4 > [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" > wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9 > wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 > wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 > wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 > wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 > wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 > wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 > wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 > wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 > wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 > wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 > wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 > wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 > wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0 > wlan0: [00:aa:70:77:bd:77] recv probe req > wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489) > 0xc6f27000<00:15:6d:67:21:8d> refcnt 5 > wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77 > ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing > .... > > > On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi wrote: >> Hi, >> >> ath(4) failed to attach on my Routerboard RB433AH running FreeBSD >> current. This is what I got during boo-up. >> >> pcib0 at irq 0 on nexus0 >> pci0: on pcib0 >> ath0: irq 3 at device 20.0 on pci0 >> ath0: could not map interrupt >> device_attach: ath0 attach returned 6 >> >> Any idea why? Anyone else is running ath(4) on this board? My wifi >> card is a Ubiquity X2 with AR5413 chip. >> >> br, >> >> >> -- >> Monthadar Al Jaberi > > > > -- > Monthadar Al Jaberi > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Wed Jan 2 21:29:22 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B002A8FB; Wed, 2 Jan 2013 21:29:22 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx1.freebsd.org (Postfix) with ESMTP id D8B123D5; Wed, 2 Jan 2013 21:29:21 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id hj13so8177502wib.7 for ; Wed, 02 Jan 2013 13:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UxGaZAlVKRmDAj9b/bSax/JVWjmyt2mQ4+oEPI1UJQQ=; b=BoO/ytM7TsjXtmz3r42WZEQLClPuD6qZtrXy3wo6A24ihZWgpYjDaQvNl2A8b+LDhB 2bhEMyde2gMJ2uP8KjM0zKt6YGps58zW6Q4ep5TY0QFoPFLSzFHUhmOKA5XRRcKEzDUr M2fG19kb3vkfYK2vP1gZHJWHU5fLCLwm5VPEcZbR/FYLXBvuMfnXj6XYiEoDfrrx9pSg h8NcyKfOyxY6BtDbDbekUi/yo18R7fIvwoOmkgTl3QtPW3Ug/mi1uHUEweS5j3Gk/dVE ytM51PZZxmAj7ceXYyKA4AUpy1PEmuYPE5kdMxk+kTY1kE9iGZuJ4bJAW4tosw9PIXTz LEwQ== MIME-Version: 1.0 Received: by 10.180.20.109 with SMTP id m13mr73109841wie.16.1357162155089; Wed, 02 Jan 2013 13:29:15 -0800 (PST) Received: by 10.227.59.19 with HTTP; Wed, 2 Jan 2013 13:29:14 -0800 (PST) In-Reply-To: References: Date: Wed, 2 Jan 2013 22:29:14 +0100 Message-ID: Subject: Re: ath0: could not map interrupt From: Monthadar Al Jaberi To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 02 Jan 2013 21:29:22 -0000 On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd wrote: > ... sounds like a definite interrupt routing issue. > > Who's been knee deep in the interrupt handling code in MIPS lately? Grrr. > I know there's been some FDT work in MIPS and that's touched some > interrupt code.. maybe that's interfering? I am not sure, I just re-compiled my kernel for RSPRO and it seems to work. I install openwrt on rb433ah and ath0 associated ok. and I could ping between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working RB433AH running same kernel r243866. Attached is my kernel config & hints. ( I am "playing around" with the ar71xx_spi but that should not effect the pci code, I hope). # # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71xx systems # # This includes all the common drivers for the AR71XX boards along with # the usb, net80211 and atheros driver code. # # $FreeBSD$ # machine mips mips ident RB433AH_MFS cpu CPU_MIPS4KC makeoptions KERNLOADADDR=0x80050000 options HZ=1000 options HWPMC_HOOKS files "../atheros/files.ar71xx" # For now, hints are per-board. hints "RB433AH.hints" makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols # Build these as modules so small platform builds will have the # modules already built. makeoptions MODULES_OVERRIDE="random gpio ar71xx if_gif if_gre if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci" options DDB options KDB options SCHED_4BSD #4BSD scheduler options INET #InterNETworking #options INET6 # IPv6 # options NFS_CL #Network Filesystem Client options PSEUDOFS #Pseudo-filesystem framework options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions # options NFS_LEGACYRPC # Debugging for use in -current options INVARIANTS options INVARIANT_SUPPORT options WITNESS options WITNESS_SKIPSPIN options DEBUG_REDZONE options DEBUG_MEMGUARD options FFS #Berkeley Fast Filesystem # options SOFTUPDATES #Enable FFS soft updates support # options UFS_ACL #Support for access control lists # options UFS_DIRHASH #Improve performance on big directories # options MSDOSFS # Read MSDOS filesystems; useful for USB/CF device pci device ar71xx_pci # RTC - requires hackery in the spibus code to work device pcf2123_rtc # GEOM modules device geom_redboot # to get access to the SPI flash partitions device geom_uzip # compressed in-memory filesystem hackery! device geom_map options GEOM_UZIP # NANDFS options NANDFS ## Boot from the first MFS uzip #options ROOTDEVNAME=\"ufs:md0.uzip\" #options MD_ROOT #options MD_ROOT_SIZE="9000" # Boot from NFS options NFSLOCKD #Network Lock Manager options NFSCLIENT #Network Filesystem Client options NFS_ROOT options BOOTP options BOOTP_NFSROOT options BOOTP_NFSV3 options BOOTP_WIRED_TO=arge1 options BOOTP_COMPAT options ROOTDEVNAME=\"nfs:172.16.0.101:/usr/obj/rb433ah/nfs\" # 802.11 framework options IEEE80211_DEBUG options IEEE80211_ALQ options IEEE80211_SUPPORT_MESH # This option is currently broken for if_ath_tx. options IEEE80211_SUPPORT_TDMA options IEEE80211_AMPDU_AGE device wlan # 802.11 support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_xauth # 802.11 hostap support device wlan_acl # 802.11 ACL support # Atheros wireless NICs device ath # Atheros interface support device ath_pci # Atheros PCI/Cardbus bus options ATH_DEBUG options ATH_DIAGAPI options ATH_ENABLE_11N options AH_DEBUG options AH_DEBUG_ALQ options ALQ device ath_hal option AH_SUPPORT_AR5416 device ath_rate_sample option AH_RXCFG_SDMAMW_4BYTES option AH_AR5416_INTERRUPT_MITIGATION # There's no DFS radar detection support yet so this won't actually # detect radars. It however does enable the rest of the channel change # machinery so DFS can be debugged. option ATH_ENABLE_DFS device mii device arge #options ARGE_DEBUG # Enable if_arge debugging for now #device usb #options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order #options USB_DEBUG #options USB_HOST_ALIGN=32 # AR71XX (MIPS in general?) requires this #device ehci device scbus #device umass device da device rb4xx # On-board SPI flash device spibus device ar71xx_spi device mmc device mmcsd device mmcspi device mx25l device nand device ar71xx_wdog device uart device uart_ar71xx device loop device ether device md device bpf device random device if_bridge device gif # ip[46] in ip[46] tunneling protocol device gre # generic encapsulation - only for IPv4 in IPv4 though atm # Enable GPIO device gpio device gpioled options AR71XX_ROUTERBOOT # $FreeBSD$ hint.apb.0.at="nexus0" hint.apb.0.irq=4 # uart0 hint.uart.0.at="apb0" # see atheros/uart_cpu_ar71xx.c why +3 hint.uart.0.maddr=0x18020003 hint.uart.0.msize=0x18 hint.uart.0.irq=3 #ohci #hint.ohci.0.at="apb0" #hint.ohci.0.maddr=0x1c000000 #hint.ohci.0.msize=0x01000000 #hint.ohci.0.irq=6 #ehci #hint.ehci.0.at="nexus0" #hint.ehci.0.maddr=0x1b000000 #hint.ehci.0.msize=0x01000000 #hint.ehci.0.irq=1 # pci hint.pcib.0.at="nexus0" hint.pcib.0.irq=0 hint.arge.0.at="nexus0" hint.arge.0.maddr=0x19000000 hint.arge.0.msize=0x1000 hint.arge.0.irq=2 # PHY4 = 1 << 4 hint.arge.0.phymask=0x10 # Uncomment this hint for RS (not PRO) # PHY20 = 1 << 20 # hint.arge.0.phymask=0x100000 hint.ukphy.0.at="miibus0" hint.arge.1.at="nexus0" hint.arge.1.maddr=0x1a000000 hint.arge.1.msize=0x1000 hint.arge.1.irq=3 # PHY1, PHY2, PHY3 hint.arge.1.phymask=0x00 # should be 100 for RS #hint.arge.1.media=100 #hint.arge.1.fduplex=1 # Uncomment this hint for RS (not PRO) # hint.arge.1.phymask=70000 # SPI flash hint.spi.0.at="nexus0" hint.spi.0.maddr=0x1f000000 hint.spi.0.msize=0x10 hint.mx25l.0.at="spibus0" hint.mx25l.0.cs=1 hint.rb_cpldbus.0.at="spibus0" hint.rb_cpldbus.0.cs=1 # hint.onand.0.at="nandbus0" hint.lnand.0.at="nandbus0" hint.snand.0.at="nandbus0" hint.flash.0.at="nand0" hint.flash.0.size="0x40000" hint.flash.0.offset="0" hint.flash.0.name="bootloader" hint.flash.1.at="nand0" hint.flash.1.size="0x3c0000" hint.flash.1.offset="0x40000" hint.flash.1.name="kernelfs" hint.flash.2.at="nand0" hint.flash.2.size="0" hint.flash.2.offset="0x400000" hint.flash.2.name="rootfs" hint.ar71xx_gpio.0.at="nexus0" #hint.rb_nandbusy.0.at="gpiobus0" hint.mmcspi.0.at="spibus0" hint.mmcspi.0.cs=2 # Watchdog hint.ar71xx_wdog.0.at="nexus0" br, > > > Adrian > > > On 2 January 2013 12:40, Monthadar Al Jaberi wrote: >> I tested some more. First I changed the miniPCI slot. Now boot looks like this: >> >> pcib0 at irq 0 on nexus0 >> pci0: on pcib0 >> ath0: irq 2 at device 19.0 on pci0 >> ath0: AR5413 mac 10.5 RF5413 phy 6.1 >> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 >> >> >> Then I created a hostap. But none of my other devices sees it (laptop, iphone). >> >> A scan results in: >> >> # ifconfig wlan0 scan >> wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell 0 >> maxdwell 0 nssid 0 >> wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 >> maxdwell 0, desired mode 11g, append, nopick, once >> wlan0: scan set 11g dwell min 200ms max 200ms >> wlan0: scan_task: chan 11g -> 11g [active, dwell min 200ms max 200ms] >> wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822) >> 0xc6f27000<00:15:6d:67:21:8d> refcnt 4 >> wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "" >> wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 2150141333] >> wlan0: notify scan done >> root@rb433ah:~ # ath0: device timeout >> >> And when I try to ping a random IP address I get the following. >> Interesting is that it seems to "bail out" when it tries to send >> probe_resp (last in output): >> $ ping -c 1 172.168.3.2 >> PING 172.168.3.2 (172.168.3.2): 56 data bytes >> ath0: device timeout >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8 >> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 >> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2 >> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: >> 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a >> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5 >> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4 >> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" >> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9 >> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 >> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >> wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0 >> wlan0: [00:aa:70:77:bd:77] recv probe req >> wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489) >> 0xc6f27000<00:15:6d:67:21:8d> refcnt 5 >> wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77 >> ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing >> .... >> >> >> On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi wrote: >>> Hi, >>> >>> ath(4) failed to attach on my Routerboard RB433AH running FreeBSD >>> current. This is what I got during boo-up. >>> >>> pcib0 at irq 0 on nexus0 >>> pci0: on pcib0 >>> ath0: irq 3 at device 20.0 on pci0 >>> ath0: could not map interrupt >>> device_attach: ath0 attach returned 6 >>> >>> Any idea why? Anyone else is running ath(4) on this board? My wifi >>> card is a Ubiquity X2 with AR5413 chip. >>> >>> br, >>> >>> >>> -- >>> Monthadar Al Jaberi >> >> >> >> -- >> Monthadar Al Jaberi >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" -- Monthadar Al Jaberi From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 4 01:28:43 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 88BEB589; Fri, 4 Jan 2013 01:28:43 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id B90BD1D3; Fri, 4 Jan 2013 01:28:42 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id es5so7488065wgb.5 for ; Thu, 03 Jan 2013 17:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kSZwzYNX3FN9GrCRZmPex388n4hTFvhEJIvTU+GCBpc=; b=xK4pGLb0b8l25dC+CB+2gIBGLniBLF5HlUcE18tm7MG/AdmF6fqEkpqv3VoNK8Z4fC ukrPShZlhftEC5Q/Hh489D31/OkucBR7Ul772bnKegnV1uaLnXSoqwTzTLh/U0VDRcjx sZs37ODzR0vh7x8OK2eSQ9PmkHYSwxvHcfwN4KzgVECptI8d42QRt5Ffu2xOYhkEsUgC eFgl0cAuOZSrvb4Ddw3rMlhRhG83ifpWPtoISL3YPp3pivyQWtaqOqyIPMEMf6TGuGCu wE8Fv3bfY7sqozSPzaB+4237TRy0nBWAEZkHjBGRvya/fH1snDNbMwobeLpQ3kTUZfIo Rotw== MIME-Version: 1.0 Received: by 10.180.20.109 with SMTP id m13mr79459931wie.16.1357262915639; Thu, 03 Jan 2013 17:28:35 -0800 (PST) Received: by 10.227.59.19 with HTTP; Thu, 3 Jan 2013 17:28:35 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Jan 2013 02:28:35 +0100 Message-ID: Subject: Re: ath0: could not map interrupt From: Monthadar Al Jaberi To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 04 Jan 2013 01:28:43 -0000 Hi, I am wondering if anyone can confirm that any ath5k (preferably AR5413) series miniPCI wifi works on RB433/AH/UAH. Thank you in advance On Wed, Jan 2, 2013 at 10:29 PM, Monthadar Al Jaberi wrote: > On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd wrote: >> ... sounds like a definite interrupt routing issue. >> >> Who's been knee deep in the interrupt handling code in MIPS lately? Grrr. >> I know there's been some FDT work in MIPS and that's touched some >> interrupt code.. maybe that's interfering? > > I am not sure, I just re-compiled my kernel for RSPRO and it seems to work. > > I install openwrt on rb433ah and ath0 associated ok. and I could ping > between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working > RB433AH running same kernel r243866. > > Attached is my kernel config & hints. ( I am "playing around" with the > ar71xx_spi but that should not effect the pci code, I hope). > > # > # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71xx systems > # > # This includes all the common drivers for the AR71XX boards along with > # the usb, net80211 and atheros driver code. > # > # $FreeBSD$ > # > > machine mips mips > ident RB433AH_MFS > cpu CPU_MIPS4KC > makeoptions KERNLOADADDR=0x80050000 > options HZ=1000 > options HWPMC_HOOKS > > files "../atheros/files.ar71xx" > > # For now, hints are per-board. > > hints "RB433AH.hints" > > makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols > > # Build these as modules so small platform builds will have the > # modules already built. > makeoptions MODULES_OVERRIDE="random gpio ar71xx if_gif if_gre > if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip > wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci" > > options DDB > options KDB > > options SCHED_4BSD #4BSD scheduler > options INET #InterNETworking > #options INET6 # IPv6 > > # options NFS_CL #Network Filesystem Client > > options PSEUDOFS #Pseudo-filesystem framework > options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions > > # options NFS_LEGACYRPC > # Debugging for use in -current > options INVARIANTS > options INVARIANT_SUPPORT > options WITNESS > options WITNESS_SKIPSPIN > options DEBUG_REDZONE > options DEBUG_MEMGUARD > > options FFS #Berkeley Fast Filesystem > # options SOFTUPDATES #Enable FFS soft updates support > # options UFS_ACL #Support for access control lists > # options UFS_DIRHASH #Improve performance on big > directories > # options MSDOSFS # Read MSDOS filesystems; useful for USB/CF > > device pci > device ar71xx_pci > > # RTC - requires hackery in the spibus code to work > device pcf2123_rtc > > # GEOM modules > device geom_redboot # to get access to the SPI flash partitions > device geom_uzip # compressed in-memory filesystem hackery! > device geom_map > options GEOM_UZIP > > # NANDFS > options NANDFS > > ## Boot from the first MFS uzip > #options ROOTDEVNAME=\"ufs:md0.uzip\" > #options MD_ROOT > #options MD_ROOT_SIZE="9000" > > # Boot from NFS > options NFSLOCKD #Network Lock Manager > options NFSCLIENT #Network Filesystem Client > options NFS_ROOT > > options BOOTP > options BOOTP_NFSROOT > options BOOTP_NFSV3 > options BOOTP_WIRED_TO=arge1 > options BOOTP_COMPAT > options ROOTDEVNAME=\"nfs:172.16.0.101:/usr/obj/rb433ah/nfs\" > > > # 802.11 framework > options IEEE80211_DEBUG > options IEEE80211_ALQ > options IEEE80211_SUPPORT_MESH > # This option is currently broken for if_ath_tx. > options IEEE80211_SUPPORT_TDMA > options IEEE80211_AMPDU_AGE > device wlan # 802.11 support > device wlan_wep # 802.11 WEP support > device wlan_ccmp # 802.11 CCMP support > device wlan_tkip # 802.11 TKIP support > device wlan_xauth # 802.11 hostap support > device wlan_acl # 802.11 ACL support > > # Atheros wireless NICs > device ath # Atheros interface support > device ath_pci # Atheros PCI/Cardbus bus > options ATH_DEBUG > options ATH_DIAGAPI > options ATH_ENABLE_11N > options AH_DEBUG > options AH_DEBUG_ALQ > options ALQ > device ath_hal > option AH_SUPPORT_AR5416 > device ath_rate_sample > option AH_RXCFG_SDMAMW_4BYTES > option AH_AR5416_INTERRUPT_MITIGATION > # There's no DFS radar detection support yet so this won't actually > # detect radars. It however does enable the rest of the channel change > # machinery so DFS can be debugged. > option ATH_ENABLE_DFS > > device mii > device arge > #options ARGE_DEBUG # Enable if_arge debugging for now > > #device usb > #options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order > #options USB_DEBUG > #options USB_HOST_ALIGN=32 # AR71XX (MIPS in general?) requires this > #device ehci > > device scbus > #device umass > device da > > device rb4xx > > # On-board SPI flash > device spibus > device ar71xx_spi > device mmc > device mmcsd > device mmcspi > device mx25l > device nand > device ar71xx_wdog > > device uart > device uart_ar71xx > > device loop > device ether > device md > device bpf > device random > device if_bridge > device gif # ip[46] in ip[46] tunneling protocol > device gre # generic encapsulation - only for IPv4 in IPv4 though atm > > # Enable GPIO > device gpio > device gpioled > > options AR71XX_ROUTERBOOT > > > # $FreeBSD$ > hint.apb.0.at="nexus0" > hint.apb.0.irq=4 > > # uart0 > hint.uart.0.at="apb0" > # see atheros/uart_cpu_ar71xx.c why +3 > hint.uart.0.maddr=0x18020003 > hint.uart.0.msize=0x18 > hint.uart.0.irq=3 > > #ohci > #hint.ohci.0.at="apb0" > #hint.ohci.0.maddr=0x1c000000 > #hint.ohci.0.msize=0x01000000 > #hint.ohci.0.irq=6 > > #ehci > #hint.ehci.0.at="nexus0" > #hint.ehci.0.maddr=0x1b000000 > #hint.ehci.0.msize=0x01000000 > #hint.ehci.0.irq=1 > > # pci > hint.pcib.0.at="nexus0" > hint.pcib.0.irq=0 > > hint.arge.0.at="nexus0" > hint.arge.0.maddr=0x19000000 > hint.arge.0.msize=0x1000 > hint.arge.0.irq=2 > # PHY4 = 1 << 4 > hint.arge.0.phymask=0x10 > # Uncomment this hint for RS (not PRO) > # PHY20 = 1 << 20 > # hint.arge.0.phymask=0x100000 > hint.ukphy.0.at="miibus0" > > hint.arge.1.at="nexus0" > hint.arge.1.maddr=0x1a000000 > hint.arge.1.msize=0x1000 > hint.arge.1.irq=3 > # PHY1, PHY2, PHY3 > hint.arge.1.phymask=0x00 > # should be 100 for RS > #hint.arge.1.media=100 > #hint.arge.1.fduplex=1 > # Uncomment this hint for RS (not PRO) > # hint.arge.1.phymask=70000 > > # SPI flash > hint.spi.0.at="nexus0" > hint.spi.0.maddr=0x1f000000 > hint.spi.0.msize=0x10 > > hint.mx25l.0.at="spibus0" > hint.mx25l.0.cs=1 > > hint.rb_cpldbus.0.at="spibus0" > hint.rb_cpldbus.0.cs=1 > # > hint.onand.0.at="nandbus0" > hint.lnand.0.at="nandbus0" > hint.snand.0.at="nandbus0" > > hint.flash.0.at="nand0" > hint.flash.0.size="0x40000" > hint.flash.0.offset="0" > hint.flash.0.name="bootloader" > hint.flash.1.at="nand0" > hint.flash.1.size="0x3c0000" > hint.flash.1.offset="0x40000" > hint.flash.1.name="kernelfs" > hint.flash.2.at="nand0" > hint.flash.2.size="0" > hint.flash.2.offset="0x400000" > hint.flash.2.name="rootfs" > > hint.ar71xx_gpio.0.at="nexus0" > > #hint.rb_nandbusy.0.at="gpiobus0" > > hint.mmcspi.0.at="spibus0" > hint.mmcspi.0.cs=2 > > # Watchdog > hint.ar71xx_wdog.0.at="nexus0" > > > br, > >> >> >> Adrian >> >> >> On 2 January 2013 12:40, Monthadar Al Jaberi wrote: >>> I tested some more. First I changed the miniPCI slot. Now boot looks like this: >>> >>> pcib0 at irq 0 on nexus0 >>> pci0: on pcib0 >>> ath0: irq 2 at device 19.0 on pci0 >>> ath0: AR5413 mac 10.5 RF5413 phy 6.1 >>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 >>> >>> >>> Then I created a hostap. But none of my other devices sees it (laptop, iphone). >>> >>> A scan results in: >>> >>> # ifconfig wlan0 scan >>> wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell 0 >>> maxdwell 0 nssid 0 >>> wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 >>> maxdwell 0, desired mode 11g, append, nopick, once >>> wlan0: scan set 11g dwell min 200ms max 200ms >>> wlan0: scan_task: chan 11g -> 11g [active, dwell min 200ms max 200ms] >>> wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822) >>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 4 >>> wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "" >>> wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 2150141333] >>> wlan0: notify scan done >>> root@rb433ah:~ # ath0: device timeout >>> >>> And when I try to ping a random IP address I get the following. >>> Interesting is that it seems to "bail out" when it tries to send >>> probe_resp (last in output): >>> $ ping -c 1 172.168.3.2 >>> PING 172.168.3.2 (172.168.3.2): 56 data bytes >>> ath0: device timeout >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8 >>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 >>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2 >>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: >>> 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a >>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5 >>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4 >>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" >>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9 >>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 >>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>> wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0 >>> wlan0: [00:aa:70:77:bd:77] recv probe req >>> wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489) >>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 5 >>> wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77 >>> ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing >>> .... >>> >>> >>> On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi wrote: >>>> Hi, >>>> >>>> ath(4) failed to attach on my Routerboard RB433AH running FreeBSD >>>> current. This is what I got during boo-up. >>>> >>>> pcib0 at irq 0 on nexus0 >>>> pci0: on pcib0 >>>> ath0: irq 3 at device 20.0 on pci0 >>>> ath0: could not map interrupt >>>> device_attach: ath0 attach returned 6 >>>> >>>> Any idea why? Anyone else is running ath(4) on this board? My wifi >>>> card is a Ubiquity X2 with AR5413 chip. >>>> >>>> br, >>>> >>>> >>>> -- >>>> Monthadar Al Jaberi >>> >>> >>> >>> -- >>> Monthadar Al Jaberi >>> _______________________________________________ >>> freebsd-wireless@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" > > > > -- > Monthadar Al Jaberi -- Monthadar Al Jaberi From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 4 04:54:21 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CAAD7D03; Fri, 4 Jan 2013 04:54:21 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 10F77968; Fri, 4 Jan 2013 04:54:20 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id es5so7534797wgb.5 for ; Thu, 03 Jan 2013 20:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RcCaDUfYK1LJC/T8GOK+udVawO7nbhntVUpRUS+BplM=; b=u6RXBmeE3PXf+fLFRszO8sla5lTy9L+WQGlRXBTK+RSTIa+Zu16L5IZUhVmMTyIC5x 6rdIIu0Zjqtrd2uJclUAJeuKFtKj7uSka8QAO1oZXb+92WAXwT+ftEXEfcnHJXoKBtmZ m3uESAdeh2C04TabkCUSmzGKW2QP6kFnPgE8NJ62Qd28MGNVjIp9rOgLUX0c769b2nQB DqTnwJ593OSVaMTSsh6/jSys9LGyYy0ucp45n62rJaU2sJ33ULxQQCTE0OEStpU6wZaM 04HOUdLAIWIwaAPqlEmOxDwbEQI4yF1EtlmZ19sE+0ur9VDy4n5VFywjz3WMBHKfz384 +7Bw== MIME-Version: 1.0 Received: by 10.194.236.68 with SMTP id us4mr82289738wjc.11.1357275259672; Thu, 03 Jan 2013 20:54:19 -0800 (PST) Received: by 10.227.59.19 with HTTP; Thu, 3 Jan 2013 20:54:19 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Jan 2013 05:54:19 +0100 Message-ID: Subject: Re: ath0: could not map interrupt From: Monthadar Al Jaberi To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 04 Jan 2013 04:54:21 -0000 Maybe this is the root of the problem. On RSPRO the PCI start slot enumerating from 17. While RB433AH start from 18. That can explain why Slot 20 of RB433AH won't even attach (AR7161 only has 3 slots, slot 17 to 19). That can also explain why I get device_timeout on slot 18 and 19 cause they are miss aligned. And don't see any interrupts from ath(4) when enabling interrupt debugging. I will keep digging into why they won't start enumerating correct. br, On Fri, Jan 4, 2013 at 2:28 AM, Monthadar Al Jaberi wrote: > Hi, > > I am wondering if anyone can confirm that any ath5k (preferably > AR5413) series miniPCI wifi works on RB433/AH/UAH. > > Thank you in advance > > On Wed, Jan 2, 2013 at 10:29 PM, Monthadar Al Jaberi > wrote: >> On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd wrote: >>> ... sounds like a definite interrupt routing issue. >>> >>> Who's been knee deep in the interrupt handling code in MIPS lately? Grrr. >>> I know there's been some FDT work in MIPS and that's touched some >>> interrupt code.. maybe that's interfering? >> >> I am not sure, I just re-compiled my kernel for RSPRO and it seems to work. >> >> I install openwrt on rb433ah and ath0 associated ok. and I could ping >> between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working >> RB433AH running same kernel r243866. >> >> Attached is my kernel config & hints. ( I am "playing around" with the >> ar71xx_spi but that should not effect the pci code, I hope). >> >> # >> # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71xx systems >> # >> # This includes all the common drivers for the AR71XX boards along with >> # the usb, net80211 and atheros driver code. >> # >> # $FreeBSD$ >> # >> >> machine mips mips >> ident RB433AH_MFS >> cpu CPU_MIPS4KC >> makeoptions KERNLOADADDR=0x80050000 >> options HZ=1000 >> options HWPMC_HOOKS >> >> files "../atheros/files.ar71xx" >> >> # For now, hints are per-board. >> >> hints "RB433AH.hints" >> >> makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols >> >> # Build these as modules so small platform builds will have the >> # modules already built. >> makeoptions MODULES_OVERRIDE="random gpio ar71xx if_gif if_gre >> if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip >> wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci" >> >> options DDB >> options KDB >> >> options SCHED_4BSD #4BSD scheduler >> options INET #InterNETworking >> #options INET6 # IPv6 >> >> # options NFS_CL #Network Filesystem Client >> >> options PSEUDOFS #Pseudo-filesystem framework >> options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions >> >> # options NFS_LEGACYRPC >> # Debugging for use in -current >> options INVARIANTS >> options INVARIANT_SUPPORT >> options WITNESS >> options WITNESS_SKIPSPIN >> options DEBUG_REDZONE >> options DEBUG_MEMGUARD >> >> options FFS #Berkeley Fast Filesystem >> # options SOFTUPDATES #Enable FFS soft updates support >> # options UFS_ACL #Support for access control lists >> # options UFS_DIRHASH #Improve performance on big >> directories >> # options MSDOSFS # Read MSDOS filesystems; useful for USB/CF >> >> device pci >> device ar71xx_pci >> >> # RTC - requires hackery in the spibus code to work >> device pcf2123_rtc >> >> # GEOM modules >> device geom_redboot # to get access to the SPI flash partitions >> device geom_uzip # compressed in-memory filesystem hackery! >> device geom_map >> options GEOM_UZIP >> >> # NANDFS >> options NANDFS >> >> ## Boot from the first MFS uzip >> #options ROOTDEVNAME=\"ufs:md0.uzip\" >> #options MD_ROOT >> #options MD_ROOT_SIZE="9000" >> >> # Boot from NFS >> options NFSLOCKD #Network Lock Manager >> options NFSCLIENT #Network Filesystem Client >> options NFS_ROOT >> >> options BOOTP >> options BOOTP_NFSROOT >> options BOOTP_NFSV3 >> options BOOTP_WIRED_TO=arge1 >> options BOOTP_COMPAT >> options ROOTDEVNAME=\"nfs:172.16.0.101:/usr/obj/rb433ah/nfs\" >> >> >> # 802.11 framework >> options IEEE80211_DEBUG >> options IEEE80211_ALQ >> options IEEE80211_SUPPORT_MESH >> # This option is currently broken for if_ath_tx. >> options IEEE80211_SUPPORT_TDMA >> options IEEE80211_AMPDU_AGE >> device wlan # 802.11 support >> device wlan_wep # 802.11 WEP support >> device wlan_ccmp # 802.11 CCMP support >> device wlan_tkip # 802.11 TKIP support >> device wlan_xauth # 802.11 hostap support >> device wlan_acl # 802.11 ACL support >> >> # Atheros wireless NICs >> device ath # Atheros interface support >> device ath_pci # Atheros PCI/Cardbus bus >> options ATH_DEBUG >> options ATH_DIAGAPI >> options ATH_ENABLE_11N >> options AH_DEBUG >> options AH_DEBUG_ALQ >> options ALQ >> device ath_hal >> option AH_SUPPORT_AR5416 >> device ath_rate_sample >> option AH_RXCFG_SDMAMW_4BYTES >> option AH_AR5416_INTERRUPT_MITIGATION >> # There's no DFS radar detection support yet so this won't actually >> # detect radars. It however does enable the rest of the channel change >> # machinery so DFS can be debugged. >> option ATH_ENABLE_DFS >> >> device mii >> device arge >> #options ARGE_DEBUG # Enable if_arge debugging for now >> >> #device usb >> #options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order >> #options USB_DEBUG >> #options USB_HOST_ALIGN=32 # AR71XX (MIPS in general?) requires this >> #device ehci >> >> device scbus >> #device umass >> device da >> >> device rb4xx >> >> # On-board SPI flash >> device spibus >> device ar71xx_spi >> device mmc >> device mmcsd >> device mmcspi >> device mx25l >> device nand >> device ar71xx_wdog >> >> device uart >> device uart_ar71xx >> >> device loop >> device ether >> device md >> device bpf >> device random >> device if_bridge >> device gif # ip[46] in ip[46] tunneling protocol >> device gre # generic encapsulation - only for IPv4 in IPv4 though atm >> >> # Enable GPIO >> device gpio >> device gpioled >> >> options AR71XX_ROUTERBOOT >> >> >> # $FreeBSD$ >> hint.apb.0.at="nexus0" >> hint.apb.0.irq=4 >> >> # uart0 >> hint.uart.0.at="apb0" >> # see atheros/uart_cpu_ar71xx.c why +3 >> hint.uart.0.maddr=0x18020003 >> hint.uart.0.msize=0x18 >> hint.uart.0.irq=3 >> >> #ohci >> #hint.ohci.0.at="apb0" >> #hint.ohci.0.maddr=0x1c000000 >> #hint.ohci.0.msize=0x01000000 >> #hint.ohci.0.irq=6 >> >> #ehci >> #hint.ehci.0.at="nexus0" >> #hint.ehci.0.maddr=0x1b000000 >> #hint.ehci.0.msize=0x01000000 >> #hint.ehci.0.irq=1 >> >> # pci >> hint.pcib.0.at="nexus0" >> hint.pcib.0.irq=0 >> >> hint.arge.0.at="nexus0" >> hint.arge.0.maddr=0x19000000 >> hint.arge.0.msize=0x1000 >> hint.arge.0.irq=2 >> # PHY4 = 1 << 4 >> hint.arge.0.phymask=0x10 >> # Uncomment this hint for RS (not PRO) >> # PHY20 = 1 << 20 >> # hint.arge.0.phymask=0x100000 >> hint.ukphy.0.at="miibus0" >> >> hint.arge.1.at="nexus0" >> hint.arge.1.maddr=0x1a000000 >> hint.arge.1.msize=0x1000 >> hint.arge.1.irq=3 >> # PHY1, PHY2, PHY3 >> hint.arge.1.phymask=0x00 >> # should be 100 for RS >> #hint.arge.1.media=100 >> #hint.arge.1.fduplex=1 >> # Uncomment this hint for RS (not PRO) >> # hint.arge.1.phymask=70000 >> >> # SPI flash >> hint.spi.0.at="nexus0" >> hint.spi.0.maddr=0x1f000000 >> hint.spi.0.msize=0x10 >> >> hint.mx25l.0.at="spibus0" >> hint.mx25l.0.cs=1 >> >> hint.rb_cpldbus.0.at="spibus0" >> hint.rb_cpldbus.0.cs=1 >> # >> hint.onand.0.at="nandbus0" >> hint.lnand.0.at="nandbus0" >> hint.snand.0.at="nandbus0" >> >> hint.flash.0.at="nand0" >> hint.flash.0.size="0x40000" >> hint.flash.0.offset="0" >> hint.flash.0.name="bootloader" >> hint.flash.1.at="nand0" >> hint.flash.1.size="0x3c0000" >> hint.flash.1.offset="0x40000" >> hint.flash.1.name="kernelfs" >> hint.flash.2.at="nand0" >> hint.flash.2.size="0" >> hint.flash.2.offset="0x400000" >> hint.flash.2.name="rootfs" >> >> hint.ar71xx_gpio.0.at="nexus0" >> >> #hint.rb_nandbusy.0.at="gpiobus0" >> >> hint.mmcspi.0.at="spibus0" >> hint.mmcspi.0.cs=2 >> >> # Watchdog >> hint.ar71xx_wdog.0.at="nexus0" >> >> >> br, >> >>> >>> >>> Adrian >>> >>> >>> On 2 January 2013 12:40, Monthadar Al Jaberi wrote: >>>> I tested some more. First I changed the miniPCI slot. Now boot looks like this: >>>> >>>> pcib0 at irq 0 on nexus0 >>>> pci0: on pcib0 >>>> ath0: irq 2 at device 19.0 on pci0 >>>> ath0: AR5413 mac 10.5 RF5413 phy 6.1 >>>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 >>>> >>>> >>>> Then I created a hostap. But none of my other devices sees it (laptop, iphone). >>>> >>>> A scan results in: >>>> >>>> # ifconfig wlan0 scan >>>> wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell 0 >>>> maxdwell 0 nssid 0 >>>> wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 >>>> maxdwell 0, desired mode 11g, append, nopick, once >>>> wlan0: scan set 11g dwell min 200ms max 200ms >>>> wlan0: scan_task: chan 11g -> 11g [active, dwell min 200ms max 200ms] >>>> wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822) >>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 4 >>>> wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "" >>>> wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 2150141333] >>>> wlan0: notify scan done >>>> root@rb433ah:~ # ath0: device timeout >>>> >>>> And when I try to ping a random IP address I get the following. >>>> Interesting is that it seems to "bail out" when it tries to send >>>> probe_resp (last in output): >>>> $ ping -c 1 172.168.3.2 >>>> PING 172.168.3.2 (172.168.3.2): 56 data bytes >>>> ath0: device timeout >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8 >>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 >>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2 >>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: >>>> 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a >>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5 >>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4 >>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" >>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9 >>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 >>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>> wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0 >>>> wlan0: [00:aa:70:77:bd:77] recv probe req >>>> wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489) >>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 5 >>>> wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77 >>>> ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing >>>> .... >>>> >>>> >>>> On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi wrote: >>>>> Hi, >>>>> >>>>> ath(4) failed to attach on my Routerboard RB433AH running FreeBSD >>>>> current. This is what I got during boo-up. >>>>> >>>>> pcib0 at irq 0 on nexus0 >>>>> pci0: on pcib0 >>>>> ath0: irq 3 at device 20.0 on pci0 >>>>> ath0: could not map interrupt >>>>> device_attach: ath0 attach returned 6 >>>>> >>>>> Any idea why? Anyone else is running ath(4) on this board? My wifi >>>>> card is a Ubiquity X2 with AR5413 chip. >>>>> >>>>> br, >>>>> >>>>> >>>>> -- >>>>> Monthadar Al Jaberi >>>> >>>> >>>> >>>> -- >>>> Monthadar Al Jaberi >>>> _______________________________________________ >>>> freebsd-wireless@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" >> >> >> >> -- >> Monthadar Al Jaberi > > > > -- > Monthadar Al Jaberi -- Monthadar Al Jaberi From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 4 04:59:10 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 00F0CD5E; Fri, 4 Jan 2013 04:59:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by mx1.freebsd.org (Postfix) with ESMTP id 4283497E; Fri, 4 Jan 2013 04:59:08 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id o1so8995724wic.12 for ; Thu, 03 Jan 2013 20:59:07 -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=p9/ocds8mcKIpiIjxqZISVDbJeYUTwy1skE0Tu4ldTc=; b=Ffr5B7rSTzVOIeLTVd848AqZYtcoGEloYUpeTBWFSlTH+ODl1HFyXuEhO/OjGwAE7h 5YV31sZExBsEFWS1jIu4SB94hFC6xUEzlUA65nP/3bVFdePq6uW8Oeqh09vF7fHeRbQg V8xCWNImMcq9doiqZ30MY8JHppk5XI0z8Fz2yW2ovikh8qzixp64FVQjcW+7ew/hS865 +x/eGKUy7hP+ftETIkkAbPNuwCbT1KFwu4K7le17RLNO4xYRYIxaU3vqoUPheo7W8SoA Af0zgYL+RynfZVpteK7XTyVqznoW9bRlwuFawkt9RRj6tlL9yxFKNijUKlma1YlIhB2o AV1Q== MIME-Version: 1.0 Received: by 10.194.179.34 with SMTP id dd2mr81886425wjc.1.1357275547863; Thu, 03 Jan 2013 20:59:07 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Thu, 3 Jan 2013 20:59:07 -0800 (PST) In-Reply-To: References: Date: Thu, 3 Jan 2013 20:59:07 -0800 X-Google-Sender-Auth: U6-JwmBun4QluQqFzx65lq-WOEU Message-ID: Subject: Re: ath0: could not map interrupt From: Adrian Chadd To: Monthadar Al Jaberi Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 04 Jan 2013 04:59:10 -0000 ... wow. How the hell is that happening?! Adrian On 3 January 2013 20:54, Monthadar Al Jaberi wrote: > Maybe this is the root of the problem. > > On RSPRO the PCI start slot enumerating from 17. While RB433AH start > from 18. That can explain why Slot 20 of RB433AH won't even attach > (AR7161 only has 3 slots, slot 17 to 19). That can also explain why I > get device_timeout on slot 18 and 19 cause they are miss aligned. And > don't see any interrupts from ath(4) when enabling interrupt > debugging. > > I will keep digging into why they won't start enumerating correct. > > br, > > On Fri, Jan 4, 2013 at 2:28 AM, Monthadar Al Jaberi wrote: >> Hi, >> >> I am wondering if anyone can confirm that any ath5k (preferably >> AR5413) series miniPCI wifi works on RB433/AH/UAH. >> >> Thank you in advance >> >> On Wed, Jan 2, 2013 at 10:29 PM, Monthadar Al Jaberi >> wrote: >>> On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd wrote: >>>> ... sounds like a definite interrupt routing issue. >>>> >>>> Who's been knee deep in the interrupt handling code in MIPS lately? Grrr. >>>> I know there's been some FDT work in MIPS and that's touched some >>>> interrupt code.. maybe that's interfering? >>> >>> I am not sure, I just re-compiled my kernel for RSPRO and it seems to work. >>> >>> I install openwrt on rb433ah and ath0 associated ok. and I could ping >>> between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working >>> RB433AH running same kernel r243866. >>> >>> Attached is my kernel config & hints. ( I am "playing around" with the >>> ar71xx_spi but that should not effect the pci code, I hope). >>> >>> # >>> # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71xx systems >>> # >>> # This includes all the common drivers for the AR71XX boards along with >>> # the usb, net80211 and atheros driver code. >>> # >>> # $FreeBSD$ >>> # >>> >>> machine mips mips >>> ident RB433AH_MFS >>> cpu CPU_MIPS4KC >>> makeoptions KERNLOADADDR=0x80050000 >>> options HZ=1000 >>> options HWPMC_HOOKS >>> >>> files "../atheros/files.ar71xx" >>> >>> # For now, hints are per-board. >>> >>> hints "RB433AH.hints" >>> >>> makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols >>> >>> # Build these as modules so small platform builds will have the >>> # modules already built. >>> makeoptions MODULES_OVERRIDE="random gpio ar71xx if_gif if_gre >>> if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip >>> wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci" >>> >>> options DDB >>> options KDB >>> >>> options SCHED_4BSD #4BSD scheduler >>> options INET #InterNETworking >>> #options INET6 # IPv6 >>> >>> # options NFS_CL #Network Filesystem Client >>> >>> options PSEUDOFS #Pseudo-filesystem framework >>> options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions >>> >>> # options NFS_LEGACYRPC >>> # Debugging for use in -current >>> options INVARIANTS >>> options INVARIANT_SUPPORT >>> options WITNESS >>> options WITNESS_SKIPSPIN >>> options DEBUG_REDZONE >>> options DEBUG_MEMGUARD >>> >>> options FFS #Berkeley Fast Filesystem >>> # options SOFTUPDATES #Enable FFS soft updates support >>> # options UFS_ACL #Support for access control lists >>> # options UFS_DIRHASH #Improve performance on big >>> directories >>> # options MSDOSFS # Read MSDOS filesystems; useful for USB/CF >>> >>> device pci >>> device ar71xx_pci >>> >>> # RTC - requires hackery in the spibus code to work >>> device pcf2123_rtc >>> >>> # GEOM modules >>> device geom_redboot # to get access to the SPI flash partitions >>> device geom_uzip # compressed in-memory filesystem hackery! >>> device geom_map >>> options GEOM_UZIP >>> >>> # NANDFS >>> options NANDFS >>> >>> ## Boot from the first MFS uzip >>> #options ROOTDEVNAME=\"ufs:md0.uzip\" >>> #options MD_ROOT >>> #options MD_ROOT_SIZE="9000" >>> >>> # Boot from NFS >>> options NFSLOCKD #Network Lock Manager >>> options NFSCLIENT #Network Filesystem Client >>> options NFS_ROOT >>> >>> options BOOTP >>> options BOOTP_NFSROOT >>> options BOOTP_NFSV3 >>> options BOOTP_WIRED_TO=arge1 >>> options BOOTP_COMPAT >>> options ROOTDEVNAME=\"nfs:172.16.0.101:/usr/obj/rb433ah/nfs\" >>> >>> >>> # 802.11 framework >>> options IEEE80211_DEBUG >>> options IEEE80211_ALQ >>> options IEEE80211_SUPPORT_MESH >>> # This option is currently broken for if_ath_tx. >>> options IEEE80211_SUPPORT_TDMA >>> options IEEE80211_AMPDU_AGE >>> device wlan # 802.11 support >>> device wlan_wep # 802.11 WEP support >>> device wlan_ccmp # 802.11 CCMP support >>> device wlan_tkip # 802.11 TKIP support >>> device wlan_xauth # 802.11 hostap support >>> device wlan_acl # 802.11 ACL support >>> >>> # Atheros wireless NICs >>> device ath # Atheros interface support >>> device ath_pci # Atheros PCI/Cardbus bus >>> options ATH_DEBUG >>> options ATH_DIAGAPI >>> options ATH_ENABLE_11N >>> options AH_DEBUG >>> options AH_DEBUG_ALQ >>> options ALQ >>> device ath_hal >>> option AH_SUPPORT_AR5416 >>> device ath_rate_sample >>> option AH_RXCFG_SDMAMW_4BYTES >>> option AH_AR5416_INTERRUPT_MITIGATION >>> # There's no DFS radar detection support yet so this won't actually >>> # detect radars. It however does enable the rest of the channel change >>> # machinery so DFS can be debugged. >>> option ATH_ENABLE_DFS >>> >>> device mii >>> device arge >>> #options ARGE_DEBUG # Enable if_arge debugging for now >>> >>> #device usb >>> #options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order >>> #options USB_DEBUG >>> #options USB_HOST_ALIGN=32 # AR71XX (MIPS in general?) requires this >>> #device ehci >>> >>> device scbus >>> #device umass >>> device da >>> >>> device rb4xx >>> >>> # On-board SPI flash >>> device spibus >>> device ar71xx_spi >>> device mmc >>> device mmcsd >>> device mmcspi >>> device mx25l >>> device nand >>> device ar71xx_wdog >>> >>> device uart >>> device uart_ar71xx >>> >>> device loop >>> device ether >>> device md >>> device bpf >>> device random >>> device if_bridge >>> device gif # ip[46] in ip[46] tunneling protocol >>> device gre # generic encapsulation - only for IPv4 in IPv4 though atm >>> >>> # Enable GPIO >>> device gpio >>> device gpioled >>> >>> options AR71XX_ROUTERBOOT >>> >>> >>> # $FreeBSD$ >>> hint.apb.0.at="nexus0" >>> hint.apb.0.irq=4 >>> >>> # uart0 >>> hint.uart.0.at="apb0" >>> # see atheros/uart_cpu_ar71xx.c why +3 >>> hint.uart.0.maddr=0x18020003 >>> hint.uart.0.msize=0x18 >>> hint.uart.0.irq=3 >>> >>> #ohci >>> #hint.ohci.0.at="apb0" >>> #hint.ohci.0.maddr=0x1c000000 >>> #hint.ohci.0.msize=0x01000000 >>> #hint.ohci.0.irq=6 >>> >>> #ehci >>> #hint.ehci.0.at="nexus0" >>> #hint.ehci.0.maddr=0x1b000000 >>> #hint.ehci.0.msize=0x01000000 >>> #hint.ehci.0.irq=1 >>> >>> # pci >>> hint.pcib.0.at="nexus0" >>> hint.pcib.0.irq=0 >>> >>> hint.arge.0.at="nexus0" >>> hint.arge.0.maddr=0x19000000 >>> hint.arge.0.msize=0x1000 >>> hint.arge.0.irq=2 >>> # PHY4 = 1 << 4 >>> hint.arge.0.phymask=0x10 >>> # Uncomment this hint for RS (not PRO) >>> # PHY20 = 1 << 20 >>> # hint.arge.0.phymask=0x100000 >>> hint.ukphy.0.at="miibus0" >>> >>> hint.arge.1.at="nexus0" >>> hint.arge.1.maddr=0x1a000000 >>> hint.arge.1.msize=0x1000 >>> hint.arge.1.irq=3 >>> # PHY1, PHY2, PHY3 >>> hint.arge.1.phymask=0x00 >>> # should be 100 for RS >>> #hint.arge.1.media=100 >>> #hint.arge.1.fduplex=1 >>> # Uncomment this hint for RS (not PRO) >>> # hint.arge.1.phymask=70000 >>> >>> # SPI flash >>> hint.spi.0.at="nexus0" >>> hint.spi.0.maddr=0x1f000000 >>> hint.spi.0.msize=0x10 >>> >>> hint.mx25l.0.at="spibus0" >>> hint.mx25l.0.cs=1 >>> >>> hint.rb_cpldbus.0.at="spibus0" >>> hint.rb_cpldbus.0.cs=1 >>> # >>> hint.onand.0.at="nandbus0" >>> hint.lnand.0.at="nandbus0" >>> hint.snand.0.at="nandbus0" >>> >>> hint.flash.0.at="nand0" >>> hint.flash.0.size="0x40000" >>> hint.flash.0.offset="0" >>> hint.flash.0.name="bootloader" >>> hint.flash.1.at="nand0" >>> hint.flash.1.size="0x3c0000" >>> hint.flash.1.offset="0x40000" >>> hint.flash.1.name="kernelfs" >>> hint.flash.2.at="nand0" >>> hint.flash.2.size="0" >>> hint.flash.2.offset="0x400000" >>> hint.flash.2.name="rootfs" >>> >>> hint.ar71xx_gpio.0.at="nexus0" >>> >>> #hint.rb_nandbusy.0.at="gpiobus0" >>> >>> hint.mmcspi.0.at="spibus0" >>> hint.mmcspi.0.cs=2 >>> >>> # Watchdog >>> hint.ar71xx_wdog.0.at="nexus0" >>> >>> >>> br, >>> >>>> >>>> >>>> Adrian >>>> >>>> >>>> On 2 January 2013 12:40, Monthadar Al Jaberi wrote: >>>>> I tested some more. First I changed the miniPCI slot. Now boot looks like this: >>>>> >>>>> pcib0 at irq 0 on nexus0 >>>>> pci0: on pcib0 >>>>> ath0: irq 2 at device 19.0 on pci0 >>>>> ath0: AR5413 mac 10.5 RF5413 phy 6.1 >>>>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 >>>>> >>>>> >>>>> Then I created a hostap. But none of my other devices sees it (laptop, iphone). >>>>> >>>>> A scan results in: >>>>> >>>>> # ifconfig wlan0 scan >>>>> wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell 0 >>>>> maxdwell 0 nssid 0 >>>>> wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 >>>>> maxdwell 0, desired mode 11g, append, nopick, once >>>>> wlan0: scan set 11g dwell min 200ms max 200ms >>>>> wlan0: scan_task: chan 11g -> 11g [active, dwell min 200ms max 200ms] >>>>> wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822) >>>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 4 >>>>> wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "" >>>>> wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 2150141333] >>>>> wlan0: notify scan done >>>>> root@rb433ah:~ # ath0: device timeout >>>>> >>>>> And when I try to ping a random IP address I get the following. >>>>> Interesting is that it seems to "bail out" when it tries to send >>>>> probe_resp (last in output): >>>>> $ ping -c 1 172.168.3.2 >>>>> PING 172.168.3.2 (172.168.3.2): 56 data bytes >>>>> ath0: device timeout >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8 >>>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 >>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2 >>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: >>>>> 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a >>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5 >>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4 >>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default" >>>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9 >>>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id 47, len 1 >>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 51, len 8 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 127, len 1 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id 11, len 5 >>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 47, len 1 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 74, len 14 >>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id 127, len 1 >>>>> wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0 >>>>> wlan0: [00:aa:70:77:bd:77] recv probe req >>>>> wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489) >>>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 5 >>>>> wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77 >>>>> ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing >>>>> .... >>>>> >>>>> >>>>> On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi wrote: >>>>>> Hi, >>>>>> >>>>>> ath(4) failed to attach on my Routerboard RB433AH running FreeBSD >>>>>> current. This is what I got during boo-up. >>>>>> >>>>>> pcib0 at irq 0 on nexus0 >>>>>> pci0: on pcib0 >>>>>> ath0: irq 3 at device 20.0 on pci0 >>>>>> ath0: could not map interrupt >>>>>> device_attach: ath0 attach returned 6 >>>>>> >>>>>> Any idea why? Anyone else is running ath(4) on this board? My wifi >>>>>> card is a Ubiquity X2 with AR5413 chip. >>>>>> >>>>>> br, >>>>>> >>>>>> >>>>>> -- >>>>>> Monthadar Al Jaberi >>>>> >>>>> >>>>> >>>>> -- >>>>> Monthadar Al Jaberi >>>>> _______________________________________________ >>>>> freebsd-wireless@freebsd.org mailing list >>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" >>> >>> >>> >>> -- >>> Monthadar Al Jaberi >> >> >> >> -- >> Monthadar Al Jaberi > > > > -- > Monthadar Al Jaberi From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 4 05:13:31 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 82678FD3; Fri, 4 Jan 2013 05:13:31 +0000 (UTC) (envelope-from frank@exit.com) Received: from tinker.exit.com (unknown [IPv6:2001:470:f0fd:0:2e0:81ff:fe2b:acbc]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4289E2; Fri, 4 Jan 2013 05:13:31 +0000 (UTC) Received: from jill.exit.com (jill.exit.com [IPv6:2001:470:f0fd:0:2e0:81ff:febc:fdcc]) by tinker.exit.com (8.14.5/8.14.5) with ESMTP id r045DS7g092181; Thu, 3 Jan 2013 21:13:29 -0800 (PST) (envelope-from frank@exit.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=exit.com; s=tinker; t=1357276409; bh=D690w6LcLw3Hptcz3jNfp5ZXUdcGa5Pmiuimtb3KRxc=; h=Subject:From:Reply-To:To:Cc:Date; b=K6dnTyOkEaygQb8fejsyqAkeRRnjKqu7ZTjqP9LIlgQwguM1vKF6jJtG0BIqn5dbf z4BtCXN/JfsILtSA8qGwsVLF9Iv+0d8vQY7lIDnwsooV6k3PUQMsAy8JnhI5vkSQuv FosYc/uBUTYCj3bwTEXmjx4ob/iyNpEv5bpc+87Q= Received: from jill.exit.com (localhost [127.0.0.1]) by jill.exit.com (8.14.5/8.14.5) with ESMTP id r045D6Ar050838; Thu, 3 Jan 2013 21:13:06 -0800 (PST) (envelope-from frank@exit.com) Received: (from frank@localhost) by jill.exit.com (8.14.5/8.14.5/Submit) id r045D67n050837; Thu, 3 Jan 2013 21:13:06 -0800 (PST) (envelope-from frank@exit.com) X-Authentication-Warning: jill.exit.com: frank set sender to frank@exit.com using -f Subject: [Fwd: Re: Firmware error with iwn on 9-stable.] From: Frank Mayhar To: bschmidt@freebsd.org Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Organization: Exit Consulting Date: Thu, 03 Jan 2013 21:13:06 -0800 Message-ID: <1357276386.13744.28.camel@jill.exit.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: FreeBSD-net , freebsd-wireless X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: frank@exit.com 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: Fri, 04 Jan 2013 05:13:31 -0000 Hi, Bernhard. I'm close to throwing in the towel on this card and getting an Atheros-based one or perhaps an older Intel. Before I do that, though, I wanted to run this by you. If you're interested in tracking this down and fixing it, I can certainly do testing for you. I've added details below; if there's anything else I can provide, please let me know. Thanks. -------- Forwarded Message -------- > From: Frank Mayhar > Reply-to: frank@exit.com > To: freebsd-mobile > Cc: freebsd-wireless@freebsd.org > Subject: Re: Firmware error with iwn on 9-stable. > Date: Tue, 01 Jan 2013 21:41:26 -0800 >=20 > On Tue, 2013-01-01 at 21:36 -0800, Frank Mayhar wrote: > > On Mon, 2012-12-31 at 23:49 -0800, Frank Mayhar wrote: > > > I'm trying to set up a new laptop, which has an Intel Centrino > > > Ultimate-N 6300 wireless card. I was under the impression that the > > > 9-stable iwn driver fully supported this card but I've run into a > > > problem. Specifically, I'm seeing this firmware crash: > > >=20 > > > iwn0: iwn_intr: fatal firmware error > >=20 > > For the record, this appears to be the problem referred to by > > "kern/163154: [iwn] fatal firmware error on 9.0-RC3." Apparently this > > still happens in 9-stable, with the same symptoms, fails with 802.11a > > but not with 11g. >=20 > Oops, spoke too soon. It fails the same way with 11g in my case. Here are the relevant bits from a verbose dmesg: iwn0: mem 0xf7600000-0xf7601fff irq 17 at device 0.0 on pci3 iwn0: attempting to allocate 1 MSI vectors (1 supported) iwn0: using IRQ 266 for MSI iwn0: MIMO 3T3R, MoW, address 24:77:03:dc:b3:4c iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps iwn0: 3T3R iwn0: 11na MCS 20MHz iwn0: MCS 0-7: 6.5Mbps - 65Mbps iwn0: MCS 8-15: 13Mbps - 130Mbps iwn0: MCS 16-23: 19.5Mbps - 195Mbps iwn0: 11na MCS 20MHz SGI iwn0: MCS 0-7: 7Mbps - 72Mbps iwn0: MCS 8-15: 14.5Mbps - 144.5Mbps iwn0: MCS 16-23: 21.5Mbps - 216.5Mbps iwn0: 11na MCS 40MHz: iwn0: MCS 0-7: 13.5Mbps - 135Mbps iwn0: MCS 8-15: 27Mbps - 270Mbps iwn0: MCS 16-23: 40.5Mbps - 405Mbps iwn0: 11na MCS 40MHz SGI: iwn0: MCS 0-7: 15Mbps - 150Mbps iwn0: MCS 8-15: 30Mbps - 300Mbps iwn0: MCS 16-23: 45Mbps - 450Mbps iwn0: 11ng MCS 20MHz iwn0: MCS 0-7: 6.5Mbps - 65Mbps iwn0: MCS 8-15: 13Mbps - 130Mbps iwn0: MCS 16-23: 19.5Mbps - 195Mbps iwn0: 11ng MCS 20MHz SGI iwn0: MCS 0-7: 7Mbps - 72Mbps iwn0: MCS 8-15: 14.5Mbps - 144.5Mbps iwn0: MCS 16-23: 21.5Mbps - 216.5Mbps iwn0: 11ng MCS 40MHz: iwn0: MCS 0-7: 13.5Mbps - 135Mbps iwn0: MCS 8-15: 27Mbps - 270Mbps iwn0: MCS 16-23: 40.5Mbps - 405Mbps iwn0: 11ng MCS 40MHz SGI: iwn0: MCS 0-7: 15Mbps - 150Mbps iwn0: MCS 8-15: 30Mbps - 300Mbps iwn0: MCS 16-23: 45Mbps - 450Mbps And here's the firmware error: iwn0: iwn_intr: fatal firmware error firmware error log: error type =3D "SYSASSERT" (0x00000005) program counter =3D 0x00003C2C source line =3D 0x00000580 error data =3D 0x0000000100000000 branch link =3D 0x00003C2800003C28 interrupt link =3D 0x0000153200000000 time =3D 3781260668 driver status: tx ring 0: qid=3D0 cur=3D0 queued=3D0 =20 tx ring 1: qid=3D1 cur=3D0 queued=3D0 =20 tx ring 2: qid=3D2 cur=3D0 queued=3D0 =20 tx ring 3: qid=3D3 cur=3D2 queued=3D0 =20 tx ring 4: qid=3D4 cur=3D40 queued=3D0 =20 tx ring 5: qid=3D5 cur=3D0 queued=3D0 =20 tx ring 6: qid=3D6 cur=3D0 queued=3D0 =20 tx ring 7: qid=3D7 cur=3D0 queued=3D0 =20 tx ring 8: qid=3D8 cur=3D0 queued=3D0 =20 tx ring 9: qid=3D9 cur=3D0 queued=3D0 =20 tx ring 10: qid=3D10 cur=3D0 queued=3D0 =20 tx ring 11: qid=3D11 cur=3D0 queued=3D0 =20 tx ring 12: qid=3D12 cur=3D0 queued=3D0 =20 tx ring 13: qid=3D13 cur=3D0 queued=3D0 =20 tx ring 14: qid=3D14 cur=3D0 queued=3D0 =20 tx ring 15: qid=3D15 cur=3D0 queued=3D0 =20 tx ring 16: qid=3D16 cur=3D0 queued=3D0 =20 tx ring 17: qid=3D17 cur=3D0 queued=3D0 =20 tx ring 18: qid=3D18 cur=3D0 queued=3D0 =20 tx ring 19: qid=3D19 cur=3D0 queued=3D0 =20 rx ring: cur=3D63 --=20 Frank Mayhar frank@exit.com From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 4 14:48:26 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DC24D9AF; Fri, 4 Jan 2013 14:48:26 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by mx1.freebsd.org (Postfix) with ESMTP id ED49275D; Fri, 4 Jan 2013 14:48:25 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id t11so7656753wey.26 for ; Fri, 04 Jan 2013 06:48:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=ggbSU5ddCx9tDrI8jWdv5jx6KH7TixvvydtRdnUayWQ=; b=JXQhO3K87AcJnPtIqdqneyPGFiI/HDolXgm+1zWiYMM9G5FXEZmo0LlAIRfNOMarl+ z1eE/mDfzNGZAJHlZ4wYL6F3ja8ao3UjQAb06M54+dWE+dF2ldpbOKOI0jS9kgK1t4Lh mkN3IZTA4K50erWqDgTWLtDVVYy6VTwr7rWglq5lfedQdPSlDyxHPRxji2JTIiSXLGt7 OxPmbioL4Bmm+XQb1RMcGQlGOnVn3BviRxidmlNW0qmSC7qX/AVB0JTkCRkK77mVWkyN ts78evckyKfpmfEaDSblPKAtJQvB3dhf3oRIys4G45EZPrXRtaoa07+Gt/ij8ehsUpB5 W9XQ== MIME-Version: 1.0 Received: by 10.180.79.37 with SMTP id g5mr80767165wix.8.1357310899467; Fri, 04 Jan 2013 06:48:19 -0800 (PST) Received: by 10.227.59.19 with HTTP; Fri, 4 Jan 2013 06:48:19 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Jan 2013 15:48:19 +0100 Message-ID: Subject: Re: ath0: could not map interrupt From: Monthadar Al Jaberi To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 04 Jan 2013 14:48:26 -0000 Attached is two boot logs with debug on for resource manager of RB433AH and RSPRO respectively. Also attached boot log from openWRT as a reference (on RB433AH). I installed an ath(4) in first slot in each board according to the marking = on each PCB. You will notice that RB433AH starts from slot 18. I looked at openWRT and it seems they setup a special IRQ map for the RB4XX= . For RSPRO they don't seem to do anything special, and use the generic mappi= ngs of three IRQ and slots 17 to 19. While RB433AH lists the slots for the IRQ from slot 17 to 23. RB433AH: CPU platform: Atheros AR7161 rev 2 CPU Frequency=3D680 MHz CPU DDR Frequency=3D340 MHz CPU AHB Frequency=3D170 MHz platform frequency: 680000000 arguments: a0 =3D 00000008 a1 =3D a0871c00 a2 =3D 00000000 a3 =3D 00000000 Cmd line: console=3DttyS0,115200 gpio=3D4031 HZ=3D340000000 mem=3D128M kmac=3DD4:CA:6D:57:DC:D3 board=3D433 boot=3D1 mlc=3D2 Environment: envp is invalid Cache info: picache_stride =3D 4096 picache_loopcount =3D 16 pdcache_stride =3D 4096 pdcache_loopcount =3D 8 cpu0: MIPS Technologies processor v116.147 MMU: Standard TLB, 16 entries L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=3D0x9ee3519e Config3=3D0x20 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2013 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #172: Fri Jan 4 16:40:48 CET 2013 root@mechy:/usr/obj/mips.mips/usr/src/sys/RB433AH_MFS mips WARNING: WITNESS option enabled, expect reduced performance. MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: MEMGUARD map base: 0xc0400000 MEMGUARD map limit: 0xc6a67000 MEMGUARD map size: 104860 KBytes real memory =3D 134217728 (131072K bytes) avail memory =3D 123133952 (117MB) random device not loaded; using insecure entropy wlan: mac acl policy registered rman_manage_region: request: start 0, end 0x5 rman_manage_region: request: start 0, end 0xffffffff nexus0: clock0: on nexus0 rman_reserve_resource_bound: request: [0x5, 0x5], length 0x1, flags 2, device clock0 considering [0, 0x5] truncated region: [0x5, 0x5]; size 0x1 (requested 0x1) candidate region: [0x5, 0x5], size 0x1 allocating at the end Timecounter "MIPS32" frequency 340000000 Hz quality 800 Event timer "MIPS32" frequency 340000000 Hz quality 800 apb0 at irq 4 on nexus0 rman_manage_region: request: start 0x18000000, end 0x1dffffff rman_manage_region: request: start 0, end 0x7 rman_reserve_resource_bound: request: [0x4, 0x4], length 0x1, flags 6, device apb0 considering [0, 0x4] truncated region: [0x4, 0x4]; size 0x1 (requested 0x1) candidate region: [0x4, 0x4], size 0x1 allocating at the end rman_reserve_resource_bound: request: [0x18020003, 0x1802001a], length 0x18, flags 2, device uart0 considering [0x18000000, 0x1dffffff] truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) candidate region: [0x18020003, 0x1802001a], size 0x18 splitting region in three parts: [0x18000000, 0x18020002]; [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] rman_reserve_resource_bound: request: [0x18020003, 0x1802001a], length 0x18, flags 2, device uart0 considering [0x18000000, 0x1dffffff] truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) candidate region: [0x18020003, 0x1802001a], size 0x18 splitting region in three parts: [0x18000000, 0x18020002]; [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] uart0: <16550 or compatible> on apb0 rman_reserve_resource_bound: request: [0x18020003, 0x1802001a], length 0x18, flags 2, device uart0 considering [0x18000000, 0x1dffffff] truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) candidate region: [0x18020003, 0x1802001a], size 0x18 splitting region in three parts: [0x18000000, 0x18020002]; [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] rman_reserve_resource_bound: request: [0x3, 0x3], length 0x1, flags 6, device uart0 considering [0, 0x7] truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) candidate region: [0x3, 0x3], size 0x1 splitting region in three parts: [0, 0x2]; [0x3, 0x3]; [0x4, 0x7] uart0: console (115200,n,8,1) ehci0: at mem 0x1b000000-0x1bffffff irq 1 on nexus0 rman_reserve_resource_bound: request: [0x1b000000, 0x1bffffff], length 0x1000000, flags 2, device ehci0 considering [0, 0xffffffff] truncated region: [0x1b000000, 0x1bffffff]; size 0x1000000 (requested 0x100= 0000) candidate region: [0x1b000000, 0x1bffffff], size 0x1000000 splitting region in three parts: [0, 0x1affffff]; [0x1b000000, 0x1bffffff]; [0x1c000000, 0xffffffff] rman_reserve_resource_bound: request: [0x1, 0x1], length 0x1, flags 2, device ehci0 considering [0, 0x3] truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) candidate region: [0x1, 0x1], size 0x1 splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x3] usbus0: set host controller mode usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0 on ehci0 pcib0 at irq 0 on nexus0 rman_manage_region: request: start 0x10000000, end 0x16ffffff rman_manage_region: request: start 0, end 0x2 rman_reserve_resource_bound: request: [0, 0], length 0x1, flags 6, device pcib0 considering [0, 0] truncated region: [0, 0]; size 0x1 (requested 0x1) candidate region: [0, 0], size 0x1 candidate region is entire chunk pci0: on pcib0 ath0: irq 1 at device 18.0 on pci0 rman_reserve_resource_bound: request: [0, 0xffffffff], length 0x10000, flags 16384, device ath0 considering [0x10000000, 0x16ffffff] truncated region: [0x10000000, 0x16ffffff]; size 0x7000000 (requested 0x100= 00) candidate region: [0x10000000, 0x16ffffff], size 0x7000000 allocating from the beginning rman_reserve_resource_bound: request: [0x1, 0x1], length 0x1, flags 6, device ath0 considering [0, 0x2] truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) candidate region: [0x1, 0x1], size 0x1 splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x2] ath0: AR5413 mac 10.5 RF5413 phy 6.1 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 arge0: at mem 0x19000000-0x19000fff irq 2 on nexus0 rman_reserve_resource_bound: request: [0x19000000, 0x19000fff], length 0x1000, flags 6, device arge0 considering [0, 0x1affffff] truncated region: [0x19000000, 0x19000fff]; size 0x1000 (requested 0x1000) candidate region: [0x19000000, 0x19000fff], size 0x1000 splitting region in three parts: [0, 0x18ffffff]; [0x19000000, 0x19000fff]; [0x19001000, 0x1affffff] rman_reserve_resource_bound: request: [0x2, 0x2], length 0x1, flags 6, device arge0 considering [0x2, 0x3] truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) candidate region: [0x2, 0x2], size 0x1 allocating from the beginning arge0: finishing attachment, phymask 0010, proxy null miibus0: on arge0 ukphy1: PHY 4 on miibus0 ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto arge0: Ethernet address: d4:ca:6d:57:dc:d4 arge1: at mem 0x1a000000-0x1a000fff irq 3 on nexus0 rman_reserve_resource_bound: request: [0x1a000000, 0x1a000fff], length 0x1000, flags 6, device arge1 considering [0x19001000, 0x1affffff] truncated region: [0x1a000000, 0x1a000fff]; size 0x1000 (requested 0x1000) candidate region: [0x1a000000, 0x1a000fff], size 0x1000 splitting region in three parts: [0x19001000, 0x19ffffff]; [0x1a000000, 0x1a000fff]; [0x1a001000, 0x1affffff] rman_reserve_resource_bound: request: [0x3, 0x3], length 0x1, flags 6, device arge1 considering [0x3, 0x3] truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) candidate region: [0x3, 0x3], size 0x1 candidate region is entire chunk arge1: finishing attachment, phymask 0000, proxy null arge1: Ethernet address: d4:ca:6d:57:dc:d3 spi0: at mem 0x1f000000-0x1f00000f on nexus0 rman_reserve_resource_bound: request: [0x1f000000, 0x1f00000f], length 0x10, flags 2, device spi0 considering [0x1c000000, 0xffffffff] truncated region: [0x1f000000, 0x1f00000f]; size 0x10 (requested 0x10) candidate region: [0x1f000000, 0x1f00000f], size 0x10 splitting region in three parts: [0x1c000000, 0x1effffff]; [0x1f000000, 0x1f00000f]; [0x1f000010, 0xffffffff] spibus0: on spi0 mx25l0: at cs 0 on spibus0 Unknown SPI flash device. Vendor: ef, device id: 3011 device_attach: mx25l0 attach returned 6 ar71xx_wdog0: on nexus0 Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 bootpc_init: wired to interface 'arge1' Sending DHCP Discover packet from interface arge1 (d4:ca:6d:57:dc:d3) RSPRO: CPU platform: Atheros AR7161 rev 2 CPU Frequency=3D720 MHz CPU DDR Frequency=3D360 MHz CPU AHB Frequency=3D180 MHz platform frequency: 720000000 arguments: a0 =3D 00000002 a1 =3D 80050028 a2 =3D 80050000 a3 =3D 0000000a Cmd line: =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=7F=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=7F=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=7F=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=7F=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=7F=EF=BF=BD=EF=BF=BD= =EF=BF=BD=7F=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=7F Environment: memsize =3D 0x08000000 modetty0 =3D 0,n,8,1,hw ethaddr =3D 00.15.6d.c8.c9.2c board =3D RouterStation PRO Cache info: picache_stride =3D 4096 picache_loopcount =3D 16 pdcache_stride =3D 4096 pdcache_loopcount =3D 8 cpu0: MIPS Technologies processor v116.147 MMU: Standard TLB, 16 entries L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=3D0x9ee3519e Config3=3D0x20 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2013 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #9: Fri Jan 4 16:52:15 CET 2013 root@mechy:/usr/obj/mips.mips/usr/src/sys/RSPRO_NFS mips WARNING: WITNESS option enabled, expect reduced performance. MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: MEMGUARD map base: 0xc0400000 MEMGUARD map limit: 0xc6a67000 MEMGUARD map size: 104860 KBytes real memory =3D 134217728 (131072K bytes) avail memory =3D 122871808 (117MB) random device not loaded; using insecure entropy rman_manage_region: request: start 0, end 0x5 rman_manage_region: request: start 0, end 0xffffffff nexus0: clock0: on nexus0 rman_reserve_resource_bound: request: [0x5, 0x5], length 0x1, flags 2, device clock0 considering [0, 0x5] truncated region: [0x5, 0x5]; size 0x1 (requested 0x1) candidate region: [0x5, 0x5], size 0x1 allocating at the end Timecounter "MIPS32" frequency 360000000 Hz quality 800 Event timer "MIPS32" frequency 360000000 Hz quality 800 apb0 at irq 4 on nexus0 rman_manage_region: request: start 0x18000000, end 0x1dffffff rman_manage_region: request: start 0, end 0x7 rman_reserve_resource_bound: request: [0x4, 0x4], length 0x1, flags 6, device apb0 considering [0, 0x4] truncated region: [0x4, 0x4]; size 0x1 (requested 0x1) candidate region: [0x4, 0x4], size 0x1 allocating at the end rman_reserve_resource_bound: request: [0x18020003, 0x1802001a], length 0x18, flags 2, device uart0 considering [0x18000000, 0x1dffffff] truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) candidate region: [0x18020003, 0x1802001a], size 0x18 splitting region in three parts: [0x18000000, 0x18020002]; [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] rman_reserve_resource_bound: request: [0x18020003, 0x1802001a], length 0x18, flags 2, device uart0 considering [0x18000000, 0x1dffffff] truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) candidate region: [0x18020003, 0x1802001a], size 0x18 splitting region in three parts: [0x18000000, 0x18020002]; [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] uart0: <16550 or compatible> on apb0 rman_reserve_resource_bound: request: [0x18020003, 0x1802001a], length 0x18, flags 2, device uart0 considering [0x18000000, 0x1dffffff] truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) candidate region: [0x18020003, 0x1802001a], size 0x18 splitting region in three parts: [0x18000000, 0x18020002]; [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] rman_reserve_resource_bound: request: [0x3, 0x3], length 0x1, flags 6, device uart0 considering [0, 0x7] truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) candidate region: [0x3, 0x3], size 0x1 splitting region in three parts: [0, 0x2]; [0x3, 0x3]; [0x4, 0x7] uart0: console (115200,n,8,1) gpio0: on apb0 rman_reserve_resource_bound: request: [0x18040000, 0x18040fff], length 0x1000, flags 2, device gpio0 considering [0x1802001b, 0x1dffffff] truncated region: [0x18040000, 0x18040fff]; size 0x1000 (requested 0x1000) candidate region: [0x18040000, 0x18040fff], size 0x1000 splitting region in three parts: [0x1802001b, 0x1803ffff]; [0x18040000, 0x18040fff]; [0x18041000, 0x1dffffff] rman_reserve_resource_bound: request: [0x2, 0x2], length 0x1, flags 6, device gpio0 considering [0, 0x2] truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) candidate region: [0x2, 0x2], size 0x1 allocating at the end gpio0: [GIANT-LOCKED] gpio0: function_set: 0x0 gpio0: function_clear: 0x0 gpio0: gpio pinmask=3D0xff gpioc0: on gpio0 gpiobus0: on gpio0 gpioled0: at pin(s) 2 on gpiobus0 ehci0: at mem 0x1b000000-0x1bffffff irq 1 on nexus0 rman_reserve_resource_bound: request: [0x1b000000, 0x1bffffff], length 0x1000000, flags 2, device ehci0 considering [0, 0xffffffff] truncated region: [0x1b000000, 0x1bffffff]; size 0x1000000 (requested 0x100= 0000) candidate region: [0x1b000000, 0x1bffffff], size 0x1000000 splitting region in three parts: [0, 0x1affffff]; [0x1b000000, 0x1bffffff]; [0x1c000000, 0xffffffff] rman_reserve_resource_bound: request: [0x1, 0x1], length 0x1, flags 2, device ehci0 considering [0, 0x3] truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) candidate region: [0x1, 0x1], size 0x1 splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x3] usbus0: set host controller mode usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0 on ehci0 pcib0 at irq 0 on nexus0 rman_manage_region: request: start 0x10000000, end 0x16ffffff rman_manage_region: request: start 0, end 0x2 rman_reserve_resource_bound: request: [0, 0], length 0x1, flags 6, device pcib0 considering [0, 0] truncated region: [0, 0]; size 0x1 (requested 0x1) candidate region: [0, 0], size 0x1 candidate region is entire chunk pci0: on pcib0 ath0: irq 0 at device 17.0 on pci0 rman_reserve_resource_bound: request: [0, 0xffffffff], length 0x10000, flags 16384, device ath0 considering [0x10000000, 0x16ffffff] truncated region: [0x10000000, 0x16ffffff]; size 0x7000000 (requested 0x100= 00) candidate region: [0x10000000, 0x16ffffff], size 0x7000000 allocating from the beginning rman_reserve_resource_bound: request: [0, 0], length 0x1, flags 6, device ath0 considering [0, 0x2] truncated region: [0, 0]; size 0x1 (requested 0x1) candidate region: [0, 0], size 0x1 allocating from the beginning ath0: AR5413 mac 10.5 RF5413 phy 6.1 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 arge0: at mem 0x19000000-0x19000fff irq 2 on nexus0 arge0: arge_attach: overriding MII mode to 'RGMII' rman_reserve_resource_bound: request: [0x19000000, 0x19000fff], length 0x1000, flags 6, device arge0 considering [0, 0x1affffff] truncated region: [0x19000000, 0x19000fff]; size 0x1000 (requested 0x1000) candidate region: [0x19000000, 0x19000fff], size 0x1000 splitting region in three parts: [0, 0x18ffffff]; [0x19000000, 0x19000fff]; [0x19001000, 0x1affffff] rman_reserve_resource_bound: request: [0x2, 0x2], length 0x1, flags 6, device arge0 considering [0x2, 0x3] truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) candidate region: [0x2, 0x2], size 0x1 allocating from the beginning arge0: finishing attachment, phymask 0010, proxy null miibus0: on arge0 ukphy0: PHY 4 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto arge0: Ethernet address: 00:15:6d:c8:c9:2c arge1: at mem 0x1a000000-0x1a000fff irq 3 on nexus0 arge1: arge_attach: overriding MII mode to 'RGMII' rman_reserve_resource_bound: request: [0x1a000000, 0x1a000fff], length 0x1000, flags 6, device arge1 considering [0x19001000, 0x1affffff] truncated region: [0x1a000000, 0x1a000fff]; size 0x1000 (requested 0x1000) candidate region: [0x1a000000, 0x1a000fff], size 0x1000 splitting region in three parts: [0x19001000, 0x19ffffff]; [0x1a000000, 0x1a000fff]; [0x1a001000, 0x1affffff] rman_reserve_resource_bound: request: [0x3, 0x3], length 0x1, flags 6, device arge1 considering [0x3, 0x3] truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) candidate region: [0x3, 0x3], size 0x1 candidate region is entire chunk arge1: finishing attachment, phymask 0000, proxy null arge1: Ethernet address: 00:15:6d:c8:c9:2d spi0: at mem 0x1f000000-0x1f00000f on nexus0 rman_reserve_resource_bound: request: [0x1f000000, 0x1f00000f], length 0x10, flags 2, device spi0 considering [0x1c000000, 0xffffffff] truncated region: [0x1f000000, 0x1f00000f]; size 0x10 (requested 0x10) candidate region: [0x1f000000, 0x1f00000f], size 0x10 splitting region in three parts: [0x1c000000, 0x1effffff]; [0x1f000000, 0x1f00000f]; [0x1f000010, 0xffffffff] spibus0: on spi0 mx25l0: at cs 0 on spibus0 mx25l0: mx25ll128, sector 65536 bytes, 256 sectors ar71xx_wdog0: on nexus0 Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 g_dev_taste: make_dev_p() failed (gp->name=3Dredboot/RedBoot config, error= =3D22) g_dev_taste: make_dev_p() failed (gp->name=3Dredboot/FIS directory, error= =3D22) bootpc_init: wired to interface 'arge0' Sending DHCP Discover packet from interface arge0 (00:15:6d:c8:c9:2c) OpenWRT: [ 0.000000] Linux version 3.3.8 (monthadar.aljaberi@bane) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #5 Fri Dec 21 16:41:32 CET 2012 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU revision is: 00019374 (MIPS 24Kc) [ 0.000000] SoC: Atheros AR7161 rev 2 [ 0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] User-defined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone PFN ranges: [ 0.000000] Normal 0x00000000 -> 0x00008000 [ 0.000000] Movable zone start PFN for each node [ 0.000000] Early memory PFN ranges [ 0.000000] 0: 0x00000000 -> 0x00008000 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=3DttyS0,115200 gpio=3D4031 HZ=3D340000000 mem=3D128M kmac=3DD4:CA:6D:57:DC:D3 board=3D433 boot=3D1 mlc= =3D2 rootfstype=3Dyaffs noinitrd [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 byte= s) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 byt= es. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] Writing ErrCtl register=3D00000080 [ 0.000000] Readback ErrCtl register=3D00000080 [ 0.000000] Memory: 125360k/131072k available (2063k kernel code, 5712k reserved, 417k data, 1468k init, 0k highmem) [ 0.000000] SLUB: Genslabs=3D9, HWalign=3D32, Order=3D0-3, MinObjects=3D= 0, CPUs=3D1, Nodes=3D1 [ 0.000000] NR_IRQS:51 [ 0.000000] Calibrating delay loop... 452.19 BogoMIPS (lpj=3D2260992) [ 0.060000] pid_max: default: 32768 minimum: 301 [ 0.060000] Mount-cache hash table entries: 512 [ 0.070000] NET: Registered protocol family 16 [ 0.070000] gpiochip_add: registered GPIOs 0 to 15 on device: ath79 [ 0.080000] MIPS: machine is MikroTik RouterBOARD 433/AH [ 0.780000] registering PCI controller with io_map_base unset [ 0.790000] bio: create slab at 0 [ 0.800000] PCI host bridge to bus 0000:00 [ 0.800000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16fffff= f] [ 0.810000] pci_bus 0000:00: root bus resource [io 0x0000] [ 0.810000] pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x1000ffff= ] [ 0.820000] pci 0000:00:12.0: using irq 40 for pin 1 [ 0.820000] Switching to clocksource MIPS [ 0.830000] NET: Registered protocol family 2 [ 0.830000] IP route cache hash table entries: 1024 (order: 0, 4096 byte= s) [ 0.830000] TCP established hash table entries: 4096 (order: 3, 32768 by= tes) [ 0.840000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.840000] TCP: Hash tables configured (established 4096 bind 4096) [ 0.850000] TCP reno registered [ 0.850000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.860000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.860000] NET: Registered protocol family 1 [ 2.330000] msgmni has been set to 244 [ 2.330000] io scheduler noop registered [ 2.340000] io scheduler deadline registered (default) [ 2.340000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 2.370000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq =3D 11) is a 165= 50A [ 2.370000] console [ttyS0] enabled, bootconsole disabled [ 2.370000] console [ttyS0] enabled, bootconsole disabled [ 2.390000] gpiochip_add: registered GPIOs 32 to 40 on device: spi-rb4xx= -cpld [ 2.390000] m25p80 spi0.0: pm25lv512 (64 Kbytes) [ 2.400000] Creating 4 MTD partitions on "spi0.0": [ 2.400000] 0x000000000000-0x00000000b000 : "routerboot" [ 2.410000] 0x00000000b000-0x00000000c000 : "hard_config" [ 2.420000] 0x00000000d000-0x00000000f000 : "bios" [ 2.420000] 0x00000000f000-0x000000010000 : "soft_config" [ 2.430000] NAND flash driver for RouterBoard 4xx series version 0.2.0 [ 2.440000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit) [ 2.450000] Scanning device for bad blocks [ 2.610000] Bad eraseblock 947 at 0x000000ecc000 [ 2.640000] Bad eraseblock 1093 at 0x000001114000 [ 2.690000] Bad eraseblock 1353 at 0x000001524000 [ 2.730000] Bad eraseblock 1565 at 0x000001874000 [ 2.740000] Bad eraseblock 1566 at 0x000001878000 [ 2.860000] Bad eraseblock 2261 at 0x000002354000 [ 2.860000] Bad eraseblock 2262 at 0x000002358000 [ 2.870000] Bad eraseblock 2277 at 0x000002394000 [ 2.880000] Bad eraseblock 2278 at 0x000002398000 [ 2.880000] Bad eraseblock 2279 at 0x00000239c000 [ 2.890000] Bad eraseblock 2280 at 0x0000023a0000 [ 2.890000] Bad eraseblock 2283 at 0x0000023ac000 [ 2.900000] Bad eraseblock 2284 at 0x0000023b0000 [ 2.900000] Bad eraseblock 2286 at 0x0000023b8000 [ 2.910000] Bad eraseblock 2288 at 0x0000023c0000 [ 2.910000] Bad eraseblock 2289 at 0x0000023c4000 [ 2.920000] Bad eraseblock 2291 at 0x0000023cc000 [ 2.920000] Bad eraseblock 2293 at 0x0000023d4000 [ 2.920000] Bad eraseblock 2294 at 0x0000023d8000 [ 2.930000] Bad eraseblock 2299 at 0x0000023ec000 [ 2.940000] Bad eraseblock 2300 at 0x0000023f0000 [ 2.940000] Bad eraseblock 2303 at 0x0000023fc000 [ 2.950000] Bad eraseblock 2306 at 0x000002408000 [ 2.950000] Bad eraseblock 2307 at 0x00000240c000 [ 2.950000] Bad eraseblock 2308 at 0x000002410000 [ 2.960000] Bad eraseblock 2309 at 0x000002414000 [ 2.970000] Bad eraseblock 2335 at 0x00000247c000 [ 2.970000] Bad eraseblock 2336 at 0x000002480000 [ 2.980000] Bad eraseblock 2355 at 0x0000024cc000 [ 3.000000] Bad eraseblock 2429 at 0x0000025f4000 [ 3.000000] Bad eraseblock 2433 at 0x000002604000 [ 3.010000] Bad eraseblock 2436 at 0x000002610000 [ 3.010000] Bad eraseblock 2439 at 0x00000261c000 [ 3.020000] Bad eraseblock 2442 at 0x000002628000 [ 3.020000] Bad eraseblock 2443 at 0x00000262c000 [ 3.030000] Bad eraseblock 2446 at 0x000002638000 [ 3.030000] Bad eraseblock 2449 at 0x000002644000 [ 3.040000] Bad eraseblock 2453 at 0x000002654000 [ 3.040000] Bad eraseblock 2456 at 0x000002660000 [ 3.050000] Bad eraseblock 2457 at 0x000002664000 [ 3.050000] Bad eraseblock 2459 at 0x00000266c000 [ 3.060000] Bad eraseblock 2462 at 0x000002678000 [ 3.060000] Bad eraseblock 2465 at 0x000002684000 [ 3.070000] Bad eraseblock 2468 at 0x000002690000 [ 3.070000] Bad eraseblock 2470 at 0x000002698000 [ 3.080000] Bad eraseblock 2473 at 0x0000026a4000 [ 3.080000] Bad eraseblock 2475 at 0x0000026ac000 [ 3.090000] Bad eraseblock 2476 at 0x0000026b0000 [ 3.250000] Bad eraseblock 3371 at 0x0000034ac000 [ 3.380000] Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit": [ 3.380000] 0x000000000000-0x000000040000 : "booter" [ 3.390000] 0x000000040000-0x000000400000 : "kernel" [ 3.390000] 0x000000400000-0x000004000000 : "rootfs" [ 3.400000] mtd: partition "rootfs" set to be root filesystem [ 3.410000] split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bit" [ 3.420000] IP17xx: Found IP175D at ag71xx-mdio.0:00 [ 3.420000] ag71xx_mdio: probed [ 3.430000] eth0: Atheros AG71xx at 0xba000000, irq 5 [ 3.730000] ag71xx ag71xx.1: eth0: connected to PHY at ag71xx-mdio.0:04 [uid=3D02430d80, driver=3DGeneric PHY] [ 3.740000] eth1: Atheros AG71xx at 0xb9000000, irq 4 [ 4.060000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.0:00 [uid=3D02430d80, driver=3DIC+ IP17xx] [ 4.070000] TCP cubic registered [ 4.070000] NET: Registered protocol family 17 [ 4.070000] 8021q: 802.1Q VLAN Support v1.8 [ 4.080000] Freeing unused kernel memory: 1468k freed - preinit - Press the [f] key and hit [enter] to enter failsafe mode [ 5.730000] eth0: link up (100Mbps/Full duplex) - regular preinit - [ 7.700000] eth0: link down - init - [ 7.870000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993 [ 7.880000] Backport based on wireless-testing.git master-2012-09-07 [ 7.890000] compat.git: wireless-testing.git [ 7.910000] cfg80211: Calling CRDA to update world regulatory domain [ 7.910000] cfg80211: World regulatory domain updated: [ 7.920000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 7.930000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 7.930000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 7.940000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 7.950000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 7.960000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 8.030000] PCI: Enabling device 0000:00:12.0 (0000 -> 0002) [ 8.040000] ath5k 0000:00:12.0: registered as 'phy0' [ 8.690000] ath5k: phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x61= ) [ 8.690000] cfg80211: Calling CRDA for country: US [ 8.700000] cfg80211: Regulatory domain changed to country: US [ 8.700000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 8.710000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm) [ 8.720000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm) [ 8.730000] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 8.740000] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 8.740000] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 8.750000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm) [ 8.790000] PPP generic driver version 2.4.2 [ 8.820000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 8.900000] NET: Registered protocol family 24 [ 8.910000] nf_conntrack version 0.5.0 (1981 buckets, 7924 max) Please press Enter to activate this console. [ 10.870000] device eth1 entered promiscuous mode [ 12.060000] eth1: link up (100Mbps/Full duplex) [ 12.060000] br-lan: port 1(eth1) entered forwarding state [ 12.070000] br-lan: port 1(eth1) entered forwarding state [ 12.760000] eth0: link up (100Mbps/Full duplex) [ 14.070000] br-lan: port 1(eth1) entered forwarding state On Fri, Jan 4, 2013 at 5:59 AM, Adrian Chadd wrote: > ... wow. How the hell is that happening?! > > > > > Adrian > > > On 3 January 2013 20:54, Monthadar Al Jaberi wrote: >> Maybe this is the root of the problem. >> >> On RSPRO the PCI start slot enumerating from 17. While RB433AH start >> from 18. That can explain why Slot 20 of RB433AH won't even attach >> (AR7161 only has 3 slots, slot 17 to 19). That can also explain why I >> get device_timeout on slot 18 and 19 cause they are miss aligned. And >> don't see any interrupts from ath(4) when enabling interrupt >> debugging. >> >> I will keep digging into why they won't start enumerating correct. >> >> br, >> >> On Fri, Jan 4, 2013 at 2:28 AM, Monthadar Al Jaberi wrote: >>> Hi, >>> >>> I am wondering if anyone can confirm that any ath5k (preferably >>> AR5413) series miniPCI wifi works on RB433/AH/UAH. >>> >>> Thank you in advance >>> >>> On Wed, Jan 2, 2013 at 10:29 PM, Monthadar Al Jaberi >>> wrote: >>>> On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd wrot= e: >>>>> ... sounds like a definite interrupt routing issue. >>>>> >>>>> Who's been knee deep in the interrupt handling code in MIPS lately? G= rrr. >>>>> I know there's been some FDT work in MIPS and that's touched some >>>>> interrupt code.. maybe that's interfering? >>>> >>>> I am not sure, I just re-compiled my kernel for RSPRO and it seems to = work. >>>> >>>> I install openwrt on rb433ah and ath0 associated ok. and I could ping >>>> between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working >>>> RB433AH running same kernel r243866. >>>> >>>> Attached is my kernel config & hints. ( I am "playing around" with the >>>> ar71xx_spi but that should not effect the pci code, I hope). >>>> >>>> # >>>> # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71x= x systems >>>> # >>>> # This includes all the common drivers for the AR71XX boards along wit= h >>>> # the usb, net80211 and atheros driver code. >>>> # >>>> # $FreeBSD$ >>>> # >>>> >>>> machine mips mips >>>> ident RB433AH_MFS >>>> cpu CPU_MIPS4KC >>>> makeoptions KERNLOADADDR=3D0x80050000 >>>> options HZ=3D1000 >>>> options HWPMC_HOOKS >>>> >>>> files "../atheros/files.ar71xx" >>>> >>>> # For now, hints are per-board. >>>> >>>> hints "RB433AH.hints" >>>> >>>> makeoptions DEBUG=3D-g #Build kernel with gdb(1) de= bug symbols >>>> >>>> # Build these as modules so small platform builds will have the >>>> # modules already built. >>>> makeoptions MODULES_OVERRIDE=3D"random gpio ar71xx if_gif if_gre >>>> if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip >>>> wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci" >>>> >>>> options DDB >>>> options KDB >>>> >>>> options SCHED_4BSD #4BSD scheduler >>>> options INET #InterNETworking >>>> #options INET6 # IPv6 >>>> >>>> # options NFS_CL #Network Filesystem Client >>>> >>>> options PSEUDOFS #Pseudo-filesystem framework >>>> options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time = extensions >>>> >>>> # options NFS_LEGACYRPC >>>> # Debugging for use in -current >>>> options INVARIANTS >>>> options INVARIANT_SUPPORT >>>> options WITNESS >>>> options WITNESS_SKIPSPIN >>>> options DEBUG_REDZONE >>>> options DEBUG_MEMGUARD >>>> >>>> options FFS #Berkeley Fast Filesystem >>>> # options SOFTUPDATES #Enable FFS soft updates sup= port >>>> # options UFS_ACL #Support for access control = lists >>>> # options UFS_DIRHASH #Improve performance on big >>>> directories >>>> # options MSDOSFS # Read MSDOS filesyste= ms; useful for USB/CF >>>> >>>> device pci >>>> device ar71xx_pci >>>> >>>> # RTC - requires hackery in the spibus code to work >>>> device pcf2123_rtc >>>> >>>> # GEOM modules >>>> device geom_redboot # to get access to the SPI flash parti= tions >>>> device geom_uzip # compressed in-memory filesystem hack= ery! >>>> device geom_map >>>> options GEOM_UZIP >>>> >>>> # NANDFS >>>> options NANDFS >>>> >>>> ## Boot from the first MFS uzip >>>> #options ROOTDEVNAME=3D\"ufs:md0.uzip\" >>>> #options MD_ROOT >>>> #options MD_ROOT_SIZE=3D"9000" >>>> >>>> # Boot from NFS >>>> options NFSLOCKD #Network Lock Manager >>>> options NFSCLIENT #Network Filesystem Client >>>> options NFS_ROOT >>>> >>>> options BOOTP >>>> options BOOTP_NFSROOT >>>> options BOOTP_NFSV3 >>>> options BOOTP_WIRED_TO=3Darge1 >>>> options BOOTP_COMPAT >>>> options ROOTDEVNAME=3D\"nfs:172.16.0.101:/usr/obj/rb433ah/nfs\= " >>>> >>>> >>>> # 802.11 framework >>>> options IEEE80211_DEBUG >>>> options IEEE80211_ALQ >>>> options IEEE80211_SUPPORT_MESH >>>> # This option is currently broken for if_ath_tx. >>>> options IEEE80211_SUPPORT_TDMA >>>> options IEEE80211_AMPDU_AGE >>>> device wlan # 802.11 support >>>> device wlan_wep # 802.11 WEP support >>>> device wlan_ccmp # 802.11 CCMP support >>>> device wlan_tkip # 802.11 TKIP support >>>> device wlan_xauth # 802.11 hostap support >>>> device wlan_acl # 802.11 ACL support >>>> >>>> # Atheros wireless NICs >>>> device ath # Atheros interface support >>>> device ath_pci # Atheros PCI/Cardbus bus >>>> options ATH_DEBUG >>>> options ATH_DIAGAPI >>>> options ATH_ENABLE_11N >>>> options AH_DEBUG >>>> options AH_DEBUG_ALQ >>>> options ALQ >>>> device ath_hal >>>> option AH_SUPPORT_AR5416 >>>> device ath_rate_sample >>>> option AH_RXCFG_SDMAMW_4BYTES >>>> option AH_AR5416_INTERRUPT_MITIGATION >>>> # There's no DFS radar detection support yet so this won't actually >>>> # detect radars. It however does enable the rest of the channel chang= e >>>> # machinery so DFS can be debugged. >>>> option ATH_ENABLE_DFS >>>> >>>> device mii >>>> device arge >>>> #options ARGE_DEBUG # Enable if_arge debugging for= now >>>> >>>> #device usb >>>> #options USB_EHCI_BIG_ENDIAN_DESC # handle big-e= ndian byte order >>>> #options USB_DEBUG >>>> #options USB_HOST_ALIGN=3D32 # AR71XX (MI= PS in general?) requires this >>>> #device ehci >>>> >>>> device scbus >>>> #device umass >>>> device da >>>> >>>> device rb4xx >>>> >>>> # On-board SPI flash >>>> device spibus >>>> device ar71xx_spi >>>> device mmc >>>> device mmcsd >>>> device mmcspi >>>> device mx25l >>>> device nand >>>> device ar71xx_wdog >>>> >>>> device uart >>>> device uart_ar71xx >>>> >>>> device loop >>>> device ether >>>> device md >>>> device bpf >>>> device random >>>> device if_bridge >>>> device gif # ip[46] in ip[46] tunneling protocol >>>> device gre # generic encapsulation - only for IPv= 4 in IPv4 though atm >>>> >>>> # Enable GPIO >>>> device gpio >>>> device gpioled >>>> >>>> options AR71XX_ROUTERBOOT >>>> >>>> >>>> # $FreeBSD$ >>>> hint.apb.0.at=3D"nexus0" >>>> hint.apb.0.irq=3D4 >>>> >>>> # uart0 >>>> hint.uart.0.at=3D"apb0" >>>> # see atheros/uart_cpu_ar71xx.c why +3 >>>> hint.uart.0.maddr=3D0x18020003 >>>> hint.uart.0.msize=3D0x18 >>>> hint.uart.0.irq=3D3 >>>> >>>> #ohci >>>> #hint.ohci.0.at=3D"apb0" >>>> #hint.ohci.0.maddr=3D0x1c000000 >>>> #hint.ohci.0.msize=3D0x01000000 >>>> #hint.ohci.0.irq=3D6 >>>> >>>> #ehci >>>> #hint.ehci.0.at=3D"nexus0" >>>> #hint.ehci.0.maddr=3D0x1b000000 >>>> #hint.ehci.0.msize=3D0x01000000 >>>> #hint.ehci.0.irq=3D1 >>>> >>>> # pci >>>> hint.pcib.0.at=3D"nexus0" >>>> hint.pcib.0.irq=3D0 >>>> >>>> hint.arge.0.at=3D"nexus0" >>>> hint.arge.0.maddr=3D0x19000000 >>>> hint.arge.0.msize=3D0x1000 >>>> hint.arge.0.irq=3D2 >>>> # PHY4 =3D 1 << 4 >>>> hint.arge.0.phymask=3D0x10 >>>> # Uncomment this hint for RS (not PRO) >>>> # PHY20 =3D 1 << 20 >>>> # hint.arge.0.phymask=3D0x100000 >>>> hint.ukphy.0.at=3D"miibus0" >>>> >>>> hint.arge.1.at=3D"nexus0" >>>> hint.arge.1.maddr=3D0x1a000000 >>>> hint.arge.1.msize=3D0x1000 >>>> hint.arge.1.irq=3D3 >>>> # PHY1, PHY2, PHY3 >>>> hint.arge.1.phymask=3D0x00 >>>> # should be 100 for RS >>>> #hint.arge.1.media=3D100 >>>> #hint.arge.1.fduplex=3D1 >>>> # Uncomment this hint for RS (not PRO) >>>> # hint.arge.1.phymask=3D70000 >>>> >>>> # SPI flash >>>> hint.spi.0.at=3D"nexus0" >>>> hint.spi.0.maddr=3D0x1f000000 >>>> hint.spi.0.msize=3D0x10 >>>> >>>> hint.mx25l.0.at=3D"spibus0" >>>> hint.mx25l.0.cs=3D1 >>>> >>>> hint.rb_cpldbus.0.at=3D"spibus0" >>>> hint.rb_cpldbus.0.cs=3D1 >>>> # >>>> hint.onand.0.at=3D"nandbus0" >>>> hint.lnand.0.at=3D"nandbus0" >>>> hint.snand.0.at=3D"nandbus0" >>>> >>>> hint.flash.0.at=3D"nand0" >>>> hint.flash.0.size=3D"0x40000" >>>> hint.flash.0.offset=3D"0" >>>> hint.flash.0.name=3D"bootloader" >>>> hint.flash.1.at=3D"nand0" >>>> hint.flash.1.size=3D"0x3c0000" >>>> hint.flash.1.offset=3D"0x40000" >>>> hint.flash.1.name=3D"kernelfs" >>>> hint.flash.2.at=3D"nand0" >>>> hint.flash.2.size=3D"0" >>>> hint.flash.2.offset=3D"0x400000" >>>> hint.flash.2.name=3D"rootfs" >>>> >>>> hint.ar71xx_gpio.0.at=3D"nexus0" >>>> >>>> #hint.rb_nandbusy.0.at=3D"gpiobus0" >>>> >>>> hint.mmcspi.0.at=3D"spibus0" >>>> hint.mmcspi.0.cs=3D2 >>>> >>>> # Watchdog >>>> hint.ar71xx_wdog.0.at=3D"nexus0" >>>> >>>> >>>> br, >>>> >>>>> >>>>> >>>>> Adrian >>>>> >>>>> >>>>> On 2 January 2013 12:40, Monthadar Al Jaberi wr= ote: >>>>>> I tested some more. First I changed the miniPCI slot. Now boot looks= like this: >>>>>> >>>>>> pcib0 at irq 0 on nexus0 >>>>>> pci0: on pcib0 >>>>>> ath0: irq 2 at device 19.0 on pci0 >>>>>> ath0: AR5413 mac 10.5 RF5413 phy 6.1 >>>>>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 >>>>>> >>>>>> >>>>>> Then I created a hostap. But none of my other devices sees it (lapto= p, iphone). >>>>>> >>>>>> A scan results in: >>>>>> >>>>>> # ifconfig wlan0 scan >>>>>> wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell 0 >>>>>> maxdwell 0 nssid 0 >>>>>> wlan0: start_scan_locked: active scan, duration 2147483647 mindwell = 0 >>>>>> maxdwell 0, desired mode 11g, append, nopick, once >>>>>> wlan0: scan set 11g dwell min 200ms max 200ms >>>>>> wlan0: scan_task: chan 11g -> 11g [active, dwell min 200ms max 200= ms] >>>>>> wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822) >>>>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 4 >>>>>> wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "" >>>>>> wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 215014= 1333] >>>>>> wlan0: notify scan done >>>>>> root@rb433ah:~ # ath0: device timeout >>>>>> >>>>>> And when I try to ping a random IP address I get the following. >>>>>> Interesting is that it seems to "bail out" when it tries to send >>>>>> probe_resp (last in output): >>>>>> $ ping -c 1 172.168.3.2 >>>>>> PING 172.168.3.2 (172.168.3.2): 56 data bytes >>>>>> ath0: device timeout >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 11, len 5 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8 >>>>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 11, len 5 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 11, len 5 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2 >>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: >>>>>> 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a >>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5 >>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default= " >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4 >>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "default= " >>>>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9 >>>>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 11, len 5 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 11, len 5 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 11, len 5 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 11, len 5 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 11, len 5 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 11, len 5 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 51, len 8 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, id= 11, len 5 >>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 47, len 1 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 74, len 14 >>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, id= 127, len 1 >>>>>> wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0 >>>>>> wlan0: [00:aa:70:77:bd:77] recv probe req >>>>>> wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489) >>>>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 5 >>>>>> wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77 >>>>>> ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing >>>>>> .... >>>>>> >>>>>> >>>>>> On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi wrote: >>>>>>> Hi, >>>>>>> >>>>>>> ath(4) failed to attach on my Routerboard RB433AH running FreeBSD >>>>>>> current. This is what I got during boo-up. >>>>>>> >>>>>>> pcib0 at irq 0 on nexus0 >>>>>>> pci0: on pcib0 >>>>>>> ath0: irq 3 at device 20.0 on pci0 >>>>>>> ath0: could not map interrupt >>>>>>> device_attach: ath0 attach returned 6 >>>>>>> >>>>>>> Any idea why? Anyone else is running ath(4) on this board? My wifi >>>>>>> card is a Ubiquity X2 with AR5413 chip. >>>>>>> >>>>>>> br, >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Monthadar Al Jaberi >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Monthadar Al Jaberi >>>>>> _______________________________________________ >>>>>> freebsd-wireless@freebsd.org mailing list >>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freeb= sd.org" >>>> >>>> >>>> >>>> -- >>>> Monthadar Al Jaberi >>> >>> >>> >>> -- >>> Monthadar Al Jaberi >> >> >> >> -- >> Monthadar Al Jaberi --=20 Monthadar Al Jaberi From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 4 19:13:48 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 13DB975D; Fri, 4 Jan 2013 19:13:48 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by mx1.freebsd.org (Postfix) with ESMTP id 4A7EC2C5; Fri, 4 Jan 2013 19:13:46 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id hm9so113924wib.8 for ; Fri, 04 Jan 2013 11:13:46 -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 :content-transfer-encoding; bh=MXqPwY10dt475GxdJWQNyvqMl3GGyaqoPJL0nl2zeuA=; b=yyJj2mPybF82do5iiFd1NMbY8uZ8Eres6cp7a9BIejtdl2NUI2XCPkOkw2dPVWW+mW +22FhdjEZxbri3hlq9hhShLpuvleIyQSfesk66OjS+ic102DZ++vOuLO5Wo3buBBmlBl e1LuQ8gKN0DA+H/wx3QsWl2vlX92sZZNpSUdr+JSvkS50vAJjX/tAKH9n09CsprBxoOj gKmzqcjl/ZiZZZaiQz51R1hTQ7EdRQkAXKGHXEBeYs9rcawAONEr/4V2TyLGORRW7HI0 Z6puJoaRVN/rdK/SnaVDfhY8Au6vATcMXoe3vDEUbdw5RquJyuQ2CQt4+Bd79mECdiiP OUMQ== MIME-Version: 1.0 Received: by 10.194.93.40 with SMTP id cr8mr85951663wjb.16.1357326825874; Fri, 04 Jan 2013 11:13:45 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Fri, 4 Jan 2013 11:13:45 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Jan 2013 11:13:45 -0800 X-Google-Sender-Auth: BotpAe9HJRosZjIu6d02HzSirqk Message-ID: Subject: Re: ath0: could not map interrupt From: Adrian Chadd To: Monthadar Al Jaberi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 04 Jan 2013 19:13:48 -0000 Ok. The magic you need to try hacking is in ar71xx_pci.c. There's the 7 PCI windows and the 3 interrupt lines that are configured. The IRQ only gets unmasked when a slot claims it as a resource. So you'll have to fiddle with that mapping a little. Look at ar71xx_pci_route_interrupt(). Maybe set it up so AR71XX_PCI_BASE_SLOT is 18 instead of 17? Adrian On 4 January 2013 06:48, Monthadar Al Jaberi wrote: > Attached is two boot logs with debug on for resource manager of RB433AH > and RSPRO respectively. Also attached boot log from openWRT as a > reference (on RB433AH). > > I installed an ath(4) in first slot in each board according to the markin= g on > each PCB. You will notice that RB433AH starts from slot 18. > > I looked at openWRT and it seems they setup a special IRQ map for the RB4= XX. > For RSPRO they don't seem to do anything special, and use the generic map= pings > of three IRQ and slots 17 to 19. > While RB433AH lists the slots for the IRQ from slot 17 to 23. > > RB433AH: > CPU platform: Atheros AR7161 rev 2 > CPU Frequency=3D680 MHz > CPU DDR Frequency=3D340 MHz > CPU AHB Frequency=3D170 MHz > platform frequency: 680000000 > arguments: > a0 =3D 00000008 > a1 =3D a0871c00 > a2 =3D 00000000 > a3 =3D 00000000 > Cmd line: console=3DttyS0,115200 gpio=3D4031 HZ=3D340000000 mem=3D128M > kmac=3DD4:CA:6D:57:DC:D3 board=3D433 boot=3D1 mlc=3D2 > Environment: > envp is invalid > Cache info: > picache_stride =3D 4096 > picache_loopcount =3D 16 > pdcache_stride =3D 4096 > pdcache_loopcount =3D 8 > cpu0: MIPS Technologies processor v116.147 > MMU: Standard TLB, 16 entries > L1 i-cache: 4 ways of 512 sets, 32 bytes per line > L1 d-cache: 4 ways of 256 sets, 32 bytes per line > Config1=3D0x9ee3519e > Config3=3D0x20 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 10.0-CURRENT #172: Fri Jan 4 16:40:48 CET 2013 > root@mechy:/usr/obj/mips.mips/usr/src/sys/RB433AH_MFS mips > WARNING: WITNESS option enabled, expect reduced performance. > MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: > MEMGUARD map base: 0xc0400000 > MEMGUARD map limit: 0xc6a67000 > MEMGUARD map size: 104860 KBytes > real memory =3D 134217728 (131072K bytes) > avail memory =3D 123133952 (117MB) > random device not loaded; using insecure entropy > wlan: mac acl policy registered > rman_manage_region: request: start 0, end 0x5 > rman_manage_region: request: start 0, end 0xffffffff > nexus0: > clock0: on nexus0 > rman_reserve_resource_bound: request: [0x5, 0x5], > length 0x1, flags 2, device clock0 > considering [0, 0x5] > truncated region: [0x5, 0x5]; size 0x1 (requested 0x1) > candidate region: [0x5, 0x5], size 0x1 > allocating at the end > Timecounter "MIPS32" frequency 340000000 Hz quality 800 > Event timer "MIPS32" frequency 340000000 Hz quality 800 > apb0 at irq 4 on nexus0 > rman_manage_region: request: start 0x18000000, end > 0x1dffffff > rman_manage_region: request: start 0, end 0x7 > rman_reserve_resource_bound: request: [0x4, 0x4], > length 0x1, flags 6, device apb0 > considering [0, 0x4] > truncated region: [0x4, 0x4]; size 0x1 (requested 0x1) > candidate region: [0x4, 0x4], size 0x1 > allocating at the end > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > uart0: <16550 or compatible> on apb0 > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > rman_reserve_resource_bound: request: [0x3, 0x3], length > 0x1, flags 6, device uart0 > considering [0, 0x7] > truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) > candidate region: [0x3, 0x3], size 0x1 > splitting region in three parts: [0, 0x2]; [0x3, 0x3]; [0x4, 0x7] > uart0: console (115200,n,8,1) > ehci0: at mem > 0x1b000000-0x1bffffff irq 1 on nexus0 > rman_reserve_resource_bound: request: [0x1b000000, > 0x1bffffff], length 0x1000000, flags 2, device ehci0 > considering [0, 0xffffffff] > truncated region: [0x1b000000, 0x1bffffff]; size 0x1000000 (requested 0x1= 000000) > candidate region: [0x1b000000, 0x1bffffff], size 0x1000000 > splitting region in three parts: [0, 0x1affffff]; [0x1b000000, > 0x1bffffff]; [0x1c000000, 0xffffffff] > rman_reserve_resource_bound: request: [0x1, 0x1], > length 0x1, flags 2, device ehci0 > considering [0, 0x3] > truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) > candidate region: [0x1, 0x1], size 0x1 > splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x3] > usbus0: set host controller mode > usbus0: EHCI version 1.0 > usbus0: set host controller mode > usbus0 on ehci0 > pcib0 at irq 0 on nexus0 > rman_manage_region: request: start > 0x10000000, end 0x16ffffff > rman_manage_region: request: start 0, end 0x2 > rman_reserve_resource_bound: request: [0, 0], length > 0x1, flags 6, device pcib0 > considering [0, 0] > truncated region: [0, 0]; size 0x1 (requested 0x1) > candidate region: [0, 0], size 0x1 > candidate region is entire chunk > pci0: on pcib0 > ath0: irq 1 at device 18.0 on pci0 > rman_reserve_resource_bound: request: [0, > 0xffffffff], length 0x10000, flags 16384, device ath0 > considering [0x10000000, 0x16ffffff] > truncated region: [0x10000000, 0x16ffffff]; size 0x7000000 (requested 0x1= 0000) > candidate region: [0x10000000, 0x16ffffff], size 0x7000000 > allocating from the beginning > rman_reserve_resource_bound: request: [0x1, 0x1], > length 0x1, flags 6, device ath0 > considering [0, 0x2] > truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) > candidate region: [0x1, 0x1], size 0x1 > splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x2] > ath0: AR5413 mac 10.5 RF5413 phy 6.1 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 > arge0: at mem > 0x19000000-0x19000fff irq 2 on nexus0 > rman_reserve_resource_bound: request: [0x19000000, > 0x19000fff], length 0x1000, flags 6, device arge0 > considering [0, 0x1affffff] > truncated region: [0x19000000, 0x19000fff]; size 0x1000 (requested 0x1000= ) > candidate region: [0x19000000, 0x19000fff], size 0x1000 > splitting region in three parts: [0, 0x18ffffff]; [0x19000000, > 0x19000fff]; [0x19001000, 0x1affffff] > rman_reserve_resource_bound: request: [0x2, 0x2], > length 0x1, flags 6, device arge0 > considering [0x2, 0x3] > truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) > candidate region: [0x2, 0x2], size 0x1 > allocating from the beginning > arge0: finishing attachment, phymask 0010, proxy null > miibus0: on arge0 > ukphy1: PHY 4 on miibus0 > ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > arge0: Ethernet address: d4:ca:6d:57:dc:d4 > arge1: at mem > 0x1a000000-0x1a000fff irq 3 on nexus0 > rman_reserve_resource_bound: request: [0x1a000000, > 0x1a000fff], length 0x1000, flags 6, device arge1 > considering [0x19001000, 0x1affffff] > truncated region: [0x1a000000, 0x1a000fff]; size 0x1000 (requested 0x1000= ) > candidate region: [0x1a000000, 0x1a000fff], size 0x1000 > splitting region in three parts: [0x19001000, 0x19ffffff]; > [0x1a000000, 0x1a000fff]; [0x1a001000, 0x1affffff] > rman_reserve_resource_bound: request: [0x3, 0x3], > length 0x1, flags 6, device arge1 > considering [0x3, 0x3] > truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) > candidate region: [0x3, 0x3], size 0x1 > candidate region is entire chunk > arge1: finishing attachment, phymask 0000, proxy null > arge1: Ethernet address: d4:ca:6d:57:dc:d3 > spi0: at mem 0x1f000000-0x1f00000f on nexus0 > rman_reserve_resource_bound: request: [0x1f000000, > 0x1f00000f], length 0x10, flags 2, device spi0 > considering [0x1c000000, 0xffffffff] > truncated region: [0x1f000000, 0x1f00000f]; size 0x10 (requested 0x10) > candidate region: [0x1f000000, 0x1f00000f], size 0x10 > splitting region in three parts: [0x1c000000, 0x1effffff]; > [0x1f000000, 0x1f00000f]; [0x1f000010, 0xffffffff] > spibus0: on spi0 > mx25l0: at cs 0 on spibus0 > Unknown SPI flash device. Vendor: ef, device id: 3011 > device_attach: mx25l0 attach returned 6 > ar71xx_wdog0: on nexus0 > Timecounters tick every 1.000 msec > usbus0: 480Mbps High Speed USB v2.0 > bootpc_init: wired to interface 'arge1' > Sending DHCP Discover packet from interface arge1 (d4:ca:6d:57:dc:d3) > > > > RSPRO: > CPU platform: Atheros AR7161 rev 2 > CPU Frequency=3D720 MHz > CPU DDR Frequency=3D360 MHz > CPU AHB Frequency=3D180 MHz > platform frequency: 720000000 > arguments: > a0 =3D 00000002 > a1 =3D 80050028 > a2 =3D 80050000 > a3 =3D 0000000a > Cmd line: =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD = =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF= =BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD > Environment: > memsize =3D 0x08000000 > modetty0 =3D 0,n,8,1,hw > ethaddr =3D 00.15.6d.c8.c9.2c > board =3D RouterStation PRO > Cache info: > picache_stride =3D 4096 > picache_loopcount =3D 16 > pdcache_stride =3D 4096 > pdcache_loopcount =3D 8 > cpu0: MIPS Technologies processor v116.147 > MMU: Standard TLB, 16 entries > L1 i-cache: 4 ways of 512 sets, 32 bytes per line > L1 d-cache: 4 ways of 256 sets, 32 bytes per line > Config1=3D0x9ee3519e > Config3=3D0x20 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 10.0-CURRENT #9: Fri Jan 4 16:52:15 CET 2013 > root@mechy:/usr/obj/mips.mips/usr/src/sys/RSPRO_NFS mips > WARNING: WITNESS option enabled, expect reduced performance. > MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: > MEMGUARD map base: 0xc0400000 > MEMGUARD map limit: 0xc6a67000 > MEMGUARD map size: 104860 KBytes > real memory =3D 134217728 (131072K bytes) > avail memory =3D 122871808 (117MB) > random device not loaded; using insecure entropy > rman_manage_region: request: start 0, end 0x5 > rman_manage_region: request: start 0, end 0xffffffff > nexus0: > clock0: on nexus0 > rman_reserve_resource_bound: request: [0x5, 0x5], > length 0x1, flags 2, device clock0 > considering [0, 0x5] > truncated region: [0x5, 0x5]; size 0x1 (requested 0x1) > candidate region: [0x5, 0x5], size 0x1 > allocating at the end > Timecounter "MIPS32" frequency 360000000 Hz quality 800 > Event timer "MIPS32" frequency 360000000 Hz quality 800 > apb0 at irq 4 on nexus0 > rman_manage_region: request: start 0x18000000, end > 0x1dffffff > rman_manage_region: request: start 0, end 0x7 > rman_reserve_resource_bound: request: [0x4, 0x4], > length 0x1, flags 6, device apb0 > considering [0, 0x4] > truncated region: [0x4, 0x4]; size 0x1 (requested 0x1) > candidate region: [0x4, 0x4], size 0x1 > allocating at the end > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > uart0: <16550 or compatible> on apb0 > rman_reserve_resource_bound: request: [0x18020003, > 0x1802001a], length 0x18, flags 2, device uart0 > considering [0x18000000, 0x1dffffff] > truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) > candidate region: [0x18020003, 0x1802001a], size 0x18 > splitting region in three parts: [0x18000000, 0x18020002]; > [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] > rman_reserve_resource_bound: request: [0x3, 0x3], length > 0x1, flags 6, device uart0 > considering [0, 0x7] > truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) > candidate region: [0x3, 0x3], size 0x1 > splitting region in three parts: [0, 0x2]; [0x3, 0x3]; [0x4, 0x7] > uart0: console (115200,n,8,1) > gpio0: on apb0 > rman_reserve_resource_bound: request: [0x18040000, > 0x18040fff], length 0x1000, flags 2, device gpio0 > considering [0x1802001b, 0x1dffffff] > truncated region: [0x18040000, 0x18040fff]; size 0x1000 (requested 0x1000= ) > candidate region: [0x18040000, 0x18040fff], size 0x1000 > splitting region in three parts: [0x1802001b, 0x1803ffff]; > [0x18040000, 0x18040fff]; [0x18041000, 0x1dffffff] > rman_reserve_resource_bound: request: [0x2, 0x2], length > 0x1, flags 6, device gpio0 > considering [0, 0x2] > truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) > candidate region: [0x2, 0x2], size 0x1 > allocating at the end > gpio0: [GIANT-LOCKED] > gpio0: function_set: 0x0 > gpio0: function_clear: 0x0 > gpio0: gpio pinmask=3D0xff > gpioc0: on gpio0 > gpiobus0: on gpio0 > gpioled0: at pin(s) 2 on gpiobus0 > ehci0: at mem > 0x1b000000-0x1bffffff irq 1 on nexus0 > rman_reserve_resource_bound: request: [0x1b000000, > 0x1bffffff], length 0x1000000, flags 2, device ehci0 > considering [0, 0xffffffff] > truncated region: [0x1b000000, 0x1bffffff]; size 0x1000000 (requested 0x1= 000000) > candidate region: [0x1b000000, 0x1bffffff], size 0x1000000 > splitting region in three parts: [0, 0x1affffff]; [0x1b000000, > 0x1bffffff]; [0x1c000000, 0xffffffff] > rman_reserve_resource_bound: request: [0x1, 0x1], > length 0x1, flags 2, device ehci0 > considering [0, 0x3] > truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) > candidate region: [0x1, 0x1], size 0x1 > splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x3] > usbus0: set host controller mode > usbus0: EHCI version 1.0 > usbus0: set host controller mode > usbus0 on ehci0 > pcib0 at irq 0 on nexus0 > rman_manage_region: request: start > 0x10000000, end 0x16ffffff > rman_manage_region: request: start 0, end 0x2 > rman_reserve_resource_bound: request: [0, 0], length > 0x1, flags 6, device pcib0 > considering [0, 0] > truncated region: [0, 0]; size 0x1 (requested 0x1) > candidate region: [0, 0], size 0x1 > candidate region is entire chunk > pci0: on pcib0 > ath0: irq 0 at device 17.0 on pci0 > rman_reserve_resource_bound: request: [0, > 0xffffffff], length 0x10000, flags 16384, device ath0 > considering [0x10000000, 0x16ffffff] > truncated region: [0x10000000, 0x16ffffff]; size 0x7000000 (requested 0x1= 0000) > candidate region: [0x10000000, 0x16ffffff], size 0x7000000 > allocating from the beginning > rman_reserve_resource_bound: request: [0, 0], length > 0x1, flags 6, device ath0 > considering [0, 0x2] > truncated region: [0, 0]; size 0x1 (requested 0x1) > candidate region: [0, 0], size 0x1 > allocating from the beginning > ath0: AR5413 mac 10.5 RF5413 phy 6.1 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 > arge0: at mem > 0x19000000-0x19000fff irq 2 on nexus0 > arge0: arge_attach: overriding MII mode to 'RGMII' > rman_reserve_resource_bound: request: [0x19000000, > 0x19000fff], length 0x1000, flags 6, device arge0 > considering [0, 0x1affffff] > truncated region: [0x19000000, 0x19000fff]; size 0x1000 (requested 0x1000= ) > candidate region: [0x19000000, 0x19000fff], size 0x1000 > splitting region in three parts: [0, 0x18ffffff]; [0x19000000, > 0x19000fff]; [0x19001000, 0x1affffff] > rman_reserve_resource_bound: request: [0x2, 0x2], > length 0x1, flags 6, device arge0 > considering [0x2, 0x3] > truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) > candidate region: [0x2, 0x2], size 0x1 > allocating from the beginning > arge0: finishing attachment, phymask 0010, proxy null > miibus0: on arge0 > ukphy0: PHY 4 on miibus0 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT-FDX, 1000baseT-FDX-master, auto > arge0: Ethernet address: 00:15:6d:c8:c9:2c > arge1: at mem > 0x1a000000-0x1a000fff irq 3 on nexus0 > arge1: arge_attach: overriding MII mode to 'RGMII' > rman_reserve_resource_bound: request: [0x1a000000, > 0x1a000fff], length 0x1000, flags 6, device arge1 > considering [0x19001000, 0x1affffff] > truncated region: [0x1a000000, 0x1a000fff]; size 0x1000 (requested 0x1000= ) > candidate region: [0x1a000000, 0x1a000fff], size 0x1000 > splitting region in three parts: [0x19001000, 0x19ffffff]; > [0x1a000000, 0x1a000fff]; [0x1a001000, 0x1affffff] > rman_reserve_resource_bound: request: [0x3, 0x3], > length 0x1, flags 6, device arge1 > considering [0x3, 0x3] > truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) > candidate region: [0x3, 0x3], size 0x1 > candidate region is entire chunk > arge1: finishing attachment, phymask 0000, proxy null > arge1: Ethernet address: 00:15:6d:c8:c9:2d > spi0: at mem 0x1f000000-0x1f00000f on nexus0 > rman_reserve_resource_bound: request: [0x1f000000, > 0x1f00000f], length 0x10, flags 2, device spi0 > considering [0x1c000000, 0xffffffff] > truncated region: [0x1f000000, 0x1f00000f]; size 0x10 (requested 0x10) > candidate region: [0x1f000000, 0x1f00000f], size 0x10 > splitting region in three parts: [0x1c000000, 0x1effffff]; > [0x1f000000, 0x1f00000f]; [0x1f000010, 0xffffffff] > spibus0: on spi0 > mx25l0: at cs 0 on spibus0 > mx25l0: mx25ll128, sector 65536 bytes, 256 sectors > ar71xx_wdog0: on nexus0 > Timecounters tick every 1.000 msec > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus= 0 > g_dev_taste: make_dev_p() failed (gp->name=3Dredboot/RedBoot config, erro= r=3D22) > g_dev_taste: make_dev_p() failed (gp->name=3Dredboot/FIS directory, error= =3D22) > bootpc_init: wired to interface 'arge0' > Sending DHCP Discover packet from interface arge0 (00:15:6d:c8:c9:2c) > > OpenWRT: > [ 0.000000] Linux version 3.3.8 (monthadar.aljaberi@bane) (gcc > version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #5 Fri > Dec 21 16:41:32 CET 2012 > [ 0.000000] bootconsole [early0] enabled > [ 0.000000] CPU revision is: 00019374 (MIPS 24Kc) > [ 0.000000] SoC: Atheros AR7161 rev 2 > [ 0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, > Ref:40.000MHz > [ 0.000000] Determined physical RAM map: > [ 0.000000] memory: 08000000 @ 00000000 (usable) > [ 0.000000] User-defined physical RAM map: > [ 0.000000] memory: 08000000 @ 00000000 (usable) > [ 0.000000] Initrd not found or empty - disabling initrd > [ 0.000000] Zone PFN ranges: > [ 0.000000] Normal 0x00000000 -> 0x00008000 > [ 0.000000] Movable zone start PFN for each node > [ 0.000000] Early memory PFN ranges > [ 0.000000] 0: 0x00000000 -> 0x00008000 > [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. > Total pages: 32512 > [ 0.000000] Kernel command line: console=3DttyS0,115200 gpio=3D4031 > HZ=3D340000000 mem=3D128M kmac=3DD4:CA:6D:57:DC:D3 board=3D433 boot=3D1 m= lc=3D2 > rootfstype=3Dyaffs noinitrd > [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) > [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 by= tes) > [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 byte= s) > [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 b= ytes. > [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, > linesize 32 bytes > [ 0.000000] Writing ErrCtl register=3D00000080 > [ 0.000000] Readback ErrCtl register=3D00000080 > [ 0.000000] Memory: 125360k/131072k available (2063k kernel code, > 5712k reserved, 417k data, 1468k init, 0k highmem) > [ 0.000000] SLUB: Genslabs=3D9, HWalign=3D32, Order=3D0-3, MinObjects= =3D0, > CPUs=3D1, Nodes=3D1 > [ 0.000000] NR_IRQS:51 > [ 0.000000] Calibrating delay loop... 452.19 BogoMIPS (lpj=3D2260992) > [ 0.060000] pid_max: default: 32768 minimum: 301 > [ 0.060000] Mount-cache hash table entries: 512 > [ 0.070000] NET: Registered protocol family 16 > [ 0.070000] gpiochip_add: registered GPIOs 0 to 15 on device: ath79 > [ 0.080000] MIPS: machine is MikroTik RouterBOARD 433/AH > [ 0.780000] registering PCI controller with io_map_base unset > [ 0.790000] bio: create slab at 0 > [ 0.800000] PCI host bridge to bus 0000:00 > [ 0.800000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16fff= fff] > [ 0.810000] pci_bus 0000:00: root bus resource [io 0x0000] > [ 0.810000] pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x1000ff= ff] > [ 0.820000] pci 0000:00:12.0: using irq 40 for pin 1 > [ 0.820000] Switching to clocksource MIPS > [ 0.830000] NET: Registered protocol family 2 > [ 0.830000] IP route cache hash table entries: 1024 (order: 0, 4096 by= tes) > [ 0.830000] TCP established hash table entries: 4096 (order: 3, 32768 = bytes) > [ 0.840000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) > [ 0.840000] TCP: Hash tables configured (established 4096 bind 4096) > [ 0.850000] TCP reno registered > [ 0.850000] UDP hash table entries: 256 (order: 0, 4096 bytes) > [ 0.860000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) > [ 0.860000] NET: Registered protocol family 1 > [ 2.330000] msgmni has been set to 244 > [ 2.330000] io scheduler noop registered > [ 2.340000] io scheduler deadline registered (default) > [ 2.340000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled > [ 2.370000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq =3D 11) is a 1= 6550A > [ 2.370000] console [ttyS0] enabled, bootconsole disabled > [ 2.370000] console [ttyS0] enabled, bootconsole disabled > [ 2.390000] gpiochip_add: registered GPIOs 32 to 40 on device: spi-rb4= xx-cpld > [ 2.390000] m25p80 spi0.0: pm25lv512 (64 Kbytes) > [ 2.400000] Creating 4 MTD partitions on "spi0.0": > [ 2.400000] 0x000000000000-0x00000000b000 : "routerboot" > [ 2.410000] 0x00000000b000-0x00000000c000 : "hard_config" > [ 2.420000] 0x00000000d000-0x00000000f000 : "bios" > [ 2.420000] 0x00000000f000-0x000000010000 : "soft_config" > [ 2.430000] NAND flash driver for RouterBoard 4xx series version 0.2.0 > [ 2.440000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 > (Samsung NAND 64MiB 3,3V 8-bit) > [ 2.450000] Scanning device for bad blocks > [ 2.610000] Bad eraseblock 947 at 0x000000ecc000 > [ 2.640000] Bad eraseblock 1093 at 0x000001114000 > [ 2.690000] Bad eraseblock 1353 at 0x000001524000 > [ 2.730000] Bad eraseblock 1565 at 0x000001874000 > [ 2.740000] Bad eraseblock 1566 at 0x000001878000 > [ 2.860000] Bad eraseblock 2261 at 0x000002354000 > [ 2.860000] Bad eraseblock 2262 at 0x000002358000 > [ 2.870000] Bad eraseblock 2277 at 0x000002394000 > [ 2.880000] Bad eraseblock 2278 at 0x000002398000 > [ 2.880000] Bad eraseblock 2279 at 0x00000239c000 > [ 2.890000] Bad eraseblock 2280 at 0x0000023a0000 > [ 2.890000] Bad eraseblock 2283 at 0x0000023ac000 > [ 2.900000] Bad eraseblock 2284 at 0x0000023b0000 > [ 2.900000] Bad eraseblock 2286 at 0x0000023b8000 > [ 2.910000] Bad eraseblock 2288 at 0x0000023c0000 > [ 2.910000] Bad eraseblock 2289 at 0x0000023c4000 > [ 2.920000] Bad eraseblock 2291 at 0x0000023cc000 > [ 2.920000] Bad eraseblock 2293 at 0x0000023d4000 > [ 2.920000] Bad eraseblock 2294 at 0x0000023d8000 > [ 2.930000] Bad eraseblock 2299 at 0x0000023ec000 > [ 2.940000] Bad eraseblock 2300 at 0x0000023f0000 > [ 2.940000] Bad eraseblock 2303 at 0x0000023fc000 > [ 2.950000] Bad eraseblock 2306 at 0x000002408000 > [ 2.950000] Bad eraseblock 2307 at 0x00000240c000 > [ 2.950000] Bad eraseblock 2308 at 0x000002410000 > [ 2.960000] Bad eraseblock 2309 at 0x000002414000 > [ 2.970000] Bad eraseblock 2335 at 0x00000247c000 > [ 2.970000] Bad eraseblock 2336 at 0x000002480000 > [ 2.980000] Bad eraseblock 2355 at 0x0000024cc000 > [ 3.000000] Bad eraseblock 2429 at 0x0000025f4000 > [ 3.000000] Bad eraseblock 2433 at 0x000002604000 > [ 3.010000] Bad eraseblock 2436 at 0x000002610000 > [ 3.010000] Bad eraseblock 2439 at 0x00000261c000 > [ 3.020000] Bad eraseblock 2442 at 0x000002628000 > [ 3.020000] Bad eraseblock 2443 at 0x00000262c000 > [ 3.030000] Bad eraseblock 2446 at 0x000002638000 > [ 3.030000] Bad eraseblock 2449 at 0x000002644000 > [ 3.040000] Bad eraseblock 2453 at 0x000002654000 > [ 3.040000] Bad eraseblock 2456 at 0x000002660000 > [ 3.050000] Bad eraseblock 2457 at 0x000002664000 > [ 3.050000] Bad eraseblock 2459 at 0x00000266c000 > [ 3.060000] Bad eraseblock 2462 at 0x000002678000 > [ 3.060000] Bad eraseblock 2465 at 0x000002684000 > [ 3.070000] Bad eraseblock 2468 at 0x000002690000 > [ 3.070000] Bad eraseblock 2470 at 0x000002698000 > [ 3.080000] Bad eraseblock 2473 at 0x0000026a4000 > [ 3.080000] Bad eraseblock 2475 at 0x0000026ac000 > [ 3.090000] Bad eraseblock 2476 at 0x0000026b0000 > [ 3.250000] Bad eraseblock 3371 at 0x0000034ac000 > [ 3.380000] Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit": > [ 3.380000] 0x000000000000-0x000000040000 : "booter" > [ 3.390000] 0x000000040000-0x000000400000 : "kernel" > [ 3.390000] 0x000000400000-0x000004000000 : "rootfs" > [ 3.400000] mtd: partition "rootfs" set to be root filesystem > [ 3.410000] split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bi= t" > [ 3.420000] IP17xx: Found IP175D at ag71xx-mdio.0:00 > [ 3.420000] ag71xx_mdio: probed > [ 3.430000] eth0: Atheros AG71xx at 0xba000000, irq 5 > [ 3.730000] ag71xx ag71xx.1: eth0: connected to PHY at > ag71xx-mdio.0:04 [uid=3D02430d80, driver=3DGeneric PHY] > [ 3.740000] eth1: Atheros AG71xx at 0xb9000000, irq 4 > [ 4.060000] ag71xx ag71xx.0: eth1: connected to PHY at > ag71xx-mdio.0:00 [uid=3D02430d80, driver=3DIC+ IP17xx] > [ 4.070000] TCP cubic registered > [ 4.070000] NET: Registered protocol family 17 > [ 4.070000] 8021q: 802.1Q VLAN Support v1.8 > [ 4.080000] Freeing unused kernel memory: 1468k freed > - preinit - > Press the [f] key and hit [enter] to enter failsafe mode > [ 5.730000] eth0: link up (100Mbps/Full duplex) > - regular preinit - > [ 7.700000] eth0: link down > - init - > [ 7.870000] Compat-drivers backport release: > compat-drivers-2012-09-04-2-gddac993 > [ 7.880000] Backport based on wireless-testing.git master-2012-09-07 > [ 7.890000] compat.git: wireless-testing.git > [ 7.910000] cfg80211: Calling CRDA to update world regulatory domain > [ 7.910000] cfg80211: World regulatory domain updated: > [ 7.920000] cfg80211: (start_freq - end_freq @ bandwidth), > (max_antenna_gain, max_eirp) > [ 7.930000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 7.930000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), > (300 mBi, 2000 mBm) > [ 7.940000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), > (300 mBi, 2000 mBm) > [ 7.950000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 7.960000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 8.030000] PCI: Enabling device 0000:00:12.0 (0000 -> 0002) > [ 8.040000] ath5k 0000:00:12.0: registered as 'phy0' > [ 8.690000] ath5k: phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x= 61) > [ 8.690000] cfg80211: Calling CRDA for country: US > [ 8.700000] cfg80211: Regulatory domain changed to country: US > [ 8.700000] cfg80211: (start_freq - end_freq @ bandwidth), > (max_antenna_gain, max_eirp) > [ 8.710000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), > (300 mBi, 2700 mBm) > [ 8.720000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), > (300 mBi, 1700 mBm) > [ 8.730000] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 8.740000] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 8.740000] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), > (300 mBi, 2000 mBm) > [ 8.750000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), > (300 mBi, 3000 mBm) > [ 8.790000] PPP generic driver version 2.4.2 > [ 8.820000] ip_tables: (C) 2000-2006 Netfilter Core Team > [ 8.900000] NET: Registered protocol family 24 > [ 8.910000] nf_conntrack version 0.5.0 (1981 buckets, 7924 max) > > Please press Enter to activate this console. [ 10.870000] device > eth1 entered promiscuous mode > [ 12.060000] eth1: link up (100Mbps/Full duplex) > [ 12.060000] br-lan: port 1(eth1) entered forwarding state > [ 12.070000] br-lan: port 1(eth1) entered forwarding state > [ 12.760000] eth0: link up (100Mbps/Full duplex) > [ 14.070000] br-lan: port 1(eth1) entered forwarding state > > > On Fri, Jan 4, 2013 at 5:59 AM, Adrian Chadd wrote: >> ... wow. How the hell is that happening?! >> >> >> >> >> Adrian >> >> >> On 3 January 2013 20:54, Monthadar Al Jaberi wrote= : >>> Maybe this is the root of the problem. >>> >>> On RSPRO the PCI start slot enumerating from 17. While RB433AH start >>> from 18. That can explain why Slot 20 of RB433AH won't even attach >>> (AR7161 only has 3 slots, slot 17 to 19). That can also explain why I >>> get device_timeout on slot 18 and 19 cause they are miss aligned. And >>> don't see any interrupts from ath(4) when enabling interrupt >>> debugging. >>> >>> I will keep digging into why they won't start enumerating correct. >>> >>> br, >>> >>> On Fri, Jan 4, 2013 at 2:28 AM, Monthadar Al Jaberi wrote: >>>> Hi, >>>> >>>> I am wondering if anyone can confirm that any ath5k (preferably >>>> AR5413) series miniPCI wifi works on RB433/AH/UAH. >>>> >>>> Thank you in advance >>>> >>>> On Wed, Jan 2, 2013 at 10:29 PM, Monthadar Al Jaberi >>>> wrote: >>>>> On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd wro= te: >>>>>> ... sounds like a definite interrupt routing issue. >>>>>> >>>>>> Who's been knee deep in the interrupt handling code in MIPS lately? = Grrr. >>>>>> I know there's been some FDT work in MIPS and that's touched some >>>>>> interrupt code.. maybe that's interfering? >>>>> >>>>> I am not sure, I just re-compiled my kernel for RSPRO and it seems to= work. >>>>> >>>>> I install openwrt on rb433ah and ath0 associated ok. and I could ping >>>>> between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working >>>>> RB433AH running same kernel r243866. >>>>> >>>>> Attached is my kernel config & hints. ( I am "playing around" with th= e >>>>> ar71xx_spi but that should not effect the pci code, I hope). >>>>> >>>>> # >>>>> # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 71= xx systems >>>>> # >>>>> # This includes all the common drivers for the AR71XX boards along wi= th >>>>> # the usb, net80211 and atheros driver code. >>>>> # >>>>> # $FreeBSD$ >>>>> # >>>>> >>>>> machine mips mips >>>>> ident RB433AH_MFS >>>>> cpu CPU_MIPS4KC >>>>> makeoptions KERNLOADADDR=3D0x80050000 >>>>> options HZ=3D1000 >>>>> options HWPMC_HOOKS >>>>> >>>>> files "../atheros/files.ar71xx" >>>>> >>>>> # For now, hints are per-board. >>>>> >>>>> hints "RB433AH.hints" >>>>> >>>>> makeoptions DEBUG=3D-g #Build kernel with gdb(1) d= ebug symbols >>>>> >>>>> # Build these as modules so small platform builds will have the >>>>> # modules already built. >>>>> makeoptions MODULES_OVERRIDE=3D"random gpio ar71xx if_gif if_gre >>>>> if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip >>>>> wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci" >>>>> >>>>> options DDB >>>>> options KDB >>>>> >>>>> options SCHED_4BSD #4BSD scheduler >>>>> options INET #InterNETworking >>>>> #options INET6 # IPv6 >>>>> >>>>> # options NFS_CL #Network Filesystem Client >>>>> >>>>> options PSEUDOFS #Pseudo-filesystem framework >>>>> options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time= extensions >>>>> >>>>> # options NFS_LEGACYRPC >>>>> # Debugging for use in -current >>>>> options INVARIANTS >>>>> options INVARIANT_SUPPORT >>>>> options WITNESS >>>>> options WITNESS_SKIPSPIN >>>>> options DEBUG_REDZONE >>>>> options DEBUG_MEMGUARD >>>>> >>>>> options FFS #Berkeley Fast Filesystem >>>>> # options SOFTUPDATES #Enable FFS soft updates su= pport >>>>> # options UFS_ACL #Support for access control= lists >>>>> # options UFS_DIRHASH #Improve performance on big >>>>> directories >>>>> # options MSDOSFS # Read MSDOS filesyst= ems; useful for USB/CF >>>>> >>>>> device pci >>>>> device ar71xx_pci >>>>> >>>>> # RTC - requires hackery in the spibus code to work >>>>> device pcf2123_rtc >>>>> >>>>> # GEOM modules >>>>> device geom_redboot # to get access to the SPI flash part= itions >>>>> device geom_uzip # compressed in-memory filesystem hac= kery! >>>>> device geom_map >>>>> options GEOM_UZIP >>>>> >>>>> # NANDFS >>>>> options NANDFS >>>>> >>>>> ## Boot from the first MFS uzip >>>>> #options ROOTDEVNAME=3D\"ufs:md0.uzip\" >>>>> #options MD_ROOT >>>>> #options MD_ROOT_SIZE=3D"9000" >>>>> >>>>> # Boot from NFS >>>>> options NFSLOCKD #Network Lock Manager >>>>> options NFSCLIENT #Network Filesystem Client >>>>> options NFS_ROOT >>>>> >>>>> options BOOTP >>>>> options BOOTP_NFSROOT >>>>> options BOOTP_NFSV3 >>>>> options BOOTP_WIRED_TO=3Darge1 >>>>> options BOOTP_COMPAT >>>>> options ROOTDEVNAME=3D\"nfs:172.16.0.101:/usr/obj/rb433ah/nfs= \" >>>>> >>>>> >>>>> # 802.11 framework >>>>> options IEEE80211_DEBUG >>>>> options IEEE80211_ALQ >>>>> options IEEE80211_SUPPORT_MESH >>>>> # This option is currently broken for if_ath_tx. >>>>> options IEEE80211_SUPPORT_TDMA >>>>> options IEEE80211_AMPDU_AGE >>>>> device wlan # 802.11 support >>>>> device wlan_wep # 802.11 WEP support >>>>> device wlan_ccmp # 802.11 CCMP support >>>>> device wlan_tkip # 802.11 TKIP support >>>>> device wlan_xauth # 802.11 hostap support >>>>> device wlan_acl # 802.11 ACL support >>>>> >>>>> # Atheros wireless NICs >>>>> device ath # Atheros interface support >>>>> device ath_pci # Atheros PCI/Cardbus bus >>>>> options ATH_DEBUG >>>>> options ATH_DIAGAPI >>>>> options ATH_ENABLE_11N >>>>> options AH_DEBUG >>>>> options AH_DEBUG_ALQ >>>>> options ALQ >>>>> device ath_hal >>>>> option AH_SUPPORT_AR5416 >>>>> device ath_rate_sample >>>>> option AH_RXCFG_SDMAMW_4BYTES >>>>> option AH_AR5416_INTERRUPT_MITIGATION >>>>> # There's no DFS radar detection support yet so this won't actually >>>>> # detect radars. It however does enable the rest of the channel chan= ge >>>>> # machinery so DFS can be debugged. >>>>> option ATH_ENABLE_DFS >>>>> >>>>> device mii >>>>> device arge >>>>> #options ARGE_DEBUG # Enable if_arge debugging fo= r now >>>>> >>>>> #device usb >>>>> #options USB_EHCI_BIG_ENDIAN_DESC # handle big-= endian byte order >>>>> #options USB_DEBUG >>>>> #options USB_HOST_ALIGN=3D32 # AR71XX (M= IPS in general?) requires this >>>>> #device ehci >>>>> >>>>> device scbus >>>>> #device umass >>>>> device da >>>>> >>>>> device rb4xx >>>>> >>>>> # On-board SPI flash >>>>> device spibus >>>>> device ar71xx_spi >>>>> device mmc >>>>> device mmcsd >>>>> device mmcspi >>>>> device mx25l >>>>> device nand >>>>> device ar71xx_wdog >>>>> >>>>> device uart >>>>> device uart_ar71xx >>>>> >>>>> device loop >>>>> device ether >>>>> device md >>>>> device bpf >>>>> device random >>>>> device if_bridge >>>>> device gif # ip[46] in ip[46] tunneling protocol >>>>> device gre # generic encapsulation - only for IP= v4 in IPv4 though atm >>>>> >>>>> # Enable GPIO >>>>> device gpio >>>>> device gpioled >>>>> >>>>> options AR71XX_ROUTERBOOT >>>>> >>>>> >>>>> # $FreeBSD$ >>>>> hint.apb.0.at=3D"nexus0" >>>>> hint.apb.0.irq=3D4 >>>>> >>>>> # uart0 >>>>> hint.uart.0.at=3D"apb0" >>>>> # see atheros/uart_cpu_ar71xx.c why +3 >>>>> hint.uart.0.maddr=3D0x18020003 >>>>> hint.uart.0.msize=3D0x18 >>>>> hint.uart.0.irq=3D3 >>>>> >>>>> #ohci >>>>> #hint.ohci.0.at=3D"apb0" >>>>> #hint.ohci.0.maddr=3D0x1c000000 >>>>> #hint.ohci.0.msize=3D0x01000000 >>>>> #hint.ohci.0.irq=3D6 >>>>> >>>>> #ehci >>>>> #hint.ehci.0.at=3D"nexus0" >>>>> #hint.ehci.0.maddr=3D0x1b000000 >>>>> #hint.ehci.0.msize=3D0x01000000 >>>>> #hint.ehci.0.irq=3D1 >>>>> >>>>> # pci >>>>> hint.pcib.0.at=3D"nexus0" >>>>> hint.pcib.0.irq=3D0 >>>>> >>>>> hint.arge.0.at=3D"nexus0" >>>>> hint.arge.0.maddr=3D0x19000000 >>>>> hint.arge.0.msize=3D0x1000 >>>>> hint.arge.0.irq=3D2 >>>>> # PHY4 =3D 1 << 4 >>>>> hint.arge.0.phymask=3D0x10 >>>>> # Uncomment this hint for RS (not PRO) >>>>> # PHY20 =3D 1 << 20 >>>>> # hint.arge.0.phymask=3D0x100000 >>>>> hint.ukphy.0.at=3D"miibus0" >>>>> >>>>> hint.arge.1.at=3D"nexus0" >>>>> hint.arge.1.maddr=3D0x1a000000 >>>>> hint.arge.1.msize=3D0x1000 >>>>> hint.arge.1.irq=3D3 >>>>> # PHY1, PHY2, PHY3 >>>>> hint.arge.1.phymask=3D0x00 >>>>> # should be 100 for RS >>>>> #hint.arge.1.media=3D100 >>>>> #hint.arge.1.fduplex=3D1 >>>>> # Uncomment this hint for RS (not PRO) >>>>> # hint.arge.1.phymask=3D70000 >>>>> >>>>> # SPI flash >>>>> hint.spi.0.at=3D"nexus0" >>>>> hint.spi.0.maddr=3D0x1f000000 >>>>> hint.spi.0.msize=3D0x10 >>>>> >>>>> hint.mx25l.0.at=3D"spibus0" >>>>> hint.mx25l.0.cs=3D1 >>>>> >>>>> hint.rb_cpldbus.0.at=3D"spibus0" >>>>> hint.rb_cpldbus.0.cs=3D1 >>>>> # >>>>> hint.onand.0.at=3D"nandbus0" >>>>> hint.lnand.0.at=3D"nandbus0" >>>>> hint.snand.0.at=3D"nandbus0" >>>>> >>>>> hint.flash.0.at=3D"nand0" >>>>> hint.flash.0.size=3D"0x40000" >>>>> hint.flash.0.offset=3D"0" >>>>> hint.flash.0.name=3D"bootloader" >>>>> hint.flash.1.at=3D"nand0" >>>>> hint.flash.1.size=3D"0x3c0000" >>>>> hint.flash.1.offset=3D"0x40000" >>>>> hint.flash.1.name=3D"kernelfs" >>>>> hint.flash.2.at=3D"nand0" >>>>> hint.flash.2.size=3D"0" >>>>> hint.flash.2.offset=3D"0x400000" >>>>> hint.flash.2.name=3D"rootfs" >>>>> >>>>> hint.ar71xx_gpio.0.at=3D"nexus0" >>>>> >>>>> #hint.rb_nandbusy.0.at=3D"gpiobus0" >>>>> >>>>> hint.mmcspi.0.at=3D"spibus0" >>>>> hint.mmcspi.0.cs=3D2 >>>>> >>>>> # Watchdog >>>>> hint.ar71xx_wdog.0.at=3D"nexus0" >>>>> >>>>> >>>>> br, >>>>> >>>>>> >>>>>> >>>>>> Adrian >>>>>> >>>>>> >>>>>> On 2 January 2013 12:40, Monthadar Al Jaberi w= rote: >>>>>>> I tested some more. First I changed the miniPCI slot. Now boot look= s like this: >>>>>>> >>>>>>> pcib0 at irq 0 on nexus0 >>>>>>> pci0: on pcib0 >>>>>>> ath0: irq 2 at device 19.0 on pci0 >>>>>>> ath0: AR5413 mac 10.5 RF5413 phy 6.1 >>>>>>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 >>>>>>> >>>>>>> >>>>>>> Then I created a hostap. But none of my other devices sees it (lapt= op, iphone). >>>>>>> >>>>>>> A scan results in: >>>>>>> >>>>>>> # ifconfig wlan0 scan >>>>>>> wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell 0 >>>>>>> maxdwell 0 nssid 0 >>>>>>> wlan0: start_scan_locked: active scan, duration 2147483647 mindwell= 0 >>>>>>> maxdwell 0, desired mode 11g, append, nopick, once >>>>>>> wlan0: scan set 11g dwell min 200ms max 200ms >>>>>>> wlan0: scan_task: chan 11g -> 11g [active, dwell min 200ms max 20= 0ms] >>>>>>> wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822) >>>>>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 4 >>>>>>> wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "" >>>>>>> wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 21501= 41333] >>>>>>> wlan0: notify scan done >>>>>>> root@rb433ah:~ # ath0: device timeout >>>>>>> >>>>>>> And when I try to ping a random IP address I get the following. >>>>>>> Interesting is that it seems to "bail out" when it tries to send >>>>>>> probe_resp (last in output): >>>>>>> $ ping -c 1 172.168.3.2 >>>>>>> PING 172.168.3.2 (172.168.3.2): 56 data bytes >>>>>>> ath0: device timeout >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8 >>>>>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2 >>>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: >>>>>>> 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a >>>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5 >>>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "defaul= t" >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4 >>>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "defaul= t" >>>>>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9 >>>>>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 51, len 8 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, i= d 11, len 5 >>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 10 >>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 47, len 1 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 74, len 14 >>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, i= d 127, len 1 >>>>>>> wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0 >>>>>>> wlan0: [00:aa:70:77:bd:77] recv probe req >>>>>>> wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489) >>>>>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 5 >>>>>>> wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77 >>>>>>> ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing >>>>>>> .... >>>>>>> >>>>>>> >>>>>>> On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> ath(4) failed to attach on my Routerboard RB433AH running FreeBSD >>>>>>>> current. This is what I got during boo-up. >>>>>>>> >>>>>>>> pcib0 at irq 0 on nexus0 >>>>>>>> pci0: on pcib0 >>>>>>>> ath0: irq 3 at device 20.0 on pci0 >>>>>>>> ath0: could not map interrupt >>>>>>>> device_attach: ath0 attach returned 6 >>>>>>>> >>>>>>>> Any idea why? Anyone else is running ath(4) on this board? My wifi >>>>>>>> card is a Ubiquity X2 with AR5413 chip. >>>>>>>> >>>>>>>> br, >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Monthadar Al Jaberi >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Monthadar Al Jaberi >>>>>>> _______________________________________________ >>>>>>> freebsd-wireless@freebsd.org mailing list >>>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>>>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@free= bsd.org" >>>>> >>>>> >>>>> >>>>> -- >>>>> Monthadar Al Jaberi >>>> >>>> >>>> >>>> -- >>>> Monthadar Al Jaberi >>> >>> >>> >>> -- >>> Monthadar Al Jaberi > > > > -- > Monthadar Al Jaberi From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 4 19:24:38 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E8B1886A; Fri, 4 Jan 2013 19:24:38 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by mx1.freebsd.org (Postfix) with ESMTP id EE66A305; Fri, 4 Jan 2013 19:24:37 +0000 (UTC) Received: by mail-bk0-f52.google.com with SMTP id w5so7250392bku.25 for ; Fri, 04 Jan 2013 11:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=s69qzmXNmPlQS1wij/HwjhLfVyxg3om5tloNN85Kq0Q=; b=XODivh5O535DqPFBJ6XU/QURwAFhdb8eRmBhDcRnxcJ24Hxo+OR2kGdeLqwr/oOAWq 6CUdcY4YYAKsQ1AQn0us9cJDt5FV5vg1mjMwwdBDovRiOnpspxPjgcM5AA9ApXPb97dy ufQQamqc4QanKPq8FdmZwIGgoJmOUtKZpf+kBk2YYobIudfP4ZXurushVnxNoMULhTgE nhfyPZ1SN7RigqLSo8q5T5LIQnhNzx3zvTpSV0pP5dDsZSbC9EPGp9AOHy66CoE9rn5N dN2XOs27g4UO6xWOdAHxP/bfurCW9o0mXS9c+e9qyEb9I5gRReadxSpIgkdsoZOyq1wo qFjg== MIME-Version: 1.0 Received: by 10.205.138.5 with SMTP id iq5mr25876553bkc.72.1357327470863; Fri, 04 Jan 2013 11:24:30 -0800 (PST) Received: by 10.204.156.137 with HTTP; Fri, 4 Jan 2013 11:24:30 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Jan 2013 20:24:30 +0100 Message-ID: Subject: Re: ath0: could not map interrupt From: Monthadar Al Jaberi To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 04 Jan 2013 19:24:39 -0000 On Fri, Jan 4, 2013 at 8:13 PM, Adrian Chadd wrote: > Ok. The magic you need to try hacking is in ar71xx_pci.c. There's the > 7 PCI windows and the 3 interrupt lines that are configured. > > The IRQ only gets unmasked when a slot claims it as a resource. So > you'll have to fiddle with that mapping a little. > > Look at ar71xx_pci_route_interrupt(). Maybe set it up so > AR71XX_PCI_BASE_SLOT is 18 instead of 17? Works!!! :D The slot is not the issue I think. The code seems to iterate through a couple, and when one fails it just checks the other. What it seems is wrong is that the interrupts are mapped wrong. Linux assigned IRQ 0 to slot 18, while FreeBSD assignes IRQ 1. We need a mapping just like openwrt. Code re-write? :D We need this: Slot 18 IRQ 0, Slot 19 IRQ 1, Slot 20 IRQ 2 I don't know really what "slots" are physcially. Does the PCI bridge have many slots (ports)? > > > > Adrian > > > On 4 January 2013 06:48, Monthadar Al Jaberi wrote: >> Attached is two boot logs with debug on for resource manager of RB433AH >> and RSPRO respectively. Also attached boot log from openWRT as a >> reference (on RB433AH). >> >> I installed an ath(4) in first slot in each board according to the marki= ng on >> each PCB. You will notice that RB433AH starts from slot 18. >> >> I looked at openWRT and it seems they setup a special IRQ map for the RB= 4XX. >> For RSPRO they don't seem to do anything special, and use the generic ma= ppings >> of three IRQ and slots 17 to 19. >> While RB433AH lists the slots for the IRQ from slot 17 to 23. >> >> RB433AH: >> CPU platform: Atheros AR7161 rev 2 >> CPU Frequency=3D680 MHz >> CPU DDR Frequency=3D340 MHz >> CPU AHB Frequency=3D170 MHz >> platform frequency: 680000000 >> arguments: >> a0 =3D 00000008 >> a1 =3D a0871c00 >> a2 =3D 00000000 >> a3 =3D 00000000 >> Cmd line: console=3DttyS0,115200 gpio=3D4031 HZ=3D340000000 mem=3D128M >> kmac=3DD4:CA:6D:57:DC:D3 board=3D433 boot=3D1 mlc=3D2 >> Environment: >> envp is invalid >> Cache info: >> picache_stride =3D 4096 >> picache_loopcount =3D 16 >> pdcache_stride =3D 4096 >> pdcache_loopcount =3D 8 >> cpu0: MIPS Technologies processor v116.147 >> MMU: Standard TLB, 16 entries >> L1 i-cache: 4 ways of 512 sets, 32 bytes per line >> L1 d-cache: 4 ways of 256 sets, 32 bytes per line >> Config1=3D0x9ee3519e >> Config3=3D0x20 >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2013 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 >> The Regents of the University of California. All rights reserved= . >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 10.0-CURRENT #172: Fri Jan 4 16:40:48 CET 2013 >> root@mechy:/usr/obj/mips.mips/usr/src/sys/RB433AH_MFS mips >> WARNING: WITNESS option enabled, expect reduced performance. >> MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: >> MEMGUARD map base: 0xc0400000 >> MEMGUARD map limit: 0xc6a67000 >> MEMGUARD map size: 104860 KBytes >> real memory =3D 134217728 (131072K bytes) >> avail memory =3D 123133952 (117MB) >> random device not loaded; using insecure entropy >> wlan: mac acl policy registered >> rman_manage_region: request: start 0, end 0x5 >> rman_manage_region: request: start 0, end 0xffffffff >> nexus0: >> clock0: on nexus0 >> rman_reserve_resource_bound: request: [0x5, 0x5], >> length 0x1, flags 2, device clock0 >> considering [0, 0x5] >> truncated region: [0x5, 0x5]; size 0x1 (requested 0x1) >> candidate region: [0x5, 0x5], size 0x1 >> allocating at the end >> Timecounter "MIPS32" frequency 340000000 Hz quality 800 >> Event timer "MIPS32" frequency 340000000 Hz quality 800 >> apb0 at irq 4 on nexus0 >> rman_manage_region: request: start 0x18000000, end >> 0x1dffffff >> rman_manage_region: request: start 0, end 0x7 >> rman_reserve_resource_bound: request: [0x4, 0x4], >> length 0x1, flags 6, device apb0 >> considering [0, 0x4] >> truncated region: [0x4, 0x4]; size 0x1 (requested 0x1) >> candidate region: [0x4, 0x4], size 0x1 >> allocating at the end >> rman_reserve_resource_bound: request: [0x18020003, >> 0x1802001a], length 0x18, flags 2, device uart0 >> considering [0x18000000, 0x1dffffff] >> truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) >> candidate region: [0x18020003, 0x1802001a], size 0x18 >> splitting region in three parts: [0x18000000, 0x18020002]; >> [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] >> rman_reserve_resource_bound: request: [0x18020003, >> 0x1802001a], length 0x18, flags 2, device uart0 >> considering [0x18000000, 0x1dffffff] >> truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) >> candidate region: [0x18020003, 0x1802001a], size 0x18 >> splitting region in three parts: [0x18000000, 0x18020002]; >> [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] >> uart0: <16550 or compatible> on apb0 >> rman_reserve_resource_bound: request: [0x18020003, >> 0x1802001a], length 0x18, flags 2, device uart0 >> considering [0x18000000, 0x1dffffff] >> truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) >> candidate region: [0x18020003, 0x1802001a], size 0x18 >> splitting region in three parts: [0x18000000, 0x18020002]; >> [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] >> rman_reserve_resource_bound: request: [0x3, 0x3], length >> 0x1, flags 6, device uart0 >> considering [0, 0x7] >> truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) >> candidate region: [0x3, 0x3], size 0x1 >> splitting region in three parts: [0, 0x2]; [0x3, 0x3]; [0x4, 0x7] >> uart0: console (115200,n,8,1) >> ehci0: at mem >> 0x1b000000-0x1bffffff irq 1 on nexus0 >> rman_reserve_resource_bound: request: [0x1b000000, >> 0x1bffffff], length 0x1000000, flags 2, device ehci0 >> considering [0, 0xffffffff] >> truncated region: [0x1b000000, 0x1bffffff]; size 0x1000000 (requested 0x= 1000000) >> candidate region: [0x1b000000, 0x1bffffff], size 0x1000000 >> splitting region in three parts: [0, 0x1affffff]; [0x1b000000, >> 0x1bffffff]; [0x1c000000, 0xffffffff] >> rman_reserve_resource_bound: request: [0x1, 0x1], >> length 0x1, flags 2, device ehci0 >> considering [0, 0x3] >> truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) >> candidate region: [0x1, 0x1], size 0x1 >> splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x3] >> usbus0: set host controller mode >> usbus0: EHCI version 1.0 >> usbus0: set host controller mode >> usbus0 on ehci0 >> pcib0 at irq 0 on nexus0 >> rman_manage_region: request: start >> 0x10000000, end 0x16ffffff >> rman_manage_region: request: start 0, end 0x2 >> rman_reserve_resource_bound: request: [0, 0], length >> 0x1, flags 6, device pcib0 >> considering [0, 0] >> truncated region: [0, 0]; size 0x1 (requested 0x1) >> candidate region: [0, 0], size 0x1 >> candidate region is entire chunk >> pci0: on pcib0 >> ath0: irq 1 at device 18.0 on pci0 >> rman_reserve_resource_bound: request: [0, >> 0xffffffff], length 0x10000, flags 16384, device ath0 >> considering [0x10000000, 0x16ffffff] >> truncated region: [0x10000000, 0x16ffffff]; size 0x7000000 (requested 0x= 10000) >> candidate region: [0x10000000, 0x16ffffff], size 0x7000000 >> allocating from the beginning >> rman_reserve_resource_bound: request: [0x1, 0x1], >> length 0x1, flags 6, device ath0 >> considering [0, 0x2] >> truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) >> candidate region: [0x1, 0x1], size 0x1 >> splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x2] >> ath0: AR5413 mac 10.5 RF5413 phy 6.1 >> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 >> arge0: at mem >> 0x19000000-0x19000fff irq 2 on nexus0 >> rman_reserve_resource_bound: request: [0x19000000, >> 0x19000fff], length 0x1000, flags 6, device arge0 >> considering [0, 0x1affffff] >> truncated region: [0x19000000, 0x19000fff]; size 0x1000 (requested 0x100= 0) >> candidate region: [0x19000000, 0x19000fff], size 0x1000 >> splitting region in three parts: [0, 0x18ffffff]; [0x19000000, >> 0x19000fff]; [0x19001000, 0x1affffff] >> rman_reserve_resource_bound: request: [0x2, 0x2], >> length 0x1, flags 6, device arge0 >> considering [0x2, 0x3] >> truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) >> candidate region: [0x2, 0x2], size 0x1 >> allocating from the beginning >> arge0: finishing attachment, phymask 0010, proxy null >> miibus0: on arge0 >> ukphy1: PHY 4 on miibus0 >> ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> arge0: Ethernet address: d4:ca:6d:57:dc:d4 >> arge1: at mem >> 0x1a000000-0x1a000fff irq 3 on nexus0 >> rman_reserve_resource_bound: request: [0x1a000000, >> 0x1a000fff], length 0x1000, flags 6, device arge1 >> considering [0x19001000, 0x1affffff] >> truncated region: [0x1a000000, 0x1a000fff]; size 0x1000 (requested 0x100= 0) >> candidate region: [0x1a000000, 0x1a000fff], size 0x1000 >> splitting region in three parts: [0x19001000, 0x19ffffff]; >> [0x1a000000, 0x1a000fff]; [0x1a001000, 0x1affffff] >> rman_reserve_resource_bound: request: [0x3, 0x3], >> length 0x1, flags 6, device arge1 >> considering [0x3, 0x3] >> truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) >> candidate region: [0x3, 0x3], size 0x1 >> candidate region is entire chunk >> arge1: finishing attachment, phymask 0000, proxy null >> arge1: Ethernet address: d4:ca:6d:57:dc:d3 >> spi0: at mem 0x1f000000-0x1f00000f on nexus0 >> rman_reserve_resource_bound: request: [0x1f000000, >> 0x1f00000f], length 0x10, flags 2, device spi0 >> considering [0x1c000000, 0xffffffff] >> truncated region: [0x1f000000, 0x1f00000f]; size 0x10 (requested 0x10) >> candidate region: [0x1f000000, 0x1f00000f], size 0x10 >> splitting region in three parts: [0x1c000000, 0x1effffff]; >> [0x1f000000, 0x1f00000f]; [0x1f000010, 0xffffffff] >> spibus0: on spi0 >> mx25l0: at cs 0 on spibus0 >> Unknown SPI flash device. Vendor: ef, device id: 3011 >> device_attach: mx25l0 attach returned 6 >> ar71xx_wdog0: on nexus0 >> Timecounters tick every 1.000 msec >> usbus0: 480Mbps High Speed USB v2.0 >> bootpc_init: wired to interface 'arge1' >> Sending DHCP Discover packet from interface arge1 (d4:ca:6d:57:dc:d3) >> >> >> >> RSPRO: >> CPU platform: Atheros AR7161 rev 2 >> CPU Frequency=3D720 MHz >> CPU DDR Frequency=3D360 MHz >> CPU AHB Frequency=3D180 MHz >> platform frequency: 720000000 >> arguments: >> a0 =3D 00000002 >> a1 =3D 80050028 >> a2 =3D 80050000 >> a3 =3D 0000000a >> Cmd line: =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD = =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD =EF=BF=BD=EF=BF= =BD=EF=BF=BD =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD >> Environment: >> memsize =3D 0x08000000 >> modetty0 =3D 0,n,8,1,hw >> ethaddr =3D 00.15.6d.c8.c9.2c >> board =3D RouterStation PRO >> Cache info: >> picache_stride =3D 4096 >> picache_loopcount =3D 16 >> pdcache_stride =3D 4096 >> pdcache_loopcount =3D 8 >> cpu0: MIPS Technologies processor v116.147 >> MMU: Standard TLB, 16 entries >> L1 i-cache: 4 ways of 512 sets, 32 bytes per line >> L1 d-cache: 4 ways of 256 sets, 32 bytes per line >> Config1=3D0x9ee3519e >> Config3=3D0x20 >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2013 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 >> The Regents of the University of California. All rights reserved= . >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 10.0-CURRENT #9: Fri Jan 4 16:52:15 CET 2013 >> root@mechy:/usr/obj/mips.mips/usr/src/sys/RSPRO_NFS mips >> WARNING: WITNESS option enabled, expect reduced performance. >> MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: >> MEMGUARD map base: 0xc0400000 >> MEMGUARD map limit: 0xc6a67000 >> MEMGUARD map size: 104860 KBytes >> real memory =3D 134217728 (131072K bytes) >> avail memory =3D 122871808 (117MB) >> random device not loaded; using insecure entropy >> rman_manage_region: request: start 0, end 0x5 >> rman_manage_region: request: start 0, end 0xffffffff >> nexus0: >> clock0: on nexus0 >> rman_reserve_resource_bound: request: [0x5, 0x5], >> length 0x1, flags 2, device clock0 >> considering [0, 0x5] >> truncated region: [0x5, 0x5]; size 0x1 (requested 0x1) >> candidate region: [0x5, 0x5], size 0x1 >> allocating at the end >> Timecounter "MIPS32" frequency 360000000 Hz quality 800 >> Event timer "MIPS32" frequency 360000000 Hz quality 800 >> apb0 at irq 4 on nexus0 >> rman_manage_region: request: start 0x18000000, end >> 0x1dffffff >> rman_manage_region: request: start 0, end 0x7 >> rman_reserve_resource_bound: request: [0x4, 0x4], >> length 0x1, flags 6, device apb0 >> considering [0, 0x4] >> truncated region: [0x4, 0x4]; size 0x1 (requested 0x1) >> candidate region: [0x4, 0x4], size 0x1 >> allocating at the end >> rman_reserve_resource_bound: request: [0x18020003, >> 0x1802001a], length 0x18, flags 2, device uart0 >> considering [0x18000000, 0x1dffffff] >> truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) >> candidate region: [0x18020003, 0x1802001a], size 0x18 >> splitting region in three parts: [0x18000000, 0x18020002]; >> [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] >> rman_reserve_resource_bound: request: [0x18020003, >> 0x1802001a], length 0x18, flags 2, device uart0 >> considering [0x18000000, 0x1dffffff] >> truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) >> candidate region: [0x18020003, 0x1802001a], size 0x18 >> splitting region in three parts: [0x18000000, 0x18020002]; >> [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] >> uart0: <16550 or compatible> on apb0 >> rman_reserve_resource_bound: request: [0x18020003, >> 0x1802001a], length 0x18, flags 2, device uart0 >> considering [0x18000000, 0x1dffffff] >> truncated region: [0x18020003, 0x1802001a]; size 0x18 (requested 0x18) >> candidate region: [0x18020003, 0x1802001a], size 0x18 >> splitting region in three parts: [0x18000000, 0x18020002]; >> [0x18020003, 0x1802001a]; [0x1802001b, 0x1dffffff] >> rman_reserve_resource_bound: request: [0x3, 0x3], length >> 0x1, flags 6, device uart0 >> considering [0, 0x7] >> truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) >> candidate region: [0x3, 0x3], size 0x1 >> splitting region in three parts: [0, 0x2]; [0x3, 0x3]; [0x4, 0x7] >> uart0: console (115200,n,8,1) >> gpio0: on apb0 >> rman_reserve_resource_bound: request: [0x18040000, >> 0x18040fff], length 0x1000, flags 2, device gpio0 >> considering [0x1802001b, 0x1dffffff] >> truncated region: [0x18040000, 0x18040fff]; size 0x1000 (requested 0x100= 0) >> candidate region: [0x18040000, 0x18040fff], size 0x1000 >> splitting region in three parts: [0x1802001b, 0x1803ffff]; >> [0x18040000, 0x18040fff]; [0x18041000, 0x1dffffff] >> rman_reserve_resource_bound: request: [0x2, 0x2], length >> 0x1, flags 6, device gpio0 >> considering [0, 0x2] >> truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) >> candidate region: [0x2, 0x2], size 0x1 >> allocating at the end >> gpio0: [GIANT-LOCKED] >> gpio0: function_set: 0x0 >> gpio0: function_clear: 0x0 >> gpio0: gpio pinmask=3D0xff >> gpioc0: on gpio0 >> gpiobus0: on gpio0 >> gpioled0: at pin(s) 2 on gpiobus0 >> ehci0: at mem >> 0x1b000000-0x1bffffff irq 1 on nexus0 >> rman_reserve_resource_bound: request: [0x1b000000, >> 0x1bffffff], length 0x1000000, flags 2, device ehci0 >> considering [0, 0xffffffff] >> truncated region: [0x1b000000, 0x1bffffff]; size 0x1000000 (requested 0x= 1000000) >> candidate region: [0x1b000000, 0x1bffffff], size 0x1000000 >> splitting region in three parts: [0, 0x1affffff]; [0x1b000000, >> 0x1bffffff]; [0x1c000000, 0xffffffff] >> rman_reserve_resource_bound: request: [0x1, 0x1], >> length 0x1, flags 2, device ehci0 >> considering [0, 0x3] >> truncated region: [0x1, 0x1]; size 0x1 (requested 0x1) >> candidate region: [0x1, 0x1], size 0x1 >> splitting region in three parts: [0, 0]; [0x1, 0x1]; [0x2, 0x3] >> usbus0: set host controller mode >> usbus0: EHCI version 1.0 >> usbus0: set host controller mode >> usbus0 on ehci0 >> pcib0 at irq 0 on nexus0 >> rman_manage_region: request: start >> 0x10000000, end 0x16ffffff >> rman_manage_region: request: start 0, end 0x2 >> rman_reserve_resource_bound: request: [0, 0], length >> 0x1, flags 6, device pcib0 >> considering [0, 0] >> truncated region: [0, 0]; size 0x1 (requested 0x1) >> candidate region: [0, 0], size 0x1 >> candidate region is entire chunk >> pci0: on pcib0 >> ath0: irq 0 at device 17.0 on pci0 >> rman_reserve_resource_bound: request: [0, >> 0xffffffff], length 0x10000, flags 16384, device ath0 >> considering [0x10000000, 0x16ffffff] >> truncated region: [0x10000000, 0x16ffffff]; size 0x7000000 (requested 0x= 10000) >> candidate region: [0x10000000, 0x16ffffff], size 0x7000000 >> allocating from the beginning >> rman_reserve_resource_bound: request: [0, 0], length >> 0x1, flags 6, device ath0 >> considering [0, 0x2] >> truncated region: [0, 0]; size 0x1 (requested 0x1) >> candidate region: [0, 0], size 0x1 >> allocating from the beginning >> ath0: AR5413 mac 10.5 RF5413 phy 6.1 >> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 >> arge0: at mem >> 0x19000000-0x19000fff irq 2 on nexus0 >> arge0: arge_attach: overriding MII mode to 'RGMII' >> rman_reserve_resource_bound: request: [0x19000000, >> 0x19000fff], length 0x1000, flags 6, device arge0 >> considering [0, 0x1affffff] >> truncated region: [0x19000000, 0x19000fff]; size 0x1000 (requested 0x100= 0) >> candidate region: [0x19000000, 0x19000fff], size 0x1000 >> splitting region in three parts: [0, 0x18ffffff]; [0x19000000, >> 0x19000fff]; [0x19001000, 0x1affffff] >> rman_reserve_resource_bound: request: [0x2, 0x2], >> length 0x1, flags 6, device arge0 >> considering [0x2, 0x3] >> truncated region: [0x2, 0x2]; size 0x1 (requested 0x1) >> candidate region: [0x2, 0x2], size 0x1 >> allocating from the beginning >> arge0: finishing attachment, phymask 0010, proxy null >> miibus0: on arge0 >> ukphy0: PHY 4 on miibus0 >> ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> 1000baseT-FDX, 1000baseT-FDX-master, auto >> arge0: Ethernet address: 00:15:6d:c8:c9:2c >> arge1: at mem >> 0x1a000000-0x1a000fff irq 3 on nexus0 >> arge1: arge_attach: overriding MII mode to 'RGMII' >> rman_reserve_resource_bound: request: [0x1a000000, >> 0x1a000fff], length 0x1000, flags 6, device arge1 >> considering [0x19001000, 0x1affffff] >> truncated region: [0x1a000000, 0x1a000fff]; size 0x1000 (requested 0x100= 0) >> candidate region: [0x1a000000, 0x1a000fff], size 0x1000 >> splitting region in three parts: [0x19001000, 0x19ffffff]; >> [0x1a000000, 0x1a000fff]; [0x1a001000, 0x1affffff] >> rman_reserve_resource_bound: request: [0x3, 0x3], >> length 0x1, flags 6, device arge1 >> considering [0x3, 0x3] >> truncated region: [0x3, 0x3]; size 0x1 (requested 0x1) >> candidate region: [0x3, 0x3], size 0x1 >> candidate region is entire chunk >> arge1: finishing attachment, phymask 0000, proxy null >> arge1: Ethernet address: 00:15:6d:c8:c9:2d >> spi0: at mem 0x1f000000-0x1f00000f on nexus0 >> rman_reserve_resource_bound: request: [0x1f000000, >> 0x1f00000f], length 0x10, flags 2, device spi0 >> considering [0x1c000000, 0xffffffff] >> truncated region: [0x1f000000, 0x1f00000f]; size 0x10 (requested 0x10) >> candidate region: [0x1f000000, 0x1f00000f], size 0x10 >> splitting region in three parts: [0x1c000000, 0x1effffff]; >> [0x1f000000, 0x1f00000f]; [0x1f000010, 0xffffffff] >> spibus0: on spi0 >> mx25l0: at cs 0 on spibus0 >> mx25l0: mx25ll128, sector 65536 bytes, 256 sectors >> ar71xx_wdog0: on nexus0 >> Timecounters tick every 1.000 msec >> usbus0: 480Mbps High Speed USB v2.0 >> ugen0.1: at usbus0 >> uhub0: on usbu= s0 >> g_dev_taste: make_dev_p() failed (gp->name=3Dredboot/RedBoot config, err= or=3D22) >> g_dev_taste: make_dev_p() failed (gp->name=3Dredboot/FIS directory, erro= r=3D22) >> bootpc_init: wired to interface 'arge0' >> Sending DHCP Discover packet from interface arge0 (00:15:6d:c8:c9:2c) >> >> OpenWRT: >> [ 0.000000] Linux version 3.3.8 (monthadar.aljaberi@bane) (gcc >> version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #5 Fri >> Dec 21 16:41:32 CET 2012 >> [ 0.000000] bootconsole [early0] enabled >> [ 0.000000] CPU revision is: 00019374 (MIPS 24Kc) >> [ 0.000000] SoC: Atheros AR7161 rev 2 >> [ 0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, >> Ref:40.000MHz >> [ 0.000000] Determined physical RAM map: >> [ 0.000000] memory: 08000000 @ 00000000 (usable) >> [ 0.000000] User-defined physical RAM map: >> [ 0.000000] memory: 08000000 @ 00000000 (usable) >> [ 0.000000] Initrd not found or empty - disabling initrd >> [ 0.000000] Zone PFN ranges: >> [ 0.000000] Normal 0x00000000 -> 0x00008000 >> [ 0.000000] Movable zone start PFN for each node >> [ 0.000000] Early memory PFN ranges >> [ 0.000000] 0: 0x00000000 -> 0x00008000 >> [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. >> Total pages: 32512 >> [ 0.000000] Kernel command line: console=3DttyS0,115200 gpio=3D4031 >> HZ=3D340000000 mem=3D128M kmac=3DD4:CA:6D:57:DC:D3 board=3D433 boot=3D1 = mlc=3D2 >> rootfstype=3Dyaffs noinitrd >> [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) >> [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 b= ytes) >> [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 byt= es) >> [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 = bytes. >> [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, >> linesize 32 bytes >> [ 0.000000] Writing ErrCtl register=3D00000080 >> [ 0.000000] Readback ErrCtl register=3D00000080 >> [ 0.000000] Memory: 125360k/131072k available (2063k kernel code, >> 5712k reserved, 417k data, 1468k init, 0k highmem) >> [ 0.000000] SLUB: Genslabs=3D9, HWalign=3D32, Order=3D0-3, MinObjects= =3D0, >> CPUs=3D1, Nodes=3D1 >> [ 0.000000] NR_IRQS:51 >> [ 0.000000] Calibrating delay loop... 452.19 BogoMIPS (lpj=3D2260992) >> [ 0.060000] pid_max: default: 32768 minimum: 301 >> [ 0.060000] Mount-cache hash table entries: 512 >> [ 0.070000] NET: Registered protocol family 16 >> [ 0.070000] gpiochip_add: registered GPIOs 0 to 15 on device: ath79 >> [ 0.080000] MIPS: machine is MikroTik RouterBOARD 433/AH >> [ 0.780000] registering PCI controller with io_map_base unset >> [ 0.790000] bio: create slab at 0 >> [ 0.800000] PCI host bridge to bus 0000:00 >> [ 0.800000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ff= ffff] >> [ 0.810000] pci_bus 0000:00: root bus resource [io 0x0000] >> [ 0.810000] pci 0000:00:12.0: BAR 0: assigned [mem 0x10000000-0x1000f= fff] >> [ 0.820000] pci 0000:00:12.0: using irq 40 for pin 1 >> [ 0.820000] Switching to clocksource MIPS >> [ 0.830000] NET: Registered protocol family 2 >> [ 0.830000] IP route cache hash table entries: 1024 (order: 0, 4096 b= ytes) >> [ 0.830000] TCP established hash table entries: 4096 (order: 3, 32768= bytes) >> [ 0.840000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) >> [ 0.840000] TCP: Hash tables configured (established 4096 bind 4096) >> [ 0.850000] TCP reno registered >> [ 0.850000] UDP hash table entries: 256 (order: 0, 4096 bytes) >> [ 0.860000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) >> [ 0.860000] NET: Registered protocol family 1 >> [ 2.330000] msgmni has been set to 244 >> [ 2.330000] io scheduler noop registered >> [ 2.340000] io scheduler deadline registered (default) >> [ 2.340000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled >> [ 2.370000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq =3D 11) is a = 16550A >> [ 2.370000] console [ttyS0] enabled, bootconsole disabled >> [ 2.370000] console [ttyS0] enabled, bootconsole disabled >> [ 2.390000] gpiochip_add: registered GPIOs 32 to 40 on device: spi-rb= 4xx-cpld >> [ 2.390000] m25p80 spi0.0: pm25lv512 (64 Kbytes) >> [ 2.400000] Creating 4 MTD partitions on "spi0.0": >> [ 2.400000] 0x000000000000-0x00000000b000 : "routerboot" >> [ 2.410000] 0x00000000b000-0x00000000c000 : "hard_config" >> [ 2.420000] 0x00000000d000-0x00000000f000 : "bios" >> [ 2.420000] 0x00000000f000-0x000000010000 : "soft_config" >> [ 2.430000] NAND flash driver for RouterBoard 4xx series version 0.2.= 0 >> [ 2.440000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 >> (Samsung NAND 64MiB 3,3V 8-bit) >> [ 2.450000] Scanning device for bad blocks >> [ 2.610000] Bad eraseblock 947 at 0x000000ecc000 >> [ 2.640000] Bad eraseblock 1093 at 0x000001114000 >> [ 2.690000] Bad eraseblock 1353 at 0x000001524000 >> [ 2.730000] Bad eraseblock 1565 at 0x000001874000 >> [ 2.740000] Bad eraseblock 1566 at 0x000001878000 >> [ 2.860000] Bad eraseblock 2261 at 0x000002354000 >> [ 2.860000] Bad eraseblock 2262 at 0x000002358000 >> [ 2.870000] Bad eraseblock 2277 at 0x000002394000 >> [ 2.880000] Bad eraseblock 2278 at 0x000002398000 >> [ 2.880000] Bad eraseblock 2279 at 0x00000239c000 >> [ 2.890000] Bad eraseblock 2280 at 0x0000023a0000 >> [ 2.890000] Bad eraseblock 2283 at 0x0000023ac000 >> [ 2.900000] Bad eraseblock 2284 at 0x0000023b0000 >> [ 2.900000] Bad eraseblock 2286 at 0x0000023b8000 >> [ 2.910000] Bad eraseblock 2288 at 0x0000023c0000 >> [ 2.910000] Bad eraseblock 2289 at 0x0000023c4000 >> [ 2.920000] Bad eraseblock 2291 at 0x0000023cc000 >> [ 2.920000] Bad eraseblock 2293 at 0x0000023d4000 >> [ 2.920000] Bad eraseblock 2294 at 0x0000023d8000 >> [ 2.930000] Bad eraseblock 2299 at 0x0000023ec000 >> [ 2.940000] Bad eraseblock 2300 at 0x0000023f0000 >> [ 2.940000] Bad eraseblock 2303 at 0x0000023fc000 >> [ 2.950000] Bad eraseblock 2306 at 0x000002408000 >> [ 2.950000] Bad eraseblock 2307 at 0x00000240c000 >> [ 2.950000] Bad eraseblock 2308 at 0x000002410000 >> [ 2.960000] Bad eraseblock 2309 at 0x000002414000 >> [ 2.970000] Bad eraseblock 2335 at 0x00000247c000 >> [ 2.970000] Bad eraseblock 2336 at 0x000002480000 >> [ 2.980000] Bad eraseblock 2355 at 0x0000024cc000 >> [ 3.000000] Bad eraseblock 2429 at 0x0000025f4000 >> [ 3.000000] Bad eraseblock 2433 at 0x000002604000 >> [ 3.010000] Bad eraseblock 2436 at 0x000002610000 >> [ 3.010000] Bad eraseblock 2439 at 0x00000261c000 >> [ 3.020000] Bad eraseblock 2442 at 0x000002628000 >> [ 3.020000] Bad eraseblock 2443 at 0x00000262c000 >> [ 3.030000] Bad eraseblock 2446 at 0x000002638000 >> [ 3.030000] Bad eraseblock 2449 at 0x000002644000 >> [ 3.040000] Bad eraseblock 2453 at 0x000002654000 >> [ 3.040000] Bad eraseblock 2456 at 0x000002660000 >> [ 3.050000] Bad eraseblock 2457 at 0x000002664000 >> [ 3.050000] Bad eraseblock 2459 at 0x00000266c000 >> [ 3.060000] Bad eraseblock 2462 at 0x000002678000 >> [ 3.060000] Bad eraseblock 2465 at 0x000002684000 >> [ 3.070000] Bad eraseblock 2468 at 0x000002690000 >> [ 3.070000] Bad eraseblock 2470 at 0x000002698000 >> [ 3.080000] Bad eraseblock 2473 at 0x0000026a4000 >> [ 3.080000] Bad eraseblock 2475 at 0x0000026ac000 >> [ 3.090000] Bad eraseblock 2476 at 0x0000026b0000 >> [ 3.250000] Bad eraseblock 3371 at 0x0000034ac000 >> [ 3.380000] Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit": >> [ 3.380000] 0x000000000000-0x000000040000 : "booter" >> [ 3.390000] 0x000000040000-0x000000400000 : "kernel" >> [ 3.390000] 0x000000400000-0x000004000000 : "rootfs" >> [ 3.400000] mtd: partition "rootfs" set to be root filesystem >> [ 3.410000] split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-b= it" >> [ 3.420000] IP17xx: Found IP175D at ag71xx-mdio.0:00 >> [ 3.420000] ag71xx_mdio: probed >> [ 3.430000] eth0: Atheros AG71xx at 0xba000000, irq 5 >> [ 3.730000] ag71xx ag71xx.1: eth0: connected to PHY at >> ag71xx-mdio.0:04 [uid=3D02430d80, driver=3DGeneric PHY] >> [ 3.740000] eth1: Atheros AG71xx at 0xb9000000, irq 4 >> [ 4.060000] ag71xx ag71xx.0: eth1: connected to PHY at >> ag71xx-mdio.0:00 [uid=3D02430d80, driver=3DIC+ IP17xx] >> [ 4.070000] TCP cubic registered >> [ 4.070000] NET: Registered protocol family 17 >> [ 4.070000] 8021q: 802.1Q VLAN Support v1.8 >> [ 4.080000] Freeing unused kernel memory: 1468k freed >> - preinit - >> Press the [f] key and hit [enter] to enter failsafe mode >> [ 5.730000] eth0: link up (100Mbps/Full duplex) >> - regular preinit - >> [ 7.700000] eth0: link down >> - init - >> [ 7.870000] Compat-drivers backport release: >> compat-drivers-2012-09-04-2-gddac993 >> [ 7.880000] Backport based on wireless-testing.git master-2012-09-07 >> [ 7.890000] compat.git: wireless-testing.git >> [ 7.910000] cfg80211: Calling CRDA to update world regulatory domain >> [ 7.910000] cfg80211: World regulatory domain updated: >> [ 7.920000] cfg80211: (start_freq - end_freq @ bandwidth), >> (max_antenna_gain, max_eirp) >> [ 7.930000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), >> (300 mBi, 2000 mBm) >> [ 7.930000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), >> (300 mBi, 2000 mBm) >> [ 7.940000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), >> (300 mBi, 2000 mBm) >> [ 7.950000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), >> (300 mBi, 2000 mBm) >> [ 7.960000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), >> (300 mBi, 2000 mBm) >> [ 8.030000] PCI: Enabling device 0000:00:12.0 (0000 -> 0002) >> [ 8.040000] ath5k 0000:00:12.0: registered as 'phy0' >> [ 8.690000] ath5k: phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0= x61) >> [ 8.690000] cfg80211: Calling CRDA for country: US >> [ 8.700000] cfg80211: Regulatory domain changed to country: US >> [ 8.700000] cfg80211: (start_freq - end_freq @ bandwidth), >> (max_antenna_gain, max_eirp) >> [ 8.710000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), >> (300 mBi, 2700 mBm) >> [ 8.720000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), >> (300 mBi, 1700 mBm) >> [ 8.730000] cfg80211: (5250000 KHz - 5330000 KHz @ 40000 KHz), >> (300 mBi, 2000 mBm) >> [ 8.740000] cfg80211: (5490000 KHz - 5600000 KHz @ 40000 KHz), >> (300 mBi, 2000 mBm) >> [ 8.740000] cfg80211: (5650000 KHz - 5710000 KHz @ 40000 KHz), >> (300 mBi, 2000 mBm) >> [ 8.750000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), >> (300 mBi, 3000 mBm) >> [ 8.790000] PPP generic driver version 2.4.2 >> [ 8.820000] ip_tables: (C) 2000-2006 Netfilter Core Team >> [ 8.900000] NET: Registered protocol family 24 >> [ 8.910000] nf_conntrack version 0.5.0 (1981 buckets, 7924 max) >> >> Please press Enter to activate this console. [ 10.870000] device >> eth1 entered promiscuous mode >> [ 12.060000] eth1: link up (100Mbps/Full duplex) >> [ 12.060000] br-lan: port 1(eth1) entered forwarding state >> [ 12.070000] br-lan: port 1(eth1) entered forwarding state >> [ 12.760000] eth0: link up (100Mbps/Full duplex) >> [ 14.070000] br-lan: port 1(eth1) entered forwarding state >> >> >> On Fri, Jan 4, 2013 at 5:59 AM, Adrian Chadd wrote: >>> ... wow. How the hell is that happening?! >>> >>> >>> >>> >>> Adrian >>> >>> >>> On 3 January 2013 20:54, Monthadar Al Jaberi wrot= e: >>>> Maybe this is the root of the problem. >>>> >>>> On RSPRO the PCI start slot enumerating from 17. While RB433AH start >>>> from 18. That can explain why Slot 20 of RB433AH won't even attach >>>> (AR7161 only has 3 slots, slot 17 to 19). That can also explain why I >>>> get device_timeout on slot 18 and 19 cause they are miss aligned. And >>>> don't see any interrupts from ath(4) when enabling interrupt >>>> debugging. >>>> >>>> I will keep digging into why they won't start enumerating correct. >>>> >>>> br, >>>> >>>> On Fri, Jan 4, 2013 at 2:28 AM, Monthadar Al Jaberi wrote: >>>>> Hi, >>>>> >>>>> I am wondering if anyone can confirm that any ath5k (preferably >>>>> AR5413) series miniPCI wifi works on RB433/AH/UAH. >>>>> >>>>> Thank you in advance >>>>> >>>>> On Wed, Jan 2, 2013 at 10:29 PM, Monthadar Al Jaberi >>>>> wrote: >>>>>> On Wed, Jan 2, 2013 at 9:43 PM, Adrian Chadd wr= ote: >>>>>>> ... sounds like a definite interrupt routing issue. >>>>>>> >>>>>>> Who's been knee deep in the interrupt handling code in MIPS lately?= Grrr. >>>>>>> I know there's been some FDT work in MIPS and that's touched some >>>>>>> interrupt code.. maybe that's interfering? >>>>>> >>>>>> I am not sure, I just re-compiled my kernel for RSPRO and it seems t= o work. >>>>>> >>>>>> I install openwrt on rb433ah and ath0 associated ok. and I could pin= g >>>>>> between RSPRO(FreeBSD) and RB433AH(Openwrt). RSPRO and non working >>>>>> RB433AH running same kernel r243866. >>>>>> >>>>>> Attached is my kernel config & hints. ( I am "playing around" with t= he >>>>>> ar71xx_spi but that should not effect the pci code, I hope). >>>>>> >>>>>> # >>>>>> # AR71XX -- Kernel configuration file for FreeBSD/MIPS for Atheros 7= 1xx systems >>>>>> # >>>>>> # This includes all the common drivers for the AR71XX boards along w= ith >>>>>> # the usb, net80211 and atheros driver code. >>>>>> # >>>>>> # $FreeBSD$ >>>>>> # >>>>>> >>>>>> machine mips mips >>>>>> ident RB433AH_MFS >>>>>> cpu CPU_MIPS4KC >>>>>> makeoptions KERNLOADADDR=3D0x80050000 >>>>>> options HZ=3D1000 >>>>>> options HWPMC_HOOKS >>>>>> >>>>>> files "../atheros/files.ar71xx" >>>>>> >>>>>> # For now, hints are per-board. >>>>>> >>>>>> hints "RB433AH.hints" >>>>>> >>>>>> makeoptions DEBUG=3D-g #Build kernel with gdb(1) = debug symbols >>>>>> >>>>>> # Build these as modules so small platform builds will have the >>>>>> # modules already built. >>>>>> makeoptions MODULES_OVERRIDE=3D"random gpio ar71xx if_gif if_gre >>>>>> if_bridge bridgestp usb wlan wlan_xauth wlan_acl wlan_wep wlan_tkip >>>>>> wlan_ccmp wlan_rssadapt wlan_amrr ath ath_pci" >>>>>> >>>>>> options DDB >>>>>> options KDB >>>>>> >>>>>> options SCHED_4BSD #4BSD scheduler >>>>>> options INET #InterNETworking >>>>>> #options INET6 # IPv6 >>>>>> >>>>>> # options NFS_CL #Network Filesystem Client >>>>>> >>>>>> options PSEUDOFS #Pseudo-filesystem framework >>>>>> options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-tim= e extensions >>>>>> >>>>>> # options NFS_LEGACYRPC >>>>>> # Debugging for use in -current >>>>>> options INVARIANTS >>>>>> options INVARIANT_SUPPORT >>>>>> options WITNESS >>>>>> options WITNESS_SKIPSPIN >>>>>> options DEBUG_REDZONE >>>>>> options DEBUG_MEMGUARD >>>>>> >>>>>> options FFS #Berkeley Fast Filesystem >>>>>> # options SOFTUPDATES #Enable FFS soft updates s= upport >>>>>> # options UFS_ACL #Support for access contro= l lists >>>>>> # options UFS_DIRHASH #Improve performance on bi= g >>>>>> directories >>>>>> # options MSDOSFS # Read MSDOS filesys= tems; useful for USB/CF >>>>>> >>>>>> device pci >>>>>> device ar71xx_pci >>>>>> >>>>>> # RTC - requires hackery in the spibus code to work >>>>>> device pcf2123_rtc >>>>>> >>>>>> # GEOM modules >>>>>> device geom_redboot # to get access to the SPI flash par= titions >>>>>> device geom_uzip # compressed in-memory filesystem ha= ckery! >>>>>> device geom_map >>>>>> options GEOM_UZIP >>>>>> >>>>>> # NANDFS >>>>>> options NANDFS >>>>>> >>>>>> ## Boot from the first MFS uzip >>>>>> #options ROOTDEVNAME=3D\"ufs:md0.uzip\" >>>>>> #options MD_ROOT >>>>>> #options MD_ROOT_SIZE=3D"9000" >>>>>> >>>>>> # Boot from NFS >>>>>> options NFSLOCKD #Network Lock Manager >>>>>> options NFSCLIENT #Network Filesystem Client >>>>>> options NFS_ROOT >>>>>> >>>>>> options BOOTP >>>>>> options BOOTP_NFSROOT >>>>>> options BOOTP_NFSV3 >>>>>> options BOOTP_WIRED_TO=3Darge1 >>>>>> options BOOTP_COMPAT >>>>>> options ROOTDEVNAME=3D\"nfs:172.16.0.101:/usr/obj/rb433ah/nf= s\" >>>>>> >>>>>> >>>>>> # 802.11 framework >>>>>> options IEEE80211_DEBUG >>>>>> options IEEE80211_ALQ >>>>>> options IEEE80211_SUPPORT_MESH >>>>>> # This option is currently broken for if_ath_tx. >>>>>> options IEEE80211_SUPPORT_TDMA >>>>>> options IEEE80211_AMPDU_AGE >>>>>> device wlan # 802.11 support >>>>>> device wlan_wep # 802.11 WEP support >>>>>> device wlan_ccmp # 802.11 CCMP support >>>>>> device wlan_tkip # 802.11 TKIP support >>>>>> device wlan_xauth # 802.11 hostap support >>>>>> device wlan_acl # 802.11 ACL support >>>>>> >>>>>> # Atheros wireless NICs >>>>>> device ath # Atheros interface support >>>>>> device ath_pci # Atheros PCI/Cardbus bus >>>>>> options ATH_DEBUG >>>>>> options ATH_DIAGAPI >>>>>> options ATH_ENABLE_11N >>>>>> options AH_DEBUG >>>>>> options AH_DEBUG_ALQ >>>>>> options ALQ >>>>>> device ath_hal >>>>>> option AH_SUPPORT_AR5416 >>>>>> device ath_rate_sample >>>>>> option AH_RXCFG_SDMAMW_4BYTES >>>>>> option AH_AR5416_INTERRUPT_MITIGATION >>>>>> # There's no DFS radar detection support yet so this won't actually >>>>>> # detect radars. It however does enable the rest of the channel cha= nge >>>>>> # machinery so DFS can be debugged. >>>>>> option ATH_ENABLE_DFS >>>>>> >>>>>> device mii >>>>>> device arge >>>>>> #options ARGE_DEBUG # Enable if_arge debugging f= or now >>>>>> >>>>>> #device usb >>>>>> #options USB_EHCI_BIG_ENDIAN_DESC # handle big= -endian byte order >>>>>> #options USB_DEBUG >>>>>> #options USB_HOST_ALIGN=3D32 # AR71XX (= MIPS in general?) requires this >>>>>> #device ehci >>>>>> >>>>>> device scbus >>>>>> #device umass >>>>>> device da >>>>>> >>>>>> device rb4xx >>>>>> >>>>>> # On-board SPI flash >>>>>> device spibus >>>>>> device ar71xx_spi >>>>>> device mmc >>>>>> device mmcsd >>>>>> device mmcspi >>>>>> device mx25l >>>>>> device nand >>>>>> device ar71xx_wdog >>>>>> >>>>>> device uart >>>>>> device uart_ar71xx >>>>>> >>>>>> device loop >>>>>> device ether >>>>>> device md >>>>>> device bpf >>>>>> device random >>>>>> device if_bridge >>>>>> device gif # ip[46] in ip[46] tunneling protoco= l >>>>>> device gre # generic encapsulation - only for I= Pv4 in IPv4 though atm >>>>>> >>>>>> # Enable GPIO >>>>>> device gpio >>>>>> device gpioled >>>>>> >>>>>> options AR71XX_ROUTERBOOT >>>>>> >>>>>> >>>>>> # $FreeBSD$ >>>>>> hint.apb.0.at=3D"nexus0" >>>>>> hint.apb.0.irq=3D4 >>>>>> >>>>>> # uart0 >>>>>> hint.uart.0.at=3D"apb0" >>>>>> # see atheros/uart_cpu_ar71xx.c why +3 >>>>>> hint.uart.0.maddr=3D0x18020003 >>>>>> hint.uart.0.msize=3D0x18 >>>>>> hint.uart.0.irq=3D3 >>>>>> >>>>>> #ohci >>>>>> #hint.ohci.0.at=3D"apb0" >>>>>> #hint.ohci.0.maddr=3D0x1c000000 >>>>>> #hint.ohci.0.msize=3D0x01000000 >>>>>> #hint.ohci.0.irq=3D6 >>>>>> >>>>>> #ehci >>>>>> #hint.ehci.0.at=3D"nexus0" >>>>>> #hint.ehci.0.maddr=3D0x1b000000 >>>>>> #hint.ehci.0.msize=3D0x01000000 >>>>>> #hint.ehci.0.irq=3D1 >>>>>> >>>>>> # pci >>>>>> hint.pcib.0.at=3D"nexus0" >>>>>> hint.pcib.0.irq=3D0 >>>>>> >>>>>> hint.arge.0.at=3D"nexus0" >>>>>> hint.arge.0.maddr=3D0x19000000 >>>>>> hint.arge.0.msize=3D0x1000 >>>>>> hint.arge.0.irq=3D2 >>>>>> # PHY4 =3D 1 << 4 >>>>>> hint.arge.0.phymask=3D0x10 >>>>>> # Uncomment this hint for RS (not PRO) >>>>>> # PHY20 =3D 1 << 20 >>>>>> # hint.arge.0.phymask=3D0x100000 >>>>>> hint.ukphy.0.at=3D"miibus0" >>>>>> >>>>>> hint.arge.1.at=3D"nexus0" >>>>>> hint.arge.1.maddr=3D0x1a000000 >>>>>> hint.arge.1.msize=3D0x1000 >>>>>> hint.arge.1.irq=3D3 >>>>>> # PHY1, PHY2, PHY3 >>>>>> hint.arge.1.phymask=3D0x00 >>>>>> # should be 100 for RS >>>>>> #hint.arge.1.media=3D100 >>>>>> #hint.arge.1.fduplex=3D1 >>>>>> # Uncomment this hint for RS (not PRO) >>>>>> # hint.arge.1.phymask=3D70000 >>>>>> >>>>>> # SPI flash >>>>>> hint.spi.0.at=3D"nexus0" >>>>>> hint.spi.0.maddr=3D0x1f000000 >>>>>> hint.spi.0.msize=3D0x10 >>>>>> >>>>>> hint.mx25l.0.at=3D"spibus0" >>>>>> hint.mx25l.0.cs=3D1 >>>>>> >>>>>> hint.rb_cpldbus.0.at=3D"spibus0" >>>>>> hint.rb_cpldbus.0.cs=3D1 >>>>>> # >>>>>> hint.onand.0.at=3D"nandbus0" >>>>>> hint.lnand.0.at=3D"nandbus0" >>>>>> hint.snand.0.at=3D"nandbus0" >>>>>> >>>>>> hint.flash.0.at=3D"nand0" >>>>>> hint.flash.0.size=3D"0x40000" >>>>>> hint.flash.0.offset=3D"0" >>>>>> hint.flash.0.name=3D"bootloader" >>>>>> hint.flash.1.at=3D"nand0" >>>>>> hint.flash.1.size=3D"0x3c0000" >>>>>> hint.flash.1.offset=3D"0x40000" >>>>>> hint.flash.1.name=3D"kernelfs" >>>>>> hint.flash.2.at=3D"nand0" >>>>>> hint.flash.2.size=3D"0" >>>>>> hint.flash.2.offset=3D"0x400000" >>>>>> hint.flash.2.name=3D"rootfs" >>>>>> >>>>>> hint.ar71xx_gpio.0.at=3D"nexus0" >>>>>> >>>>>> #hint.rb_nandbusy.0.at=3D"gpiobus0" >>>>>> >>>>>> hint.mmcspi.0.at=3D"spibus0" >>>>>> hint.mmcspi.0.cs=3D2 >>>>>> >>>>>> # Watchdog >>>>>> hint.ar71xx_wdog.0.at=3D"nexus0" >>>>>> >>>>>> >>>>>> br, >>>>>> >>>>>>> >>>>>>> >>>>>>> Adrian >>>>>>> >>>>>>> >>>>>>> On 2 January 2013 12:40, Monthadar Al Jaberi = wrote: >>>>>>>> I tested some more. First I changed the miniPCI slot. Now boot loo= ks like this: >>>>>>>> >>>>>>>> pcib0 at irq 0 on nexus0 >>>>>>>> pci0: on pcib0 >>>>>>>> ath0: irq 2 at device 19.0 on pci0 >>>>>>>> ath0: AR5413 mac 10.5 RF5413 phy 6.1 >>>>>>>> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0063 >>>>>>>> >>>>>>>> >>>>>>>> Then I created a hostap. But none of my other devices sees it (lap= top, iphone). >>>>>>>> >>>>>>>> A scan results in: >>>>>>>> >>>>>>>> # ifconfig wlan0 scan >>>>>>>> wlan0: ieee80211_scanreq: flags 0x1b duration 0x7fffffff mindwell = 0 >>>>>>>> maxdwell 0 nssid 0 >>>>>>>> wlan0: start_scan_locked: active scan, duration 2147483647 mindwel= l 0 >>>>>>>> maxdwell 0, desired mode 11g, append, nopick, once >>>>>>>> wlan0: scan set 11g dwell min 200ms max 200ms >>>>>>>> wlan0: scan_task: chan 11g -> 11g [active, dwell min 200ms max 2= 00ms] >>>>>>>> wlan0: ieee80211_ref_node (ieee80211_send_probereq:1822) >>>>>>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 4 >>>>>>>> wlan0: send probe req on channel 11 bssid ff:ff:ff:ff:ff:ff ssid "= " >>>>>>>> wlan0: scan_task: done, [ticks 2657909, dwell min 200 scanend 2150= 141333] >>>>>>>> wlan0: notify scan done >>>>>>>> root@rb433ah:~ # ath0: device timeout >>>>>>>> >>>>>>>> And when I try to ping a random IP address I get the following. >>>>>>>> Interesting is that it seems to "bail out" when it tries to send >>>>>>>> probe_resp (last in output): >>>>>>>> $ ping -c 1 172.168.3.2 >>>>>>>> PING 172.168.3.2 (172.168.3.2): 56 data bytes >>>>>>>> ath0: device timeout >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 11, len 5 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 1= 0 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 8 >>>>>>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 11, len 5 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 1= 0 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [94:0c:6d:ad:61:18] discard frame, not to bss >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 48 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 11, len 5 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 1= 0 >>>>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 2 >>>>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: >>>>>>>> 0x9ccca48e6a3b0c7f661c24413d7b9e54c5e59ddbe0c2bd96a2e65410b662f71a >>>>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 5 >>>>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "defau= lt" >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received probe_req from 00:16:cf:3c:f7:7f rssi 4 >>>>>>>> [00:16:cf:3c:f7:7f] discard probe_req frame, ssid mismatch: "defau= lt" >>>>>>>> wlan0: received beacon from 00:11:50:4d:c5:08 rssi 9 >>>>>>>> wlan0: [00:11:50:4d:c5:08] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 46 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 11, len 5 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 1= 0 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 11, len 5 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 1= 0 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 43 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 11, len 5 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 1= 0 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 40 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 11, len 5 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 1= 0 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 45 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 11, len 5 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 1= 0 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 13 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 47 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 11, len 5 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 1= 0 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 12 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received beacon from 28:10:7b:8e:7a:ec rssi 44 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 51, len 8 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard unhandled information element, = id 11, len 5 >>>>>>>> wlan0: [28:10:7b:8e:7a:ec] discard beacon frame, for off-channel 1= 0 >>>>>>>> wlan0: received beacon from 74:44:01:2d:cb:5e rssi 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 47, len 1 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 74, len 14 >>>>>>>> wlan0: [74:44:01:2d:cb:5e] discard unhandled information element, = id 127, len 1 >>>>>>>> wlan0: received probe_req from 00:aa:70:77:bd:77 rssi 0 >>>>>>>> wlan0: [00:aa:70:77:bd:77] recv probe req >>>>>>>> wlan0: ieee80211_ref_node (ieee80211_send_proberesp:2489) >>>>>>>> 0xc6f27000<00:15:6d:67:21:8d> refcnt 5 >>>>>>>> wlan0: send probe resp on channel 11 to 00:aa:70:77:bd:77 >>>>>>>> ath0: ath_raw_xmit: sc_inreset_cnt > 0; bailing >>>>>>>> .... >>>>>>>> >>>>>>>> >>>>>>>> On Tue, Jan 1, 2013 at 7:33 PM, Monthadar Al Jaberi wrote: >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> ath(4) failed to attach on my Routerboard RB433AH running FreeBSD >>>>>>>>> current. This is what I got during boo-up. >>>>>>>>> >>>>>>>>> pcib0 at irq 0 on nexus0 >>>>>>>>> pci0: on pcib0 >>>>>>>>> ath0: irq 3 at device 20.0 on pci0 >>>>>>>>> ath0: could not map interrupt >>>>>>>>> device_attach: ath0 attach returned 6 >>>>>>>>> >>>>>>>>> Any idea why? Anyone else is running ath(4) on this board? My wif= i >>>>>>>>> card is a Ubiquity X2 with AR5413 chip. >>>>>>>>> >>>>>>>>> br, >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Monthadar Al Jaberi >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Monthadar Al Jaberi >>>>>>>> _______________________________________________ >>>>>>>> freebsd-wireless@freebsd.org mailing list >>>>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>>>>>>> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@fre= ebsd.org" >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Monthadar Al Jaberi >>>>> >>>>> >>>>> >>>>> -- >>>>> Monthadar Al Jaberi >>>> >>>> >>>> >>>> -- >>>> Monthadar Al Jaberi >> >> >> >> -- >> Monthadar Al Jaberi --=20 Monthadar Al Jaberi From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 4 19:37:36 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 52F61CDC; Fri, 4 Jan 2013 19:37:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by mx1.freebsd.org (Postfix) with ESMTP id BA54C37D; Fri, 4 Jan 2013 19:37:35 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id dt10so7591755wgb.3 for ; Fri, 04 Jan 2013 11:37:34 -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=j9ODyJdry7YXRY/vCN45mgZAv3xHyl5XqongJXMutKw=; b=HBO0ggmnAk5HTqaNluNFujXUnyF/DaPXpCb5CL8k88yyr2fpmwBg29xMWeMTHs1R+4 U5yTOqGm1aRvtRynLkQ6ljdfDPLqZJGdYLlSYnZNx0PQQvHWBjrq4ulvzBJBBXI/ckNn pbLZHPZPwIkw2zPegESSk/RmFz9D0MAJuJz6dxCMcLaBF4ko/F5ZNoFYxqS7spskmyLY lGVSne/0SudSgiwbWpWcamQdI6E40vDRlXm5PZG4e3ZRQyWZYiSwaHd9CxDjCh1n337W HLb6Uxdm9EB6e0lDmmHtDv115JvnCQb1YfeK0rlYJOtCiUGuhSA6TTTL49buYhI7dkNP d2jw== MIME-Version: 1.0 Received: by 10.180.72.146 with SMTP id d18mr74616982wiv.33.1357328254384; Fri, 04 Jan 2013 11:37:34 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Fri, 4 Jan 2013 11:37:34 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Jan 2013 11:37:34 -0800 X-Google-Sender-Auth: b93C68o-OlAXluKjG3HDKCe50Vs Message-ID: Subject: Re: ath0: could not map interrupt From: Adrian Chadd To: Monthadar Al Jaberi Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, freebsd-mips@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 04 Jan 2013 19:37:36 -0000 On 4 January 2013 11:24, Monthadar Al Jaberi wrote: > On Fri, Jan 4, 2013 at 8:13 PM, Adrian Chadd wrote: >> Ok. The magic you need to try hacking is in ar71xx_pci.c. There's the >> 7 PCI windows and the 3 interrupt lines that are configured. >> >> The IRQ only gets unmasked when a slot claims it as a resource. So >> you'll have to fiddle with that mapping a little. >> >> Look at ar71xx_pci_route_interrupt(). Maybe set it up so >> AR71XX_PCI_BASE_SLOT is 18 instead of 17? > > Works!!! :D Hah! Nice! > The slot is not the issue I think. The code seems to iterate through a > couple, and when one fails it just checks the other. What it seems is > wrong is that the interrupts are mapped wrong. > Linux assigned IRQ 0 to slot 18, while FreeBSD assignes IRQ 1. We need > a mapping just like openwrt. Code re-write? :D > > We need this: Slot 18 IRQ 0, Slot 19 IRQ 1, Slot 20 IRQ 2 > > I don't know really what "slots" are physcially. Does the PCI bridge > have many slots (ports)? It's .. slightly more screwed up than that. Well, kind of. You need to read up on a PCI bus primer to understand how it works. Remember, the hardware design tries to minimise the amount of custom hardware logic that you need - so the whole notion of PCI "slots" here is really just a set of bits in the upper part of the 32 bit physical address space. The interrupt lines are fixed - there's what, three of them that come off the AR71XX CPU (AR71XX_PCI_INTR_STATUS and AR71XX_PCI_INTR_MASK) and get wired to individual physical slots. I think we only get one wired to INTA on each physical slot. So yes, it depends upon how they've wired up the board. It sounds like mikroik wired "slot 18" (which is just a specific combination of high address pins) to INT0, "slot 19" to INT1, "slot 20" to INT2. Whereas the PB42 and Ubiquiti hardware wires it starting at "slot 17". Look at ar71xx_pci_make_addr() to see what the slot/func/bus/etc mapping to physical 32 bit address is. Note there's also a PCI window register set that maps the 32 bit physical addresses for each PCI slot to a KSEG space address that MIPS code can get at. So now that we've figured that out, please create a PR with the description of the problem and the solution, and we'll have to figure out the "right" way to teach the PCI glue code about this. Chances are we can just create a PCI bus hint that defaults to "17" that says where the slots start at. Then for the Mikrotik board we can start it at 18. Adrian