Date: Thu, 22 Aug 2013 00:28:29 -0600 From: Warner Losh <imp@bsdimp.com> To: Adrian Chadd <adrian@freebsd.org> Cc: freebsd-embedded <freebsd-embedded@freebsd.org> Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs] Message-ID: <8BBEDE9B-26A6-41B0-B35E-2481A62E0874@bsdimp.com> In-Reply-To: <CAJ-Vmo=zUfUJuEDRjpwjaZruXEh7cQnqYHUefFuDwBgs3WZE%2BA@mail.gmail.com> References: <1374340359.1421.3.camel@localhost> <1376795552.1460.120.camel@localhost> <CAJ-VmonZhdJkqu6Z1DijV7pmK-dKAaTJ-c2dET57geBP_XUQ-A@mail.gmail.com> <CAJ-VmomwW8JChs-6EsKStGfXGw%2Bq-QbY_fwn7JRxfy_2QgsUCg@mail.gmail.com> <1376845978.1460.126.camel@localhost> <CAJ-Vmom3qy9G_YwL2Xbq=WPsTf8njOdgKyWXkSMEAm7mPo_VWQ@mail.gmail.com> <1377105408.1492.12.camel@localhost> <CAJ-Vmo=zUfUJuEDRjpwjaZruXEh7cQnqYHUefFuDwBgs3WZE%2BA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, > > 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 <sean_bruno@yahoo.com> 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 >> > _______________________________________________ > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8BBEDE9B-26A6-41B0-B35E-2481A62E0874>
