Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs PATCH]
Adrian Chadd
adrian at freebsd.org
Fri Aug 23 07:20:35 UTC 2013
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 at 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
>
More information about the freebsd-embedded
mailing list