Date: Fri, 23 Aug 2013 00:20:33 -0700 From: Adrian Chadd <adrian@freebsd.org> To: Sean Bruno <sbruno@freebsd.org> Cc: freebsd-embedded <freebsd-embedded@freebsd.org> Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs PATCH] Message-ID: <CAJ-VmokrN0vd5Wz%2BJg0D7gDC99Oq1qA-Ga54DiGfv7%2BmQpMjNQ@mail.gmail.com> In-Reply-To: <1377237427.2364.35.camel@localhost> 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> <1377237427.2364.35.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sean_bruno@yahoo.com> 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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokrN0vd5Wz%2BJg0D7gDC99Oq1qA-Ga54DiGfv7%2BmQpMjNQ>