From owner-freebsd-mips@FreeBSD.ORG Tue Jan 1 09:44:18 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 345D1E44 for ; Tue, 1 Jan 2013 09:44:18 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-gg0-f181.google.com (mail-gg0-f181.google.com [209.85.161.181]) by mx1.freebsd.org (Postfix) with ESMTP id DC1988FC0A for ; Tue, 1 Jan 2013 09:44:17 +0000 (UTC) Received: by mail-gg0-f181.google.com with SMTP id s6so2053861ggc.40 for ; Tue, 01 Jan 2013 01:44:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :x-gm-message-state; bh=YfHdCwjBsLXRW5feLmciF6uUYOCbUPGKC8z3ungoS4U=; b=l/HkFxZSSKFEmdtqWsIsjS/KuOCtjhdU3DFu4lnqAOt6W/H2prRt14RZmEvUfGxjDu HJfQKsU3MrEP+ceQB2ZGzVHeZKLyvhT8gR5cYw9YWixP/cqnKyTZFZZJrlURG25X9OrF J/5Lh1HmWd/sGyIc7qaBB/m2LVNNSbZUWxKfTuc5uTx1ljGSjakxMFrOr+eB8KVxpsnO ZaDzu1U9eNY9lpLa8dYoAfMgPQk7ZPM0cTWHv+COiD8Ljl817keB6DkFg0iTaIBv8IF2 A7Z6SkfrGqvjqvjZVkViItv/1/hxZT9WDByY57/hDuxRtGXD0bb99E2Qj9C25jA5JH8U EC4g== Received: by 10.236.82.169 with SMTP id o29mr39870769yhe.116.1357033450932; Tue, 01 Jan 2013 01:44:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.147.119.38 with HTTP; Tue, 1 Jan 2013 01:43:50 -0800 (PST) From: Juli Mallett Date: Tue, 1 Jan 2013 01:43:50 -0800 Message-ID: Subject: Ubiquiti EdgeRouter Lite: coming (hopefully) very soon. To: "freebsd-mips@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnrYvmEwV/UfjKWU18QAgh0KySU0A6mqoGi0FRFRznV8U+p6qFJScfWZzqdPUYGFtFtDrE6 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 09:44:18 -0000 Hey all, My EdgeRouter Lite will be arriving soon and I just snagged a copy of the GPL sources from Ubiquiti. Assuming I'm understanding what's here right, looks like the EdgeMax platform is Octeon-based, and should require only very, very trivial modifications to FreeBSD. The modifications made for linux suggest UBNT calls the board an "E100". It's $99 and dual-core CN50xx 500MHz. A little disappointed it's not an Octeon II, but that's hardly surprising. By far the cheapest Octeon system available and perhaps one of the best MIPS ones available given the price point. Should be a lot of fun. Note that for reference I know of major OEMs that produce boards with comparable specs that were looking for $300 each just a few months ago. These boards are a very fine bargain indeed, and FreeBSD supports most of what's on them, and it will only take about 10 minutes to get a suitable FreeBSD kernel put together with hardware in-hand. (I may not be able to do it until late January due to other commitments, but encourage anyone who has an EdgeRouter Lite in their hands to give it a shot. Just look at the changes Ubiquiti made to the Simple Executive to add their private board type, add an OCTEON_VENDOR_UBIQUITI (or _UBNT, I'm not picky) config option and add the board type and go from there in the same way that other vendors' boards have been supported. It's a great entry-level kernel task. The hardware is small and light, so I may take one with me in my travels and see what I can find time for, but it'd be very cool to see this supported in-tree as soon as possible.) Thanks, Juli. From owner-freebsd-mips@FreeBSD.ORG Tue Jan 1 19:06:58 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 562E6C91 for ; Tue, 1 Jan 2013 19:06:58 +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 D362D8FC0A for ; Tue, 1 Jan 2013 19:06:57 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id fg15so6405771wgb.9 for ; Tue, 01 Jan 2013 11:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=MHiwJz/++DKppsB9It4381yDEV1y0zkTf1i3BJF0RaU=; b=Am23fx8ScpSIa5atPHVVNLTx4objQiXQ4JM2qI5nx1qsXnrRfGDwqCCbxN/+5l6ytP bDuQ3XWJBiV4t4dB+lTcC3IjqYQtyWfyAaD4MX7nzAXwtCKsOZ3kcRd1X/0YHGmHqiML N4m82geTUv34UEbYiV6gqGg4RsYJ9UzQ+Dq4sf0HGAeOgabOVr35jius8q0g5FDc3Sm0 09wvwoUCxBJlBBdTWsaLAmLad6vUzFTYoVV5T/lOKDdUVAtfdyCoSfQ2i3I8Hf0vGvKL b0yF/RxUE6dMYxOO2YWgqiG6YTbjpsgfBz1XxSWyJdkPhcunqkoDwyVZqXA1n0/wp9CF 8o2w== MIME-Version: 1.0 Received: by 10.180.33.44 with SMTP id o12mr60985374wii.28.1357067210880; Tue, 01 Jan 2013 11:06:50 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Tue, 1 Jan 2013 11:06:50 -0800 (PST) In-Reply-To: References: Date: Tue, 1 Jan 2013 11:06:50 -0800 X-Google-Sender-Auth: dXCQmooPhaZA_p3XtHE7khn0Z2w Message-ID: Subject: Re: Ubiquiti EdgeRouter Lite: coming (hopefully) very soon. From: Adrian Chadd To: Juli Mallett Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-mips@FreeBSD.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 19:06:58 -0000 Sweet! Which wifi does it come with? Adrian On 1 January 2013 01:43, Juli Mallett wrote: > Hey all, > > My EdgeRouter Lite will be arriving soon and I just snagged a copy of > the GPL sources from Ubiquiti. Assuming I'm understanding what's here > right, looks like the EdgeMax platform is Octeon-based, and should > require only very, very trivial modifications to FreeBSD. The > modifications made for linux suggest UBNT calls the board an "E100". > It's $99 and dual-core CN50xx 500MHz. A little disappointed it's not > an Octeon II, but that's hardly surprising. By far the cheapest > Octeon system available and perhaps one of the best MIPS ones > available given the price point. Should be a lot of fun. > > Note that for reference I know of major OEMs that produce boards with > comparable specs that were looking for $300 each just a few months > ago. These boards are a very fine bargain indeed, and FreeBSD > supports most of what's on them, and it will only take about 10 > minutes to get a suitable FreeBSD kernel put together with hardware > in-hand. > > (I may not be able to do it until late January due to other > commitments, but encourage anyone who has an EdgeRouter Lite in their > hands to give it a shot. Just look at the changes Ubiquiti made to > the Simple Executive to add their private board type, add an > OCTEON_VENDOR_UBIQUITI (or _UBNT, I'm not picky) config option and add > the board type and go from there in the same way that other vendors' > boards have been supported. It's a great entry-level kernel task. > The hardware is small and light, so I may take one with me in my > travels and see what I can find time for, but it'd be very cool to see > this supported in-tree as soon as possible.) > > Thanks, > Juli. > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@FreeBSD.ORG Tue Jan 1 19:33:25 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 912923B1 for ; Tue, 1 Jan 2013 19:33:25 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) by mx1.freebsd.org (Postfix) with ESMTP id 20E488FC0C for ; Tue, 1 Jan 2013 19:33:24 +0000 (UTC) Received: from [207.6.254.8] (helo=[192.168.1.67]) by id.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1Tq7aU-0005Bt-Dn for freebsd-mips@freebsd.org; Tue, 01 Jan 2013 11:33:24 -0800 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Ubiquiti EdgeRouter Lite: coming (hopefully) very soon. From: Oleksandr Tymoshenko In-Reply-To: Date: Tue, 1 Jan 2013 11:33:03 -0800 Cc: "freebsd-mips@FreeBSD.org" Content-Transfer-Encoding: 7bit Message-Id: <11D361B5-3CD8-474F-8E4D-20752C8F9B63@bluezbox.com> References: X-Mailer: Apple Mail (2.1499) Sender: gonzo@id.bluezbox.com X-Spam-Level: - X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 2013-01-01, at 1:43 AM, Juli Mallett wrote: > Hey all, > > My EdgeRouter Lite will be arriving soon and I just snagged a copy of > the GPL sources from Ubiquiti. Assuming I'm understanding what's here > right, looks like the EdgeMax platform is Octeon-based, and should > require only very, very trivial modifications to FreeBSD. The > modifications made for linux suggest UBNT calls the board an "E100". > It's $99 and dual-core CN50xx 500MHz. A little disappointed it's not > an Octeon II, but that's hardly surprising. By far the cheapest > Octeon system available and perhaps one of the best MIPS ones > available given the price point. Should be a lot of fun. > > Note that for reference I know of major OEMs that produce boards with > comparable specs that were looking for $300 each just a few months > ago. These boards are a very fine bargain indeed, and FreeBSD > supports most of what's on them, and it will only take about 10 > minutes to get a suitable FreeBSD kernel put together with hardware > in-hand. > > (I may not be able to do it until late January due to other > commitments, but encourage anyone who has an EdgeRouter Lite in their > hands to give it a shot. Just look at the changes Ubiquiti made to > the Simple Executive to add their private board type, add an > OCTEON_VENDOR_UBIQUITI (or _UBNT, I'm not picky) config option and add > the board type and go from there in the same way that other vendors' > boards have been supported. It's a great entry-level kernel task. > The hardware is small and light, so I may take one with me in my > travels and see what I can find time for, but it'd be very cool to see > this supported in-tree as soon as possible.) > [...] Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 1.0 MISSING_HEADERS Missing To: header -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 19:33:25 -0000 On 2013-01-01, at 1:43 AM, Juli Mallett wrote: > Hey all, > > My EdgeRouter Lite will be arriving soon and I just snagged a copy of > the GPL sources from Ubiquiti. Assuming I'm understanding what's here > right, looks like the EdgeMax platform is Octeon-based, and should > require only very, very trivial modifications to FreeBSD. The > modifications made for linux suggest UBNT calls the board an "E100". > It's $99 and dual-core CN50xx 500MHz. A little disappointed it's not > an Octeon II, but that's hardly surprising. By far the cheapest > Octeon system available and perhaps one of the best MIPS ones > available given the price point. Should be a lot of fun. > > Note that for reference I know of major OEMs that produce boards with > comparable specs that were looking for $300 each just a few months > ago. These boards are a very fine bargain indeed, and FreeBSD > supports most of what's on them, and it will only take about 10 > minutes to get a suitable FreeBSD kernel put together with hardware > in-hand. > > (I may not be able to do it until late January due to other > commitments, but encourage anyone who has an EdgeRouter Lite in their > hands to give it a shot. Just look at the changes Ubiquiti made to > the Simple Executive to add their private board type, add an > OCTEON_VENDOR_UBIQUITI (or _UBNT, I'm not picky) config option and add > the board type and go from there in the same way that other vendors' > boards have been supported. It's a great entry-level kernel task. > The hardware is small and light, so I may take one with me in my > travels and see what I can find time for, but it'd be very cool to see > this supported in-tree as soon as possible.) > Looks great! Where do I buy one? From owner-freebsd-mips@FreeBSD.ORG Tue Jan 1 19:47:58 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5074597E for ; Tue, 1 Jan 2013 19:47:58 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0467C8FC0A for ; Tue, 1 Jan 2013 19:47:57 +0000 (UTC) Received: by mail-gg0-f182.google.com with SMTP id e5so2077626ggh.13 for ; Tue, 01 Jan 2013 11:47:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=Bhju+qb1zRqAYgp+jdQ8FniRHN7XDbHo+93uBvX7d/4=; b=ehttutvr5mHDO7BfyYPxmwuyOrHospDpL6UpjFZkzRdF2jTBSnCDUqx3UZYh5lPFpi z4d6bM9/dQP6d5xWp1pvndkav2YkW7JZz+0cHGaKvNihkZZtNoq8R2GWvgNjCXHtpZay K8FIDxhOYodw7AYCbcYjovOMitRcp2FWtZVxQsqtr1i1ImCzCfAmOsHdxGtPbGHArqDB UGs7aZBLSOIptbsEbvIJ8+ZID159738ls+0ObwSdU7s9CoMgPJAN3heIV8UsZs+qc3SA h5KCqtyouo+LbLnOUHq/3NLxN2q+z7noWctojSoj0cyK4bx1dNuhMrHy1x9jeaTeaPUN vgGQ== Received: by 10.236.149.100 with SMTP id w64mr41192921yhj.125.1357069676386; Tue, 01 Jan 2013 11:47:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.147.119.38 with HTTP; Tue, 1 Jan 2013 11:47:36 -0800 (PST) In-Reply-To: References: From: Juli Mallett Date: Tue, 1 Jan 2013 11:47:36 -0800 Message-ID: Subject: Re: Ubiquiti EdgeRouter Lite: coming (hopefully) very soon. To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlVKxeVcV1tvacfB9SQvS0aNA0O7EMYIMqdBJsF+Pkyl/yxqYIyIhi1eEWFpM/U5e4/rWDu Cc: "freebsd-mips@FreeBSD.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 19:47:58 -0000 On Tue, Jan 1, 2013 at 11:06 AM, Adrian Chadd wrote: > Sweet! Which wifi does it come with? Sorry, this is a router in the traditional sense, not in the sense that it's been abused to mean "access point" :) Just Gigabit Ethernet. From owner-freebsd-mips@FreeBSD.ORG Tue Jan 1 19:52:47 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE1B0B56 for ; Tue, 1 Jan 2013 19:52:47 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-gh0-f170.google.com (mail-gh0-f170.google.com [209.85.160.170]) by mx1.freebsd.org (Postfix) with ESMTP id A04F48FC13 for ; Tue, 1 Jan 2013 19:52:47 +0000 (UTC) Received: by mail-gh0-f170.google.com with SMTP id g14so1476727ghb.1 for ; Tue, 01 Jan 2013 11:52:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=c90Oce997YUtiI+M+AI2YDEYx3GTuhxvZbFEkw0yhxA=; b=nHwPZqmz8yWi6hi9RSSYlSEWuUL+awsO80/+I8IcIu2JPj1cPen6I4DP65YDS9nkMh I0rUwvutIUC48mns4J3Wi1tVhbUTZKkFSOoXdZiQdu1VM+W1aC0w0xacEWfi+dHEOk1b YtP+Qs1roIKr9N1YImmpvpXKDIFEjrPjowcA7g6i7qXEPst1zD3O0oXo7Qud8D5gKLDT 9H3SUnTCHYT9ChyO6x7N5K+Vt2dF6hbFBCKxg+8UKEnZ/iEcG9+QTW6eSuyXDhCoZ/9f JFGoIxVbywZaFn8Dml4aX64EPKO5kbD8AqzXctmiWyFv9aL9Y7srINTIbU+t403T3tKL Y8FQ== Received: by 10.236.149.100 with SMTP id w64mr41185625yhj.125.1357069516728; Tue, 01 Jan 2013 11:45:16 -0800 (PST) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.147.119.38 with HTTP; Tue, 1 Jan 2013 11:44:56 -0800 (PST) In-Reply-To: <11D361B5-3CD8-474F-8E4D-20752C8F9B63@bluezbox.com> References: <11D361B5-3CD8-474F-8E4D-20752C8F9B63@bluezbox.com> From: Juli Mallett Date: Tue, 1 Jan 2013 11:44:56 -0800 X-Google-Sender-Auth: I4CLWtTEsLA81SFmPsfe3TThW9Y Message-ID: Subject: Re: Ubiquiti EdgeRouter Lite: coming (hopefully) very soon. To: Oleksandr Tymoshenko Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmZFxwwmLhte0NQHGYzNNYiAMwvj47FTENUX1+4ZdBPJyMlgAQZqPLKtDe7ztIoT1ciNIjN Cc: "freebsd-mips@FreeBSD.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2013 19:52:48 -0000 On Tue, Jan 1, 2013 at 11:33 AM, Oleksandr Tymoshenko wrote: >> It's $99 and dual-core CN50xx 500MHz. A little disappointed it's not >> an Octeon II, but that's hardly surprising. By far the cheapest >> Octeon system available and perhaps one of the best MIPS ones >> available given the price point. Should be a lot of fun. > > Looks great! Where do I buy one? I don't know the answer to that, unfortunately. It seems like UBNT possibly didn't anticipate demand well enough :) I'd look at the distributors that show up on Google, and see who claims to have stock, maybe? Or pre-order from a reliable and trustworthy source like Netgate or Microcom. But Microcom are saying they'll have more in _March_ which is awful. The only site I see at a glance claiming to have them in-stock doesn't seem very reputable: http://www.incrediblefta.com/item/901/1/1/ubiquiti-edgerouter-lite.html Sounds like the second batch of them is being produced with a _February_ target, which I didn't anticipate. I really hoped that given the obvious pre-release excitement Ubiquiti would have produced enough to meet demand :/ From owner-freebsd-mips@FreeBSD.ORG Wed Jan 2 20:43:35 2013 Return-Path: Delivered-To: freebsd-mips@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-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS 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-mips@FreeBSD.ORG Wed Jan 2 21:29:22 2013 Return-Path: Delivered-To: freebsd-mips@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-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS 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-mips@FreeBSD.ORG Wed Jan 2 23:34:32 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 75AD77A6 for ; Wed, 2 Jan 2013 23:34:32 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by mx1.freebsd.org (Postfix) with ESMTP id 1B80AA1E for ; Wed, 2 Jan 2013 23:34:31 +0000 (UTC) Received: by mail-gh0-f180.google.com with SMTP id f19so1654058ghb.25 for ; Wed, 02 Jan 2013 15:34:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=6cYp7JB0T+nV5hJcNJ4pxri6iUU6S4cZJoGbmRnHhUs=; b=Q3i80CNIP5M62ZRtIJOHMH7wL4wIlFlcWfiqPH/n8ddZHV+vJEMnJ8SS+kCbDA/gGG KUhxCXt6pFNNY2xiqdevwHtF79F009sFUVRlBAwfDA954SAWuf5vNcfbtyJ7L4BrinaL RQ9fcMUqf214pFuWW9JEKmcFtimokM9s+ihVn7/VqwNfvQ3LoawofVTkxDG0Dk+r5eaU qrzi7YgsDP3vXnoZ8y4GEK26Zv5ISQN6MXdOuAEIz4L0wg9lbuZ2JYulYlIzsqJs4x42 xVvH4IDM4/J2izz+P1p4v+OTIqkC6H5iwdzdgsVbTVGuDedE8j3P0m5QX3dARC9VJgn6 /Wjw== Received: by 10.236.114.99 with SMTP id b63mr1403108yhh.103.1357169665253; Wed, 02 Jan 2013 15:34:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.147.119.38 with HTTP; Wed, 2 Jan 2013 15:34:05 -0800 (PST) In-Reply-To: References: From: Juli Mallett Date: Wed, 2 Jan 2013 15:34:05 -0800 Message-ID: Subject: Re: Ubiquiti EdgeRouter Lite: coming (hopefully) very soon. To: "freebsd-mips@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlJRPmhgtCB84n1t0zk9V4ndFZoMLfC3FhtySrQ4RhAQ+i0YBwvKVKj+uwXoQ+/n61UwlQ2 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 23:34:32 -0000 Hey all, My board arrived today and I had a few minutes waiting for a build, so I added basic board support. You can see the dmesg here: http://people.freebsd.org/~jmallett/octeon-dmesg/ubiquiti-edgerouter-lite.txt Note that the flash is connected via USB, which is kind of neat. I have not yet set up a filesystem on my device, but it looks like everything should just work. There may be a small issue with clocking on some of the Ethernet parts which is trivial to fix, but I haven't been able to verify whether we need the fix yet. I'm unlikely to get around to it very soon, but I thought people might be interested in seeing FreeBSD on the EdgeRouter Lite! Ubiquiti really did a good job here; it's a normalish RJ45 serial console at 115200, and U-Boot is not restricted in any way. And they didn't do anything strange with the hardware that would require lots of effort to make the Simple Executive work. This should be a great platform for FreeBSD, indeed. I've got an order for a bunch more coming in one of the next batches and intend to distribute them to FreeBSD developers. At $100/each including a power supply and case they're a fabulous deal. Thanks, Juli. On Tue, Jan 1, 2013 at 1:43 AM, Juli Mallett wrote: > Hey all, > > My EdgeRouter Lite will be arriving soon and I just snagged a copy of > the GPL sources from Ubiquiti. Assuming I'm understanding what's here > right, looks like the EdgeMax platform is Octeon-based, and should > require only very, very trivial modifications to FreeBSD. The > modifications made for linux suggest UBNT calls the board an "E100". > It's $99 and dual-core CN50xx 500MHz. A little disappointed it's not > an Octeon II, but that's hardly surprising. By far the cheapest > Octeon system available and perhaps one of the best MIPS ones > available given the price point. Should be a lot of fun. > > Note that for reference I know of major OEMs that produce boards with > comparable specs that were looking for $300 each just a few months > ago. These boards are a very fine bargain indeed, and FreeBSD > supports most of what's on them, and it will only take about 10 > minutes to get a suitable FreeBSD kernel put together with hardware > in-hand. > > (I may not be able to do it until late January due to other > commitments, but encourage anyone who has an EdgeRouter Lite in their > hands to give it a shot. Just look at the changes Ubiquiti made to > the Simple Executive to add their private board type, add an > OCTEON_VENDOR_UBIQUITI (or _UBNT, I'm not picky) config option and add > the board type and go from there in the same way that other vendors' > boards have been supported. It's a great entry-level kernel task. > The hardware is small and light, so I may take one with me in my > travels and see what I can find time for, but it'd be very cool to see > this supported in-tree as soon as possible.) > > Thanks, > Juli. From owner-freebsd-mips@FreeBSD.ORG Fri Jan 4 01:28:43 2013 Return-Path: Delivered-To: freebsd-mips@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-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS 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-mips@FreeBSD.ORG Fri Jan 4 04:54:21 2013 Return-Path: Delivered-To: freebsd-mips@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-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS 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-mips@FreeBSD.ORG Fri Jan 4 04:59:10 2013 Return-Path: Delivered-To: freebsd-mips@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-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS 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-mips@FreeBSD.ORG Fri Jan 4 14:48:26 2013 Return-Path: Delivered-To: freebsd-mips@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-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS 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-mips@FreeBSD.ORG Fri Jan 4 19:13:48 2013 Return-Path: Delivered-To: freebsd-mips@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-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS 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-mips@FreeBSD.ORG Fri Jan 4 19:24:38 2013 Return-Path: Delivered-To: freebsd-mips@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-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS 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-mips@FreeBSD.ORG Fri Jan 4 19:37:36 2013 Return-Path: Delivered-To: freebsd-mips@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-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS 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