From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 2 11:06:42 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 BDC909E for ; Mon, 2 Sep 2013 11:06:42 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AC7C4239B for ; Mon, 2 Sep 2013 11:06:42 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r82B6gPv015973 for ; Mon, 2 Sep 2013 11:06:42 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r82B6g3D015971 for freebsd-embedded@FreeBSD.org; Mon, 2 Sep 2013 11:06:42 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 2 Sep 2013 11:06:42 GMT Message-Id: <201309021106.r82B6g3D015971@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org 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: Mon, 02 Sep 2013 11:06:42 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 2 problems total. From owner-freebsd-embedded@FreeBSD.ORG Tue Sep 3 19:08:37 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4153D638; Tue, 3 Sep 2013 19:08:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4302F2FC1; Tue, 3 Sep 2013 19:08:36 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id B7B46B989; Tue, 3 Sep 2013 15:08:34 -0400 (EDT) From: John Baldwin To: freebsd-embedded@freebsd.org, lev@freebsd.org Subject: Re: Using ttyu2 as Serial console -- how could I specify this to boot and loader? Date: Tue, 3 Sep 2013 14:29:47 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p28; KDE/4.5.5; amd64; ; ) References: <87215828.20130809124922@serebryakov.spb.ru> <1E175195-5A2F-417A-B989-BF7DB66979DA@bsdimp.com> <581843187.20130810134014@serebryakov.spb.ru> In-Reply-To: <581843187.20130810134014@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201309031429.47894.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 03 Sep 2013 15:08:34 -0400 (EDT) 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 19:08:37 -0000 On Saturday, August 10, 2013 5:40:14 am Lev Serebryakov wrote: > Hello, Warner. > You wrote 9 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2013 =D0=B3., 20:2= 7:15: >=20 > WL> You need to set the flags hint on the com port you want to be the=20 console. > For kernel :) And for boot and loader? I found BOOT_COMCONSOLE_PORT build > option in Handbook (thanks to hiren panchasara to point me this) :) You can now do this differently without needing to recompile nor change any hints for the kernel by just putting this in /boot/loader.conf: console=3D"comconsole vidconsole" comconsole_port=3D"0x2f8" This should set a hw.uart.console hint which overrides the old flags on uartX devices to set the kernel's serial console. You can change the speed via 'comconsole_speed=3D115200' or the like as well. =2D-=20 John Baldwin 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 From owner-freebsd-embedded@FreeBSD.ORG Tue Sep 3 20:53:05 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 57D534C1 for ; Tue, 3 Sep 2013 20:53:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [IPv6:2a00:1450:400c:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CCAF428E3 for ; Tue, 3 Sep 2013 20:53:04 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id z12so2690438wgg.34 for ; Tue, 03 Sep 2013 13:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=F2b71qTcnuzrpvd9e8UKXjBr0OB/ZXLuoyWfyrfTwdE=; b=ewE3QriSwEk07+oMZO/U9MAR7eR4tIYEMYIY4tpROJhuzWiK0zTSncUsPWEOS/R82f x5Vb80CUP86YST0Fez861OE3MsfEkN+YGVDAJ0hUfQsVC3Yla0F3IEL1gD9pTfg6qLHC tKJjdr0c8/0OMtyLS1uspktpScvgciLMBH1727vbPafbqaLuaul5W95+T7fWg5H3Wxhh Rh44GPaJsdcM1DnWbQZ+yfvDQR87OkOZI/xW2SxLkmc2alVmv/O5Mm57Eb0kX07Vndi3 f92o0glNLMhsrHMQW3XSBfpLBQnlBL2+fN+7HUjATTWPcBOJZfq+wKQdSSQCBtYzNo9U nrkQ== MIME-Version: 1.0 X-Received: by 10.194.201.202 with SMTP id kc10mr29558032wjc.1.1378241582958; Tue, 03 Sep 2013 13:53:02 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.146.2 with HTTP; Tue, 3 Sep 2013 13:53:02 -0700 (PDT) In-Reply-To: <2e3a4dad87a8059a3bb9299007ed366b.squirrel@arroway.org> 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> <2e3a4dad87a8059a3bb9299007ed366b.squirrel@arroway.org> Date: Tue, 3 Sep 2013 13:53:02 -0700 X-Google-Sender-Auth: kg8EebC5qSkOAuGaAMWF2oGmHjg Message-ID: Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs PATCH] From: Adrian Chadd To: Nenhum_de_Nos Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-embedded@freebsd.org" 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:53:05 -0000 Looks like you haven't kldload'ed wlan, ath, ath_pci -adrian On 3 September 2013 13:20, Nenhum_de_Nos wrote: > > 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 > _______________________________________________ > 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 > " > From owner-freebsd-embedded@FreeBSD.ORG Tue Sep 3 21:59:00 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 75931315 for ; Tue, 3 Sep 2013 21:59:00 +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 1D20F2DC5 for ; Tue, 3 Sep 2013 21:58:59 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id 6EC201CC5B; Tue, 3 Sep 2013 18:58:57 -0300 (BRT) Received: from 187.61.251.141 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Tue, 3 Sep 2013 18:58:57 -0300 Message-ID: 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> <2e3a4dad87a8059a3bb9299007ed366b.squirrel@arroway.org> Date: Tue, 3 Sep 2013 18:58:57 -0300 Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs PATCH] From: "Nenhum_de_Nos" Cc: "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 21:59:00 -0000 On Tue, September 3, 2013 17:53, Adrian Chadd wrote: > Looks like you haven't kldload'ed wlan, ath, ath_pci yes, that was it. how can I change IP address ? is there ? this ath interfaces are ready for regular use ? say, make them the house AP ? thanks, matheus > -adrian > > > On 3 September 2013 13:20, Nenhum_de_Nos wrote: > >> >> 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 >> _______________________________________________ >> 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 From owner-freebsd-embedded@FreeBSD.ORG Tue Sep 3 22:25:35 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 CA7C1B26 for ; Tue, 3 Sep 2013 22:25:35 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm3.bullet.mail.gq1.yahoo.com (nm3.bullet.mail.gq1.yahoo.com [98.136.218.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8BCDD2FD3 for ; Tue, 3 Sep 2013 22:25:35 +0000 (UTC) Received: from [98.137.12.56] by nm3.bullet.mail.gq1.yahoo.com with NNFMP; 03 Sep 2013 22:25:28 -0000 Received: from [208.71.42.194] by tm1.bullet.mail.gq1.yahoo.com with NNFMP; 03 Sep 2013 22:25:28 -0000 Received: from [127.0.0.1] by smtp205.mail.gq1.yahoo.com with NNFMP; 03 Sep 2013 22:25:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378247128; bh=KH0Oms+/NKbK4Qi1o8FIy3/GQ7iKXhmpQ7wfhCo4I1Y=; 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=1RcXVmd/w9Rf8jBA71XKEbnx9RRl3f6OjO8sDf7s2qE8S1ebEZJHtduN8p+bjkX4BsxA9eUj9pfyUYPoV3bxMrZ+g9+5NwsABXutEJTs5rfXtr1l1fKerNA8z9eaHc1Pf1cSVVxPezd6Jb9rzc3fC5i/I3gvbsMs9s9Eb1zwOsc= X-Yahoo-Newman-Id: 871057.42055.bm@smtp205.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: JUd1ngYVM1ncM_FMfT9XulGATKcPRg6lzrcUw2X3AfssBEE M57l.tetGLX6xwOhnMCOQRBqm5XMPLPu2APltKtWdwRj.wypmham7RpzLysC zK_PefUpIYQ7QWo2txIsx7Q.JkpYEJvFY9xoK1TkNpM5BanqFADjTsH1L8X7 JQlq4ZoLZinlXK_u8l.Ofz.rS5jc1yBbkeCqeZa64bB2XPJooWVKDOlQADV_ 5OUV9EBPjifUXgy4xcGKF1u_61F9Be69L8So.X3.Wd28LMwTPvNIotdvBDpf 3R5r80xP2y.KDbHEe2ElDSwuPvy_fShINSKSaxdM3uBk4boeK691_PqcJ2lS CgEdM1z_yZHEVg0DwYfzEQIxZjus4GFCjyim1B8eEb1au3UC1wJNRybTJY09 P61FUzW3GQV3t1Jzv5045aAUO4c9nqVV1_.COCiWJsGIRaqmtW._EYa94rHg NTubxSdMNoJkCOl4Qve4F0hIvqaX1ABbI.sAFrk1Wl.ywamnOcW3WxKgyu.P ldNMpqXP12SW5n5Ab.W2lOUtK5yrXdyN8bu9_VjWdlYL3o5Ic7UcykGpniWz RfowOZLYRzhiWJBvhuXFtbTFXwUpxeqIXu_Flp0rBePaMEzUagHsOv0.MFek _6yIMt7JERyzBFpYTGPQtytfhCQg17JXynlEE X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp205.mail.gq1.yahoo.com with SMTP; 03 Sep 2013 15:25:28 -0700 PDT Subject: Re: Dlink DIR-825 B1 status [updated] [status 3 - MAC addrs PATCH] From: Sean Bruno To: Nenhum_de_Nos 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> <2e3a4dad87a8059a3bb9299007ed366b.squirrel@arroway.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Tqo/Gcm/PJ9igXdIuOhz" Date: Tue, 03 Sep 2013 15:25:27 -0700 Message-ID: <1378247127.2644.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: "freebsd-embedded@freebsd.org" 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: Tue, 03 Sep 2013 22:25:36 -0000 --=-Tqo/Gcm/PJ9igXdIuOhz Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Tue, 2013-09-03 at 18:58 -0300, Nenhum_de_Nos wrote: > yes, that was it. >=20 > how can I change IP address ? is there ? >=20 > this ath interfaces are ready for regular use ? say, make them the > house AP ? >=20 > thanks, >=20 > matheus >=20 >=20 Take a quick look at: http://code.google.com/p/freebsd-wifi-build/wiki/ConfigOverview If you're using Adrian buildsys. Sean --=-Tqo/Gcm/PJ9igXdIuOhz 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) iQEcBAABAgAGBQJSJmHXAAoJEBkJRdwI6BaHIfEH/247qLfbPx6vwpUsGSht8bXH 9bz1Flf7luBU5BYALB5h6FpWwVE+CVEOzqVPFU/PU0cANd70/SKRC8tBlovjg0xD WqiSKvSekTDoDVTOljDEgNF9ewGdbTZzSht1iZPTRCafxWET78WGSWS5wBZ0JScY RZfG7QVO2FarGJDgjRDJ/EP/23qIQWOrUjQrO629HhKHdT7635SrCebXfJ3A8Ggi IpsQOezstiEj5lqgAyg/KQAy1m4Lcaxk1XyE6EWGlFn6h5VadQpKqj6t7qlOHONh lDN4ysfABnSCYSEMbq7VZqdQ+jx7AqfzJtH2woj+4hf9pqGr7YAD2U8ZHC49WNQ= =YRY5 -----END PGP SIGNATURE----- --=-Tqo/Gcm/PJ9igXdIuOhz-- From owner-freebsd-embedded@FreeBSD.ORG Tue Sep 3 23:36:20 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 85C3EB8C for ; Tue, 3 Sep 2013 23:36:20 +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 2D8402576 for ; Tue, 3 Sep 2013 23:36:19 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id 5EC611CC5B; Tue, 3 Sep 2013 20:36:14 -0300 (BRT) Received: from 187.61.251.141 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Tue, 3 Sep 2013 20:36:14 -0300 Message-ID: Date: Tue, 3 Sep 2013 20:36:14 -0300 Subject: Dlink DIR-825 B1 trial 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 23:36:20 -0000 hail, just splitting that thread. I git it to work, and when ath was on, that got on my screen. is this known ? att, matheus Starting kernel ... CPU platform: Atheros AR7161 rev 2 CPU Frequency=680 MHz CPU DDR Frequency=340 MHz CPU AHB Frequency=170 MHz platform frequency: 680000000 CPU reference clock: 40 MHz arguments: a0 = 00000007 a1 = a3f7bfb0 a2 = a3f7c460 a3 = 00000008 Cmd line:argv is invalid Environment: envp is invalid Cache info: picache_stride = 4096 picache_loopcount = 16 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v116.147 MMU: Standard TLB, 16 entries L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=0x9ee3519e Config3=0x20 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) random device not loaded; using insecure entropy 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: 84:c9:b2:5c:c6:bc 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: 84:c9:b2:5c:c6:be 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 Aug 29 02:31:15 init: login_getclass: unknown class 'daemon' *** Populating /var .. *** Loading configuration files .. *** Restoring from /dev/map/cfg .. 1+0 records in 1+0 records out 65536 bytes transferred in 4.150455 secs (15790 bytes/sec) gunzip: (stdin): trailing garbage ignored etc/cfg/manifest etc/master.passwd etc/group etc/cfg/rc.conf etc/cfg/hostapd.wlan0.conf etc/cfg/hostapd.wlan1.conf 10 blocks *** Completed. *** setting up hostname *** Load kernel modules random: initialized ath0: irq 0 at device 17.0 on pci0 ath0: ath_pci_attach: EEPROM firmware @ 0xc6ecb000 ath0: [HT] enabling HT modes ath0: [HT] 1 stream STBC receive enabled ath0: [HT] 1 stream STBC transmit enabled ath0: [HT] 2 RX streams; 2 TX streams ath0: AR9220 mac 128.2 RF5133 phy 13.0 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 ath1: irq 1 at device 18.0 on pci0 ath1: ath_pci_attach: EEPROM firmware @ 0xc6ece000 [ath] enabling AN_TOP2_FIXUP ath1: [HT] enabling HT modes ath1: [HT] 1 stream STBC receive enabled ath1: [HT] 1 stream STBC transmit enabled ath1: [HT] 2 RX streams; 2 TX streams ath1: AR9220 mac 128.2 RF5133 phy 13.0 ath1: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 *** bringing up loopback .. *** Starting networking via /etc/rc.d/base/net dev.ath.0.txq_mcastq_maxdepth: 512 -> 32 dev.ath.1.txq_mcastq_maxdepth: 512 -> 32 *** Interface: arge0: start *** Interface: arge0: done *** Interface: wlan0: start wlan0: Ethernet address: 20:11:91:53:59:44 ifconfig: unknown/undefined channel number 36 flags 0x0 *** Starting hostapd.. Configuration file: /etc/cfg/hostapd.wlan0.conf Using interface wlan0 with hwaddr 20:11:91:53:59:44 and ssid "WLAN-TT_" ieee80211_load_module: load the wlan_tkip module by hand for now. ioctl[SIOCS80211, op=19, val=0, arg_len=64]: Device not configured ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 *** Interface: wlan0: done ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 *** Interface: wlan1: start wlan1: Ethernet address: 59:44:91:53:20:11 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ifconfig: unknown/undefined channel number 6 flags 0x480 *** Starting hostapd.. ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 Configuration file: /etc/cfg/hostapd.wlan1.conf Using interface wlan1 with hwaddr 59:44:91:53:20:11 and ssid "WLAN-T_" [zone: mbuf_cluster] kern.ipc.nmbclusters limit reached ieee80211_load_module: load the wlan_ccmp module by hand for now. ioctl[SIOCS80211, op=19, val=0, arg_len=64]: Device not configured ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 *** Interface: wlan1: done ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 *** Interface: bridge0: start ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 bridge0: Ethernet address: 7e:5b:05:9f:59:79 wlan0: promiscuous mode enabled bridge0: link state changed to UP ar5416StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 wlan1: start 60 second CAC timer on channel 52 (5260 MHz) wlan1: promiscuous mode enabled arge0: promiscuous mode enabled *** Interface: bridge0: done *** Default password/login databases .. *** inetd *** Done! FreeBSD/mips (freebsd-wifi-build) (ttyu0) login: wlan1: CAC timer on channel 52 (5260 MHz) expired; no radar detected wlan1: ieee80211_new_state_locked: pending CAC -> RUN transition lost lock order reversal: (sleepable after non-sleepable) 1st 0xc70a3014 ath1_com_lock (ath1_com_lock) @ /root/work/freebsd/head/src/sys/modules/wlan/../../net80211/ieee80211_scan.c:686 2nd 0x8036dff8 user map (user map) @ /root/work/freebsd/head/src/sys/vm/vm_glue.c:168 KDB: stack backtrace: db_trace_thread+30 (?,?,?,?) ra c836189000000018 sp 0 sz 0 db_trace_self+1c (?,?,?,?) ra c83618a800000018 sp 0 sz 0 8007ad18+34 (?,?,?,?) ra c83618c0000001a0 sp 0 sz 0 kdb_backtrace+44 (?,?,?,?) ra c8361a6000000018 sp 0 sz 0 801704b8+34 (?,?,?,?) ra c8361a7800000020 sp 0 sz 0 witness_checkorder+b0c (?,?,802f97d4,a8) ra c8361a9800000050 sp 0 sz 1 _sx_slock+c0 (?,?,?,?) ra c8361ae800000030 sp 0 sz 0 _vm_map_lock_read+40 (?,?,?,?) ra c8361b1800000018 sp 0 sz 0 useracc+80 (?,?,?,?) ra c8361b3000000028 sp 0 sz 0 802a7dc4+dc (?,?,?,?) ra c8361b5800000040 sp 0 sz 0 trap+e6c (?,?,?,?) ra c8361b98000000b8 sp 0 sz 0 MipsKernGenException+134 (ffff,9,806089b0,0) ra c8361c50000000c8 sp 100000001 sz 1 hostap_newstate+358 (?,?,?,?) ra c8361d1800000038 sp 0 sz 0 ath_newstate+2c0 (?,?,?,?) ra c8361d5000000058 sp 0 sz 0 ieee80211_newstate_cb+20c (?,?,?,?) ra c8361da800000040 sp 0 sz 0 801630c8+e8 (?,?,?,?) ra c8361de800000038 sp 0 sz 0 taskqueue_thread_loop+8c (?,?,?,?) ra c8361e2000000038 sp 0 sz 0 fork_exit+b0 (?,?,?,?) ra c8361e5800000028 sp 0 sz 0 fork_trampoline+10 (?,?,?,?) ra c8361e8000000000 sp 0 sz 0 pid 0 Trap cause = 4 (address error (load or I-fetch) - kernel mode) [ thread pid 0 tid 100043 ] Stopped at hostap_newstate+0x358: lw v0,0(a0) db> -- 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 From owner-freebsd-embedded@FreeBSD.ORG Wed Sep 4 17:37:52 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A0625F71 for ; Wed, 4 Sep 2013 17:37:52 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm26-vm9.bullet.mail.gq1.yahoo.com (nm26-vm9.bullet.mail.gq1.yahoo.com [98.136.216.136]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4758F2649 for ; Wed, 4 Sep 2013 17:37:51 +0000 (UTC) Received: from [216.39.60.182] by nm26.bullet.mail.gq1.yahoo.com with NNFMP; 04 Sep 2013 17:34:44 -0000 Received: from [208.71.42.192] by tm18.bullet.mail.gq1.yahoo.com with NNFMP; 04 Sep 2013 17:34:44 -0000 Received: from [127.0.0.1] by smtp203.mail.gq1.yahoo.com with NNFMP; 04 Sep 2013 17:34:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378316084; bh=OeA+DXyKxUj2BmX3L8Nx8yWfhcrLXtg6BbfPCXvS+uI=; 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=h4vcY2J9bvtDK21dCmBqlQaXY4bXrxoQGaCOfskdkcDSlBpxtXbXx3F3EeCXh7UO4JXXb6j9pi28E6h7toYUIGP8BU7EAVShX43K/Q43XSCfMYV0EBAQ19A1FOFmN9eMPK1TfDkriFvPOp/zPAotIuoiMgdeZkBENy1uLgUXDs0= X-Yahoo-Newman-Id: 573480.8835.bm@smtp203.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: h3gdXJAVM1kIqRjckjlNGtI3x3HXDIihJ879w0FYXLyyWDp SGTAI0VHv6GPdG91x7aKfZh8.X0zTGHzCR3oRkS6IMBTNXtPlC.ScI4VRVA8 sxXf05Jl6KglodMFsyYrBcMn4poMmn0OV07QjWf03hRKajRaS9_pvHR2AV5g ubMp4VVJfXAb3TK5VVWgwuD_euKfUPeDbgAfqwFh9eMQQaSWWr9eXwufvaIq Dxfz_38WI0V9IQB.8r7MhZ_qDinRtEKZ38o3HUosSwlm5wBKGANSmBOte5Bg bOEbs6UIWnXonPLlriGq.CjzQ3Phz.jzAm2L59hGfgzF6aiyAcW1.zveSUXo bHDoYZMrWj9zeyfAkZTrnwChukyFuq0ZsNMiwUIydiUBjfM6lYI_zjIVEPsI 3g87NmtOw6WUhcN.7xE7E3JVUbsorl3LYjFq0q3X0taDg7fWyZLEHrilJSic j2mpSoUQXWJg4CG_hzOfiWkfdg3jTqis5twqBTwmHfSDqhLrVuaAdmhJkzUT sdsv1Qgr812G8jnFJLmHV3IBqj9lnugi.Y_GiXbe5HNczfrYzYznExH8WFIO CoaSR4aRtXveCEsSrtoatjys6ztLtbWLG X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp203.mail.gq1.yahoo.com with SMTP; 04 Sep 2013 10:34:44 -0700 PDT Subject: Re: Dlink DIR-825 B1 trial From: Sean Bruno To: Nenhum_de_Nos In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-oLevGopLFAyavK3E+dKy" Date: Wed, 04 Sep 2013 10:34:43 -0700 Message-ID: <1378316083.1706.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-embedded@freebsd.org 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: Wed, 04 Sep 2013 17:37:52 -0000 --=-oLevGopLFAyavK3E+dKy Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Tue, 2013-09-03 at 20:36 -0300, Nenhum_de_Nos wrote: > hail, >=20 > just splitting that thread. I git it to work, and when ath was on, that g= ot on my screen. >=20 > is this known ? >=20 > att, >=20 > matheus >=20 No, I don't see this on mine. Let me fire up it up and see what I get. sean > Starting kernel ... >=20 > CPU platform: Atheros AR7161 rev 2 > CPU Frequency=3D680 MHz > CPU DDR Frequency=3D340 MHz > CPU AHB Frequency=3D170 MHz > platform frequency: 680000000 > CPU reference clock: 40 MHz > arguments: > a0 =3D 00000007 > a1 =3D a3f7bfb0 > a2 =3D a3f7c460 > a3 =3D 00000008 > Cmd line:argv is invalid > Environment: > envp is invalid > Cache info: > picache_stride =3D 4096 > picache_loopcount =3D 16 > pdcache_stride =3D 4096 > pdcache_loopcount =3D 8 > cpu0: MIPS Technologies processor v116.147 > MMU: Standard TLB, 16 entries > L1 i-cache: 4 ways of 512 sets, 32 bytes per line > L1 d-cache: 4 ways of 256 sets, 32 bytes per line > Config1=3D0x9ee3519e > Config3=3D0x20 > 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/freeb= sd/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 =3D 67108864 (65536K bytes) > avail memory =3D 59285504 (56MB) > random device not loaded; using insecure entropy > 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-0x1= 9000fff 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: 84:c9:b2:5c:c6:bc > arge1: at mem 0x1a000000-0x1= a000fff 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: 84:c9:b2:5c:c6:be > 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 acc= urately > Aug 29 02:31:15 init: login_getclass: unknown class 'daemon' > *** Populating /var .. > *** Loading configuration files .. > *** Restoring from /dev/map/cfg .. > 1+0 records in > 1+0 records out > 65536 bytes transferred in 4.150455 secs (15790 bytes/sec) > gunzip: (stdin): trailing garbage ignored > etc/cfg/manifest > etc/master.passwd > etc/group > etc/cfg/rc.conf > etc/cfg/hostapd.wlan0.conf > etc/cfg/hostapd.wlan1.conf > 10 blocks > *** Completed. > *** setting up hostname > *** Load kernel modules > random: initialized > ath0: irq 0 at device 17.0 on pci0 > ath0: ath_pci_attach: EEPROM firmware @ 0xc6ecb000 > ath0: [HT] enabling HT modes > ath0: [HT] 1 stream STBC receive enabled > ath0: [HT] 1 stream STBC transmit enabled > ath0: [HT] 2 RX streams; 2 TX streams > ath0: AR9220 mac 128.2 RF5133 phy 13.0 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > ath1: irq 1 at device 18.0 on pci0 > ath1: ath_pci_attach: EEPROM firmware @ 0xc6ece000 > [ath] enabling AN_TOP2_FIXUP > ath1: [HT] enabling HT modes > ath1: [HT] 1 stream STBC receive enabled > ath1: [HT] 1 stream STBC transmit enabled > ath1: [HT] 2 RX streams; 2 TX streams > ath1: AR9220 mac 128.2 RF5133 phy 13.0 > ath1: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > *** bringing up loopback .. > *** Starting networking via /etc/rc.d/base/net > dev.ath.0.txq_mcastq_maxdepth: 512 -> 32 > dev.ath.1.txq_mcastq_maxdepth: 512 -> 32 > *** Interface: arge0: start > *** Interface: arge0: done > *** Interface: wlan0: start > wlan0: Ethernet address: 20:11:91:53:59:44 > ifconfig: unknown/undefined channel number 36 flags 0x0 > *** Starting hostapd.. > Configuration file: /etc/cfg/hostapd.wlan0.conf > Using interface wlan0 with hwaddr 20:11:91:53:59:44 and ssid "WLAN-TT_" > ieee80211_load_module: load the wlan_tkip module by hand for now. > ioctl[SIOCS80211, op=3D19, val=3D0, arg_len=3D64]: Device not configured > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > *** Interface: wlan0: done > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > *** Interface: wlan1: start > wlan1: Ethernet address: 59:44:91:53:20:11 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ifconfig: unknown/undefined channel number 6 flags 0x480 > *** Starting hostapd.. > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > Configuration file: /etc/cfg/hostapd.wlan1.conf > Using interface wlan1 with hwaddr 59:44:91:53:20:11 and ssid "WLAN-T_" > [zone: mbuf_cluster] kern.ipc.nmbclusters limit reached > ieee80211_load_module: load the wlan_ccmp module by hand for now. > ioctl[SIOCS80211, op=3D19, val=3D0, arg_len=3D64]: Device not configured > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > *** Interface: wlan1: done > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > *** Interface: bridge0: start > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > bridge0: Ethernet address: 7e:5b:05:9f:59:79 > wlan0: promiscuous mode enabled > bridge0: link state changed to UP > ar5416StopDmaReceive: dma failed to stop in 10ms > AR_CR=3D0x00000024 > AR_DIAG_SW=3D0x42000020 > wlan1: start 60 second CAC timer on channel 52 (5260 MHz) > wlan1: promiscuous mode enabled > arge0: promiscuous mode enabled > *** Interface: bridge0: done > *** Default password/login databases .. > *** inetd > *** Done! >=20 > FreeBSD/mips (freebsd-wifi-build) (ttyu0) >=20 > login: wlan1: CAC timer on channel 52 (5260 MHz) expired; no radar detect= ed > wlan1: ieee80211_new_state_locked: pending CAC -> RUN transition lost > lock order reversal: (sleepable after non-sleepable) > 1st 0xc70a3014 ath1_com_lock (ath1_com_lock) @ > /root/work/freebsd/head/src/sys/modules/wlan/../../net80211/ieee80211_sca= n.c:686 > 2nd 0x8036dff8 user map (user map) @ /root/work/freebsd/head/src/sys/vm/= vm_glue.c:168 > KDB: stack backtrace: > db_trace_thread+30 (?,?,?,?) ra c836189000000018 sp 0 sz 0 > db_trace_self+1c (?,?,?,?) ra c83618a800000018 sp 0 sz 0 > 8007ad18+34 (?,?,?,?) ra c83618c0000001a0 sp 0 sz 0 > kdb_backtrace+44 (?,?,?,?) ra c8361a6000000018 sp 0 sz 0 > 801704b8+34 (?,?,?,?) ra c8361a7800000020 sp 0 sz 0 > witness_checkorder+b0c (?,?,802f97d4,a8) ra c8361a9800000050 sp 0 sz 1 > _sx_slock+c0 (?,?,?,?) ra c8361ae800000030 sp 0 sz 0 > _vm_map_lock_read+40 (?,?,?,?) ra c8361b1800000018 sp 0 sz 0 > useracc+80 (?,?,?,?) ra c8361b3000000028 sp 0 sz 0 > 802a7dc4+dc (?,?,?,?) ra c8361b5800000040 sp 0 sz 0 > trap+e6c (?,?,?,?) ra c8361b98000000b8 sp 0 sz 0 > MipsKernGenException+134 (ffff,9,806089b0,0) ra c8361c50000000c8 sp 10000= 0001 sz 1 > hostap_newstate+358 (?,?,?,?) ra c8361d1800000038 sp 0 sz 0 > ath_newstate+2c0 (?,?,?,?) ra c8361d5000000058 sp 0 sz 0 > ieee80211_newstate_cb+20c (?,?,?,?) ra c8361da800000040 sp 0 sz 0 > 801630c8+e8 (?,?,?,?) ra c8361de800000038 sp 0 sz 0 > taskqueue_thread_loop+8c (?,?,?,?) ra c8361e2000000038 sp 0 sz 0 > fork_exit+b0 (?,?,?,?) ra c8361e5800000028 sp 0 sz 0 > fork_trampoline+10 (?,?,?,?) ra c8361e8000000000 sp 0 sz 0 > pid 0 > Trap cause =3D 4 (address error (load or I-fetch) - kernel mode) > [ thread pid 0 tid 100043 ] > Stopped at hostap_newstate+0x358: lw v0,0(a0) > db> >=20 >=20 --=-oLevGopLFAyavK3E+dKy 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) iQEcBAABAgAGBQJSJ28wAAoJEBkJRdwI6BaHHDIH/R3+SMofQux5o3o4YYjgxuDh DnR0vd6/t2gH93Svi4VR/wwrAwTjg05GkTzXgWrBSsX1y+7Lepv8xNt65AhMgw1/ ULtR8ExcFsF2W4UcybtV0g4kcKLxZ3qucJrlbbCVl23Yxh7ysp3erLzs8uLrVvIH 3wcWMPfCJTt/CxCe2CCbpCqEWM6zMsYPc0MMdIvM4PwOWbvlXzrYCSKFxzgPwwKa uTwZVf+fs7pEbeUpVqN0V2iL2ur9HTf4i9C9x0nlGJxMXN8XEnDcFIFbqoSou0hn 9zCAaz7K0ndCJPAzXjs4yZaCIBfb9nwNuxna7KUXII51hsw0e0DFuNRipUTWYj8= =QY9o -----END PGP SIGNATURE----- --=-oLevGopLFAyavK3E+dKy-- From owner-freebsd-embedded@FreeBSD.ORG Wed Sep 4 20:02:40 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 8493ACD9 for ; Wed, 4 Sep 2013 20:02:40 +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 3456A2189 for ; Wed, 4 Sep 2013 20:02:40 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id F26621CC59; Wed, 4 Sep 2013 17:02:28 -0300 (BRT) Received: from 200.164.157.132 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Wed, 4 Sep 2013 17:02:28 -0300 Message-ID: <9165aa958e7dc206da3515146181c14b.squirrel@arroway.org> In-Reply-To: <1378316083.1706.0.camel@localhost> References: <1378316083.1706.0.camel@localhost> Date: Wed, 4 Sep 2013 17:02:28 -0300 Subject: Re: Dlink DIR-825 B1 trial From: "Nenhum_de_Nos" Cc: 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: Wed, 04 Sep 2013 20:02:40 -0000 On Wed, September 4, 2013 14:34, Sean Bruno wrote: > On Tue, 2013-09-03 at 20:36 -0300, Nenhum_de_Nos wrote: >> hail, >> >> just splitting that thread. I git it to work, and when ath was on, that got on my screen. >> >> is this known ? >> >> att, >> >> matheus >> > No, I don't see this on mine. Let me fire up it up and see what I get. > > sean for that to happen, I must use the hostapd config you sent the link (wiki, examples) turned on. without, no issue at all. thanks, matheus >> Starting kernel ... >> >> CPU platform: Atheros AR7161 rev 2 >> CPU Frequency=680 MHz >> CPU DDR Frequency=340 MHz >> CPU AHB Frequency=170 MHz >> platform frequency: 680000000 >> CPU reference clock: 40 MHz >> arguments: >> a0 = 00000007 >> a1 = a3f7bfb0 >> a2 = a3f7c460 >> a3 = 00000008 >> Cmd line:argv is invalid >> Environment: >> envp is invalid >> Cache info: >> picache_stride = 4096 >> picache_loopcount = 16 >> pdcache_stride = 4096 >> pdcache_loopcount = 8 >> cpu0: MIPS Technologies processor v116.147 >> MMU: Standard TLB, 16 entries >> L1 i-cache: 4 ways of 512 sets, 32 bytes per line >> L1 d-cache: 4 ways of 256 sets, 32 bytes per line >> Config1=0x9ee3519e >> Config3=0x20 >> 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) >> random device not loaded; using insecure entropy >> 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: 84:c9:b2:5c:c6:bc >> 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: 84:c9:b2:5c:c6:be >> 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 >> Aug 29 02:31:15 init: login_getclass: unknown class 'daemon' >> *** Populating /var .. >> *** Loading configuration files .. >> *** Restoring from /dev/map/cfg .. >> 1+0 records in >> 1+0 records out >> 65536 bytes transferred in 4.150455 secs (15790 bytes/sec) >> gunzip: (stdin): trailing garbage ignored >> etc/cfg/manifest >> etc/master.passwd >> etc/group >> etc/cfg/rc.conf >> etc/cfg/hostapd.wlan0.conf >> etc/cfg/hostapd.wlan1.conf >> 10 blocks >> *** Completed. >> *** setting up hostname >> *** Load kernel modules >> random: initialized >> ath0: irq 0 at device 17.0 on pci0 >> ath0: ath_pci_attach: EEPROM firmware @ 0xc6ecb000 >> ath0: [HT] enabling HT modes >> ath0: [HT] 1 stream STBC receive enabled >> ath0: [HT] 1 stream STBC transmit enabled >> ath0: [HT] 2 RX streams; 2 TX streams >> ath0: AR9220 mac 128.2 RF5133 phy 13.0 >> ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 >> ath1: irq 1 at device 18.0 on pci0 >> ath1: ath_pci_attach: EEPROM firmware @ 0xc6ece000 >> [ath] enabling AN_TOP2_FIXUP >> ath1: [HT] enabling HT modes >> ath1: [HT] 1 stream STBC receive enabled >> ath1: [HT] 1 stream STBC transmit enabled >> ath1: [HT] 2 RX streams; 2 TX streams >> ath1: AR9220 mac 128.2 RF5133 phy 13.0 >> ath1: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 >> *** bringing up loopback .. >> *** Starting networking via /etc/rc.d/base/net >> dev.ath.0.txq_mcastq_maxdepth: 512 -> 32 >> dev.ath.1.txq_mcastq_maxdepth: 512 -> 32 >> *** Interface: arge0: start >> *** Interface: arge0: done >> *** Interface: wlan0: start >> wlan0: Ethernet address: 20:11:91:53:59:44 >> ifconfig: unknown/undefined channel number 36 flags 0x0 >> *** Starting hostapd.. >> Configuration file: /etc/cfg/hostapd.wlan0.conf >> Using interface wlan0 with hwaddr 20:11:91:53:59:44 and ssid "WLAN-TT_" >> ieee80211_load_module: load the wlan_tkip module by hand for now. >> ioctl[SIOCS80211, op=19, val=0, arg_len=64]: Device not configured >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> *** Interface: wlan0: done >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> *** Interface: wlan1: start >> wlan1: Ethernet address: 59:44:91:53:20:11 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ifconfig: unknown/undefined channel number 6 flags 0x480 >> *** Starting hostapd.. >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> Configuration file: /etc/cfg/hostapd.wlan1.conf >> Using interface wlan1 with hwaddr 59:44:91:53:20:11 and ssid "WLAN-T_" >> [zone: mbuf_cluster] kern.ipc.nmbclusters limit reached >> ieee80211_load_module: load the wlan_ccmp module by hand for now. >> ioctl[SIOCS80211, op=19, val=0, arg_len=64]: Device not configured >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> *** Interface: wlan1: done >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> *** Interface: bridge0: start >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> bridge0: Ethernet address: 7e:5b:05:9f:59:79 >> wlan0: promiscuous mode enabled >> bridge0: link state changed to UP >> ar5416StopDmaReceive: dma failed to stop in 10ms >> AR_CR=0x00000024 >> AR_DIAG_SW=0x42000020 >> wlan1: start 60 second CAC timer on channel 52 (5260 MHz) >> wlan1: promiscuous mode enabled >> arge0: promiscuous mode enabled >> *** Interface: bridge0: done >> *** Default password/login databases .. >> *** inetd >> *** Done! >> >> FreeBSD/mips (freebsd-wifi-build) (ttyu0) >> >> login: wlan1: CAC timer on channel 52 (5260 MHz) expired; no radar detected >> wlan1: ieee80211_new_state_locked: pending CAC -> RUN transition lost >> lock order reversal: (sleepable after non-sleepable) >> 1st 0xc70a3014 ath1_com_lock (ath1_com_lock) @ >> /root/work/freebsd/head/src/sys/modules/wlan/../../net80211/ieee80211_scan.c:686 >> 2nd 0x8036dff8 user map (user map) @ /root/work/freebsd/head/src/sys/vm/vm_glue.c:168 >> KDB: stack backtrace: >> db_trace_thread+30 (?,?,?,?) ra c836189000000018 sp 0 sz 0 >> db_trace_self+1c (?,?,?,?) ra c83618a800000018 sp 0 sz 0 >> 8007ad18+34 (?,?,?,?) ra c83618c0000001a0 sp 0 sz 0 >> kdb_backtrace+44 (?,?,?,?) ra c8361a6000000018 sp 0 sz 0 >> 801704b8+34 (?,?,?,?) ra c8361a7800000020 sp 0 sz 0 >> witness_checkorder+b0c (?,?,802f97d4,a8) ra c8361a9800000050 sp 0 sz 1 >> _sx_slock+c0 (?,?,?,?) ra c8361ae800000030 sp 0 sz 0 >> _vm_map_lock_read+40 (?,?,?,?) ra c8361b1800000018 sp 0 sz 0 >> useracc+80 (?,?,?,?) ra c8361b3000000028 sp 0 sz 0 >> 802a7dc4+dc (?,?,?,?) ra c8361b5800000040 sp 0 sz 0 >> trap+e6c (?,?,?,?) ra c8361b98000000b8 sp 0 sz 0 >> MipsKernGenException+134 (ffff,9,806089b0,0) ra c8361c50000000c8 sp 100000001 sz 1 >> hostap_newstate+358 (?,?,?,?) ra c8361d1800000038 sp 0 sz 0 >> ath_newstate+2c0 (?,?,?,?) ra c8361d5000000058 sp 0 sz 0 >> ieee80211_newstate_cb+20c (?,?,?,?) ra c8361da800000040 sp 0 sz 0 >> 801630c8+e8 (?,?,?,?) ra c8361de800000038 sp 0 sz 0 >> taskqueue_thread_loop+8c (?,?,?,?) ra c8361e2000000038 sp 0 sz 0 >> fork_exit+b0 (?,?,?,?) ra c8361e5800000028 sp 0 sz 0 >> fork_trampoline+10 (?,?,?,?) ra c8361e8000000000 sp 0 sz 0 >> pid 0 >> Trap cause = 4 (address error (load or I-fetch) - kernel mode) >> [ thread pid 0 tid 100043 ] >> Stopped at hostap_newstate+0x358: lw v0,0(a0) >> db> >> >> > > -- 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 From owner-freebsd-embedded@FreeBSD.ORG Wed Sep 4 20:17:38 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 201EF354 for ; Wed, 4 Sep 2013 20:17:38 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm32-vm4.bullet.mail.gq1.yahoo.com (nm32-vm4.bullet.mail.gq1.yahoo.com [98.136.216.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D8F712261 for ; Wed, 4 Sep 2013 20:17:36 +0000 (UTC) Received: from [98.137.12.63] by nm32.bullet.mail.gq1.yahoo.com with NNFMP; 04 Sep 2013 20:17:30 -0000 Received: from [98.136.164.75] by tm8.bullet.mail.gq1.yahoo.com with NNFMP; 04 Sep 2013 20:17:30 -0000 Received: from [127.0.0.1] by smtp237.mail.gq1.yahoo.com with NNFMP; 04 Sep 2013 20:17:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378325850; bh=tCEXbLjEsingR5+B7NioHKJleE58ydXcmpjceas2FQ4=; 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=ZU7w+tPjvX3HyWmaBJOVMMrbQH1ZoH6N3KNKaFuoarUF36MQo+Ywvc15YLVG/HNfanG9IGwYnDHLHvvxBxFblHNUbbCCruWKNzGyhn4KbsA9C/6GsIyhDtpStndbgN1mkMhlqnYOZwDfzZYQnLbeM+ttFxIUZvTmTg+GLvl4zys= X-Yahoo-Newman-Id: 58729.42058.bm@smtp237.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: EKeAKLUVM1kY5gC34Ao73ZT9K_UICYg5hFUDCn17eIXxf5f ZpIuvzPwRrUXQt1MXcTIIdVtC3kA90fJVc5YWXV1AyKFxxlhzDf5KXIZt9W. 2dGKtm.YhuvPBfgQzZ4Z6pVkWjzw0iN1.IoKBttiG_0uhZ86aCoU_gq4L5k4 hbnu26JNJ7PUs_3YehzAQ.n6DibQijBuAwusgl9RSUVFl7YVieRpBOzV47Qo DYh.cZXdxUxya7QAcRRYw.mx1k1_X6BMoruOXdT647gqAU_SrtthGndjIVDC ZIOzZMCFfXqJTFC8QS6SaNSaw4fKLoGuPobY_QU4LCAdbP1uwaR8mGD8uI8c VEZCiYe.gx8EnwudrDlUseIlAFlbbS9L4tEQVr35RKP4k2zzJiAsCBQRR8Yn Yzg7cez2N_mdTP8J3clQacYjRUEJueWQ1Un0r.wEiOZWK00fII6wKvGES0Q1 o7f4JBilpCCPooz171fxpcUVAzArHvhYav.BMDCjN3YgtzNq28eO6.2IO0oq RgT8OqmY8bml1DCxvrQrM5BEMsClBlC.9JQ-- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp237.mail.gq1.yahoo.com with SMTP; 04 Sep 2013 20:17:27 +0000 UTC Subject: Re: Dlink DIR-825 B1 trial From: Sean Bruno To: Nenhum_de_Nos In-Reply-To: <9165aa958e7dc206da3515146181c14b.squirrel@arroway.org> References: <1378316083.1706.0.camel@localhost> <9165aa958e7dc206da3515146181c14b.squirrel@arroway.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-hsns0PN35GtDSHFNfR65" Date: Wed, 04 Sep 2013 13:17:26 -0700 Message-ID: <1378325846.1706.2.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-embedded@freebsd.org 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: Wed, 04 Sep 2013 20:17:38 -0000 --=-hsns0PN35GtDSHFNfR65 Content-Type: multipart/mixed; boundary="=-V9dJf/dNhetQxk6A2mpM" --=-V9dJf/dNhetQxk6A2mpM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Wed, 2013-09-04 at 17:02 -0300, Nenhum_de_Nos wrote: > On Wed, September 4, 2013 14:34, Sean Bruno wrote: > > On Tue, 2013-09-03 at 20:36 -0300, Nenhum_de_Nos wrote: > >> hail, > >> > >> just splitting that thread. I git it to work, and when ath was on, tha= t got on my screen. > >> > >> is this known ? > >> > >> att, > >> > >> matheus > >> > > No, I don't see this on mine. Let me fire up it up and see what I get. > > > > sean >=20 > for that to happen, I must use the hostapd config you sent the link (wiki= , examples) turned on. > without, no issue at all. >=20 > thanks, >=20 > matheus i'm using the following hostap.wlan0.conf and rc.conf. Once I configured my router, I did a cfg_save to make sure they don't get overwritten. Sean --=-V9dJf/dNhetQxk6A2mpM Content-Disposition: attachment; filename="hostap.wlan0.conf" Content-Transfer-Encoding: base64 Content-Type: text/plain; name="hostap.wlan0.conf"; charset="us-ascii" aW50ZXJmYWNlPXdsYW4wDQpkcml2ZXI9YnNkDQpzc2lkPVRFU1QNCndwYT0zDQp3cGFfa2V5X21n bXQ9V1BBLVBTSw0Kd3BhX3Bhc3NwaHJhc2U9cGFzc3dvcmQxMjMNCndwYV9wYWlyd2lzZT1DQ01Q IFRLSVANCmN0cmxfaW50ZXJmYWNlPS92YXIvcnVuL2hvc3RhcGQNCg== --=-V9dJf/dNhetQxk6A2mpM Content-Disposition: attachment; filename="rc.conf" Content-Transfer-Encoding: base64 Content-Type: text/plain; name="rc.conf"; charset="us-ascii" IyBTZXQgdGhlIGRlZmF1bHQgc3lzdGVtIGhvc3RuYW1lDQpzeXN0ZW1faG9zdG5hbWU9ImZyZWVi c2Qtd2lmaS1idWlsZCINCg0KIyBNb2R1bGVzIHRvIGxvYWQNCmtlcm5lbF9tb2R1bGVzPSJpZl9h dGhfcGNpIGJyaWRnZXN0cCBpZl9icmlkZ2UgcmFuZG9tIHdsYW5feGF1dGggd2xhbl90a2lwIg0K DQojIFRoZXNlIGludGVyZmFjZXMgYXJlIGNvbmZpZ3VyZWQgaW4tb3JkZXINCm5ldHdvcmtfaW50 ZXJmYWNlcz0iYXJnZTAgd2xhbjAgYnJpZGdlMCINCg0KbmV0aWZfd2xhbjBfZW5hYmxlPSJZRVMi DQpuZXRpZl93bGFuMF90eXBlPSJ3aWZpIg0KbmV0aWZfd2xhbjBfd2lmaV9tb2RlPSJob3N0YXAi DQpuZXRpZl93bGFuMF9kZXNjcj0iZGVmYXVsdCINCm5ldGlmX3dsYW4wX2FkZHJ0eXBlPSJub25l Ig0KbmV0aWZfd2xhbjBfbmFtZT0id2xhbjAiDQpuZXRpZl93bGFuMF93aWZpX3BhcmVudD0iYXRo MCINCm5ldGlmX3dsYW4wX3dpZmlfY3JlYXRlYXJnczE9ImNvdW50cnkgVVMgcmVnZG9tYWluIEZD QzMiDQpuZXRpZl93bGFuMF93aWZpX2NyZWF0ZWFyZ3MyPSJjaGFubmVsIDM2Omh0LzQwIHVwIg0K bmV0aWZfd2xhbjBfd2lmaV9ob3N0YXBkX2VuYWJsZT0ieWVzIg0KbmV0aWZfd2xhbjBfd2lmaV9o b3N0YXBkX2NvbmY9Ii9ldGMvY2ZnL2hvc3RhcGQud2xhbjAuY29uZiINCg0KDQojIENyZWF0ZSBh cmdlMCwgbm8gaW50ZXJmYWNlIGFkZHJlc3MNCm5ldGlmX2FyZ2UwX2VuYWJsZT0iWUVTIg0KbmV0 aWZfYXJnZTBfdHlwZT0iZXRoZXIiDQpuZXRpZl9hcmdlMF9hZGRydHlwZT0ibm9uZSINCm5ldGlm X2FyZ2UwX2Rlc2NyPSJkZWZhdWx0Ig0KbmV0aWZfYXJnZTBfbmFtZT0iYXJnZTAiDQoNCiMgQ3Jl YXRlIGEgYnJpZGdlLCBmbGlwIG9uIGFuIElQdjQgc3RhdGljIGFkZHJlc3MNCm5ldGlmX2JyaWRn ZTBfdHlwZT0iYnJpZGdlIg0KbmV0aWZfYnJpZGdlMF9hZGRydHlwZT0ic3RhdGljIg0KbmV0aWZf YnJpZGdlMF9kZXNjcj0iZGVmYXVsdCINCm5ldGlmX2JyaWRnZTBfbmFtZT0iYnJpZGdlMCINCiMg VGhlc2UgYXJlIGJyaWRnZSBtZW1iZXJzIHcvIFNUUCBlbmFibGVkDQpuZXRpZl9icmlkZ2UwX21l bWJlcnNfc3RwPSJhcmdlMCINCiMgVGhlc2UgYXJlIGJyaWRnZSBtZW1iZXJzIHcvIFNUUCBkaXNh YmxlZA0KbmV0aWZfYnJpZGdlMF9tZW1iZXJzPSIiDQpuZXRpZl9icmlkZ2UwX2lwdjRfYWRkcmVz cz0iMTkyLjE2OC4xMDAuMjAiDQpuZXRpZl9icmlkZ2UwX2lwdjRfbmV0bWFzaz0iMjU1LjI1NS4y NTUuMCINCg== --=-V9dJf/dNhetQxk6A2mpM-- --=-hsns0PN35GtDSHFNfR65 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) iQEcBAABAgAGBQJSJ5VWAAoJEBkJRdwI6BaHCjIH/iq2Ysx5+nVMWpi5i07A6LEy hDpugMf+Bw206fHDkjHWL0VG4JQ/EsRHAG3GFLvh/pwt9NaEArI5IcOJwn/RLGb7 aFxSuNpWmFmnFJLgA15TqEoUR5OOXxhFqdLFN7e1X28+VreT2+bIhySmks9TL5BF KSKvRZ9BM21SHdhQ09pawiTwIcmvIDplJLOk4BxhAvYBTtxld2Cc/iSCaqbInK8A defW5On9r2GbR6Jb9NAj21w19kVnONmG+DQcS+zkmWh7+4fEV1wYSuK7ASkq3s1K diTax9SloQcAA3mpvaHU9oRHwX9Og1dY5/tPjQezVtfu8mqfBW5ji3vwEpJluvg= =crI3 -----END PGP SIGNATURE----- --=-hsns0PN35GtDSHFNfR65-- From owner-freebsd-embedded@FreeBSD.ORG Wed Sep 4 22:07:06 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BBF127A6; Wed, 4 Sep 2013 22:07:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 30F9029C9; Wed, 4 Sep 2013 22:07:06 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so1030210wes.27 for ; Wed, 04 Sep 2013 15:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=DOaxTCUhVXt4AU5oHKpoicyjYggB8l6Udtme9Tzhwr0=; b=F46uV49cvHjSyPdzT7IoPnge/+3MBDr94FZM8lN8ROeac4WAFNuAlEkIM5VPcysF+I dIuWI7T/RT57PLGeC5KAf2R3D1lOGaXg1WPze7cIstuH12X24IYudO07QgmgE+fp37RA SJ9CN4klXizjdwDIvn5eNn9u2arMju2arJo/C8hCtRnZ+6ZLFU8AggabUhUcztqrMqUE CU2p9T4wKQ/BCLvHBiVgZNBroNfMwXoG3eZ2K1EHxc4NBDRE4OWoxyqywN1KUG1eOhw/ 9yqCDnHKF1I7IAVTAbWu7SD62qsA0BgC37mrsIrdf02Fex5bKSip5Psec6H/nHk2Amj9 4nSw== MIME-Version: 1.0 X-Received: by 10.194.109.68 with SMTP id hq4mr4344992wjb.12.1378332424476; Wed, 04 Sep 2013 15:07:04 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.146.2 with HTTP; Wed, 4 Sep 2013 15:07:04 -0700 (PDT) In-Reply-To: <1378325846.1706.2.camel@localhost> References: <1378316083.1706.0.camel@localhost> <9165aa958e7dc206da3515146181c14b.squirrel@arroway.org> <1378325846.1706.2.camel@localhost> Date: Wed, 4 Sep 2013 15:07:04 -0700 X-Google-Sender-Auth: 4AtqjLwNOB-S2SPMWj6n9fPy98k Message-ID: Subject: Re: Dlink DIR-825 B1 trial From: Adrian Chadd To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-embedded@freebsd.org" 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: Wed, 04 Sep 2013 22:07:06 -0000 ... there's a warning about nmbclusters zone starvation. Would someone please chase up the autotuning stuff? It seems it's been broken on platforms with very minimal RAM (like this.) .. you didn't load wlan_ccmp -adrian On 4 September 2013 13:17, Sean Bruno wrote: > On Wed, 2013-09-04 at 17:02 -0300, Nenhum_de_Nos wrote: > > On Wed, September 4, 2013 14:34, Sean Bruno wrote: > > > On Tue, 2013-09-03 at 20:36 -0300, Nenhum_de_Nos wrote: > > >> hail, > > >> > > >> just splitting that thread. I git it to work, and when ath was on, > that got on my screen. > > >> > > >> is this known ? > > >> > > >> att, > > >> > > >> matheus > > >> > > > No, I don't see this on mine. Let me fire up it up and see what I get. > > > > > > sean > > > > for that to happen, I must use the hostapd config you sent the link > (wiki, examples) turned on. > > without, no issue at all. > > > > thanks, > > > > matheus > > > i'm using the following hostap.wlan0.conf and rc.conf. Once I > configured my router, I did a cfg_save to make sure they don't get > overwritten. > > Sean > > > From owner-freebsd-embedded@FreeBSD.ORG Wed Sep 4 22:26:30 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 66387CAB for ; Wed, 4 Sep 2013 22:26:30 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm7-vm7.bullet.mail.gq1.yahoo.com (nm7-vm7.bullet.mail.gq1.yahoo.com [98.136.218.214]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 124882AE8 for ; Wed, 4 Sep 2013 22:26:30 +0000 (UTC) Received: from [216.39.60.181] by nm7.bullet.mail.gq1.yahoo.com with NNFMP; 04 Sep 2013 22:20:51 -0000 Received: from [208.71.42.203] by tm17.bullet.mail.gq1.yahoo.com with NNFMP; 04 Sep 2013 22:20:51 -0000 Received: from [127.0.0.1] by smtp214.mail.gq1.yahoo.com with NNFMP; 04 Sep 2013 22:20:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378333251; bh=JogJq/7gSg5nZgYRMmRutSiLO0p3r86ZHbmdqoYPkrg=; 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=M2LKDBT+6HeTpNFfvXrZI7Zhu/rkCj8jlRYiNArd1u3NR2mIShkhq7MFqd9QCWCMmsI/yeRB1Y5BP4FxZuZk6Yu1u8Nt1FzuqqI7sh9Sy624LSC/PcWv5hXHLqD2fI3M1Ekeu6Cywo5fLaE4pK0sbLiYEeo65jvXyWk3Inffar8= X-Yahoo-Newman-Id: 372493.12913.bm@smtp214.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: tc6YrTMVM1mcS6T9T6Qu2dYWFeAfMJ1ym.RENRFM6KNk.KO 7SwBoAR33NmPV4y45DAy4806UtZwa_Pv94ysrWA9TcfE7Q.8IZzrrAko5Vk5 Y3QddWVHFAFK619Z3mv6PcCPDoleKxPSVOcUAVWeo5gBhJh7YxjsZ0tRTv1O krskoFqUaHLzRbnM21Up5yvYe8xH1OI1kmhLTRgMtP28DI6R3YhYsN_KgDH6 bANDjF_dS3khxpQFjVTocCo2FFnvIe4Ao9dUyI_jIQ9Oikdf7WopAX6vCOBA n5PuFelkarE8l.KIh..gyUaW_ZWqRCkRYFxxSgWeg17C3FkEIwaE_No6Ky1K Ok3REuFMuux7VWPLD7vg.nc3FAAw4feSipDeXVAIE83XU8JsDXfip7q1sNCw qMCkphRLycaCdFmbjZFNWyQbWCwsYPx8usVPHqDw73rglUxt62lQDBi3p09Z Infe06vSBD12rODmPwC5Zmg1NYUe6B8aGNhPAL8JfkrrvweyQAxSlREXgLwq G5KYVdFWyRu4Wn_5HBtJbg6dCPcUqcjHMQA-- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp214.mail.gq1.yahoo.com with SMTP; 04 Sep 2013 22:20:51 +0000 UTC Subject: Re: Dlink DIR-825 B1 trial From: Sean Bruno To: Adrian Chadd In-Reply-To: References: <1378316083.1706.0.camel@localhost> <9165aa958e7dc206da3515146181c14b.squirrel@arroway.org> <1378325846.1706.2.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-xxtN7s5x+j+INmHm2xWQ" Date: Wed, 04 Sep 2013 15:20:50 -0700 Message-ID: <1378333250.36705.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: "freebsd-embedded@freebsd.org" 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: Wed, 04 Sep 2013 22:26:30 -0000 --=-xxtN7s5x+j+INmHm2xWQ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Wed, 2013-09-04 at 15:07 -0700, Adrian Chadd wrote: > ... there's a warning about nmbclusters zone starvation. Would someone > please chase up the autotuning stuff? It seems it's been broken on > platforms with very minimal RAM (like this.) > .. you didn't load wlan_ccmp >=20 >=20 >=20 >=20 > -adrian >=20 It doesn't seem like its broken for my box, but I am indeed loading wlan_ccmp ...=20 sean >=20 >=20 >=20 > On 4 September 2013 13:17, Sean Bruno wrote: > On Wed, 2013-09-04 at 17:02 -0300, Nenhum_de_Nos wrote: > > On Wed, September 4, 2013 14:34, Sean Bruno wrote: > > > On Tue, 2013-09-03 at 20:36 -0300, Nenhum_de_Nos wrote: > > >> hail, > > >> > > >> just splitting that thread. I git it to work, and when > ath was on, that got on my screen. > > >> > > >> is this known ? > > >> > > >> att, > > >> > > >> matheus > > >> > > > No, I don't see this on mine. Let me fire up it up and > see what I get. > > > > > > sean > > > > for that to happen, I must use the hostapd config you sent > the link (wiki, examples) turned on. > > without, no issue at all. > > > > thanks, > > > > matheus > =20 > =20 > =20 > i'm using the following hostap.wlan0.conf and rc.conf. Once I > configured my router, I did a cfg_save to make sure they don't > get > overwritten. > =20 > Sean > =20 > =20 >=20 >=20 --=-xxtN7s5x+j+INmHm2xWQ 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) iQEcBAABAgAGBQJSJ7I8AAoJEBkJRdwI6BaHERoH/jN3TNtTCj5GP0rOBExckT4P 5b3oa1ydWutKwN+awtKKE8ZI0E7GhmtveqATwTN/8IIw9QjkVxHy/KOpeqkECwKR xGJNXOhKuZonGOMMjfGvqZsH2cvBYUlzftFLcHgIDTcAKr9zOV39JLGDVx8jZEzB tQ4eaVlveQQUsfr4wihvpwgjh8ZwUEhQMxGk0sni2gS66u29r3b8jD5pNYG/cuTF Qtcw9R+tVfzi2dPoIvDLe9uzuoKyNOGkI96mJ6LbaM3essMjksrf/q4mmvGSmdXB 7z0moCgHWdE+Mc6J3RSU3WYNpiAH+A8oZqJ4IY4Vf4X2Wli13R9N1R63SYxEJc4= =Pptl -----END PGP SIGNATURE----- --=-xxtN7s5x+j+INmHm2xWQ-- From owner-freebsd-embedded@FreeBSD.ORG Wed Sep 4 22:38:49 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DDA8BB6 for ; Wed, 4 Sep 2013 22:38:49 +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 A0B822BA6 for ; Wed, 4 Sep 2013 22:38:49 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id A2A071CC59; Wed, 4 Sep 2013 19:38:39 -0300 (BRT) Received: from 187.61.251.141 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Wed, 4 Sep 2013 19:38:39 -0300 Message-ID: In-Reply-To: <1378333250.36705.0.camel@localhost> References: <1378316083.1706.0.camel@localhost> <9165aa958e7dc206da3515146181c14b.squirrel@arroway.org> <1378325846.1706.2.camel@localhost> <1378333250.36705.0.camel@localhost> Date: Wed, 4 Sep 2013 19:38:39 -0300 Subject: Re: Dlink DIR-825 B1 trial From: "Nenhum_de_Nos" Cc: "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: Wed, 04 Sep 2013 22:38:49 -0000 On Wed, September 4, 2013 19:20, Sean Bruno wrote: > On Wed, 2013-09-04 at 15:07 -0700, Adrian Chadd wrote: >> ... there's a warning about nmbclusters zone starvation. Would someone >> please chase up the autotuning stuff? It seems it's been broken on >> platforms with very minimal RAM (like this.) >> .. you didn't load wlan_ccmp >> >> >> >> >> -adrian >> > It doesn't seem like its broken for my box, but I am indeed loading > wlan_ccmp ... > > sean hail, as for me, I have ccmp: # kldstat Id Refs Address Size Name 1 24 0x80050000 498da0 kernel 2 2 0xc0101000 4da4 bridgestp.ko 3 1 0xc0106000 7730 if_bridge.ko 4 1 0xc010e000 a7e0 random.ko 5 6 0xc0119000 626ac wlan.ko 6 2 0xc017c000 120c3c if_ath.ko 7 1 0xc029d000 1078 if_ath_pci.ko 8 1 0xc029f000 2a94 wlan_tkip.ko 9 1 0xc02a2000 56f0 wlan_ccmp.ko 10 1 0xc02a8000 3ac wlan_xauth.ko and this is the config that makes it freeze: # cat rc.conf # Set the default system hostname system_hostname="freebsd-wifi-build" # Modules to load kernel_modules="bridgestp if_bridge random wlan if_ath if_ath_pci wlan_tkip wlan_ccmp wlan_xauth" # These interfaces are configured in-order network_interfaces="arge0 wlan0 wlan1 bridge0" # Create arge0, no interface address netif_arge0_enable="YES" netif_arge0_type="ether" netif_arge0_addrtype="none" netif_arge0_descr="default" netif_arge0_name="arge0" netif_wlan0_enable="NO" netif_wlan0_type="wifi" netif_wlan0_wifi_mode="hostap" netif_wlan0_descr="default" netif_wlan0_addrtype="none" netif_wlan0_name="wlan0" netif_wlan0_wifi_parent="ath0" netif_wlan0_wifi_createargs1="country US regdomain FCC3" #netif_wlan0_wifi_createargs2="channel 36:ht/40 up" netif_wlan0_wifi_hostapd_enable="yes" #netif_wlan0_wifi_hostapd_conf="/etc/cfg/hostapd.wlan0.conf" netif_wlan1_enable="YES" netif_wlan1_type="wifi" netif_wlan1_wifi_mode="hostap" netif_wlan1_descr="default" netif_wlan1_addrtype="none" netif_wlan1_name="wlan1" netif_wlan1_wifi_parent="ath1" netif_wlan1_wifi_createargs1="country US regdomain FCC3" netif_wlan1_wifi_createargs2="channel 6:g up" netif_wlan1_wifi_createargs3="txpower 5" netif_wlan1_wifi_hostapd_enable="yes" #netif_wlan1_wifi_hostapd_conf="/etc/cfg/hostapd.wlan1.conf" # Create a bridge, flip on an IPv4 static address netif_bridge0_type="bridge" netif_bridge0_addrtype="static" netif_bridge0_descr="default" netif_bridge0_name="bridge0" # These are bridge members w/ STP enabled netif_bridge0_members_stp="arge0" # These are bridge members w/ STP disabled netif_bridge0_members="wlan0 wlan1" netif_bridge0_ipv4_address="10.1.1.83" netif_bridge0_ipv4_netmask="255.255.255.0" defaultrouter="10.1.1.81" the conf lines are commented to not get the panic. # cat hostapd.wlan0.conf interface=wlan0 driver=bsd ssid=WLAN-TT_ wpa=3 wpa_key_mgmt=WPA-PSK wpa_passphrase=password wpa_pairwise=CCMP TKIP ctrl_interface=/var/run/hostapd # cat hostapd.wlan1.conf interface=wlan1 driver=bsd ssid=WLAN-T_ wpa=3 wpa_key_mgmt=WPA-PSK wpa_passphrase=password wpa_pairwise=CCMP ctrl_interface=/var/run/hostapd as I saw in ifconfig, I have two ath devices and thought that was the way to make them work. I got the 2.4GHz interface with wrong ssid by the way. Sean, your config uses just one ath. this way you can use both 2.4 and 5GHz radios ? thanks, matheus >> >> >> >> On 4 September 2013 13:17, Sean Bruno wrote: >> On Wed, 2013-09-04 at 17:02 -0300, Nenhum_de_Nos wrote: >> > On Wed, September 4, 2013 14:34, Sean Bruno wrote: >> > > On Tue, 2013-09-03 at 20:36 -0300, Nenhum_de_Nos wrote: >> > >> hail, >> > >> >> > >> just splitting that thread. I git it to work, and when >> ath was on, that got on my screen. >> > >> >> > >> is this known ? >> > >> >> > >> att, >> > >> >> > >> matheus >> > >> >> > > No, I don't see this on mine. Let me fire up it up and >> see what I get. >> > > >> > > sean >> > >> > for that to happen, I must use the hostapd config you sent >> the link (wiki, examples) turned on. >> > without, no issue at all. >> > >> > thanks, >> > >> > matheus >> >> >> >> i'm using the following hostap.wlan0.conf and rc.conf. Once I >> configured my router, I did a cfg_save to make sure they don't >> get >> overwritten. >> >> Sean >> >> >> >> > > -- 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 From owner-freebsd-embedded@FreeBSD.ORG Wed Sep 4 22:43:22 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 196B3173; Wed, 4 Sep 2013 22:43:22 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-x229.google.com (mail-ee0-x229.google.com [IPv6:2a00:1450:4013:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5AAA72C03; Wed, 4 Sep 2013 22:43:21 +0000 (UTC) Received: by mail-ee0-f41.google.com with SMTP id d17so506416eek.14 for ; Wed, 04 Sep 2013 15:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=euh/cIcxDwNRVBPM8TabcGlA82zTYp1M/iKh9EgtZPY=; b=H1HW4U0HeIhylxBgN5lP/QgAZO0kRh4GvfbNLAnuapHapxy7x2MuNwmnJ9Hack/T4B 3dvaNl+3DXFlTaukPVYQX7khWiPGAc1nfV2xFcmyHr6EedSt2A6uRY8ZnVt25bYBFZ0i ZU8sAsjWJ8fokgmiErkWdrqEQpJfH6/RGrWK6dGw5hihN3I/7dY3sVRaMeRkgWipnP2Y milZOWAZUYBefMwZLxLEXcWgjhuFCGSRRwnVeJVUNo+vOpDA3H5vSsamlYqkfhWh8iiv 1sGkZXbXynIQqPOCRmfbWhqSAs0Yk2LYnpZLmKWwK2F+EJ6Kmbb4sZi+zFeGAeuRd82L KzNA== MIME-Version: 1.0 X-Received: by 10.15.67.131 with SMTP id u3mr8088124eex.34.1378334599735; Wed, 04 Sep 2013 15:43:19 -0700 (PDT) Received: by 10.14.105.137 with HTTP; Wed, 4 Sep 2013 15:43:19 -0700 (PDT) In-Reply-To: References: <1378316083.1706.0.camel@localhost> <9165aa958e7dc206da3515146181c14b.squirrel@arroway.org> <1378325846.1706.2.camel@localhost> Date: Wed, 4 Sep 2013 15:43:19 -0700 Message-ID: Subject: Re: Dlink DIR-825 B1 trial From: hiren panchasara To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-embedded@freebsd.org" 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: Wed, 04 Sep 2013 22:43:22 -0000 On Wed, Sep 4, 2013 at 3:07 PM, Adrian Chadd wrote: > ... there's a warning about nmbclusters zone starvation. Would someone > please chase up the autotuning stuff? It seems it's been broken on > platforms with very minimal RAM (like this.) > I've seen this problem on picostation when I try to do speed-test via speedtest.net and I see "[zone: mbuf_cluster] kern.ipc.nmbclusters limit reached" Adrian, are you talking about http://svnweb.freebsd.org/base?view=revision&revision=243631 - this commit? Hiren ps: no intentions of hijacking the thread :) From owner-freebsd-embedded@FreeBSD.ORG Wed Sep 4 22:54:53 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 C118C53B; Wed, 4 Sep 2013 22:54:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3881D2CCA; Wed, 4 Sep 2013 22:54:53 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so1029975wes.41 for ; Wed, 04 Sep 2013 15:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=pRQJZCT+8KIi3mfCdb1kYeurY0VBvVyY+fI0hLcBJwc=; b=rxcAJsMD/HBCvLHECLTiYofcMkvpaFHOwUfznCcxYULvFaG3O+B9MBtzihYhvt3egA JwMaDrl2/M7m89mSiZ4IXqOppAS7kkDu0tb3z2vEWVc/UnRK/6RV8brq24mnZ3o69zN4 SirCfEk7OoN0RyRMFK92BYlh05twE2nY9RmOfmvYDaKtjiy5d/PvWiFW/yw4Kubf/lp5 MARSwVy9r+QmoZ5ssW3M5+WKnIbqa94qN8XNjWqz6GSa4oxkDIXesSZRSwXGAXUj5nwq ia8xYFHo49CAsJNWo0K3p88OLCOm3uEEvmm9U6mspTKOBeN0/nvM7rXQ107Pk62Q4R/J TDjg== MIME-Version: 1.0 X-Received: by 10.180.72.198 with SMTP id f6mr3961315wiv.46.1378335291751; Wed, 04 Sep 2013 15:54:51 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.146.2 with HTTP; Wed, 4 Sep 2013 15:54:51 -0700 (PDT) In-Reply-To: References: <1378316083.1706.0.camel@localhost> <9165aa958e7dc206da3515146181c14b.squirrel@arroway.org> <1378325846.1706.2.camel@localhost> Date: Wed, 4 Sep 2013 15:54:51 -0700 X-Google-Sender-Auth: asJkQiFaQ7xLKxByx-0QVpd6kLM Message-ID: Subject: Re: Dlink DIR-825 B1 trial From: Adrian Chadd To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-embedded@freebsd.org" 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: Wed, 04 Sep 2013 22:54:53 -0000 Yup. -adrian On 4 September 2013 15:43, hiren panchasara wrote: > > > > On Wed, Sep 4, 2013 at 3:07 PM, Adrian Chadd wrote: > >> ... there's a warning about nmbclusters zone starvation. Would someone >> please chase up the autotuning stuff? It seems it's been broken on >> platforms with very minimal RAM (like this.) >> > > I've seen this problem on picostation when I try to do speed-test via > speedtest.net and I see > > "[zone: mbuf_cluster] kern.ipc.nmbclusters limit reached" > > Adrian, > > are you talking about > http://svnweb.freebsd.org/base?view=revision&revision=243631- this commit? > > Hiren > > ps: no intentions of hijacking the thread :) > From owner-freebsd-embedded@FreeBSD.ORG Thu Sep 5 22:38:24 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 8CCB67AA for ; Thu, 5 Sep 2013 22:38:24 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm34-vm9.bullet.mail.gq1.yahoo.com (nm34-vm9.bullet.mail.gq1.yahoo.com [98.136.216.138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4EFB9253A for ; Thu, 5 Sep 2013 22:38:24 +0000 (UTC) Received: from [98.137.12.63] by nm34.bullet.mail.gq1.yahoo.com with NNFMP; 05 Sep 2013 22:38:23 -0000 Received: from [208.71.42.198] by tm8.bullet.mail.gq1.yahoo.com with NNFMP; 05 Sep 2013 22:38:23 -0000 Received: from [127.0.0.1] by smtp209.mail.gq1.yahoo.com with NNFMP; 05 Sep 2013 22:38:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378420703; bh=Vhq/M3H6allpkdxeq+LYwnFukVMI+LH7+UyCZzU8IYg=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=dU/oemfJk883eoaLJ5xosNG4jqr/fe7OpbRjzhvpbgRPS4nmcVfKoXPxGGjpJzmw3dhB+DaWiYpnnAWbt+Lt1lSUmXUgO+iZ9TOLIi4LUwSVKDfQbtxOtqd7z8WAG0No0xpjNNtVqnOjQ1PxaAx94aIzyalN9l4hFXzEHVATOGw= X-Yahoo-Newman-Id: 440155.17024.bm@smtp209.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: djjSwgYVM1l19TB3Ql14p8aAXIhyx6n_iqTRIEsNrdasyz5 UUxKtxA77z4y5w7ySkYiHkWwoEGRoLHcwUzoYVXSyVN5aJhckf.5OpCnAZSI 4yxWusf9LwflnIdwPsxo1v7q1jvLM7LT8TA.j6.ioW0UHoJyrtETwnNLqecg Cs1EQOJPF_xqweLksNZ8XNP3ibrIyFRhdouZmflikh9DpGUjB69pIMwERMHW c9x4FAVNDjtUQSLnC.08biqu0xl7OqNBfWelEOyYQW4ZDodX4gAPa9jYzSSC fIeaILiIS.m7H9lH0rmc7E_cDe2CkmCutltzHHctw4q5JSkNw2McMRFt53YF RSRqoau920gxZm6ymFeTt_uPWZUGf9lw8b389rpr2oc0DjgS.jQrXOm254Hh WtIj7EC4GUE9aozxL1XfqmLz5JczUPLjC.GImjPjXIpNXGkncB1iHKVMpiRw vzlmzIbDbEu12MzsbtiptHkNArkttw8tlQ70A1tYrH.qTgErz43c7IH4QLGn oWBum4Hg7tkQ8BJrj4qT6Km9OKzmZr5FQ5F5S8zVl91WVukLjgZymRHi7Qhq MG2Wsq9r8S02kjdWTwNVOuHeHsQgmPgKaTIhI6NofwK6fICbEeaUtKKoOwcW x2FtQ1yq8Bc1ztjjHTd20 X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp209.mail.gq1.yahoo.com with SMTP; 05 Sep 2013 15:38:23 -0700 PDT Subject: off by one error, maxpins From: Sean Bruno To: freebsd-embedded Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-iiQse0YNi8HPg9JzFxx2" Date: Thu, 05 Sep 2013 15:38:22 -0700 Message-ID: <1378420702.1647.18.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: Thu, 05 Sep 2013 22:38:24 -0000 --=-iiQse0YNi8HPg9JzFxx2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable http://people.freebsd.org/~sbruno/maxpin_plus_one.txt Been screwing around with pins and led's on the DIR-825 B1. Looks like it has an led on PIN 11, its "maxpin" is 11 when its setup at initialization. This is causing the *last* gpio pin to be ignored. e.g. --original-- # gpioctl -f /dev/gpioc0 -l pin 00: 0 pin 0 pin 01: 0 pin 1 pin 02: 0 pin 2 pin 03: 1 pin 3 pin 04: 0 pin 4 pin 05: 1 pin 5 pin 06: 0 pin 6 pin 07: 1 pin 7 pin 08: 0 pin 8 --patch-- # gpioctl -f /dev/gpioc0 -l pin 00: 0 pin 0 pin 01: 0 pin 1 pin 02: 0 pin 2 pin 03: 1 pin 3 pin 04: 0 pin 4 pin 05: 1 pin 5 pin 06: 0 pin 6 pin 07: 1 pin 7 pin 08: 0 pin 8 pin 11: 0 pin 11 --=-iiQse0YNi8HPg9JzFxx2 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) iQEcBAABAgAGBQJSKQfeAAoJEBkJRdwI6BaH/QUH+wbzoRyAL102RPX9x8kVoeRw hj9p39LFXPtZqsy5ycxc2cYtsoyUhvEuGySWshNbbLOI4NniZIYeEi3sSHWlr9nw 4HwX0XzIYqT2ju2m/kDeDOjVwbNK715oN0TGyll11nuyjnWsMYjxABoVKfYLY9JE AJaSIGZ1EswSLh84C0lP0IL/OJqY5SlAw51BFxkMif3s8IE44nM3VsWFU72EmTXd 6mLiOsKxVnsQ9LQeawszbu64IvNf10ExkW9xaPC5cx2vJqHh/zJxp7sKMmwP9kU9 NuuvnT9mnkMFklJoJQoZAwdJkbzrUUfYVps5+bHq2tknvGTnXbr2iZAl74KHHKc= =FozD -----END PGP SIGNATURE----- --=-iiQse0YNi8HPg9JzFxx2-- From owner-freebsd-embedded@FreeBSD.ORG Thu Sep 5 22:42: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 4B9F2C1E for ; Thu, 5 Sep 2013 22:42:50 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f178.google.com (mail-ie0-f178.google.com [209.85.223.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1C07925A4 for ; Thu, 5 Sep 2013 22:42:49 +0000 (UTC) Received: by mail-ie0-f178.google.com with SMTP id f4so5375733iea.9 for ; Thu, 05 Sep 2013 15:42:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=Q2QmzUEQU3YNYpGxMa/5WX6IKTsl/GDj9B5aUddOwrA=; b=PT/u4PsHOhA3ej+nc0V5X0xvDVJuKMJmITqPGN/yBUqDfeWwdnKC7JDi1hqJgoPF8d 3KAxbujnTUkGweQD9ir4EY9ejJXYCso4YOi0ASFm4r2OgWgv97CTmp5/+BGedcxXyHFg Rxnt816VPWqP6fhhdC5QYOmYP31OzF7bv7f1XGHEW69KFgE3jp/tdfdyyDJokOyZI3eV c1TpTd1kpD/4knQfPYrUkrtN1M+8qgXoIwINx4N0MJdJcboqyQslKNxDe0GkQJJsRDV/ aP8XHsrXWU6Sat/8d+d7Sv8i5BF4l4csA1kulda2lYaCu5KqbIcbJomwV7IbkeY5u5uY hH1A== X-Gm-Message-State: ALoCoQm7/J32+SEB+BSCNGE2WzNMd0rpEYU/Dngp/zMyoa4kJaxmMD7c0X9+Q6W3p9XEyPsz9Bx8 X-Received: by 10.43.172.2 with SMTP id nw2mr7021530icc.9.1378420969190; Thu, 05 Sep 2013 15:42:49 -0700 (PDT) Received: from monkey-bot.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id yt10sm14103653igb.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 15:42:48 -0700 (PDT) Sender: Warner Losh Subject: Re: off by one error, maxpins Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <1378420702.1647.18.camel@localhost> Date: Thu, 5 Sep 2013 16:42:44 -0600 Content-Transfer-Encoding: 7bit Message-Id: References: <1378420702.1647.18.camel@localhost> To: sbruno@freebsd.org X-Mailer: Apple Mail (2.1085) Cc: freebsd-embedded 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: Thu, 05 Sep 2013 22:42:50 -0000 Shouldn't npins and/or maxpin just be bumped by 1 instead? Warner On Sep 5, 2013, at 4:38 PM, Sean Bruno wrote: > http://people.freebsd.org/~sbruno/maxpin_plus_one.txt > > Been screwing around with pins and led's on the DIR-825 B1. Looks like > it has an led on PIN 11, its "maxpin" is 11 when its setup at > initialization. This is causing the *last* gpio pin to be ignored. > > e.g. > --original-- > # gpioctl -f /dev/gpioc0 -l > > pin 00: 0 pin 0 > pin 01: 0 pin 1 > pin 02: 0 pin 2 > pin 03: 1 pin 3 > pin 04: 0 pin 4 > pin 05: 1 pin 5 > pin 06: 0 pin 6 > pin 07: 1 pin 7 > pin 08: 0 pin 8 > > > --patch-- > # gpioctl -f /dev/gpioc0 -l > pin 00: 0 pin 0 > pin 01: 0 pin 1 > pin 02: 0 pin 2 > pin 03: 1 pin 3 > pin 04: 0 pin 4 > pin 05: 1 pin 5 > pin 06: 0 pin 6 > pin 07: 1 pin 7 > pin 08: 0 pin 8 > pin 11: 0 pin 11 > From owner-freebsd-embedded@FreeBSD.ORG Thu Sep 5 22:47:35 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 B3B05358 for ; Thu, 5 Sep 2013 22:47:35 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm20.bullet.mail.bf1.yahoo.com (nm20.bullet.mail.bf1.yahoo.com [98.139.212.179]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3405A25CE for ; Thu, 5 Sep 2013 22:47:34 +0000 (UTC) Received: from [98.139.215.140] by nm20.bullet.mail.bf1.yahoo.com with NNFMP; 05 Sep 2013 22:47:33 -0000 Received: from [98.139.213.9] by tm11.bullet.mail.bf1.yahoo.com with NNFMP; 05 Sep 2013 22:47:33 -0000 Received: from [127.0.0.1] by smtp109.mail.bf1.yahoo.com with NNFMP; 05 Sep 2013 22:47:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378421253; bh=9T2kL3c85+xqDJ67IPmTYyo5f8HKIQQZrcjVJjtm3Lw=; 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=ek/EPTspybORYaMzMGNt5gY3I/CYbEsVmnigcGADmh3fqvT1sctDD6xUS+cQN1aeXoMRh3HtoFdrUpAwz06jLzbvVO09Kpf+svV7pPsuMjgO8/c4AGgwNQBkMYZi7ovgNPMnv70V1C5v8huqn5xgngwwCUpyH2rCfOuH1GZJTvY= X-Yahoo-Newman-Id: 523836.81306.bm@smtp109.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 6pIglfkVM1lNyTb.k6tmhIP67fTDjs6lsjM8TWgNBu7BR5J UCS4RSrinwgzm5pZXVsCNjXxw2tfpZJjb_.Pd1Kx4pWv2cp1Eh3BxBftg_Ee zosK6ssJiFk5xqVjTh_ZRn9DAZ99BUDc80lgx1sI_tK.KGACBypqThVhGAZ0 GXbHbmojbmUEEzgDIHZXmFI4zknzVpPDKvU74szmMqejTRdrL_iltcreWkmm 4lYx5OC8fO5tstdtEMS8JQM05dLpOAkI.eesskOX37.fclSoSF7YuIJJQaDm 76ek81wlP1rJWYIbA2ZirJh8PtMUhWTlhJ4Gqs72J6DPNQup2BFm5aBHcFde 2AI5ZpPif8ALvKvr2jfMSwRrE_H.gEzzdn05OWk_GNRadLjTj1cmII.RAj71 JgOHLF1DaV6PwxPz_GBlx2VCtC8EfqFqdcwZnFRCTzOymyqy.sxNQuYtBIfU bcjDUwh3uwPXd4FbDna2LxSlKhvKk46gQJeUuWqK57VpL8zJ7OJ21Tjr4Fxc TJXIFPYuItXH9ChPjyVMw81eBbMd_6BYVPNdv0aHG3OgaGwJfxbU3s2.kgUO 9fJ3egVu5AWjHnhCOU74m4b0UdwtruN9YfU0uhATjB9NMZeFT4QRxntbxS5E kXGECeiphrqNaFzwmBfrEAUzEmzu3MSYgig9vbAULPhs- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp109.mail.bf1.yahoo.com with SMTP; 05 Sep 2013 15:47:33 -0700 PDT Subject: Re: off by one error, maxpins From: Sean Bruno To: Warner Losh In-Reply-To: References: <1378420702.1647.18.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Zo4EkIJP+zCyRlLuIRAr" Date: Thu, 05 Sep 2013 15:47:32 -0700 Message-ID: <1378421252.1647.21.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-embedded 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: Thu, 05 Sep 2013 22:47:35 -0000 --=-Zo4EkIJP+zCyRlLuIRAr Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Thu, 2013-09-05 at 16:42 -0600, Warner Losh wrote: > Shouldn't npins and/or maxpin just be bumped by 1 instead? >=20 > Warner >=20 > On Sep 5, 2013, at 4:38 PM, Sean Bruno wrote: >=20 > > http://people.freebsd.org/~sbruno/maxpin_plus_one.txt > >=20 It looks like its *intentionally* assigned as the h/w specific (GPIO COUNT) -1 in ar71xx_gpio_pin_max() Userland assumes that this value is a 0-based thing. =20 --=-Zo4EkIJP+zCyRlLuIRAr 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) iQEcBAABAgAGBQJSKQoEAAoJEBkJRdwI6BaHxrQH/0m3wO1mF4MvA+3+xVAmY4cg P/9hky7zgMo3CKc1aDRGwMa/hAi1haw8RPyEJTrRVdsJHo3eplvPUR7w1CkjWfdO IsS4x/GkiLFf7mIvf207LsbOEwyeZp7FPlhdvNz9DIvzUBfGlMXTYGsgkSN1ccYa wydOZ8DaaGrOr4A4Yp0AKJzxczR6edJ+kcmYN8bGLwmRxFBi8srAsh7lBV4yeGoT fg/KqCUhsln/wLTz+UxVp9D2ctmEOwpzJ5ou5wxlZk05AK0CTaUraPpUcs3Ia9Rg tdip8ZVAwfyPvdKl3eoLpVv4aYogqzrQsRdEiv4OfVTYUX68pe0P81V5pSmxmso= =xos9 -----END PGP SIGNATURE----- --=-Zo4EkIJP+zCyRlLuIRAr-- From owner-freebsd-embedded@FreeBSD.ORG Thu Sep 5 23:14:15 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 257C4726; Thu, 5 Sep 2013 23:14:15 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8FF8E2740; Thu, 5 Sep 2013 23:14:14 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id ez12so183781wid.9 for ; Thu, 05 Sep 2013 16:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Tj8+bBB1rW4MiYXuQv4ouKdqUkz3GdI7iRFuIongQEw=; b=WfivfXajtZNYItBsVxAU8waLW95qsGTLTIxJLrg9FjRzi7sNxd8NFOP8HgFxRmMrwX QapOoK0yq3Bpj8dXUoVBeseFpp883eg4R4933x36CWMQsiNRCfaz+oP7Pr9PUVSaS5Zc PWzWc5W7u1cjoBcBu41HqxDyseasrRe1HC6wAfTPICRYEi7zLCWsFgd6yM4E1Z9fAjSr 11MdN1XCUwM5SAV7hAQ5fkfFK8SJEqbHmb5+FODvCrnxJ6Xm141iOTEM6Z4eVwm8eJc4 THpdrnuBS58p9vYMs8QsyAjbzawctELCNrNg5fREAMKBZ8z4IEAYVc43PctFU7ALCXsz nghg== MIME-Version: 1.0 X-Received: by 10.180.37.164 with SMTP id z4mr8171828wij.30.1378422853047; Thu, 05 Sep 2013 16:14:13 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.73.133 with HTTP; Thu, 5 Sep 2013 16:14:12 -0700 (PDT) In-Reply-To: <1378421252.1647.21.camel@localhost> References: <1378420702.1647.18.camel@localhost> <1378421252.1647.21.camel@localhost> Date: Thu, 5 Sep 2013 16:14:12 -0700 X-Google-Sender-Auth: aHJvYRjVzBQWBZuVSyxRlgYwrQA Message-ID: Subject: Re: off by one error, maxpins From: Adrian Chadd To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded 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: Thu, 05 Sep 2013 23:14:15 -0000 Commit ahoy. :) -a On 5 September 2013 15:47, Sean Bruno wrote: > On Thu, 2013-09-05 at 16:42 -0600, Warner Losh wrote: > > Shouldn't npins and/or maxpin just be bumped by 1 instead? > > > > Warner > > > > On Sep 5, 2013, at 4:38 PM, Sean Bruno wrote: > > > > > http://people.freebsd.org/~sbruno/maxpin_plus_one.txt > > > > > It looks like its *intentionally* assigned as the h/w specific (GPIO > COUNT) -1 in ar71xx_gpio_pin_max() > > Userland assumes that this value is a 0-based thing. > From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 02:20:48 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 647361E7; Fri, 6 Sep 2013 02:20:48 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9E7092E32; Fri, 6 Sep 2013 02:20:47 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id c10so293201wiw.2 for ; Thu, 05 Sep 2013 19:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yHZftZgAQydCiMSwkZzmEUfKOZTV0C9Zp0BrcpmhCz8=; b=GS/pL9qQamJc35XgW2Q1YJfiw6iUyHPmCOLpVVyR4jKzCyTtIu/U0YXv3FbUgs8d/o sgC9WhatdUv6RnggXRB8mcWcny6U+OQOxy1QWweqD2ZnRo3PBNq91nKX6P1ErrVYLU1i 2fOjH6FoCDtjkwvDs9fe70XGMs9cFDrVtF63xmt+yfsmJidoqXRoxvNbZaKC00u/VBxs 0GQ3UBkwosiYBs4aQcm2WBL+rneNiifcE/GxrOifwGr2xnHyVesAkhDfv06AZ6+I9etF JdknU1zgSD0ZsCVnQh5xqLIfG8XHkraLEbk2Y9Lo+R6Bdb/VaE7jJNuiOEsTx80LXZm0 /ffg== MIME-Version: 1.0 X-Received: by 10.194.178.166 with SMTP id cz6mr51717wjc.53.1378434046007; Thu, 05 Sep 2013 19:20:46 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Thu, 5 Sep 2013 19:20:45 -0700 (PDT) In-Reply-To: References: <1378420702.1647.18.camel@localhost> <1378421252.1647.21.camel@localhost> Date: Thu, 5 Sep 2013 23:20:45 -0300 Message-ID: Subject: Re: off by one error, maxpins From: Luiz Otavio O Souza To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded 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: Fri, 06 Sep 2013 02:20:48 -0000 Yes, please commit it. And by the way... There is another bug in that code, the gpio driver automatically adjust itself to the number of GPIO pins available on SoC: ar71xx_gpiovar.h:#define AR71XX_GPIO_PINS 12 ar71xx_gpiovar.h:#define AR724X_GPIO_PINS 18 ar71xx_gpiovar.h:#define AR91XX_GPIO_PINS 22 ar933xreg.h:#define AR933X_GPIO_COUNT 30 ar934xreg.h:#define AR934X_GPIO_COUNT 23 But the size of the gpio_pins struct is statically defined (and with a small size for most of the supported SoC): struct ar71xx_gpio_softc { .... struct gpio_pin gpio_pins[AR71XX_GPIO_PINS]; }; I'll write a patch to allocate this structure dynamically based on the SoC we're running on. Luiz On 5 September 2013 20:14, Adrian Chadd wrote: > Commit ahoy. :) > > > -a > > > On 5 September 2013 15:47, Sean Bruno wrote: > > > On Thu, 2013-09-05 at 16:42 -0600, Warner Losh wrote: > > > Shouldn't npins and/or maxpin just be bumped by 1 instead? > > > > > > Warner > > > > > > On Sep 5, 2013, at 4:38 PM, Sean Bruno wrote: > > > > > > > http://people.freebsd.org/~sbruno/maxpin_plus_one.txt > > > > > > > > It looks like its *intentionally* assigned as the h/w specific (GPIO > > COUNT) -1 in ar71xx_gpio_pin_max() > > > > Userland assumes that this value is a 0-based thing. > > > _______________________________________________ > 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 > " > From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 17:22:40 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 91399479 for ; Fri, 6 Sep 2013 17:22:40 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm44-vm7.bullet.mail.bf1.yahoo.com (nm44-vm7.bullet.mail.bf1.yahoo.com [216.109.115.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F3FC420C2 for ; Fri, 6 Sep 2013 17:22:39 +0000 (UTC) Received: from [98.139.215.141] by nm44.bullet.mail.bf1.yahoo.com with NNFMP; 06 Sep 2013 17:22:32 -0000 Received: from [68.142.230.76] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 06 Sep 2013 17:22:32 -0000 Received: from [127.0.0.1] by smtp233.mail.bf1.yahoo.com with NNFMP; 06 Sep 2013 17:22:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378488152; bh=NvfTZOAG1KyvUgAF5jsVmQiBsVAz/jbe4uN4saMg4wM=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=sHXjvQ8cTmhjYuZ+ErWlTZBLlneMmRfN7bw+zbfVrH1MCUYwQ+Irdz1Hhb4kJJoCu04d4OboUIXgqfja3PkP0W5KHoh2F2NnZNq3fUdSRcJDCtyUHj9J9PJZd/Gqk4EeOF0lw1RIwt2lgBN9nyQ5kswHv+b+xLToE8TcYlEZF7E= X-Yahoo-Newman-Id: 553419.24428.bm@smtp233.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: U7LLsSYVM1nnOcfFUC00ACtOkunPZWmp0kkuT1c2fHTkTQ4 Hhn6rpmozXAOU2A3tTV8u_Y2S40gt0K06ODP4zG1JordfetgBTqY6hHqt95O 5XD15Bp.Os89cDA9Su3VIOCLbdPhlI6ZPQehTTezI.VS.kp3.NWNc0TM1DKK oLMZr2ZD4shUijIsLWoiL8GZfw50wspZyqNqE1u7taJGQE2U0l9D2ZaKBn9y JByw6sP9R1UgyV5WONms3GkCDaMwmlNGgkjZ.Cbd1oQcty4BI2jXJT5Grcwl Jqxr0aE06NNntwTt9AcEP.VZLmXnd5CUVO_EnOGnIvypbi6ctteGU.5NAlAO mfN6csyC68RO0ZHFD0UK.Cuky4XmuKRq_HHRYzS2QgVdWnTGMF47FpmVWS8Y QZHfqK8LKF1xKBMeybBWFMRdco3_wU.NHPsZ0GeyFUlgeKRsglFyFVRElDQt lsHo3ygsY0tsCh6iSKzkMP0uKA1kyzgLHLy4ZwzPkto.hWwm18w6pPwxQsq2 mMI8r4a.nUAvWbQinW5Uj2IfyiRTdZW34JksI6JSDMy0afssCfut9DvdCLaN zB8PH6itlVXdjnkUQnXKVIdS9uJqakdHDf0voonPT2UFbbgQNGKLYJ6WjXgZ EPHaPFCGyCHz5biWbr6P4if1IdKIgsQoQref.vl2S X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp233.mail.bf1.yahoo.com with SMTP; 06 Sep 2013 17:22:32 +0000 UTC Subject: GPIO hint meanings From: Sean Bruno To: freebsd-embedded@freebsd.org Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-VVWGuLKiujII/iCK18Lt" Date: Fri, 06 Sep 2013 10:22:30 -0700 Message-ID: <1378488150.1637.5.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, 06 Sep 2013 17:22:40 -0000 --=-VVWGuLKiujII/iCK18Lt Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I think I have a fairly firm grasp on what some of the mips/gpio hints mean, e.g.: hint.gpio.0.pinmask hint.gpioled.0.at hint.gpioled.0.name hint.gpioled.0.pins Fairly straightforward. Now, what do these mean/do: hint.gpio.0.function_set hint.gpio.0.function_clear ? Sean p.s. I think I'll take this and thrash together a gpioled(4) and gpio(4) man page if I can understand better. --=-VVWGuLKiujII/iCK18Lt 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) iQEcBAABAgAGBQJSKg9WAAoJEBkJRdwI6BaHW14H/31MOBMJJ/1Oj8l9nhkbUD4B GcGdXsW4jcsQFbkx017/aj2G9mL1i+yPzaJkS5jO4Ma+w66kMHqbjYcx7iaZJzz5 1yD38U+4U+2B1F4cPLZ7Oby2TExZtgnGNSa8g3Py3jCuZHiCsFYa0vp0+0EucBN2 Y6FwShD2JBoGe0yGx7sJFdWde0S+Q7dQPpF1Frs5T1FKszriXWlXT634eKyNluTp w+1WVVfY0zco1FaOg7EY3Y1I4XO7EICHS6hFjQerdmVvaUy1+woQSz9y1zTwgjH+ LsZDLT/4kInkkezCXDfVYxZpSmLCZpw1BcA6Bwfc99KluLP7Hva6hOXFlzvlW1I= =Kk3+ -----END PGP SIGNATURE----- --=-VVWGuLKiujII/iCK18Lt-- From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 18:18:27 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 B056A809 for ; Fri, 6 Sep 2013 18:18:27 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm23-vm1.bullet.mail.bf1.yahoo.com (nm23-vm1.bullet.mail.bf1.yahoo.com [98.139.213.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 054ED24A0 for ; Fri, 6 Sep 2013 18:18:26 +0000 (UTC) Received: from [98.139.212.149] by nm23.bullet.mail.bf1.yahoo.com with NNFMP; 06 Sep 2013 18:18:25 -0000 Received: from [98.139.211.206] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 06 Sep 2013 18:18:25 -0000 Received: from [127.0.0.1] by smtp215.mail.bf1.yahoo.com with NNFMP; 06 Sep 2013 18:18:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378491505; bh=xT2+8r8eiRGk88NF0gc+Xrv8sfuefeyUexPyS0FtyVU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=PgE+ucbK/bFAoy4PATpLkJGaJt68YVTqm8v4jJcErlpqt6ooyvuoazSzO2pUM/fNstg7QUnJGz/7HiI81DHrJ0eDGYYsUItboNbBe8yKKOWT2AWJ/8xU/BIfx05JlsOw00tzOmBsrb62hSN/AQxGqCY8h0ox8STyhIWEz9t7yAY= X-Yahoo-Newman-Id: 151020.31365.bm@smtp215.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: o24X8HUVM1kO.nBnK9rKMGHe3NRVsMACkrMpXOf5cPRPt5h vMDm2asQq1MyEnsUKwcv1o8owg33OfPE06NCTu4TUrQ5Ndb9vNzwy6cBJp4y az.J.8Bp4z8idN6_2aCfNMdj.CPbV0vJQBDEHjKSkkILaCWpZwCTjnNO9kU5 x8BQ2pmWhWlv3P41D0Gm7P83j_a_wFYUuiLk90XZD6fTV5S9LEYfhePhaU.V b4fIz6YrRM0ThImgsk.c0XiqbYbGQOvsfXmvqhl.PsC5xrtNjmydqPpslpjN FKxJ.O24f8ZRrYDbu0pRAUHpUiTOl0MzdvvvP_S6Zb3fOpNhxoxdIAHeXy35 ppPVOWRUZOOPa_rZQt7mqP6fzfmpv2_v_ITqDkDoAmfuVRVIUp5GLI0GA3nr 75svNc5ss2AftBzC9ffUQXSx1tGzY6sIDlxzdav8jZI_BhgE1NQRCZHFRI1D 835fG2U716W8UtIBqKTpQNdidEgEDMEWlP0iLe1cctfP69QJ5OB1tFneJ.DP 9Cq6_KhsE.3lPhmzTSgoOem9B6lWr6BOSN3ZYuBXYtuV.VFn9KrvI0jZRSmd DULj2bnLOCOksvvRl3NbuW8xB2qEJM0_uGzaqfedkIosZNS2SGANidu0Vs1o wGRbh.PETgVgrcEKAU2pJlS0H3yaIN0Wbgq_ECxXmh0rtc4V8S7xAmCOuDHw AAbY5RhVi X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp215.mail.bf1.yahoo.com with SMTP; 06 Sep 2013 11:18:25 -0700 PDT Subject: DIR-825B1 iicbus thing From: Sean Bruno To: freebsd-embedded Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-dL8CyjNmcSjRaRs4Hxbg" Date: Fri, 06 Sep 2013 11:18:23 -0700 Message-ID: <1378491503.48812.5.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, 06 Sep 2013 18:18:27 -0000 --=-dL8CyjNmcSjRaRs4Hxbg Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've almost got a functional set of gpio pin hints setup now. I seem to have an unsupported device on the iicbus, probably the realtek switch thing? iicbb0: on gpioiic0 iicbus0: on iicbb0 master-only iicbus0: at addr 0xa8 iic0: on iicbus0=20 The DIR-825B1 seems to have a "rtl8366s" ethernet switch. That needs to be ported to FreeBSD. OpenWRT seems to have a driver for it: https://dev.openwrt.org/browser/trunk/target/linux/generic/files/drivers/ne= t/phy/rtl8366s.c Sean --=-dL8CyjNmcSjRaRs4Hxbg 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) iQEcBAABAgAGBQJSKhxoAAoJEBkJRdwI6BaH9NsH/jOnS2D+aggShnyvmGA1kqp8 vb+ocmfqGNgZY8C7ky997p0y601pXP6Ov/SEypsQBqWrFQLLj/w1mVTKm3JZgaf6 fOOsPfnSGDL/5qe3LBY7R/GNm1d9JhtZurP9zKSlkyTN+Ax4ZLcLi2+dgDOoYRAb V7hBrJrlPcUFft3VdKqIOQIIVgT/ffLOtUJc0TrF3o8wsU6rtdEtLv8ydvtCWolC /PzA2vTWREKCqP1Cs2LinpoZ5mX9uzBrWSHTByAWfxb8q0UHoXBjALwogolXlNpo n7GxLPtoxf3CYuurJuQynrUyxCAxjJyfY5q9VYP+b4HUWrWCEeBII8Yz0L69Dy8= =tZNk -----END PGP SIGNATURE----- --=-dL8CyjNmcSjRaRs4Hxbg-- From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 18:29:57 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 CDFE5ED3; Fri, 6 Sep 2013 18:29:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4791C2554; Fri, 6 Sep 2013 18:29:57 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id c10so1275177wiw.8 for ; Fri, 06 Sep 2013 11:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=9t2w/5x+wDVcUA6ONDUAITqoMsBWZvy1K++9SIV8Nq4=; b=MrxIaOmOfspnNyV3IWvoKKmkA2AjZKic/YfT3p9r3KYpu0Ztl1C2D8KETfgvBmxzsd HPss6uQzmM+Nhe5/ZSFYcOJ/k4P2WEUyOsBlSAAAPdJ4UGqXp9AMvEZVDKtOE5Nu49FS 2fjM8AIeirIdbwhIRdSaKlq9/l1TEpFXGamfQfZTiEJhpNiUxT/orrnj3IbVq7zmy+LL 36npJgDfml+WJpJ7V7SchOaXVMTEen4aUCCoIfAFe3tYdtsQUtONLqpOg3nu6SxejY3Z ZMqzxb4FPbHfyLK5M1+Kw1UFUVkDxcDRZHK5UQfg/9MYalg6ahMWznY4RqEDlb2+g9g7 agVQ== MIME-Version: 1.0 X-Received: by 10.180.10.136 with SMTP id i8mr3077358wib.46.1378492195487; Fri, 06 Sep 2013 11:29:55 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.73.133 with HTTP; Fri, 6 Sep 2013 11:29:55 -0700 (PDT) In-Reply-To: <1378491503.48812.5.camel@localhost> References: <1378491503.48812.5.camel@localhost> Date: Fri, 6 Sep 2013 11:29:55 -0700 X-Google-Sender-Auth: sK-Jj4kl9dSR-3KJ52h62Zh08ZE Message-ID: Subject: Re: DIR-825B1 iicbus thing From: Adrian Chadd To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded 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: Fri, 06 Sep 2013 18:29:58 -0000 please port it? :-P -adrian On 6 September 2013 11:18, Sean Bruno wrote: > I've almost got a functional set of gpio pin hints setup now. I seem to > have an unsupported device on the iicbus, probably the realtek switch > thing? > > > iicbb0: on gpioiic0 > iicbus0: on iicbb0 master-only > iicbus0: at addr 0xa8 > iic0: on iicbus0 > > The DIR-825B1 seems to have a "rtl8366s" ethernet switch. That needs to > be ported to FreeBSD. OpenWRT seems to have a driver for it: > > https://dev.openwrt.org/browser/trunk/target/linux/generic/files/drivers/net/phy/rtl8366s.c > > Sean > From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 18:31:18 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 16ACDF7A; Fri, 6 Sep 2013 18:31:18 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 85A9B258B; Fri, 6 Sep 2013 18:31:17 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id n12so868386wgh.3 for ; Fri, 06 Sep 2013 11:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Yaj8oJwCGSaI4I1kY9MVKSRMb3h1mo+GY7kMzFdMkqs=; b=PNpBT6rT3aRDsj6JjhCtM4bgrywWv9nJrZEIjyYtIO4cX2HShlDa6Ko2cAbqE1ixYK xTwRAkKfnNcJm0S7XzWaJ8z7POEkG/CftvfgcFWiMMStX1zCa5VMEstDp2UQASzoTZHT 62iO/OLas0Av6AnLvVSByjKVR8CQ1NzHxROyzshVH39C1QBcCxi1ssbjwntbc/WRBt8K VOJmmKJ6+zsLVx6oD4ebCYUlR6ouXb0vnO3VHR1/Lsmxrq7gCyZUDRhUcxjYUmOOyu6s UpW7/crdZgDw5NA9b921+yEBkZuHDVcypvanKyqtTrA61WDOyjFlTDf2aKC2dDo83Iv7 xRvw== MIME-Version: 1.0 X-Received: by 10.194.122.99 with SMTP id lr3mr3140599wjb.21.1378492275990; Fri, 06 Sep 2013 11:31:15 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Fri, 6 Sep 2013 11:31:15 -0700 (PDT) In-Reply-To: <1378488150.1637.5.camel@localhost> References: <1378488150.1637.5.camel@localhost> Date: Fri, 6 Sep 2013 15:31:15 -0300 Message-ID: Subject: Re: GPIO hint meanings From: Luiz Otavio O Souza To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded 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: Fri, 06 Sep 2013 18:31:18 -0000 On 6 September 2013 14:22, Sean Bruno wrote: > I think I have a fairly firm grasp on what some of the mips/gpio hints > mean, e.g.: > > hint.gpio.0.pinmask > hint.gpioled.0.at > hint.gpioled.0.name > hint.gpioled.0.pins > > Fairly straightforward. > > Now, what do these mean/do: > > hint.gpio.0.function_set > hint.gpio.0.function_clear > > ? > > Sean > > p.s. I think I'll take this and thrash together a gpioled(4) and gpio(4) > man page if I can understand better. > Hi Sean, Some of the GPIO pins on this SoC family (ar724x, ar71xx and ar9xxx) can be set between GPIO and an alternate function. So adding a pin to function_set enables this alternate function and the function_clear disables it (sometimes the bootloader doesn't initialize properly those pins). Each SoC has its own set of pins and functions. For ar71xx the pins 0 and 1 can be used as additional SPI chip select outputs, pins 9 and 10 are used for UART and there are also reserved pins for a SLIC/I2S interface. Luiz From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 18:38:14 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 7FC0C25A; Fri, 6 Sep 2013 18:38:14 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C5ACB25DF; Fri, 6 Sep 2013 18:38:13 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id hj3so1283216wib.13 for ; Fri, 06 Sep 2013 11:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XVAUS5B4ra/9A7sBzIPLHQoyUWgjDUW7FWoVWJhj/hQ=; b=UCK5kldcsgc6Kf7BG+9xKrlsxe8ubTfnTyL0t+YJWhwVs3+T+jtHjelnJiDcoa7kEc KnkIxS8J89tJS8TTtG0CLZKZynUgF6O5cSYZqnYA5RuD3a9JkumzbjQsFuz6fYyHLJ93 3Sq5o3WbAT57VZ0u/ZT1Bom7GMMzCuEjfLgCre75L62ws5R8xlc6wK8bu8xzzadv2LCR en2yc8znMJO79FlheDEkh5OLK1kFqhFtCVX6Qhq4DB2WZEFIxY0sBoyQSj3/f+wkgZQb EXDs9oJVgd7YMKqipC3hPrOEQsnhOSsWVrj6SuFpLMbApL/I3I4ULPpt1aW5FXk4LXJM 26LA== MIME-Version: 1.0 X-Received: by 10.180.198.79 with SMTP id ja15mr3095441wic.36.1378492690966; Fri, 06 Sep 2013 11:38:10 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Fri, 6 Sep 2013 11:38:10 -0700 (PDT) In-Reply-To: References: <1378491503.48812.5.camel@localhost> Date: Fri, 6 Sep 2013 15:38:10 -0300 Message-ID: Subject: Re: DIR-825B1 iicbus thing From: Luiz Otavio O Souza To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded 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: Fri, 06 Sep 2013 18:38:14 -0000 Maybe you're lucky and it is just supported: http://svnweb.freebsd.org/base/head/sys/dev/etherswitch/rtl8366/ :-) (but i'm not sure if 's' or the 'rb' suffix matter). Please check the TPLink 1043 kernel and hints for a setup example for this switch. Luiz On 6 September 2013 15:29, Adrian Chadd wrote: > please port it? :-P > > > -adrian > > > On 6 September 2013 11:18, Sean Bruno wrote: > > > I've almost got a functional set of gpio pin hints setup now. I seem to > > have an unsupported device on the iicbus, probably the realtek switch > > thing? > > > > > > iicbb0: on gpioiic0 > > iicbus0: on iicbb0 master-only > > iicbus0: at addr 0xa8 > > iic0: on iicbus0 > > > > The DIR-825B1 seems to have a "rtl8366s" ethernet switch. That needs to > > be ported to FreeBSD. OpenWRT seems to have a driver for it: > > > > > https://dev.openwrt.org/browser/trunk/target/linux/generic/files/drivers/net/phy/rtl8366s.c > > > > Sean > > > _______________________________________________ > 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 > " > From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 18:39:59 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 25FF12A8 for ; Fri, 6 Sep 2013 18:39:59 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm18-vm2.bullet.mail.gq1.yahoo.com (nm18-vm2.bullet.mail.gq1.yahoo.com [98.136.217.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DBD8025F0 for ; Fri, 6 Sep 2013 18:39:58 +0000 (UTC) Received: from [98.137.12.189] by nm18.bullet.mail.gq1.yahoo.com with NNFMP; 06 Sep 2013 18:39:52 -0000 Received: from [208.71.42.212] by tm10.bullet.mail.gq1.yahoo.com with NNFMP; 06 Sep 2013 18:39:52 -0000 Received: from [127.0.0.1] by smtp223.mail.gq1.yahoo.com with NNFMP; 06 Sep 2013 18:39:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378492792; bh=qZO6LxxkMAxJAmBUru572JMEyWTqtftlXIrpYo8UAzs=; 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=ixawgd4JNPgEQO1Qwu/Ckmp9aSz5F7nUJBsHES0c1tHyrPa5PJEj8n5dcOb3F3mQ6G+HqFnUoDrsKpE/tZx9D5rUNtRPPsLn2INkEFZ+dUDRB/7JuL2/CZBhL+3vOqCHQ7FnQuZ782G6ol/l/KdZj21T/rHD47TDxEODMlf9HIA= X-Yahoo-Newman-Id: 268333.86799.bm@smtp223.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: z7AWpX4VM1lh0AlyvElqFYoZbPN7hZEp11YBU5fV9keXrH_ RG9G6JRLItTYtJMYd1bwShXIvwGlbeBd9cPE0nf_yW.4MWECd1Ps0DJckDLu NIf9VQorSyDyWAazwL2UJPfg7.7T2tlFIxPZuMxsB4gWGJNwOsglfETPT.NI NIbITfCFHYhaER30FRdZIpVqMDumrdlou1bE0bd2e2d3yaEBOSFsCGG.Qjk5 IeRftJxgX_6._Q_gjBgaYjFoSXuXJCl4pMP7W3SZM6cABqlqXSx2jQaQZ7IK qH7QLtxy8x0HQBHH.YLk5WqQvht.O4yF_ZkLgKq6Y6kNKZV99OJ5PsQndpR8 GTk8KB8f_GoPBUY439boc6LfQFG64N1boxV_q6edJprc6Zz2s0p4oazjBg_3 A_CqbgZlW6QHNBP4zNBb2_3Drgo3PsBvszRY5w9hm5AyJ8hurROpvMVpA87i R4S3EiDjs62jRh2HRueMd6.px72pnUzAj2SzLMAchtgwzFT_o6MdRLl92KHU G6Jo0BSzI43WsounkifodKTRLXtt2HAnIMTlBktC4aTrPLC_UudfcGQnAI.0 HWbVnstmgQNOBIhlzWfcjPwPJteIhOIHwN6Ij79OyEPtfBU_zdzmklm0JxEN b53ok1R36Hl0iZfRziXiYZfKa2ETs1KTq3qVjIrGmroE3N7mRfQJDn1.p8hQ hNEqJYSmy X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp223.mail.gq1.yahoo.com with SMTP; 06 Sep 2013 18:39:52 +0000 UTC Subject: Re: DIR-825B1 iicbus thing From: Sean Bruno To: Adrian Chadd In-Reply-To: References: <1378491503.48812.5.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-PR5bUju822vDaVQozcCK" Date: Fri, 06 Sep 2013 11:39:51 -0700 Message-ID: <1378492791.48812.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-embedded 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, 06 Sep 2013 18:39:59 -0000 --=-PR5bUju822vDaVQozcCK Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Fri, 2013-09-06 at 11:29 -0700, Adrian Chadd wrote: > please port it? :-P >=20 >=20 >=20 Exactly my thought. Sean >=20 > -adrian >=20 >=20 > On 6 September 2013 11:18, Sean Bruno wrote: > I've almost got a functional set of gpio pin hints setup now. > I seem to > have an unsupported device on the iicbus, probably the realtek > switch > thing? > =20 > =20 > iicbb0: on gpioiic0 > iicbus0: on iicbb0 master-only > iicbus0: at addr 0xa8 > iic0: on iicbus0 > =20 > The DIR-825B1 seems to have a "rtl8366s" ethernet switch. > That needs to > be ported to FreeBSD. OpenWRT seems to have a driver for it: > https://dev.openwrt.org/browser/trunk/target/linux/generic/files/= drivers/net/phy/rtl8366s.c > =20 > Sean >=20 >=20 --=-PR5bUju822vDaVQozcCK 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) iQEcBAABAgAGBQJSKiF3AAoJEBkJRdwI6BaH+ckIAIgm/pedPhrrPpnrO6v8zFSl qPbgthS15CUk6MWP1j+d58wCvNqBYRgHKVoxE25WyW69voaMbu5nJFR9/YROXZDS M4lK6l9lNKZs4qddNUP1W6GgXKLBTuuYv1CETeTYwE3YuDo22EYeL3B9gCor0tYf C+jPSCWAkmxilzpZ/6p5VHCXcfgtgBQJ0y1bA4qCf2Jex0tKPJNXbEalm3kUeAsn Ol30nn50lHS6ZXOy8DJLUKTM/lOFYwTCrq2R19618EbUoQGtAAHuCwXbVt+hRksP Wx7qKAVrZCg2+S4/0/TGcjLoWsZrh9eOsvIIIVn80GMo+Mj/kJtEKuZGdt/1WYo= =qM/n -----END PGP SIGNATURE----- --=-PR5bUju822vDaVQozcCK-- From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 18:51:54 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AA68FA6B for ; Fri, 6 Sep 2013 18:51:54 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm28-vm5.bullet.mail.ne1.yahoo.com (nm28-vm5.bullet.mail.ne1.yahoo.com [98.138.91.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5BE6726C5 for ; Fri, 6 Sep 2013 18:51:54 +0000 (UTC) Received: from [98.138.101.131] by nm28.bullet.mail.ne1.yahoo.com with NNFMP; 06 Sep 2013 18:46:07 -0000 Received: from [98.138.226.62] by tm19.bullet.mail.ne1.yahoo.com with NNFMP; 06 Sep 2013 18:46:07 -0000 Received: from [127.0.0.1] by smtp213.mail.ne1.yahoo.com with NNFMP; 06 Sep 2013 18:46:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378493167; bh=3C6JVS7xD5LKbPUrIJlBjwi2Wq2V1qBtvA0D7TtrXBA=; 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=jOhg5vXjJx6kw7nEm5StM3yrVF71nZuYj2B1WCec/609OogUQM/SPE78FWmn3hs25wD/Cm+HZjE/R/DV85g/hxCXPJGF1AhwpzSjTzmM3ubyk6ainV33OTYR7ck6uf0Tv8mFpH0jmVJAiFv45ursaC2jVKo/Hg/HgspzZHP1EvM= X-Yahoo-Newman-Id: 900874.40434.bm@smtp213.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: AntStyAVM1ntn9GDiiculehaXBgPINQdU1xPjjv.N4cet3w .Vt4fJrB8SzqZIWmgKtDG5SrCIzBp3wL2rosRcmP18A8DYW6Cw13pwXlBO93 Xu4BohU.LQTW8NPD7BU7iEGq96PbBAAOrilXb.0d7LaMOou3NOqE.lI0WfOR gJVP6qGrvIBYkN8H4anq5qKW70ZwPjSJU2x.3_dNvGSpQCKFYIVfYIjGSKpu 1kIUQM4STmooQmxILlv2NaXfdAmo6rkVl6DdAmIi9arS_sh8RGfT6YqheThr MCGWtNZMQUmC4ihDJG7kNp3eCbXPWjpK_tfHq3mOPKk5D0ZTpO_tUYAhgqlY cWjpLZco1EEe1snbMgKMvcX2MoC5y5lyZauWll8bNpezttRvdzN.MJqsMAjb 3i9Bj0B2ekvnw9_O59hLbd9Jx_F1pMnYu4bIlx8.NUh3ad2cs0zbxTy8aCZ3 Ab_1fQYvCRddRQAW4x0brk6q2aYVrTpWv20t53T6elPrfhojMnqGBw6mW6To 9yM1SVnM9gt0j_Sf3UldZSyrQRPrTZCJaZHY4w3R.SLmCVWXHtV8xLFT1BOt .YmxxJb0RyXyz7FLWyueHoOwF4UqkhH4qrXodMJYr5cI.4M5NVwujZn.JWKt S_IhwhX5Dnv36InJpOiprZLVuCuKu7g-- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp213.mail.ne1.yahoo.com with SMTP; 06 Sep 2013 11:46:07 -0700 PDT Subject: Re: DIR-825B1 iicbus thing From: Sean Bruno To: Luiz Otavio O Souza In-Reply-To: References: <1378491503.48812.5.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-XriguOraqQfYuH11X0AH" Date: Fri, 06 Sep 2013 11:46:06 -0700 Message-ID: <1378493166.48894.1.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-embedded 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, 06 Sep 2013 18:51:54 -0000 --=-XriguOraqQfYuH11X0AH Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Fri, 2013-09-06 at 15:38 -0300, Luiz Otavio O Souza wrote: > Maybe you're lucky and it is just > supported: http://svnweb.freebsd.org/base/head/sys/dev/etherswitch/rtl836= 6/ :-) (but i'm not sure if 's' or the 'rb' suffix matter). >=20 >=20 > Please check the TPLink 1043 kernel and hints for a setup example for > this switch. Yeah, I did. and no, its not supported. Its not attaching when I enable the driver and etherswitch. > =20 > > iicbb0: on gpioiic0 > > iicbus0: on iicbb0 master-only > > iicbus0: at addr 0xa8 > > iic0: on iicbus0 --=-XriguOraqQfYuH11X0AH 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) iQEcBAABAgAGBQJSKiLrAAoJEBkJRdwI6BaHyy4IAIs5sf3oofyFtJNy285GSP2d AIZED+RzA3GQ0b/EHnR//JzTJy8VlE2hu+7tqt1UYFMiXJCFeK85/HmwtOKhubeM hSpTivcjSbHXKNXUhsYFyyq1fTv1xmiptL2fqvkbQn5L33ZAoz+1U6bC4XCka6cl 5DCOT6CHGND49wAnUDzC7vFVEnHFfwPCnWQ08eJ30PqiouGdlT7jRmEAzaBdNiKO Lx2/YOw0ALy4fSGfdLZjOP53lV1YZV3zkLZ9ZLkA6ekLwlPhbgiYpx2mCaCEW+t8 h5rdMoiJA9QDe+5iuwTuYhX4S5GgXWEgnwgPonE1M6Pf7ZhLLZ2AtfP3MRW/7dc= =86Fk -----END PGP SIGNATURE----- --=-XriguOraqQfYuH11X0AH-- From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 18:54:04 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 F13FCAA4 for ; Fri, 6 Sep 2013 18:54:04 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm22-vm2.bullet.mail.ne1.yahoo.com (nm22-vm2.bullet.mail.ne1.yahoo.com [98.138.91.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 98A1626CE for ; Fri, 6 Sep 2013 18:54:04 +0000 (UTC) Received: from [98.138.226.176] by nm22.bullet.mail.ne1.yahoo.com with NNFMP; 06 Sep 2013 18:53:58 -0000 Received: from [98.138.226.59] by tm11.bullet.mail.ne1.yahoo.com with NNFMP; 06 Sep 2013 18:53:58 -0000 Received: from [127.0.0.1] by smtp210.mail.ne1.yahoo.com with NNFMP; 06 Sep 2013 18:53:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378493638; bh=kmwhm6RjejZ3EcBbnZQyZhmv0r7apld0hjVFMm7P9vM=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=0+4pgEiAEivAI8u6kzKS2F8uHnZZimPPHvorso7z58QQHh+cRYOVc2Z6tXLd/twUiMvPC5hRZ/eDQsLf3WjT/NKryDI/QOcA8PlCAHnm4K8CXHYDElfOFWK1HZwq9S5qjDQe922Ewqr6eG4EFe69GDiooSN+DSv5eFqOngzFuP4= X-Yahoo-Newman-Id: 413027.57163.bm@smtp210.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: .TLThAwVM1mSv0zpLaV_v_oi8uDpHRfUlXRfulCGy3hNKPP Aij.QEYsbh6xfeokvSTR9YZUEIx7ztu0oCXd2O.x.d9hJG58qk1mkjvH4TKU xAtNGP6MN0MoZXQkOHw58IuogqeSZQk_rEUWHgoHErqEobE19BFn6X6AtCH8 thUeGRWcpcehj_0l5C7_9qJ1999FskiNLs7Tp_e2bsncpzoD8KdTlpxqbult KKqc2TzYHVd3b2BsToomyMUhLoTwmGALyKns98ihvdHmKnREd1vIcG3xoDum qOhn_BrL.DPp8WzCPT2n3zGFpZSIPaVk2.4iqz_TXYinhvrzshpt7Xi4OQ08 qvUnju7tGayQ39JWZaV83w1HP8rFEwcS6zl0xZp2yA_TYeD84w51ftlldZZh Z1SnYwfYfQJbL6pxzEmRiZivZ4WfmEJFUFIO5T0S1TQ7KF9nCkQjimAUl7jW KYGzz1H9dcAwbD1Pc5e6i.G0nZASADBNq.l7nK1HIEw17PpgaWn_cjja0J5f UPXegwNTwa68fB8c20PjWcbnaJoezrElG9aV3EW8ONO1GkgN3FEe_NBlpLSH HngazSXcZNygTp.2KIT6On.5Zf40Okit2Poi2yUXjegre6E5c0KYZkGPLD1u .0TmJD2ivNVNWtXX1QDc- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp210.mail.ne1.yahoo.com with SMTP; 06 Sep 2013 11:53:58 -0700 PDT Subject: DIR-825 GPIO and LED hints/update From: Sean Bruno To: freebsd-embedded Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Z9m4kmM17PyqESvQHdnF" Date: Fri, 06 Sep 2013 11:53:57 -0700 Message-ID: <1378493637.48894.3.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, 06 Sep 2013 18:54:05 -0000 --=-Z9m4kmM17PyqESvQHdnF Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable http://people.freebsd.org/~sbruno/DIR-825B1_gpio.txt Hints update to get functional LED capabilities, activate iicbus and prepare for development of the etherswitch support for this router. Sean --=-Z9m4kmM17PyqESvQHdnF 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) iQEcBAABAgAGBQJSKiTFAAoJEBkJRdwI6BaHkWAH/RMeS5qP+G9WnmfrZCvuqQs3 MKM6OJs3+8TfcixftD8L+KAeq6HPk3YlKQVM3AExJwRmf/X4ikJrCiXqMhUyeFOS B6fq3oQodfcnwVaFTMDKJeBH5W6Le/a1PUFAWHV8BHuWmEvou5A458jTZrB97MIW 5ir2p5un0T2+QH+E1m4BrD8wt6YxDfo8mFaO+NQJ+3gLS/H2HU7f5BC8Sz+Baxb+ jHX3omXL8CpmGflGPtyXtRgMsok2BmNqHEDWoApsq2qzXMWBYG7mZ5E3M+tN+skp Zpv5EPioG7obz1Q8H4rE6YKszgkE2iwHNBz9ZQ4fAkqWnspFpSvEdxjQ818bgCo= =cqJX -----END PGP SIGNATURE----- --=-Z9m4kmM17PyqESvQHdnF-- From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 19:13:45 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8B5342BC for ; Fri, 6 Sep 2013 19:13:45 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm2-vm6.bullet.mail.ne1.yahoo.com (nm2-vm6.bullet.mail.ne1.yahoo.com [98.138.91.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5470A2839 for ; Fri, 6 Sep 2013 19:13:45 +0000 (UTC) Received: from [98.138.90.51] by nm2.bullet.mail.ne1.yahoo.com with NNFMP; 06 Sep 2013 19:13:43 -0000 Received: from [98.138.226.130] by tm4.bullet.mail.ne1.yahoo.com with NNFMP; 06 Sep 2013 19:13:43 -0000 Received: from [127.0.0.1] by smtp217.mail.ne1.yahoo.com with NNFMP; 06 Sep 2013 19:13:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378494823; bh=so5MVtQBcGfGX3AJ0pgBKDb/Oeld9Wurn5776lJLr8s=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Cc:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=nmj4+XZjSC6NUnhEE6wTnHExMhwZsLBRuMENvYj0kPO8zskf0ivigiFEjLH1qHAFDuito+t22euiPbV2urQD3nw1KOZetj6uROD4l29F442oS2u+On+2nayH5LT3jZYUfIMGQqowj7aI9zQgDsCCLHOso+YBJvGhvl2gfNifVow= X-Yahoo-Newman-Id: 932314.38397.bm@smtp217.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: B0gQcAsVM1kB9qAS7ySfZFBwQBdnFpX.MPTBUD2lxrr2410 SRIPTSUALBja8DyEMfbJ8zN7QONMbNtK3LRuF0nVGdHSIgZolAnTc9Ps7HQG sdbzCPNsan_aXq1wa9kw6TtoYxkgQ.CqRWa0z_Y1Um_7hA6odKP295rUI1E0 SR6rMm7djbV_8kOnkK4SKtUR0v0z4tslhDY90wAugaMeGgCLVjy0xITpArxW F9oaJy67smaw0J8EnV_vTz93Re5_U96_Ahe2LaHJLN6sKQWXIO65Hc2tNEG_ V3TjltNK2pG143rKkrLTVKTHgvnTEsPEOynm9LhgxxZAlJoS77XeBfqHkWkJ 6xNvNpJfRXyyBMgA1zg0NIYAod2PfGqna_91cFmcfUy.UZygc4eTxVQ9ewPn tldZAcxVf8sgKtRXUSDxuPLxQ8d.pBiwkWl6vz6YtUt0nwQExN66sGPcxfDZ kneoR2ChgaTIEsfdDkYUovmsuzzHQsNx2CDG5_A1VtY7h8_.MqsdO2.2wD0Q punAJzGTQ1Ci9cbeyAM6hyyjqt.B35z9303kdDNXzIORzrreI6_srHubwdwS bmDJmhalNTU2X7g.F014dhSLfZagDZCo3YS6IEyVSTxXAeqTlwmXE07uQGv. BJ8crZYjY3GP3dAcgXstj4J_tfUZrvzB9pRQoa130TbPl9.Z6tRxTpSKZ0g. KugueFP4zmRySW_z0na.szA.xM9kKpGHkJFHrsTlWmQUDqtMu3mfvZt83A9c - X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp217.mail.ne1.yahoo.com with SMTP; 06 Sep 2013 19:13:43 +0000 UTC Subject: Buffalo Airstation build support From: Sean Bruno To: Adrian Chadd Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Nka/7Lj5ePky+P6ge/VI" Date: Fri, 06 Sep 2013 12:13:42 -0700 Message-ID: <1378494822.48894.9.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-embedded 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, 06 Sep 2013 19:13:45 -0000 --=-Nka/7Lj5ePky+P6ge/VI Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable http://people.freebsd.org/~sbruno/buffalo_airstation_support.txt Implement support for Buffalo, "OpenWRT Friendly" Atheros Mips 24k board in the wifi builder. I'm still working on the kernconf, but the wifi builder support will create and image called /tftpboot/wzr300hp-tftp.bin that is accepted by the router when pushed in via tftp and uboot following the instructions at: http://wiki.openwrt.org/toh/buffalo/wzr-hp-g300h#oem.installation.using.the= .tftp.method The kernel panics right now, and I'll follow up with a kernconf/hints patch for review once I have fixed my initial crash and burn.BUFFALO U-BOOT Ver 1.00 =3D=3D CPU:400MHz, DDR:400MHz, AHB:200MHz =3D=3D PB93 (ar7241 - Virian) U-boot DRAM: 64 MB WAN port disabling: done Top of RAM usable for U-Boot at: 84000000 Reserving 267k for U-Boot at: 83fbc000 Reserving 192k for malloc() at: 83f8c000 Reserving 44 Bytes for Board Info at: 83f8bfd4 Reserving 36 Bytes for Global Data at: 83f8bfb0 Reserving 128k for boot params() at: 83f6bfb0 Stack Pointer at: 83f6bf98 Now running in RAM - U-Boot at: 83fbc000 flash bank #0 found 16 MB flash [MX25L128-45E, blk:0x10000, sectors:256] flash bank #1 found 16 MB flash [MX25L128-45E, blk:0x10000, sectors:256] Flash: 32 MB In: serial Out: serial Err: serial Memory Test uboot use 83F6BFB0 - 84000000 Memory Test start(80000000) end(83F00000) size(03F00000) Pattern 00000000 Writing... Reading... Memory Test OK ### buf_ver=3D[1.00] U-Boot Ver.=3D[1.00] ### build_date(env)=3D[May 21 2012 - 06:39:59] build_date(bin)=3D[May 21 2012 - 06:39:59] ag7240_enet_initialize... Reading MAC Address from ENV(0x83f8c2f8) No valid address in Flash. Using fixed address Virian MDC CFG Value =3D=3D> 4 : cfg1 0x7 cfg2 0x7014 eth0: 02:aa:bb:cc:dd:1a eth0 up Virian MDC CFG Value =3D=3D> 4 : cfg1 0xf cfg2 0x7214 eth1: 00:03:7f:09:0b:ad ATHRS26: resetting s26 ATHRS26: s26 reset done eth1 up eth0 02:AA:BB:CC:DD:1A , eth1 00:03:7F:09:0B:AD dup 1 speed 1000 tftp server(receive) go, waiting:4[sec] Load address: 0x81f00000 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ tftp server done Bytes transferred =3D 7154208 (6d2a20 hex) Airstation Public header Recv fw image [7154176] bytes, now writing... flash-addr 0xBF060000 - 0xBF73FFFF search sector 0xbf060000 - 0xbf73ffff BANK #1 (6 : 115) 000 PPPP.Poooooooooooooooooooooooooo 032 oooooooooooooooooooooooooooooooo 064 oooooooooooooooooooooooooooooooo 096 oooooooooooooooooooo............ 128 ................................ 160 ................................ 192 ................................ 224 ................................ BANK #2 (-1 : -1) 000 ................................ 032 ................................ 064 ................................ 096 ................................ 128 ................................ 160 ................................ 192 ................................ 224 ................................ First 0x6 last 0x73 sector size 0x10000 115 Erased 110 sectors Copy to Flash...=20 Copy 7154176 byte to Flash... write data: 81f00020 --> bf060000 (len:6d2a00) done change bootargs console=3DttyS0,115200 root=3D31:03 rootfstype=3Djffs2 init=3D/sbin/init mtdparts=3Dar7240-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592= k@1536k(rootfs),64k@320k(ART),64k@8128k(properties) mem=3D64M product_rev= =3D1 UART=3D1 ## Booting image at bf060000 ... Image Name: FreeBSD Created: 2013-09-05 14:01:16 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1084688 Bytes =3D 1 MB Load Address: 80050000 Entry Point: 80050100 Verifying Checksum ... crc32_fw: bf060040 - bf168d4f (len:00108d10) calc... crc32_fw: range1 bf060040 - bf168d4f OK Uncompressing Kernel Image ... OK Ethernet Disabled! No initrd ## Transferring control to Linux (at address 80050100) ... ## Giving linux memsize in bytes, 67108864 Starting kernel ... CPU platform: Atheros AR7242 rev 1 CPU Frequency=3D400 MHz CPU DDR Frequency=3D400 MHz CPU AHB Frequency=3D200 MHz platform frequency: 400000000 CPU reference clock: 5 MHz arguments:=20 a0 =3D 00000009 a1 =3D a3f6bfb0 a2 =3D a3f6c490 a3 =3D 00000020 Cmd line:argv is invalid Environment: envp is invalid Cache info: picache_stride =3D 4096 picache_loopcount =3D 16 pdcache_stride =3D 4096 pdcache_loopcount =3D 8 cpu0: MIPS Technologies processor v116.147 MMU: Standard TLB, 16 entries L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=3D0x9ee3519e Config3=3D0x20 Physical memory chunk(s): 0x541000 - 0x3ffffff, 61599744 bytes (15039 pages) Maxmem is 0x4000000 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 #8 r255228:255230M: Thu Sep 5 07:00:03 PDT 2013 sbruno@powernoodle:/home/sbruno/bsd/obj/mipseb/mips.mips/home/sbruno/bsd/he= ad/sys/WZR-300HP 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 Preloaded elf kernel "kernel" at 0x8053b484. real memory =3D 67108864 (65536K bytes) Physical memory chunk(s): 0x005d5000 - 0x03eb8fff, 59654144 bytes (14564 pages) avail memory =3D 58933248 (56MB) random device not loaded; using insecure entropy random: initialized mem: null: nexus0: clock0: on nexus0 Timecounter "MIPS32" frequency 200000000 Hz quality 800 Event timer "MIPS32" frequency 200000000 Hz quality 800 apb0 at irq 4 on nexus0 uart0: <16550 or compatible> on apb0 uart0: console (115200,n,8,1) uart0: fast interrupt gpio0: on apb0 gpio0: [GIANT-LOCKED] gpio0: gpio pinmask=3D0x0 gpioc0: on gpio0 gpiobus0: on gpio0 pcib0 at irq 0 on nexus0 pcib0: ar71xx_pci_attach: missing hint 'baseslot', default to AR71XX_PCI_BASE_SLOT Trap cause =3D 7 (bus error (load or store) - kernel mode) [ thread pid 0 tid 100000 ] Stopped atpanic: corrupt spinlock --=-Nka/7Lj5ePky+P6ge/VI 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) iQEcBAABAgAGBQJSKilmAAoJEBkJRdwI6BaHdEcH/0b/SoHQoo7fwRGfEjx6kKjd 0ngBlo+Twut/pXmyQNQoXfglT2kAAUyymzuagbRAySoeano9UnaBLOEMwx2JEdi6 pyGFguc6865h9Kn+o8mgdFQVPZaGWxj5fp2twIbxgwoUX97+0EUuSYv/4sHGCI6p Balp38vEuNbuSexX6R7OGSfvxqIS73+eDUht01tgh5Hqx5W67lb6z819hl647Yfh 4BTwmA5IHrXyXE5nwqnDUdMN9fJ42USlc1gbCocSJJLAJ2IEJgfcpgsUIypxmBkE QceO0aLuuLAQdbPIVrBsKgtmHR0T+slnzUDeL9ysg1Sgm7tOICJrHDF9TY9e5WA= =ZVV3 -----END PGP SIGNATURE----- --=-Nka/7Lj5ePky+P6ge/VI-- From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 19:22:01 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 63DF67AB; Fri, 6 Sep 2013 19:22:01 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AD493294B; Fri, 6 Sep 2013 19:22:00 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id b12so867385wgh.3 for ; Fri, 06 Sep 2013 12:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qCC1eWPNpzPggBRaNYeatqebr5OTezRsdfkpgpeAkxM=; b=ZnNXDFCek0ybCnUg59+9VzUGX5yocHnKmRq+BJXWy7K4a2HqXccQelrJDT2pdrpkl8 NU7vm+yIwC8mSV4swV2LDaW/RbgX+h2qeafhp1seKNNAXRskJdHDhMKQteF3Fvj6y64Y 5kn2CzQh94wnZ4A/VHV2RQIchE5Yc9ryouIGqQyLIGL6lITyemKMVnLi7uOJ+x6CFaoX 3SgXo8xVcWj95m2RBrtt272IryFr8uwhgw3+EHj4MNsOn92w2YV/5bwrlXallARbNZjd kC8lVH6jZ+rHSjAkyDucw4Y3Cq5o1KaAwL7hCw+j1OEAo6jiYdrQEkRJr331pc0qAXtK En8A== MIME-Version: 1.0 X-Received: by 10.180.198.79 with SMTP id ja15mr3230367wic.36.1378495319237; Fri, 06 Sep 2013 12:21:59 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Fri, 6 Sep 2013 12:21:59 -0700 (PDT) In-Reply-To: <1378493166.48894.1.camel@localhost> References: <1378491503.48812.5.camel@localhost> <1378493166.48894.1.camel@localhost> Date: Fri, 6 Sep 2013 16:21:59 -0300 Message-ID: Subject: Re: DIR-825B1 iicbus thing From: Luiz Otavio O Souza To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded 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: Fri, 06 Sep 2013 19:22:01 -0000 Sean, I've looked at your changes and found this: +# GPIO I2C bus +hint.gpioiic.0.at="gpiobus0" +hint.gpioiic.0.pins=0x00a0 +hint.gpioiic.0.sda=0 +hint.gpioiic.0.scl=1 Unfortunately the gpioiic on -head doesn't support yet setting the sda and scl pin indexes, they are hardcoded in the code: #define SCL_PIN_DEFAULT 0 /* default index of SCL pin on gpiobus */ #define SDA_PIN_DEFAULT 1 Can you change them and check if it change anything ? Thanks, Luiz On 6 September 2013 15:46, Sean Bruno wrote: > On Fri, 2013-09-06 at 15:38 -0300, Luiz Otavio O Souza wrote: > > Maybe you're lucky and it is just > > supported: > http://svnweb.freebsd.org/base/head/sys/dev/etherswitch/rtl8366/ :-) (but > i'm not sure if 's' or the 'rb' suffix matter). > > > > > > Please check the TPLink 1043 kernel and hints for a setup example for > > this switch. > > Yeah, I did. and no, its not supported. Its not attaching when I > enable the driver and etherswitch. > > > > > > iicbb0: on gpioiic0 > > > iicbus0: on iicbb0 master-only > > > iicbus0: at addr 0xa8 > > > iic0: on iicbus0 > > > From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 19:26:49 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BF860AEA; Fri, 6 Sep 2013 19:26:49 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1303829CE; Fri, 6 Sep 2013 19:26:48 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id e11so2285744wgh.9 for ; Fri, 06 Sep 2013 12:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=B0Dvh8r0gwO4ryD4FI/ByWbrTZXrhPNWnhRoDM7RN64=; b=g4TQkd7KuydUzr57a22KZO+B8i1u62clJPndfQPmfAiSGuqLNkBIUlNzb1EKwQ51L1 ZQaAz7soIRAgfG52AOZXm7aSylaHoX5csa+ZbYKfvaKnxlCHJuDAU5LoVo8Krwl0OW7A 4g3cgLJZz8XMZ57ZEYaccAoeyKdsMeNfdlyinC4Kv5+g755AsVlYDCeLyXziLlUj4G/5 NQNOvRn2h3SX2Qy2PGM6bkYyn+JyVniO/wj1D2nhnDEER5oJUUsJX4RntUaYyrjsM3nw Ras8pcXgsriXx8pBtGTpX55b++7E58LmOFSVa8E/Cxj3+XPRAquk5yAr+ItAyfcdiPag Wt+A== MIME-Version: 1.0 X-Received: by 10.180.75.239 with SMTP id f15mr3221840wiw.43.1378495607560; Fri, 06 Sep 2013 12:26:47 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Fri, 6 Sep 2013 12:26:47 -0700 (PDT) In-Reply-To: References: <1378491503.48812.5.camel@localhost> <1378493166.48894.1.camel@localhost> Date: Fri, 6 Sep 2013 16:26:47 -0300 Message-ID: Subject: Re: DIR-825B1 iicbus thing From: Luiz Otavio O Souza To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded 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: Fri, 06 Sep 2013 19:26:49 -0000 On 6 September 2013 16:21, Luiz Otavio O Souza wrote: > Sean, > > I've looked at your changes and found this: > > +# GPIO I2C bus > +hint.gpioiic.0.at="gpiobus0" > +hint.gpioiic.0.pins=0x00a0 > > Humm and 0x00a0 also seems wrong for DIR825: +# Pin 5 - WPS (LED blue) --> works +# Pin 6 - RTL8366RB switch data line +# Pin 7 - Planet (LED orange)--> works +# Pin 8 - RTL8366RB switch clock line If i'm not mistaken the correct mask is 0x140 (for pin 6 and pin 8) and then set the correct pin index for sda and scl. Luiz From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 19:42:35 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4B5DC34E for ; Fri, 6 Sep 2013 19:42:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1344F2C6C for ; Fri, 6 Sep 2013 19:42:35 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id j10so4500839oah.27 for ; Fri, 06 Sep 2013 12:42:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=MdDRGaq755IgTIgkDIEBlcmSuGG19OJsCHAcv6YbBfY=; b=GU+8iULud4v2txVdzqEnUClUglhiDHmu0N0O2EwOBcbFlFqYz0DESloTQeZQPxsUPn 43WNGg/s59NTa+R1ry8n4NKnGcbu/KrYq+/oXwrR6YGEZsrRQB6BNGIXH4dT7odrFSIX iwJGKAMnWe87xmHedV05/8MrIk89wv3JuiF0/vSxy2n2a3eoRVTaenefVMyJfxSgBcjW oSkxou3wJKuyTiLqsyaROjzK4UVTTMHSnt9Ew6Vorq7xJ47TaaNTvC3WoKkMd+NKY8oW UKY+4iCsJViPg8Y/o2qkwiDSrLZ+rlZHUA6egOREhptCmnPzTwd6ac+/yUWhMe27dzcD TJ8Q== X-Gm-Message-State: ALoCoQlDLnOY065gd/YW6DuVp5Mqcc+TUzmF5n+4ODAcqHpupMhzW+/hXMHUxWYNLSMm8l0LWSWg X-Received: by 10.182.158.104 with SMTP id wt8mr3000256obb.95.1378496554160; Fri, 06 Sep 2013 12:42:34 -0700 (PDT) Received: from fusionlt2834a.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id j9sm4249279oef.8.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 12:42:33 -0700 (PDT) Sender: Warner Losh Subject: Re: GPIO hint meanings Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Fri, 6 Sep 2013 13:42:31 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <097A9AFF-D291-4D9F-92CC-12E5E453F7C7@bsdimp.com> References: <1378488150.1637.5.camel@localhost> To: Luiz Otavio O Souza X-Mailer: Apple Mail (2.1085) Cc: freebsd-embedded 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: Fri, 06 Sep 2013 19:42:35 -0000 On Sep 6, 2013, at 12:31 PM, Luiz Otavio O Souza wrote: > On 6 September 2013 14:22, Sean Bruno wrote: >=20 >> I think I have a fairly firm grasp on what some of the mips/gpio = hints >> mean, e.g.: >>=20 >> hint.gpio.0.pinmask >> hint.gpioled.0.at >> hint.gpioled.0.name >> hint.gpioled.0.pins >>=20 >> Fairly straightforward. >>=20 >> Now, what do these mean/do: >>=20 >> hint.gpio.0.function_set >> hint.gpio.0.function_clear >>=20 >> ? >>=20 >> Sean >>=20 >> p.s. I think I'll take this and thrash together a gpioled(4) and = gpio(4) >> man page if I can understand better. >>=20 >=20 >=20 > Hi Sean, >=20 > Some of the GPIO pins on this SoC family (ar724x, ar71xx and ar9xxx) = can be > set between GPIO and an alternate function. So adding a pin to = function_set > enables this alternate function and the function_clear disables it > (sometimes the bootloader doesn't initialize properly those pins). >=20 > Each SoC has its own set of pins and functions. >=20 > For ar71xx the pins 0 and 1 can be used as additional SPI chip select > outputs, pins 9 and 10 are used for UART and there are also reserved = pins > for a SLIC/I2S interface. We really need a pinmux/pinctl type interface for this which is standard = across drivers/platforms. Warner= From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 22:00:44 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 DAD0D711 for ; Fri, 6 Sep 2013 22:00:44 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B0B752C77 for ; Fri, 6 Sep 2013 22:00:44 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VI455-0008Vn-LU; Fri, 06 Sep 2013 22:00:43 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r86M0eUK073098; Fri, 6 Sep 2013 16:00:40 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19OeEMvodyGhDearSg53Pbq Subject: Re: GPIO hint meanings From: Ian Lepore To: Warner Losh In-Reply-To: <097A9AFF-D291-4D9F-92CC-12E5E453F7C7@bsdimp.com> References: <1378488150.1637.5.camel@localhost> <097A9AFF-D291-4D9F-92CC-12E5E453F7C7@bsdimp.com> Content-Type: text/plain; charset="us-ascii" Date: Fri, 06 Sep 2013 16:00:40 -0600 Message-ID: <1378504840.1111.480.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-embedded 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: Fri, 06 Sep 2013 22:00:44 -0000 On Fri, 2013-09-06 at 13:42 -0600, Warner Losh wrote: > On Sep 6, 2013, at 12:31 PM, Luiz Otavio O Souza wrote: > > > On 6 September 2013 14:22, Sean Bruno wrote: > > > >> I think I have a fairly firm grasp on what some of the mips/gpio hints > >> mean, e.g.: > >> > >> hint.gpio.0.pinmask > >> hint.gpioled.0.at > >> hint.gpioled.0.name > >> hint.gpioled.0.pins > >> > >> Fairly straightforward. > >> > >> Now, what do these mean/do: > >> > >> hint.gpio.0.function_set > >> hint.gpio.0.function_clear > >> > >> ? > >> > >> Sean > >> > >> p.s. I think I'll take this and thrash together a gpioled(4) and gpio(4) > >> man page if I can understand better. > >> > > > > > > Hi Sean, > > > > Some of the GPIO pins on this SoC family (ar724x, ar71xx and ar9xxx) can be > > set between GPIO and an alternate function. So adding a pin to function_set > > enables this alternate function and the function_clear disables it > > (sometimes the bootloader doesn't initialize properly those pins). > > > > Each SoC has its own set of pins and functions. > > > > For ar71xx the pins 0 and 1 can be used as additional SPI chip select > > outputs, pins 9 and 10 are used for UART and there are also reserved pins > > for a SLIC/I2S interface. > > > We really need a pinmux/pinctl type interface for this which is standard across drivers/platforms. > The more ARM SoCs I look at, the less I think we could design a single pinmux api that works for all of them. The number of things that can be controlled varies from almost-nothing to chips that let you select from one of a dozen different resistor strengths for pullup or pulldown per pin. And that's not to mention really crazy things like daisy-chaining pins so the signal also goes to another pin which can be forced as an input even though it's normally a device output. -- Ian From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 22:13:36 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 047A4143 for ; Fri, 6 Sep 2013 22:13:36 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oa0-f51.google.com (mail-oa0-f51.google.com [209.85.219.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BDE2A2D69 for ; Fri, 6 Sep 2013 22:13:35 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id h1so4516274oag.38 for ; Fri, 06 Sep 2013 15:13:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=6QEnzEJ8kmC8Ek7/IJ2oGR9OzMgeT/xXK0QAesnOWsQ=; b=ZyxOHw1141A0IuvRfUoLcxvTV5/aT8UL9/r1z9FgBpvqQB6g7Y3DvdpvPPqs5V+QuA Zk45ZSJDiX6Xzc07tEo+rPewVjQ5h77GhgzYkGweNn+gmc2REBYvyORgJqt2PdDhHF40 6FEKlSOng4w+R+0L88V5JFr17Wj780BuJ/KiVibQmSt4xqI8gsOsWCbBb6B4wENY9U9g 2a/K+l3ZxWoI6rbnWv74xWcFZ8GeIGRTmjRyrBHe8vYs8EHS111612I7SNSJiJRQBVOs HE49URixPHIQDxsJl0B7sTp6dtULREigzNTF53m8NiPyO+/ZbSlVQz0FH/jRt+xF7Gwr qW0w== X-Gm-Message-State: ALoCoQn+OCLE4m/VoLQtcAVIxVfOlXzhTVLprPtRTg3dJhmaf4UxU/Z6p98L/J93uMIsZk0itXOw X-Received: by 10.182.96.100 with SMTP id dr4mr3554165obb.22.1378505609539; Fri, 06 Sep 2013 15:13:29 -0700 (PDT) Received: from fusionlt2834a.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id bq4sm4837159obb.1.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 15:13:28 -0700 (PDT) Sender: Warner Losh Subject: Re: GPIO hint meanings Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <1378504840.1111.480.camel@revolution.hippie.lan> Date: Fri, 6 Sep 2013 16:13:25 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1378488150.1637.5.camel@localhost> <097A9AFF-D291-4D9F-92CC-12E5E453F7C7@bsdimp.com> <1378504840.1111.480.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1085) Cc: freebsd-embedded 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: Fri, 06 Sep 2013 22:13:36 -0000 On Sep 6, 2013, at 4:00 PM, Ian Lepore wrote: > On Fri, 2013-09-06 at 13:42 -0600, Warner Losh wrote: >> On Sep 6, 2013, at 12:31 PM, Luiz Otavio O Souza wrote: >>=20 >>> On 6 September 2013 14:22, Sean Bruno wrote: >>>=20 >>>> I think I have a fairly firm grasp on what some of the mips/gpio = hints >>>> mean, e.g.: >>>>=20 >>>> hint.gpio.0.pinmask >>>> hint.gpioled.0.at >>>> hint.gpioled.0.name >>>> hint.gpioled.0.pins >>>>=20 >>>> Fairly straightforward. >>>>=20 >>>> Now, what do these mean/do: >>>>=20 >>>> hint.gpio.0.function_set >>>> hint.gpio.0.function_clear >>>>=20 >>>> ? >>>>=20 >>>> Sean >>>>=20 >>>> p.s. I think I'll take this and thrash together a gpioled(4) and = gpio(4) >>>> man page if I can understand better. >>>>=20 >>>=20 >>>=20 >>> Hi Sean, >>>=20 >>> Some of the GPIO pins on this SoC family (ar724x, ar71xx and ar9xxx) = can be >>> set between GPIO and an alternate function. So adding a pin to = function_set >>> enables this alternate function and the function_clear disables it >>> (sometimes the bootloader doesn't initialize properly those pins). >>>=20 >>> Each SoC has its own set of pins and functions. >>>=20 >>> For ar71xx the pins 0 and 1 can be used as additional SPI chip = select >>> outputs, pins 9 and 10 are used for UART and there are also reserved = pins >>> for a SLIC/I2S interface. >>=20 >>=20 >> We really need a pinmux/pinctl type interface for this which is = standard across drivers/platforms. >>=20 >=20 > The more ARM SoCs I look at, the less I think we could design a single > pinmux api that works for all of them. The number of things that can = be > controlled varies from almost-nothing to chips that let you select = from > one of a dozen different resistor strengths for pullup or pulldown per > pin. And that's not to mention really crazy things like = daisy-chaining > pins so the signal also goes to another pin which can be forced as an > input even though it's normally a device output. Linux is able to have one, although I'm not sure how they handle the = daisy-chain... that's a new one on me... Warner= From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 22:20:25 2013 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2915B536; Fri, 6 Sep 2013 22:20:25 +0000 (UTC) (envelope-from ray@freebsd.org) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id D90AC2DB3; Fri, 6 Sep 2013 22:20:24 +0000 (UTC) Received: from rnote.ddteam.net (52-58-135-95.pool.ukrtel.net [95.135.58.52]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 280A3C4935; Sat, 7 Sep 2013 01:20:23 +0300 (EEST) Date: Sat, 7 Sep 2013 01:20:04 +0300 From: Aleksandr Rybalko To: Ian Lepore Subject: Re: GPIO hint meanings Message-Id: <20130907012004.1a1d586d.ray@freebsd.org> In-Reply-To: <1378504840.1111.480.camel@revolution.hippie.lan> References: <1378488150.1637.5.camel@localhost> <097A9AFF-D291-4D9F-92CC-12E5E453F7C7@bsdimp.com> <1378504840.1111.480.camel@revolution.hippie.lan> Organization: FreeBSD.ORG X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) X-Operating-System: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-embedded 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: Fri, 06 Sep 2013 22:20:25 -0000 On Fri, 06 Sep 2013 16:00:40 -0600 Ian Lepore wrote: > On Fri, 2013-09-06 at 13:42 -0600, Warner Losh wrote: > > On Sep 6, 2013, at 12:31 PM, Luiz Otavio O Souza wrote: > > > > > On 6 September 2013 14:22, Sean Bruno > > > wrote: > > > > > >> I think I have a fairly firm grasp on what some of the mips/gpio > > >> hints mean, e.g.: > > >> > > >> hint.gpio.0.pinmask > > >> hint.gpioled.0.at > > >> hint.gpioled.0.name > > >> hint.gpioled.0.pins > > >> > > >> Fairly straightforward. > > >> > > >> Now, what do these mean/do: > > >> > > >> hint.gpio.0.function_set > > >> hint.gpio.0.function_clear > > >> > > >> ? > > >> > > >> Sean > > >> > > >> p.s. I think I'll take this and thrash together a gpioled(4) and > > >> gpio(4) man page if I can understand better. > > >> > > > > > > > > > Hi Sean, > > > > > > Some of the GPIO pins on this SoC family (ar724x, ar71xx and > > > ar9xxx) can be set between GPIO and an alternate function. So > > > adding a pin to function_set enables this alternate function and > > > the function_clear disables it (sometimes the bootloader doesn't > > > initialize properly those pins). > > > > > > Each SoC has its own set of pins and functions. > > > > > > For ar71xx the pins 0 and 1 can be used as additional SPI chip > > > select outputs, pins 9 and 10 are used for UART and there are > > > also reserved pins for a SLIC/I2S interface. > > > > > > We really need a pinmux/pinctl type interface for this which is > > standard across drivers/platforms. > > > > The more ARM SoCs I look at, the less I think we could design a single > pinmux api that works for all of them. The number of things that can > be controlled varies from almost-nothing to chips that let you select > from one of a dozen different resistor strengths for pullup or > pulldown per pin. And that's not to mention really crazy things like > daisy-chaining pins so the signal also goes to another pin which can > be forced as an input even though it's normally a device output. +1 Looks like it is kind of Freescale i.MX club :))))) > > -- Ian > > > _______________________________________________ > 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" -- Aleksandr Rybalko From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 22:27:50 2013 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5728B632 for ; Fri, 6 Sep 2013 22:27:50 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2BBFF2E09 for ; Fri, 6 Sep 2013 22:27:49 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VI4VI-0000Zk-S4; Fri, 06 Sep 2013 22:27:49 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r86MRkWg073156; Fri, 6 Sep 2013 16:27:46 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/qNVVlXwxDTaF0SwpJLmFc Subject: Re: GPIO hint meanings From: Ian Lepore To: Warner Losh In-Reply-To: References: <1378488150.1637.5.camel@localhost> <097A9AFF-D291-4D9F-92CC-12E5E453F7C7@bsdimp.com> <1378504840.1111.480.camel@revolution.hippie.lan> Content-Type: text/plain; charset="us-ascii" Date: Fri, 06 Sep 2013 16:27:45 -0600 Message-ID: <1378506465.1111.489.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-embedded 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: Fri, 06 Sep 2013 22:27:50 -0000 On Fri, 2013-09-06 at 16:13 -0600, Warner Losh wrote: > On Sep 6, 2013, at 4:00 PM, Ian Lepore wrote: > > > On Fri, 2013-09-06 at 13:42 -0600, Warner Losh wrote: > >> On Sep 6, 2013, at 12:31 PM, Luiz Otavio O Souza wrote: > >> > >>> On 6 September 2013 14:22, Sean Bruno wrote: > >>> > >>>> I think I have a fairly firm grasp on what some of the mips/gpio hints > >>>> mean, e.g.: > >>>> > >>>> hint.gpio.0.pinmask > >>>> hint.gpioled.0.at > >>>> hint.gpioled.0.name > >>>> hint.gpioled.0.pins > >>>> > >>>> Fairly straightforward. > >>>> > >>>> Now, what do these mean/do: > >>>> > >>>> hint.gpio.0.function_set > >>>> hint.gpio.0.function_clear > >>>> > >>>> ? > >>>> > >>>> Sean > >>>> > >>>> p.s. I think I'll take this and thrash together a gpioled(4) and gpio(4) > >>>> man page if I can understand better. > >>>> > >>> > >>> > >>> Hi Sean, > >>> > >>> Some of the GPIO pins on this SoC family (ar724x, ar71xx and ar9xxx) can be > >>> set between GPIO and an alternate function. So adding a pin to function_set > >>> enables this alternate function and the function_clear disables it > >>> (sometimes the bootloader doesn't initialize properly those pins). > >>> > >>> Each SoC has its own set of pins and functions. > >>> > >>> For ar71xx the pins 0 and 1 can be used as additional SPI chip select > >>> outputs, pins 9 and 10 are used for UART and there are also reserved pins > >>> for a SLIC/I2S interface. > >> > >> > >> We really need a pinmux/pinctl type interface for this which is standard across drivers/platforms. > >> > > > > The more ARM SoCs I look at, the less I think we could design a single > > pinmux api that works for all of them. The number of things that can be > > controlled varies from almost-nothing to chips that let you select from > > one of a dozen different resistor strengths for pullup or pulldown per > > pin. And that's not to mention really crazy things like daisy-chaining > > pins so the signal also goes to another pin which can be forced as an > > input even though it's normally a device output. > > Linux is able to have one, although I'm not sure how they handle the daisy-chain... that's a new one on me... > Maybe they just don't, since it's a weird enough thing that probably nothing uses it. I only discovered it because the datasheet said it was a potential workaround for an erratum that had to do with a device not handling a pin properly. The semi-related thing I've been pondering lately is clock and power management. I don't even care about dynamic stuff, just a simple common way for a driver to figure out what clock(s) and/or power need to be on for it to run, and a common api for turning them on would be nice. (Whether clocks and power should be two separate APIs or not is a basic question.) -- Ian From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 22:57:06 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A013CED4 for ; Fri, 6 Sep 2013 22:57:06 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com [209.85.214.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 679C42FFE for ; Fri, 6 Sep 2013 22:57:06 +0000 (UTC) Received: by mail-ob0-f176.google.com with SMTP id uz19so4060578obc.21 for ; Fri, 06 Sep 2013 15:57:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=froPnki3d3SfX/AZM4yo7dsRgKY5Xa8rU58hVtmjXec=; b=IwvxUPqcDmk9byYPrao5GAzKfrtBlcYN+cooi2PJp+ZkuQ2XK+Z2ieyNA7fWIAb+es BAhLi7rD716Fm76WzAtfpU+Y6mWnGH/WG3MzcClTrOcFSJ38ZSZE5FJRVcz9Tm9kUcTV CCDkC0Kt+IJgBXvKha48Pliw2xIfhAn+fa1jiCJPXimU1F4fD0lucI95RPP0fQmNcvzK uSoled4NjKM3mPHpKMjJwqUhlkmp00IbI5mWPi7jX0NH7GtLtCFhiVF+Lx7F1C5GkBp3 jAMQKqqP3zMK2Z65GzoOZ5uXlFstKPg9d4F2KPwdMlMLtZ55q+og/9QS77hAs1Ny+EKx dkMQ== X-Gm-Message-State: ALoCoQmpybtRfdgr2Uw+CtR87p38m+lULftFsqBRkCTqUbKPeJ71XF3aL5ram98uVSJRMsRi6ZP1 X-Received: by 10.182.246.39 with SMTP id xt7mr3661596obc.16.1378507911146; Fri, 06 Sep 2013 15:51:51 -0700 (PDT) Received: from fusionlt2834a.int.fusionio.com ([209.117.142.2]) by mx.google.com with ESMTPSA id y1sm133396oek.4.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Sep 2013 15:51:49 -0700 (PDT) Sender: Warner Losh Subject: Re: GPIO hint meanings Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <1378506465.1111.489.camel@revolution.hippie.lan> Date: Fri, 6 Sep 2013 16:51:47 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1378488150.1637.5.camel@localhost> <097A9AFF-D291-4D9F-92CC-12E5E453F7C7@bsdimp.com> <1378504840.1111.480.camel@revolution.hippie.lan> <1378506465.1111.489.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1085) Cc: freebsd-embedded 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: Fri, 06 Sep 2013 22:57:06 -0000 On Sep 6, 2013, at 4:27 PM, Ian Lepore wrote: > On Fri, 2013-09-06 at 16:13 -0600, Warner Losh wrote: >> On Sep 6, 2013, at 4:00 PM, Ian Lepore wrote: >>=20 >>> On Fri, 2013-09-06 at 13:42 -0600, Warner Losh wrote: >>>> On Sep 6, 2013, at 12:31 PM, Luiz Otavio O Souza wrote: >>>>=20 >>>>> On 6 September 2013 14:22, Sean Bruno = wrote: >>>>>=20 >>>>>> I think I have a fairly firm grasp on what some of the mips/gpio = hints >>>>>> mean, e.g.: >>>>>>=20 >>>>>> hint.gpio.0.pinmask >>>>>> hint.gpioled.0.at >>>>>> hint.gpioled.0.name >>>>>> hint.gpioled.0.pins >>>>>>=20 >>>>>> Fairly straightforward. >>>>>>=20 >>>>>> Now, what do these mean/do: >>>>>>=20 >>>>>> hint.gpio.0.function_set >>>>>> hint.gpio.0.function_clear >>>>>>=20 >>>>>> ? >>>>>>=20 >>>>>> Sean >>>>>>=20 >>>>>> p.s. I think I'll take this and thrash together a gpioled(4) and = gpio(4) >>>>>> man page if I can understand better. >>>>>>=20 >>>>>=20 >>>>>=20 >>>>> Hi Sean, >>>>>=20 >>>>> Some of the GPIO pins on this SoC family (ar724x, ar71xx and = ar9xxx) can be >>>>> set between GPIO and an alternate function. So adding a pin to = function_set >>>>> enables this alternate function and the function_clear disables it >>>>> (sometimes the bootloader doesn't initialize properly those pins). >>>>>=20 >>>>> Each SoC has its own set of pins and functions. >>>>>=20 >>>>> For ar71xx the pins 0 and 1 can be used as additional SPI chip = select >>>>> outputs, pins 9 and 10 are used for UART and there are also = reserved pins >>>>> for a SLIC/I2S interface. >>>>=20 >>>>=20 >>>> We really need a pinmux/pinctl type interface for this which is = standard across drivers/platforms. >>>>=20 >>>=20 >>> The more ARM SoCs I look at, the less I think we could design a = single >>> pinmux api that works for all of them. The number of things that = can be >>> controlled varies from almost-nothing to chips that let you select = from >>> one of a dozen different resistor strengths for pullup or pulldown = per >>> pin. And that's not to mention really crazy things like = daisy-chaining >>> pins so the signal also goes to another pin which can be forced as = an >>> input even though it's normally a device output. >>=20 >> Linux is able to have one, although I'm not sure how they handle the = daisy-chain... that's a new one on me... >>=20 >=20 > Maybe they just don't, since it's a weird enough thing that probably > nothing uses it. I only discovered it because the datasheet said it = was > a potential workaround for an erratum that had to do with a device not > handling a pin properly. Yea, I think that linux doesn't implement that level...=20 > The semi-related thing I've been pondering lately is clock and power > management. I don't even care about dynamic stuff, just a simple = common > way for a driver to figure out what clock(s) and/or power need to be = on > for it to run, and a common api for turning them on would be nice. > (Whether clocks and power should be two separate APIs or not is a = basic > question.) I think the two are interrelated enough they need to at lest be = co-releated. But I'd love to see that... Warner= From owner-freebsd-embedded@FreeBSD.ORG Fri Sep 6 23:41:09 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 D904BE70; Fri, 6 Sep 2013 23:41:09 +0000 (UTC) (envelope-from jhein@symmetricom.com) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 8ED4E27A6; Fri, 6 Sep 2013 23:41:09 +0000 (UTC) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by duck.symmetricom.us (8.14.6/8.14.6) with ESMTP id r86NDaZs056695; Fri, 6 Sep 2013 17:13:36 -0600 (MDT) (envelope-from jhein@symmetricom.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.7/8.14.5) with ESMTP id r86NDKX1031321; Fri, 6 Sep 2013 17:13:20 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.7/8.14.6/Submit) id r86NDKmL031320; Fri, 6 Sep 2013 17:13:20 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <21034.24976.184098.797870@gromit.timing.com> Date: Fri, 6 Sep 2013 17:13:20 -0600 From: John Hein To: Ian Lepore Subject: Re: GPIO hint meanings In-Reply-To: <1378506465.1111.489.camel@revolution.hippie.lan> References: <1378488150.1637.5.camel@localhost> <097A9AFF-D291-4D9F-92CC-12E5E453F7C7@bsdimp.com> <1378504840.1111.480.camel@revolution.hippie.lan> <1378506465.1111.489.camel@revolution.hippie.lan> X-Mailer: VM 8.2.0b-trunk-1484 under 24.3.1 (i386-portbld-freebsd8.3) Cc: freebsd-embedded 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: Fri, 06 Sep 2013 23:41:09 -0000 Ian Lepore wrote at 16:27 -0600 on Sep 6, 2013: > On Fri, 2013-09-06 at 16:13 -0600, Warner Losh wrote: > > On Sep 6, 2013, at 4:00 PM, Ian Lepore wrote: > > > On Fri, 2013-09-06 at 13:42 -0600, Warner Losh wrote: [snip] > > >> We really need a pinmux/pinctl type interface for this which is standard across drivers/platforms. > > > > > > The more ARM SoCs I look at, the less I think we could design a single > > > pinmux api that works for all of them. The number of things that can be > > > controlled varies from almost-nothing to chips that let you select from > > > one of a dozen different resistor strengths for pullup or pulldown per > > > pin. And that's not to mention really crazy things like daisy-chaining > > > pins so the signal also goes to another pin which can be forced as an > > > input even though it's normally a device output. > > > > Linux is able to have one, although I'm not sure how they handle the daisy-chain... that's a new one on me... > > Maybe they just don't, since it's a weird enough thing that probably > nothing uses it. I only discovered it because the datasheet said it was > a potential workaround for an erratum that had to do with a device not > handling a pin properly. They love their special filesystems, they do. I suspect the first hacker to add support for fancy new GPIO feature for whatever gets to pick the "filename" in the /sys/clas/gpio/gpioX tree or special value to echo > to it. https://www.kernel.org/doc/Documentation/gpio.txt > The semi-related thing I've been pondering lately is clock and power > management. I don't even care about dynamic stuff, just a simple common > way for a driver to figure out what clock(s) and/or power need to be on > for it to run, and a common api for turning them on would be nice. > (Whether clocks and power should be two separate APIs or not is a basic > question.) From owner-freebsd-embedded@FreeBSD.ORG Sat Sep 7 17:02:34 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 3CD134E8 for ; Sat, 7 Sep 2013 17:02:34 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm24-vm0.bullet.mail.bf1.yahoo.com (nm24-vm0.bullet.mail.bf1.yahoo.com [98.139.213.161]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CE84B2A5C for ; Sat, 7 Sep 2013 17:02:33 +0000 (UTC) Received: from [66.196.81.174] by nm24.bullet.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 17:02:31 -0000 Received: from [98.139.213.12] by tm20.bullet.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 17:02:31 -0000 Received: from [127.0.0.1] by smtp112.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 17:02:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378573351; bh=saD5q2q7iKqh0IhCMb5s75I6wew8mz/wtQuLN7VA828=; 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=HVqqvkABNolKksKgVmqbBZ22KnS47rAF2JSCcHB/XalHd12zaBMKTrJN75tyEZOrtbIGU8ss0f/bArW0oJB9CmwgnuqYNIg7/ftvNfBtO+y8D+JH/rtF2owa0vtkEulPxph30zq+Uw34vFjIhbOZaot6wTZRozh6S+HhJZkYVcE= X-Yahoo-Newman-Id: 806243.55771.bm@smtp112.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Cr1Qw0oVM1mYIztnr4ZmB7krRkUEFj.CdMr2yQE1lbC6SYd XPY5Ov9Hu8nkX.R0qU5B_hmJkcDCUqHIUOicTwYTKXez47yFPmQ8Mg0WoUEN PBLyKjHfvQyvHE9.VLglNlTNmuAbiO0I3TM1pMqaLxyUPzoCEZ6BBpjjzblH e.yQDLqElnl0iXCTbEo2MyFKc6Rg_1xY6Eiiz3KpEYpfktlc_v.TVQLZCvv9 WppMetYhynwoAEEgeOpnRUYq6qiw6iE51uQCfOFVA9oI.lNT8R0gZZXRPWtZ mrG_YI.c1YH4oH.SfnaAww1x0vc33DmCLj7ZCXW0ZNkVYvukjbYy383aE0JO QkFRSStnANc8Xtcz0B9A5OHfaLSj1MY2SHqyZr6aggOt_ZYxFU7JRHzB..yi ZP9iCU5pO4sU8Fp6KwWbu3aNwOSxKbyz.tzUzCKY6CgOB0vrG.BCob96gzoi CyKi5Tc1DlPUSmA0a_GrWIsm2zBoaN0kweTClkW8f4h02EZitlZNUPmwEghG ifR0FFCOiAmAlZrmJq_Wg2dbkxktGaQ4denpAgYwX3uQvkJpHpbnp4sphrkS mzrBnAaL6CZWO6Gef X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.1.228] (sean_bruno@71.202.40.63 with ) by smtp112.mail.bf1.yahoo.com with SMTP; 07 Sep 2013 10:02:31 -0700 PDT Subject: Re: DIR-825B1 iicbus thing From: Sean Bruno To: Luiz Otavio O Souza In-Reply-To: References: <1378491503.48812.5.camel@localhost> <1378493166.48894.1.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-BXXbYcWg+knOJoCDkhqI" Date: Sat, 07 Sep 2013 10:02:30 -0700 Message-ID: <1378573350.1588.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-embedded 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: Sat, 07 Sep 2013 17:02:34 -0000 --=-BXXbYcWg+knOJoCDkhqI Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Fri, 2013-09-06 at 16:26 -0300, Luiz Otavio O Souza wrote: > =20 > I've looked at your changes and found this: > +# GPIO I2C bus > +hint.gpioiic.0.at=3D"gpiobus0" > +hint.gpioiic.0.pins=3D0x00a0 >=20 >=20 > Humm and 0x00a0 also seems wrong for DIR825:=20 > +# Pin 5 - WPS (LED blue) --> works > +# Pin 6 - RTL8366RB switch data line > +# Pin 7 - Planet (LED orange)--> works > +# Pin 8 - RTL8366RB switch clock line > If i'm not mistaken the correct mask is 0x140 (for pin 6 and pin 8) > and then set the correct pin index for sda and scl.=20 >=20 >=20 I don't come up with 0x140 for bit 6 and bit 8 being set, I get 0xa0. setting 0x140 would enable bit 7 and 9. Right? Sean --=-BXXbYcWg+knOJoCDkhqI 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) iQEcBAABAgAGBQJSK1wlAAoJEBkJRdwI6BaHVSEIAIE8Iwp9sqtWIOdKROUw3GP+ KBCJF29/Uk1n2psK3Pa2LgWNYDSu6eO3zGy3OiRCdZ50296QevqPKlY1D8qvhmjf lPU88IdhNYhJd831nCkvO6wq88ka8hkunDejYcjLCDhJ+EId5K08b2A7R2T3c0Th GfEqY3pTvbELMY5kCVR+LXXJGkyQTsI6NkVuN/LrIAkZHPq6L8eM96CYbe90BE2O fy5/3tgqCws9mgd4BQ+be+xZIkCapCY70rngcfJTHrAD2YFG9u8d/Uc+L/ub8q8Y rY13/b38hn3BT3HBqRz5MdwAOlo738k9GQukCwShhUl4H7irqEvq333rIlu3Df0= =ySyz -----END PGP SIGNATURE----- --=-BXXbYcWg+knOJoCDkhqI-- From owner-freebsd-embedded@FreeBSD.ORG Sat Sep 7 17:06:46 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E19BE6A6 for ; Sat, 7 Sep 2013 17:06:45 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm47-vm1.bullet.mail.bf1.yahoo.com (nm47-vm1.bullet.mail.bf1.yahoo.com [216.109.115.124]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 887362A82 for ; Sat, 7 Sep 2013 17:06:45 +0000 (UTC) Received: from [98.139.215.141] by nm47.bullet.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 17:06:38 -0000 Received: from [68.142.230.72] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 17:06:38 -0000 Received: from [127.0.0.1] by smtp229.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 17:06:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378573598; bh=s3i2xhi4kgIWcpXLnmEvwtBH2nr/SNMZAvwS37dVnoI=; 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=ukoWegn8ju2GD6VAUEXBQF8NCIvTA4OiaV/zX6RJellhd0tMUw2QLb5KRnMScsf/trIBWEg3QrPcIgqqmAlTMjk8nKcZXGNw93v6MFcCzOMi01Xgf3LtOKllGmcipe0IKsqUu5EycHDRmYq3iyXK9gthweoWfWnAHWt3+3S5sGw= X-Yahoo-Newman-Id: 485454.62399.bm@smtp229.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: WmrdjQcVM1lgbd54vvQF630E289Xy3X9zKlMSELWbGIBSxA jDnxBBiozug.dIju2J1K.DYqrNKivgjZmzMOK1m2scMl.R43oIhZ22G.VDW4 G5viRfhAlp9TELNZCokZ_Y1uFf9Zyt1xZ1FQeGPxzZ06b9kdEFpgr_oRTDgz xC5d3Hmya__3t1c_yLvkZBd5sgnVeKoaRG.dxcSDZaG24JFnaRGuwl23K68V 4HC8a9Tfwht2aBNnFf5.p6sxWw2qfGCZa3jN_8.5APVvJNCVEjUP2nWKOJPl 7KF9UhjHkP5ztCAKcyPhVrb6B27CWiNXuV3jGisVkEjNkxPC8MgM2nZi6jas tAgp4naKZtRb9w2EaMeKXqbARbtZeQebe9vowrJSTaoNeLDK0BtAzyG4BeSZ eDXAgcFcdGpeyBA_JkjtYmwIVqYz0NcJroWDxyjEhCchXKFGcv2ZSrOWAmFT hNxtrWJOFFm_UDyV9Cn8xr0.AagiANS.emhKf7_mbfZgtCxKt_eEoIGDCySp s4jnjxXhxKRcL3uX_vfNd06eYazmEkbfXr7YzrF8ZDU8rRTOP_Qw- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.1.228] (sean_bruno@71.202.40.63 with ) by smtp229.mail.bf1.yahoo.com with SMTP; 07 Sep 2013 17:06:38 +0000 UTC Subject: Re: DIR-825B1 iicbus thing From: Sean Bruno To: sbruno@freebsd.org In-Reply-To: <1378573350.1588.6.camel@localhost> References: <1378491503.48812.5.camel@localhost> <1378493166.48894.1.camel@localhost> <1378573350.1588.6.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Fxi3bLTyMgCA9aXe4VfV" Date: Sat, 07 Sep 2013 10:06:36 -0700 Message-ID: <1378573596.1588.7.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-embedded 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: Sat, 07 Sep 2013 17:06:46 -0000 --=-Fxi3bLTyMgCA9aXe4VfV Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Sat, 2013-09-07 at 10:02 -0700, Sean Bruno wrote: > > Humm and 0x00a0 also seems wrong for DIR825:=20 > > +# Pin 5 - WPS (LED blue) --> works > > +# Pin 6 - RTL8366RB switch data line > > +# Pin 7 - Planet (LED orange)--> works > > +# Pin 8 - RTL8366RB switch clock line > > If i'm not mistaken the correct mask is 0x140 (for pin 6 and pin 8) > > and then set the correct pin index for sda and scl.=20 > >=20 > >=20 >=20 > I don't come up with 0x140 for bit 6 and bit 8 being set, I get 0xa0. > setting 0x140 would enable bit 7 and 9. Right? >=20 > Sean=20 Yeah, its 0x0a here. If I set 0x140 I conflict with pin 7: gpio0: on apb0 gpio0: [GIANT-LOCKED] gpio0: function_set: 0x0 gpio0: function_clear: 0x0 gpio0: gpio pinmask=3D0x9ff gpioc0: on gpio0 gpiobus0: on gpio0 gpioiic0: warning: pin 6 is already mapped gpioled0: at pin(s) 0 on gpiobus0 gpioled1: at pin(s) 1 on gpiobus0 gpioled2: at pin(s) 2 on gpiobus0 gpioled3: at pin(s) 4 on gpiobus0 gpioled4: at pin(s) 6 on gpiobus0 gpioled5: at pin(s) 11 on gpiobus0 --=-Fxi3bLTyMgCA9aXe4VfV 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) iQEcBAABAgAGBQJSK10cAAoJEBkJRdwI6BaH7ZUH/0k2wf4+brSHZVqFAbkhmBNc CeAkNERhuYsQo337MMC21STVs6VrpdNnmyCciGrJ3YVtN3+J8dVrsKrL/61jc6o2 WUKAwN0dsMqkgtnPuzUBGCT9lt23DTeWxCoSOTGsjs4teouzo9tXvo66UZOqq/xB oKlbiNKKqqHGpxlFP/6SOYxu+/fUQbBvW9ib06kn3qVJt92v5SnNsNFg+LeJN2WG P/CcpREDoi67WG0mYVY16akxiA5e//5FaCRNJVD7EXZ2lKZvDg6s0eH17BTvvTj8 EyepU24Xr7DBoVuxvxjLi3OoGwoPjgvAE8swmHsy+7wlU3QblxHnEzksEKzMJfo= =rkYS -----END PGP SIGNATURE----- --=-Fxi3bLTyMgCA9aXe4VfV-- From owner-freebsd-embedded@FreeBSD.ORG Sat Sep 7 16:43:21 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 56DCAE27 for ; Sat, 7 Sep 2013 16:43:21 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm48.bullet.mail.bf1.yahoo.com (nm48.bullet.mail.bf1.yahoo.com [216.109.114.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EA6C929A1 for ; Sat, 7 Sep 2013 16:43:20 +0000 (UTC) Received: from [66.196.81.173] by nm48.bullet.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 16:43:12 -0000 Received: from [98.139.211.196] by tm19.bullet.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 16:43:12 -0000 Received: from [127.0.0.1] by smtp205.mail.bf1.yahoo.com with NNFMP; 07 Sep 2013 16:43:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1378572192; bh=hj3PmlaaBNxqzPy6VMXIWoWV+442uT0o4mb7oyJyQ/I=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Cc:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=WjnLFDTHDCDg3B3iqc39KUdcdAa6hh6O3EGgBn6pHt8heJ97/qrGBztnvEp7v/ewdOY3grgUelaqBkSKpvyc51uOdaCcCeDbzPIxfEM0fo5k2WDWztxWXd7ai9Swj52WI2RnBPMCNv0fyRjU8drdXEilqJzStjRokS8l0enEpWw= X-Yahoo-Newman-Id: 919018.44176.bm@smtp205.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 6b90_qIVM1kH2AEeLYlGM5fivARdu1waSdnXnLSA0drTku. iUqssQMyrnB0C6AOnA8DBfmnz0GabMMsR7HsS7QMRkWs4CSKSaYuZ3pLmENN Jt07S6r0imrS..irxFq2aPG2TyjTVvvmQiEUA4SYl83J43.hoaqGMtVPj.0s giy0F2SRAV7JChEv88AQU9pCzuUJGYbdFGwr1ZP2MSxSh3wI1kU0HE_kFFWy hJ8_0gdLOgsVm.P0UtoeDpBsHItVTbjIkirtWvhpbhIQCLQ.7wEC9JuVzqXN pFP77InUXU5qi_2oQ0zQdGCAXOd0BIC2qCoBNGQc.R8e_bCA0w5GxyJXEptR _dDlqJMVhGmcNYitWIk8TO_7sV6uF9eRWsr2pmTAKmo9FgjpCmfugPCbIzF6 j0H.FmZLuNp4lkr4OWKKAy4AufVX6bBCgoyb5Taz9bDaAs6cRLSrTvLkDA.s ehbKtkWPifrklgbouW2gDqZ4vXAOP3cz7GOgcoJ3PUh6tN7fKk7g1ZJSTP0P 1yB9VXbAS23hbjcrVkQvreWoUIDmbtjkr2ggYIcMWSwFvJC1pX98- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.1.228] (sean_bruno@71.202.40.63 with ) by smtp205.mail.bf1.yahoo.com with SMTP; 07 Sep 2013 09:43:12 -0700 PDT Subject: random(4) update causes mips compile fail | mips boot fail From: Sean Bruno To: "freebsd-current@freebsd.org" Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-TWIPgjWi34t3QkhfE3J9" Date: Sat, 07 Sep 2013 09:43:06 -0700 Message-ID: <1378572186.1588.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-Mailman-Approved-At: Sat, 07 Sep 2013 17:22:43 +0000 Cc: markm@freebsd.org 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: Sat, 07 Sep 2013 16:43:21 -0000 --=-TWIPgjWi34t3QkhfE3J9 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable with "nodevice random" I can no longer compile for MIPS --- kernel.debug --- pseudo_rng.o:(.data+0x3c): undefined reference to `random_null_func' pseudo_rng.o:(.data+0x44): undefined reference to `random_null_func' pseudo_rng.o:(.data+0x74): undefined reference to `random_null_func' pseudo_rng.o:(.data+0x78): undefined reference to `random_null_func' pseudo_rng.o:(.data+0x84): undefined reference to `random_null_func' pseudo_rng.o:(.data+0x8c): more undefined references to `random_null_func' follow random_adaptors.o: In function `random_sysctl_active_adaptor_handler': /home/sbruno/bsd/head/sys/dev/random/random_adaptors.c:(.text+0x40): undefined reference to `random_get_active_adaptor' /home/sbruno/bsd/head/sys/dev/random/random_adaptors.c:(.text+0x40): relocation truncated to fit: R_MIPS_26 against `random_get_active_adaptor' trying to enable random on my DIR-825 kernconf I get this on boot: Configuration file: /etc/cfg/hostapd.wlan0.conf Using interface wlan0 with hwaddr 00:00:88:88:22:22 and ssid "TESTBRUNO" Entropy device is blocking. --=-TWIPgjWi34t3QkhfE3J9 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) iQEcBAABAgAGBQJSK1eWAAoJEBkJRdwI6BaHYs4H/386VpCS34X6bDkO68SjNkTO XlCeDcvA74ZSXKd6GSfmh19/KKDquxJtUyXn5h4sNU7+lz4pV4U1kJhT1ShQmItk GMkFtP1q5sXEbR5hucrXcOAvrcE9hGnrw0O+Z6SZLqfNdQScW+/35RoFYhjSVZ1Y R95/rGzVrvTdzcaxBo2b4yBK7khnhNdRtDh3Z1BZ6gNyfoX/v1sy3YtvqNj2B6hg nhTw3c2kT/c7rikip8UN/8uICy+ULJes5cHok7x7erTGU21bOLVgX/Rf1VEkEVMI oZe2v3LTBS2Hn8bHwUgmwkAKjEWFCVoTNvsTBQOsNZTQx4zwBFMBacj40e04Pcg= =wWxZ -----END PGP SIGNATURE----- --=-TWIPgjWi34t3QkhfE3J9-- From owner-freebsd-embedded@FreeBSD.ORG Sat Sep 7 17:31:19 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 797598C5; Sat, 7 Sep 2013 17:31:19 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CB7AC2B95; Sat, 7 Sep 2013 17:31:18 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id z5so3897735lbh.0 for ; Sat, 07 Sep 2013 10:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=X5JAMoLLVIoNQLbZbav8kmkjkMjQpFIzfcYucmSAOy4=; b=UCbFbeLgBHP4RnrZpjMkAkyxSxtSYGX8Ba0ivau6Q8moBTo3aYUAaRuKTEYIKszTlI 96SKrYBfo7jIlGVY9W2Y8tIwvMSCTKdt9RVeZd9lC/S1GFi6IN1EQfxq90wtJLJUgsQY 1sH9YwLJpV5IPIK4fVsE1SdnKesMxPl3bf3bALGwP0SeEtNUWgRyA3jiexegP/1oN1XJ /t9IB/XDIStlgCLJ4o84Uw7edxYHm6B2ANAPjXPcfFjd9H66kg4diZWs4bSt+jdDIfvg vSmiHZKmtLLoFqoeM4cSJ5BvCV7JuA2hr5ncTIzx1w0UTrkTRVqBL8XDForeEfgUURAQ 7WIQ== MIME-Version: 1.0 X-Received: by 10.152.37.41 with SMTP id v9mr7939168laj.9.1378575076806; Sat, 07 Sep 2013 10:31:16 -0700 (PDT) Received: by 10.112.148.37 with HTTP; Sat, 7 Sep 2013 10:31:16 -0700 (PDT) In-Reply-To: <1378573596.1588.7.camel@localhost> References: <1378491503.48812.5.camel@localhost> <1378493166.48894.1.camel@localhost> <1378573350.1588.6.camel@localhost> <1378573596.1588.7.camel@localhost> Date: Sat, 7 Sep 2013 14:31:16 -0300 Message-ID: Subject: Re: DIR-825B1 iicbus thing From: Luiz Otavio O Souza To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-embedded 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: Sat, 07 Sep 2013 17:31:19 -0000 On 7 September 2013 14:06, Sean Bruno wrote: > On Sat, 2013-09-07 at 10:02 -0700, Sean Bruno wrote: > > > Humm and 0x00a0 also seems wrong for DIR825: > > > +# Pin 5 - WPS (LED blue) --> works > > > +# Pin 6 - RTL8366RB switch data line > > > +# Pin 7 - Planet (LED orange)--> works > > > +# Pin 8 - RTL8366RB switch clock line > > > If i'm not mistaken the correct mask is 0x140 (for pin 6 and pin 8) > > > and then set the correct pin index for sda and scl. > > > > > > > > > > I don't come up with 0x140 for bit 6 and bit 8 being set, I get 0xa0. > > setting 0x140 would enable bit 7 and 9. Right? > > > > Sean > > Yeah, its 0x0a here. If I set 0x140 I conflict with pin 7: > > gpio0: on apb0 > gpio0: [GIANT-LOCKED] > gpio0: function_set: 0x0 > gpio0: function_clear: 0x0 > gpio0: gpio pinmask=0x9ff > gpioc0: on gpio0 > gpiobus0: on gpio0 > gpioiic0: warning: pin 6 is already mapped > gpioled0: at pin(s) 0 on gpiobus0 > gpioled1: at pin(s) 1 on gpiobus0 > gpioled2: at pin(s) 2 on gpiobus0 > gpioled3: at pin(s) 4 on gpiobus0 > gpioled4: at pin(s) 6 on gpiobus0 > gpioled5: at pin(s) 11 on gpiobus0 > > Right, the GPIO pins start at 0, the pins 6 and 8 used by switch are actually the pins 5 and 7. But when it comes to specifying pin masks you always need to think as pin + 1 to cover the pin 0 case which is going to be represented by the first bit (or simply, pinmask == 1 << pin). For your case you need a mask which covers pins (1 << 5) | (1 << 7) == 0xa0. So yes, your pinmask is correct, sorry for the confusion. Luiz