From owner-freebsd-embedded@FreeBSD.ORG Thu Aug 22 06:28:39 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 0BCCB696 for ; Thu, 22 Aug 2013 06:28:39 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oa0-f49.google.com (mail-oa0-f49.google.com [209.85.219.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C45322170 for ; Thu, 22 Aug 2013 06:28:38 +0000 (UTC) Received: by mail-oa0-f49.google.com with SMTP id n10so2671911oag.8 for ; Wed, 21 Aug 2013 23:28:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=4lY1FD9T0pgtqJzkLPUEEK3Eg4UvdQCGn2pZsVJvgic=; b=hoxLApKGJ15+w+qcCZbWv+eGgRuJOEZp30szFl66F6tEb0q50Lm8AWJUJmiWf8lnI3 /RZDjCOAii+Tm0oufDF+x+wjBgE8SHSw7mI/LHJcid2zrMLYojl1ISolA4D4S6kgIRiH Z7qEm1K2JT7bHyLhglFBtVZpVibdeqaZPcr2A4IHSgXuonaZf3fZhvZYsZ79IAMleDLx UBiRVApiDWtjnRVluSL063JoymYia0rhiuRO1zCJZZarI+oC6aeLUdD1sUqkGEvFW26t psFsb1Bzt2v0T9vsj5X24FxyBLfd9qufgWkOHQ+1JpbK7DeQjtvpU7yygY+pRuUVqXfd QL6g== X-Gm-Message-State: ALoCoQlb6gT+uOyvvVg1qK957HwYpxsQaB6wmg12/q9VJypzUvMVHaZJay3peIUiX1w98+E0pUKS X-Received: by 10.182.246.232 with SMTP id xz8mr12500416obc.9.1377152912412; Wed, 21 Aug 2013 23:28:32 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id tz10sm16495136obc.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 23:28:31 -0700 (PDT) Sender: Warner Losh Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs] Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Thu, 22 Aug 2013 00:28:29 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <8BBEDE9B-26A6-41B0-B35E-2481A62E0874@bsdimp.com> References: <1374340359.1421.3.camel@localhost> <1376795552.1460.120.camel@localhost> <1376845978.1460.126.camel@localhost> <1377105408.1492.12.camel@localhost> To: Adrian Chadd X-Mailer: Apple Mail (2.1085) 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 06:28:39 -0000 Sure would be a lot simpler if we had FDT for these platforms... Sadly = we don't, but I really like the idea of the machdep code reading this = early in boot... Warner On Aug 21, 2013, at 11:00 PM, Adrian Chadd wrote: > Hi, >=20 > 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. >=20 > 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". >=20 >=20 >=20 > -adrian >=20 >=20 >=20 > On 21 August 2013 10:16, Sean Bruno wrote: >=20 >> On Sun, 2013-08-18 at 12:21 -0700, Adrian Chadd wrote: >>> you won't; it's a hacked up uboot. Sigh. >>>=20 >>> Anyway - Just look at the board config file (a .c file) in openwrt = for >>> the ap96. >>>=20 >>>=20 >>>=20 >>> -adrian >>>=20 >>>=20 >>=20 >> 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" >>=20 >> 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? >>=20 >> Sean >>=20 >> p.s. current dmesg with USB attach working >> http://people.freebsd.org/~sbruno/dir_825_dmesg.txt >>=20 > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to = "freebsd-embedded-unsubscribe@freebsd.org"