From owner-freebsd-embedded@FreeBSD.ORG Thu Aug 22 05:00:59 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 ADC82BF7; Thu, 22 Aug 2013 05:00:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1995F2D0B; Thu, 22 Aug 2013 05:00:58 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id t58so1168986wes.24 for ; Wed, 21 Aug 2013 22:00:56 -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=6F65GxQT2U3qFYQZ+Gx8dGn6nKvslaZr/sCmikPWuIs=; b=GHPpBYJLgKHBDVpJjO+mzJtnikmIWVcuSzGnNvXbEfCANJfbxmB/qky/opD+HVkQSH 9oc3Xt4/fDy5OOV2OXB33jciUe5vN3mruSGt7LE6sfCAni0NclVcakOnQXc6/pzJp9VE ojmq01FqKIvnqcYnypVgIerhxOKJj9axFHMUfQtIsxywNZlJ3GAPXZyhNPAiLo8mACg+ +mThKjFhcU9qal8yZswZyTNiihaHp5+gDE16ErefNShmpRH2+0o6C66fGwIUPQ39MvQC PCDC7NAsEc2jSw8rLIes2gbuFu3BPRKaq0dyL17Wjx2SC3r+WXmTeEu7yigKVLA1YILv NVCw== MIME-Version: 1.0 X-Received: by 10.180.36.133 with SMTP id q5mr8289664wij.0.1377147656523; Wed, 21 Aug 2013 22:00:56 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.116.136 with HTTP; Wed, 21 Aug 2013 22:00:56 -0700 (PDT) In-Reply-To: <1377105408.1492.12.camel@localhost> References: <1374340359.1421.3.camel@localhost> <1376795552.1460.120.camel@localhost> <1376845978.1460.126.camel@localhost> <1377105408.1492.12.camel@localhost> Date: Wed, 21 Aug 2013 22:00:56 -0700 X-Google-Sender-Auth: UAzmMpS9crMX9_HsYzYoHnFEseQ Message-ID: Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs] 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: Thu, 22 Aug 2013 05:00:59 -0000 Hi, Right. Well, what I'd like to see in the short term is the .hints hack to pull the MAC address(es) out - if_arge.c has some hack to do this. It's terrible but it works. In the longer term I'd like to see there be some generic way in the machdep code to read in things like macaddresses from EEPROM early on, then populate kenv entries with the relevant info. We can then modify if_arge, if_ath to look at the relevant kenv/hints for "overrides". -adrian On 21 August 2013 10:16, Sean Bruno wrote: > On Sun, 2013-08-18 at 12:21 -0700, Adrian Chadd wrote: > > you won't; it's a hacked up uboot. Sigh. > > > > Anyway - Just look at the board config file (a .c file) in openwrt for > > the ap96. > > > > > > > > -adrian > > > > > > 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 > > p.s. current dmesg with USB attach working > http://people.freebsd.org/~sbruno/dir_825_dmesg.txt >