From owner-freebsd-embedded@FreeBSD.ORG Sun Jan 1 03:03:09 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC35D106566C for ; Sun, 1 Jan 2012 03:03:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8EFC18FC08 for ; Sun, 1 Jan 2012 03:03:09 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so20269342vbb.13 for ; Sat, 31 Dec 2011 19:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=mpjgk2TZXN0kyNm5zb25bcWBPPxersr1Hyyb8eRSGqQ=; b=mmByzPv+aj8uDxXIB/QPysZ4LXe0cMGsECFykxVSaLJd0E6jJST7ZN/pHgEr6C+KRi 7SVxMG7AEKGe913gD4QbK1BLx6xBkBjqvhB7L5JfJ7ymFyta/4ZPW0KPqP7NzsSM7D+v WiJ4sg4tbMKlbEGgvGtxyNtcSkA6erKHC3zzI= MIME-Version: 1.0 Received: by 10.52.29.16 with SMTP id f16mr21199912vdh.45.1325386988756; Sat, 31 Dec 2011 19:03:08 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.36.5 with HTTP; Sat, 31 Dec 2011 19:03:08 -0800 (PST) Date: Sat, 31 Dec 2011 19:03:08 -0800 X-Google-Sender-Auth: zAazekXhg2Hkrh4yV0cXSr5qOqM Message-ID: From: Adrian Chadd To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-embedded@freebsd.org Subject: switch phy flakiness X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2012 03:03:09 -0000 Hi, I'm still seeing switch PHY flakiness here: # rtl8366rb0: resetting bus rtl8366rb0: smi_read()=2: addr=0014 rtl8366rb0port0: link state changed to DOWN rtl8366rb0port0: link state changed to UP # rtl8366rb0port3: link state changed to DOWN rtl8366rb0port3: link state changed to UP ath0: stuck beacon; resetting (bmiss count 4) ar5212StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 MBSSID Set bit 22 of AR_STA_ID 0xb8c16866 rtl8366rb0port3: link state changed to DOWN rtl8366rb0port3: link state changed to UP rtl8366rb0: resetting bus rtl8366rb0: smi_read()=2: addr=0016 rtl8366rb0port0: link state changed to DOWN rtl8366rb0port1: link state changed to UP rtl8366rb0port0: link state changed to UP rtl8366rb0port1: link state changed to DOWN rtl8366rb0: resetting bus rtl8366rb0: smi_read()=2: addr=0016 rtl8366rb0: resetting bus rtl8366rb0: smi_read()=2: addr=0016 .. the port definitely isn't going up/down - the cable has remained plugged in the whole time. Hence why I'm confused. :) Adrian From owner-freebsd-embedded@FreeBSD.ORG Sun Jan 1 11:13:34 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8BA01065670; Sun, 1 Jan 2012 11:13:34 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id 8F2EF8FC17; Sun, 1 Jan 2012 11:13:34 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id F1D51115B8B; Sun, 1 Jan 2012 11:13:32 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Stefan Bethke In-Reply-To: Date: Sun, 1 Jan 2012 12:13:31 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <6D8ADF57-A468-4549-9F3A-46205B7B544D@lassitu.de> References: To: Adrian Chadd X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-embedded@freebsd.org Subject: Re: switch phy flakiness X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2012 11:13:34 -0000 Am 01.01.2012 um 04:03 schrieb Adrian Chadd: > Hi, >=20 > I'm still seeing switch PHY flakiness here: ... > .. the port definitely isn't going up/down - the cable has remained > plugged in the whole time. Hence why I'm confused. :) Is that with my "improved" iicbb.c or with the original code? I tried = the old code, and it seems to be working just fine, so it's probably = best to use that for the time being. Stefan --=20 Stefan Bethke Fon +49 151 14070811 From owner-freebsd-embedded@FreeBSD.ORG Sun Jan 1 20:03:16 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33477106566C for ; Sun, 1 Jan 2012 20:03:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id DC5768FC12 for ; Sun, 1 Jan 2012 20:03:15 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so20460141vcb.13 for ; Sun, 01 Jan 2012 12:03:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/nel5YwQ2BKXFKmj9GL0MuU9Vv7dE/285RI/SLhmEy4=; b=ggh+e6qWu2UGA4xJYBJ0USvW0HSKwza0cUAqUF8mHlSlmgNtf9079J0r6+Aw3tfLqe n88gT8g8WVh2GgdhQI8BnttiwOG/WWv22J//QgGj446RXVetOq+DCFPn4XG2jVv1Tkse coAPatihGSJaiklnX8s9+oeNNsIDm8ivRoRwE= MIME-Version: 1.0 Received: by 10.220.213.137 with SMTP id gw9mr26457304vcb.3.1325448195058; Sun, 01 Jan 2012 12:03:15 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.36.5 with HTTP; Sun, 1 Jan 2012 12:03:15 -0800 (PST) In-Reply-To: <6D8ADF57-A468-4549-9F3A-46205B7B544D@lassitu.de> References: <6D8ADF57-A468-4549-9F3A-46205B7B544D@lassitu.de> Date: Sun, 1 Jan 2012 12:03:15 -0800 X-Google-Sender-Auth: tJbgjkpxMCHL252tjMosTeh09Xc Message-ID: From: Adrian Chadd To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Re: switch phy flakiness X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2012 20:03:16 -0000 On 1 January 2012 03:13, Stefan Bethke wrote: > Is that with my "improved" iicbb.c or with the original code? =A0I tried = the old code, and it seems to be working just fine, so it's probably best t= o use that for the time being. This is with whatever's in my git tree at the moment. Adrian From owner-freebsd-embedded@FreeBSD.ORG Mon Jan 2 11:06:59 2012 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2563D106567E for ; Mon, 2 Jan 2012 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EC8848FC1E for ; Mon, 2 Jan 2012 11:06:58 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q02B6wQv005067 for ; Mon, 2 Jan 2012 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q02B6wvS005065 for freebsd-embedded@FreeBSD.org; Mon, 2 Jan 2012 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 2 Jan 2012 11:06:58 GMT Message-Id: <201201021106.q02B6wvS005065@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 Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2012 11:06:59 -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 Jan 3 14:58:47 2012 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61A051065675 for ; Tue, 3 Jan 2012 14:58:47 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 218638FC16 for ; Tue, 3 Jan 2012 14:58:46 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id F01CAC4930 for ; Tue, 3 Jan 2012 16:58:45 +0200 (EET) Date: Tue, 3 Jan 2012 16:59:25 +0200 From: Aleksandr Rybalko To: embedded@freebsd.org Message-Id: <20120103165925.694ed6f0.ray@dlink.ua> In-Reply-To: <20111223122947.4235c390.ray@freebsd.org> References: <20111223122947.4235c390.ray@freebsd.org> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: geom_uncompress X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2012 14:58:47 -0000 Hi list subscribers, here is updated geom_uncompress patch that use newly created sys/contrib/xz-embedded: http://my.ddteam.net/files/2012-01-03_geom_uncompress.patch If no objections, I will commit it soon (after mentor's review of course :) ) Any comments? WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-embedded@FreeBSD.ORG Tue Jan 3 17:37:58 2012 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA2481065678 for ; Tue, 3 Jan 2012 17:37:58 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6A6058FC23 for ; Tue, 3 Jan 2012 17:37:58 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so21844796vcb.13 for ; Tue, 03 Jan 2012 09:37:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=UoaGdo8/lKj3HMj448M7wfAr+1WXung5ZMzmdHFmMRQ=; b=fT3kWnMCoph0vlo6kPX9ROt5rYzyVF0bSN2tq1kNmpiWJmQY9h1BOvQmUiDPxOTCt6 xJkiKvj092UbpDrVBDw8gdTNeken1mVUXDFP/QnNVioCRG0yilEwxncmP3FIJ0dmrICO EB6SBZ82tg5d8o1IkpIwodcGIAjMLLLmpvAvA= MIME-Version: 1.0 Received: by 10.220.148.201 with SMTP id q9mr10425872vcv.33.1325612277709; Tue, 03 Jan 2012 09:37:57 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.36.5 with HTTP; Tue, 3 Jan 2012 09:37:57 -0800 (PST) In-Reply-To: <20120103165925.694ed6f0.ray@dlink.ua> References: <20111223122947.4235c390.ray@freebsd.org> <20120103165925.694ed6f0.ray@dlink.ua> Date: Tue, 3 Jan 2012 09:37:57 -0800 X-Google-Sender-Auth: vS3oApFrpXLJp6twi6Uzy7xkTjs Message-ID: From: Adrian Chadd To: Aleksandr Rybalko Content-Type: text/plain; charset=ISO-8859-1 Cc: embedded@freebsd.org Subject: Re: geom_uncompress X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2012 17:37:58 -0000 Hi! On 3 January 2012 06:59, Aleksandr Rybalko wrote: > Hi list subscribers, > > here is updated geom_uncompress patch that use newly created > sys/contrib/xz-embedded: > http://my.ddteam.net/files/2012-01-03_geom_uncompress.patch > > If no objections, I will commit it soon (after mentor's review of > course :) ) > > Any comments? Being totally slack: 01:33 <@adri> rayddtmhm: it's fine to put xz_malloc.h and xz_config.h in sys/contrib/xz-embedded/ 01:34 <@adri> rayddtmhm: and is the kern.pre.mk change really needed? 01:36 <@adri> rayddtmhm: eg, create sys/contrib/xz-embedded/freebsd/include/xz/, put xz_config.h in there 01:36 <@adri> rayddtmhm: and then reate sys/contrib/xz-embedded/freebsd/lib/xz/, put xz_malloc.c in there There. :) Adrian From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 4 00:36:44 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E59B106566C for ; Wed, 4 Jan 2012 00:36:44 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id D60D98FC13 for ; Wed, 4 Jan 2012 00:36:43 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id A8248117BD4 for ; Wed, 4 Jan 2012 00:36:42 +0000 (UTC) From: Stefan Bethke Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 4 Jan 2012 01:36:42 +0100 Message-Id: To: freebsd-embedded@freebsd.org Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Subject: dev/etherswitch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 00:36:44 -0000 Work on the switch framework is progressing. In my repo on gitorious in = branch work/ath, you'll find a working version of teh framework with two = switch drivers, RTL8366RB (used in TL-WR1043ND) and AR8x16 (used among = others in TL-MR3420 and TL-MR3220). http://gitorious.org/~stb/freebsd/stb-adrianchadd-freebsd-work I'll trx and work out a set of patches again HEAD, especially the = changes to existing code that are needed. Stefan --=20 Stefan Bethke Fon +49 151 14070811 From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 4 04:18:38 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BA9F106566B for ; Wed, 4 Jan 2012 04:18:38 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 524768FC16 for ; Wed, 4 Jan 2012 04:18:38 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so22418673vbb.13 for ; Tue, 03 Jan 2012 20:18:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=evHg8o9qpqCpYpT3oD0VvyoY5qspLfONZExAbllYh08=; b=IZypnrfGHn5XV/UYjkpwMEmDOZ8qNRoOyO4L48mb6qRZJkQkKf187f3H4Llb9npb6B YBPUVgkzgWf9tEGgdTRALrOPYpMva++Taa9rvnQ4XjNlcEgqxyoR9fonR+L/4G5uz6Sy PUnHCzMu7dich3iaWBDR2HR57EHoj6sCF/mf8= MIME-Version: 1.0 Received: by 10.52.33.99 with SMTP id q3mr25649192vdi.100.1325650717613; Tue, 03 Jan 2012 20:18:37 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.36.5 with HTTP; Tue, 3 Jan 2012 20:18:37 -0800 (PST) In-Reply-To: References: Date: Tue, 3 Jan 2012 20:18:37 -0800 X-Google-Sender-Auth: kdHo3IPEbwSvj6BpzqxMfQpNWMg Message-ID: From: Adrian Chadd To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Re: dev/etherswitch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 04:18:38 -0000 On 3 January 2012 16:36, Stefan Bethke wrote: > Work on the switch framework is progressing. =A0In my repo on gitorious i= n branch work/ath, you'll find a working version of teh framework with two = switch drivers, RTL8366RB (used in TL-WR1043ND) and AR8x16 (used among othe= rs in TL-MR3420 and TL-MR3220). > > http://gitorious.org/~stb/freebsd/stb-adrianchadd-freebsd-work > > I'll trx and work out a set of patches again HEAD, especially the changes= to existing code that are needed. Hi! Thanks for putting this somewhere publicly accessible. I'm going through it at the moment. I've also ripped out the flash SPI device IDs you've added and just added them to -HEAD. Adrian From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 4 04:24:34 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31A82106566B for ; Wed, 4 Jan 2012 04:24:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id DB42C8FC0C for ; Wed, 4 Jan 2012 04:24:33 +0000 (UTC) Received: by vbbfr13 with SMTP id fr13so22422069vbb.13 for ; Tue, 03 Jan 2012 20:24:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=PrPA3RyTFw1QnFLtnbuWvHbVbv4ouuQaFWcTQ+PfAL0=; b=tXDYn8n/6bdD+Zk4hnIyTYuhJyAWxL2cMAJQKcOFO2M2sJQG14G7f2cRveoltKKgGD kdoPaaU1bKI+plwAqfatsktor+z06Zf664AEqYbT0nhRvItgy8z+PSp2QzFksx6XaUtO 5/L4qyXrV1SAR+Ildy0PmS6bRuBmwWePY4+IQ= MIME-Version: 1.0 Received: by 10.52.23.44 with SMTP id j12mr19423022vdf.117.1325651073056; Tue, 03 Jan 2012 20:24:33 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.36.5 with HTTP; Tue, 3 Jan 2012 20:24:33 -0800 (PST) In-Reply-To: References: Date: Tue, 3 Jan 2012 20:24:33 -0800 X-Google-Sender-Auth: rFoTv2NRhc9kI3-b4CDj8Ol_tCg Message-ID: From: Adrian Chadd To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-embedded@freebsd.org Subject: Re: dev/etherswitch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 04:24:34 -0000 Hi, Take a look at: http://gitorious.org/~stb/freebsd/stb-adrianchadd-freebsd-work/commit/b31c2bc80e8328924802b24682a9d5ea77b13ebf You have one commit messages but multiple things: * You've added 'pinon', which lets you set a default output value. I know at least one board required it for enabling USB power, why's the tplink need it? * Why'd you flip on bit 13 in the AR91xx GPIO function register? And comment out the USB led device? * You also changed the delay to three and commented it out. :-) Some of this may need to be thrown back in -HEAD. So, can you provide some more background info so I can see what needs to be merged back? :) Adrian From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 4 08:00:30 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62FF2106568A; Wed, 4 Jan 2012 08:00:30 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id 184858FC1C; Wed, 4 Jan 2012 08:00:23 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 712CE11607B; Wed, 4 Jan 2012 08:00:22 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Stefan Bethke In-Reply-To: Date: Wed, 4 Jan 2012 09:00:21 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <091CDDB2-AF5D-4BD7-8AC2-EC0CC5A78E40@lassitu.de> References: To: Adrian Chadd X-Mailer: Apple Mail (2.1251.1) Cc: freebsd-embedded@freebsd.org Subject: Re: dev/etherswitch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 08:00:30 -0000 Am 04.01.2012 um 05:24 schrieb Adrian Chadd: > Hi, >=20 > Take a look at: >=20 > = http://gitorious.org/~stb/freebsd/stb-adrianchadd-freebsd-work/commit/b31c= 2bc80e8328924802b24682a9d5ea77b13ebf >=20 > You have one commit messages but multiple things: >=20 > * You've added 'pinon', which lets you set a default output value. I > know at least one board required it for enabling USB power, why's the > tplink need it? Yes, the TL-WR3420 and TL-WR3220 use GPIO 6 to control power to the USB. = (That info is in the commit message for that change to ar71xx_gpio.c) > * Why'd you flip on bit 13 in the AR91xx GPIO function register? And > comment out the USB led device? Sorry, ignore my changes to TP-WR1043ND{.hints} that's just me playing = around. (I've taken the soldering iron to my WR1043ND and added an = SD-Card socket to the SPI bus, using GPIO 1 as SPI_CS2, that's why the = pin definitions have changed. There's no driver for MMC/SD in SPI mode, = but maybe I can fix that some other time. :-) > * You also changed the delay to three and commented it out. :-) Yes, that is intentional: I'm back to the original iicbb.c code; we = might want to add the delay hint to it, but it's not strictly necessary. > Some of this may need to be thrown back in -HEAD. So, can you provide > some more background info so I can see what needs to be merged back? > :) That is my plan, give me a few days to untangle all the changes and = package them up nicely. Stefan --=20 Stefan Bethke Fon +49 151 14070811 From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 4 14:43:41 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82213106568E for ; Wed, 4 Jan 2012 14:43:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 38E598FC13 for ; Wed, 4 Jan 2012 14:43:40 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so22805817vcb.13 for ; Wed, 04 Jan 2012 06:43:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=fWwLcPw5axe1JgenybJAo8CfBZjWxd+WkmG5PL402no=; b=oqhWczfomRwP3LEV1hw+bna5IT68YLQdZ4c5Buy27QOwP//R9FGj3YtJA+s3dgeHvo oPuEiEckeR/72FhDxKeJGgiQHfVTdCmT4TsK9RxMi4XaoLtGuZXBiA3goGalhECZ0xiG Y9VVOAetcgZqDxfA/28bJ9DnISDGB2G1L8Y30= MIME-Version: 1.0 Received: by 10.52.29.16 with SMTP id f16mr26754752vdh.45.1325688220386; Wed, 04 Jan 2012 06:43:40 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.36.5 with HTTP; Wed, 4 Jan 2012 06:43:40 -0800 (PST) In-Reply-To: <091CDDB2-AF5D-4BD7-8AC2-EC0CC5A78E40@lassitu.de> References: <091CDDB2-AF5D-4BD7-8AC2-EC0CC5A78E40@lassitu.de> Date: Wed, 4 Jan 2012 06:43:40 -0800 X-Google-Sender-Auth: KCS19fzOBSIUKOIVucRA5vlTx88 Message-ID: From: Adrian Chadd To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-embedded@freebsd.org Subject: Re: dev/etherswitch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 14:43:41 -0000 On 4 January 2012 00:00, Stefan Bethke wrote: >> * You've added 'pinon', which lets you set a default output value. I >> know at least one board required it for enabling USB power, why's the >> tplink need it? > > Yes, the TL-WR3420 and TL-WR3220 use GPIO 6 to control power to the USB. (That info is in the commit message for that change to ar71xx_gpio.c) Cool. I'll merge that into -HEAD then. Adrian From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 4 14:45:56 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84FC51065670; Wed, 4 Jan 2012 14:45:56 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id 4708F8FC16; Wed, 4 Jan 2012 14:45:56 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 2A12B40712; Wed, 4 Jan 2012 14:45:55 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Stefan Bethke In-Reply-To: Date: Wed, 4 Jan 2012 15:45:54 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <091CDDB2-AF5D-4BD7-8AC2-EC0CC5A78E40@lassitu.de> To: Adrian Chadd X-Mailer: Apple Mail (2.1084) Cc: freebsd-embedded@freebsd.org Subject: Re: dev/etherswitch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 14:45:56 -0000 Am 04.01.2012 um 15:43 schrieb Adrian Chadd: > On 4 January 2012 00:00, Stefan Bethke wrote: >=20 >>> * You've added 'pinon', which lets you set a default output value. I >>> know at least one board required it for enabling USB power, why's = the >>> tplink need it? >>=20 >> Yes, the TL-WR3420 and TL-WR3220 use GPIO 6 to control power to the = USB. (That info is in the commit message for that change to = ar71xx_gpio.c) >=20 > Cool. I'll merge that into -HEAD then. Long term we'll want to revisit the gpio infrastructure to be able to = make use of i.e. polarity of the pins etc., and a more sophisticated way = to configure these functions through hints. I'd like to avoid adding = another three or four bitmasks... Stefan --=20 Stefan Bethke Fon +49 151 14070811 From owner-freebsd-embedded@FreeBSD.ORG Wed Jan 4 14:49:43 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 875B110657C0 for ; Wed, 4 Jan 2012 14:49:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3F3748FC16 for ; Wed, 4 Jan 2012 14:49:42 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so22814071vcb.13 for ; Wed, 04 Jan 2012 06:49:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=dIrK+DXkCgRUEc5wnv65e43gLAH+GVBciqQ/ijB+LQc=; b=xtkAz5XQtRbFHxHMB6lvBrKL/JgVqAPCf9lMEplsSbqwzUm+q82NwUq0negoLKAE/0 hZg0DAf5i9hV3LgMW7/vMumW0E9XYlxu1uihLvTloiIPrgbQE19Ho73J23zPPGsS45vx 4lFhAJAm4d8MU2LO8N9uCGNrzBhszKacDplKI= MIME-Version: 1.0 Received: by 10.52.29.16 with SMTP id f16mr26782906vdh.45.1325688581198; Wed, 04 Jan 2012 06:49:41 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.36.5 with HTTP; Wed, 4 Jan 2012 06:49:37 -0800 (PST) In-Reply-To: References: <091CDDB2-AF5D-4BD7-8AC2-EC0CC5A78E40@lassitu.de> Date: Wed, 4 Jan 2012 06:49:37 -0800 X-Google-Sender-Auth: oJOJXW3Pq9tNViKwMYaHMqD_00g Message-ID: From: Adrian Chadd To: Stefan Bethke Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Re: dev/etherswitch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2012 14:49:43 -0000 On 4 January 2012 06:45, Stefan Bethke wrote: > Long term we'll want to revisit the gpio infrastructure to be able to mak= e use of i.e. polarity of the pins etc., and a more sophisticated way to co= nfigure these functions through hints. =A0I'd like to avoid adding another = three or four bitmasks... Well long term I think we shouldn't be using bitmasks, but should configure each GPIO pin along with default values. But that can come later. Adrian