Date: Thu, 22 Aug 2013 22:57:07 -0700 From: Sean Bruno <sean_bruno@yahoo.com> To: freebsd-embedded <freebsd-embedded@freebsd.org> Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs PATCH] Message-ID: <1377237427.2364.35.camel@localhost> In-Reply-To: <1377105408.1492.12.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>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-CM1QDsKN4BzgIgKMn7kx Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > 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 >=20 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 --=-CM1QDsKN4BzgIgKMn7kx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (FreeBSD) iQEcBAABAgAGBQJSFvmvAAoJEBkJRdwI6BaH7uQH/1D5tvBRG2n4TT4wI1uZ1Vz1 B0ApSk8cc9XjtrenafTOmwPNyqzK5MSvkLxGg/3PbEjR80Ltl1ixlD0QzdkLtKxu iSBP4rZ+9/heXdCR6Vi9vukVrtd5vbdQkZBk+xjL0ixmSn2fTakNOeKHDtXR33WH Ze8bWv624yHp+0MHkGSS+w3xhiZsKPdK95vEJLrcCGhp7Ef1iaYOEd7Es7xYAh6G JDxg4gejyfU0r4kzKls6b+PhaB9Y8HA9k6exotiY27fxJNGv7M9Asv5a+hjVzsXC cNunjv+L7lAZTYcT427ByHPnSAWhQ9JpDTCB6ulqmDNi6H0YXE5LMgMOxmHxeQk= =mGoq -----END PGP SIGNATURE----- --=-CM1QDsKN4BzgIgKMn7kx--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1377237427.2364.35.camel>