From owner-freebsd-embedded@FreeBSD.ORG Tue Sep 3 20:20:50 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 E2A1672E for ; Tue, 3 Sep 2013 20:20:50 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id 9F99B264F for ; Tue, 3 Sep 2013 20:20:50 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id AEF751CC59; Tue, 3 Sep 2013 17:20:33 -0300 (BRT) Received: from 187.61.251.141 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Tue, 3 Sep 2013 17:20:33 -0300 Message-ID: <2e3a4dad87a8059a3bb9299007ed366b.squirrel@arroway.org> In-Reply-To: References: <1374340359.1421.3.camel@localhost> <1376795552.1460.120.camel@localhost> <1376845978.1460.126.camel@localhost> <1377105408.1492.12.camel@localhost> <1377237427.2364.35.camel@localhost> Date: Tue, 3 Sep 2013 17:20:33 -0300 Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs PATCH] From: "Nenhum_de_Nos" To: freebsd-embedded@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2013 20:20:50 -0000 On Fri, August 23, 2013 04:20, Adrian Chadd wrote: > hah! cute. > > Yeah, for now let's just commit this. We can tidy it up in a later pass. Adrian, is this already commited ? I don't get the ath[0,1] in here. is there any way to have sshd in it ? att, matheus # dmesg KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2013 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #0 r254983: Wed Aug 28 15:44:20 BRT 2013 root@dev:/root/work/freebsd/head/obj/mipseb/mips.mips/root/work/freebsd/head/src/sys/DIR-825 mips gcc version 4.2.1 20070831 patched [FreeBSD] WARNING: WITNESS option enabled, expect reduced performance. MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: MEMGUARD map base: 0xc0800000 MEMGUARD map size: 104860 KBytes real memory = 67108864 (65536K bytes) avail memory = 59285504 (56MB) nexus0: clock0: on nexus0 Timecounter "MIPS32" frequency 340000000 Hz quality 800 Event timer "MIPS32" frequency 340000000 Hz quality 800 apb0 at irq 4 on nexus0 uart0: <16550 or compatible> on apb0 uart0: console (115200,n,8,1) pcib0 at irq 0 on nexus0 pcib0: ar71xx_pci_attach: missing hint 'baseslot', default to AR71XX_PCI_BASE_SLOT pcib0: found EEPROM at 0x1f661000 on 0.17.0 pcib0: EEPROM firmware: 0x1f661000 @ 4096 bytes pcib0: device EEPROM 'pcib.0.bus.0.17.0.eeprom_firmware' registered pcib0: found EEPROM at 0x1f665000 on 0.18.0 pcib0: EEPROM firmware: 0x1f665000 @ 4096 bytes pcib0: device EEPROM 'pcib.0.bus.0.18.0.eeprom_firmware' registered pci0: on pcib0 pci0: at device 17.0 (no driver attached) pci0: at device 18.0 (no driver attached) arge0: at mem 0x19000000-0x19000fff irq 2 on nexus0 arge0: Overriding MAC from EEPROM arge0: Vendor stores MAC in ASCII format arge0: finishing attachment, phymask 0000, proxy null arge0: Ethernet address: xx arge1: at mem 0x1a000000-0x1a000fff irq 3 on nexus0 arge1: Overriding MAC from EEPROM arge1: Vendor stores MAC in ASCII format arge1: finishing attachment, phymask 0000, proxy null arge1: Ethernet address: xx spi0: at mem 0x1f000000-0x1f00000f on nexus0 spibus0: on spi0 mx25l0: at cs 0 on spibus0 mx25l0: m25p64, sector 65536 bytes, 128 sectors ar71xx_wdog0: on nexus0 Timecounters tick every 1.000 msec map/rootfs.uncompress: GEOM_ULZMA image found map/rootfs.uncompress: 174 x 131072 blocks WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/map/rootfs.uncompress []... warning: no time-of-day clock registered, system time will not be set accurately random: initialized bridge0: Ethernet address: xx > -adrian > > > > On 22 August 2013 22:57, Sean Bruno 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 >> > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org" > -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style