From owner-freebsd-embedded@FreeBSD.ORG Fri Aug 23 05:57:17 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6CB42C1D for ; Fri, 23 Aug 2013 05:57:17 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm12-vm6.bullet.mail.ne1.yahoo.com (nm12-vm6.bullet.mail.ne1.yahoo.com [98.138.91.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2D1402E66 for ; Fri, 23 Aug 2013 05:57:16 +0000 (UTC) Received: from [98.138.90.53] by nm12.bullet.mail.ne1.yahoo.com with NNFMP; 23 Aug 2013 05:57:08 -0000 Received: from [98.138.226.127] by tm6.bullet.mail.ne1.yahoo.com with NNFMP; 23 Aug 2013 05:57:08 -0000 Received: from [127.0.0.1] by smtp206.mail.ne1.yahoo.com with NNFMP; 23 Aug 2013 05:57:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1377237428; bh=G84WBlJqxq6SU2tIHg5iHja2DEeH9pOcSnhmAPF94tc=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=Aar25/hTCl/AQRGIa2ekm+AIKn2XisNw7HERktXJFP6e3aXh9fTIN+Et8hacLX4OfuXWPPyLO3w5f+i/vdkttjXfTPdDkfyZWFdcuMxFLHdeJea9xE+c0s4H+4fNPXTwmGY4aeBLVcVe1rFvWuTj1yepxemwO9WoMTbTS+LeNXY= X-Yahoo-Newman-Id: 879862.91009.bm@smtp206.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _rRNJWoVM1kc871HyaSYDdcoe2fmF2GqHHB6QV5gVFu0_aw 0mPut5uoq_W3lm_FFRQg4rUFbRomW8WNb.c6YUyb_DaQziNX29yFshxGm_1H .h1bGgqiBmKCMeu2drN1zC5SNcmPwKDyKO6XQIAfuZZ1cLbFN0dR_rsKOaky x6z8kdmSyXLAG5soXXX5WZ9V4VOaWiXJbPbnYe2YpGMxCw2rcpcVxjCgkYXP BZKLGkswdN32babBssLQzHbjFz7lVhqmiQyINHbzsPfrmyef4lI_iiWPB2V9 0Uh6ckIbFOcwHLiIG7WU3.GermLl.5VHjyR6PKgvWJik0N5H9.NPNngRwhJp IJrRgFqPh_9avkXBOOwx_qjE1EVa4GtmVjs9PqyclvB52c4hCDPb7FDFtkH0 YQKm7wdjrqbE7PN0oc4zj5mLfd10SBAAqXi0YbKuQA27R1LFJqPiQo.HFp66 AAafOQqP7KHVbG2dMQVLzv76v8b3hx8FtM1b8upYe_roT0dQA8RJSmQH2AwK p9mg0rKBmCYKN09ferQre.CPekyUD4Bv82J1L4OineFR5eNM2AV7mdHqIav9 Epr53s5VOQYgPjt1iJzKrua4Up7090vWvwsvj2a8HPpo0huTGj76ShjIr5kC EGRBIS_zGwfGvzHJ1SWQ1Ri3fqirjoy0- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.1.228] (sean_bruno@71.202.40.63 with ) by smtp206.mail.ne1.yahoo.com with SMTP; 22 Aug 2013 22:57:08 -0700 PDT Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs PATCH] From: Sean Bruno To: freebsd-embedded In-Reply-To: <1377105408.1492.12.camel@localhost> References: <1374340359.1421.3.camel@localhost> <1376795552.1460.120.camel@localhost> <1376845978.1460.126.camel@localhost> <1377105408.1492.12.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-CM1QDsKN4BzgIgKMn7kx" Date: Thu, 22 Aug 2013 22:57:07 -0700 Message-ID: <1377237427.2364.35.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 05:57:17 -0000 --=-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--