From owner-freebsd-embedded@FreeBSD.ORG Fri Aug 23 07:20:35 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A55CE8CA; Fri, 23 Aug 2013 07:20:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [IPv6:2a00:1450:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 10C6B2224; Fri, 23 Aug 2013 07:20:34 +0000 (UTC) Received: by mail-we0-f174.google.com with SMTP id q54so200972wes.5 for ; Fri, 23 Aug 2013 00:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=AMzcTn8cEipx+8uIs0o7IOEWD0fVBbznvo8xlX9HV/c=; b=Omiao8NxLFPLNIVrxr9FaEJFMHji5JFq5sl4TWaqIjB9keYL4Mo/dlr2P0I+Ounj4c XP9VFlgTg10kD6XLE8c8brpRmVObJAX/LwST8RuCJa4XIH1ugpCScDHkbsLRR2OMzgcj RQD4L7U99VK8qlxQwozBA3r/tEUW90tMjyYZC6UbpeEpEyiEtzzNLx4gD2kpsZ2AEIEP XoxpfG10q4KZExp9QASXJwc0KprmrxJjpQ9vW7elSokWXwAsa7yBSQY0gue8G/oIALJU T4icbGWAu13x8uH58EJr55e+bj3L/dVqzgU+GrsMVPMWVVIQ9708DXPEtvyGRIqHFRdx vknQ== MIME-Version: 1.0 X-Received: by 10.180.37.164 with SMTP id z4mr1050255wij.30.1377242433276; Fri, 23 Aug 2013 00:20:33 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.116.136 with HTTP; Fri, 23 Aug 2013 00:20:33 -0700 (PDT) In-Reply-To: <1377237427.2364.35.camel@localhost> References: <1374340359.1421.3.camel@localhost> <1376795552.1460.120.camel@localhost> <1376845978.1460.126.camel@localhost> <1377105408.1492.12.camel@localhost> <1377237427.2364.35.camel@localhost> Date: Fri, 23 Aug 2013 00:20:33 -0700 X-Google-Sender-Auth: yBHR0DSftBcWjtsnUR_CPHbvJMw Message-ID: Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs PATCH] From: Adrian Chadd To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 07:20:35 -0000 hah! cute. Yeah, for now let's just commit this. We can tidy it up in a later pass. -adrian On 22 August 2013 22:57, Sean Bruno wrote: > > > Huh ... it looks like the caldata and the mac addrs are at "special" > > locations as the openwrt folks have special functions to read them in > > their "mach-dir-825-b1.c" > > > > I suspect that with this as a road map I can "do something" to try and > > pull in their specific methods to do stuff tonight. Is this the right > > path to go down? > > > > Sean > > > > This amused me a bit today. Turns out that the MAC addrs are stored as > a literal string for arge(4) on this board. Took me a bit, but this > patch and change to DIR-825.hints gets "real" MAC addrs setup for arge0 > and arge1. I snickered a bit when I realized that they even left the > ":" characters in the string. > > I also add the "magic" numbers for reading the mac's from the EEPROM and > expose a "readascii" generalized hint for this supported class of > boards. > > Looking over openwrt's solution, they don't get MAC addresses for the > WLAN interfaces, then use the one's provided by arge(4) and simply add > 1. I haven't reviewed the relevant ath(4) code to see how we can pass > that in, so suggestions are welcome. > > http://people.freebsd.org/~sbruno/arge_ascii.txt > > Sean > > p.s. dmesg updated > http://people.freebsd.org/~sbruno/dir_825_dmesg.txt >