Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs PATCH]

Sean Bruno sean_bruno at yahoo.com
Fri Aug 23 05:57:17 UTC 2013


> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-embedded/attachments/20130822/bc24d839/attachment.sig>


More information about the freebsd-embedded mailing list