From owner-freebsd-mips@FreeBSD.ORG Sun Jan 4 10:31:27 2015 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6F0F9CFE; Sun, 4 Jan 2015 10:31:27 +0000 (UTC) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1BA192E68; Sun, 4 Jan 2015 10:31:26 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t04AUe5p014836 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 4 Jan 2015 11:30:53 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t04AUZFp008240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Jan 2015 11:30:36 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t04AUZC0013706; Sun, 4 Jan 2015 11:30:35 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t04AUZ3K013705; Sun, 4 Jan 2015 11:30:35 +0100 (CET) (envelope-from ticso) Date: Sun, 4 Jan 2015 11:30:35 +0100 From: Bernd Walter To: Adrian Chadd Subject: Re: USB stability problem on AR9331 with stable/10 Message-ID: <20150104103035.GK3265@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150103023713.GB3265@cicely7.cicely.de> <20150103114302.GD3265@cicely7.cicely.de> <20150103140918.GF3265@cicely7.cicely.de> <20150103214818.GJ3265@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: Bernd Walter , ticso@cicely.de, "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2015 10:31:27 -0000 On Sat, Jan 03, 2015 at 10:39:49PM -0800, Adrian Chadd wrote: > On 3 January 2015 at 13:48, Bernd Walter wrote: > > On Sat, Jan 03, 2015 at 03:09:18PM +0100, Bernd Walter wrote: > >> > >> I will swap for another board now. > >> Reason is that I have one board running on a OS version, which is about > >> 1.5 years old and it shows this problem only from time to time. > >> I even use it to copy the rootfs from nfs to the stick because of the > >> endian issue with mips. > >> It is very hard to say when this happens, because copying usually works, > >> but once you put some additional load, like compiling, or in this case > >> creating host keys. > >> Now this board with recent stable/current shows this problem extremly > >> often. > >> I want to rule out that I put a broken board into my test mix, because > >> it was a new one. > > > > Ok, I can't tell for sure if there is some hardware related influence, > > but I'd tested 3 Dragino MS14-P (likely same batch) and retested with one > > Carambola 2, which all showed the problem sooner or later. > > Hm, I wonder which particular AR933x revision they're using. The one on all the Dragino is marked: AR9331-AL3A PPW718,006C 1324 KOREA The Carambola is shielded and soldered shut. With the modules I can remove the cap since it is designed to be removeable, but this is the devboard and they added some solder at some points. I can unsolder it if required. A single module, which I'd bought at the same time, has the following: AR9331-AL3A PPU680,001C 1316 KOREA No sure if it has exactly the same chip on the devboard. The Carambola however seems to be running more stable. I've managed to build pkg 2 times of 3 tries, while the Dragino was never able to complete the build in countless tries. > Are you providing them enough power? It is very different in both cases. The Carambola devboard has a single micro-USB running both power and USB-console-UART, so I power it using a self powered hub, which has a switching mode 3.5A rates supply. The devboard has a 5 to 3.3V switching regulator running the module and it passes the 5V to the USB port. The 1.2V is somehow generated on the module. The Dragino has a wide range 9-15V input with 3 regulators. An RT8250 for 5V and 3.3V each - the 5V is used for the USB, the 3.3 for the rest. Don't know how the 1.2V is generated, since all I can find is a coil. Then there is a 1117 5V, which I can only guess that it is used for the moduleslot, which is intended to fit some arduino IO module. I run the board using 12V from a decent lab type bench supply with current limit at 0.5A, which is rated current and well below what it really used. But to be honest - I've already wondered about the power myself, since the only electrolytic cap is for the 1117, while the RT8052 use ceramic only and high rated ceramic have a high DC bias loss plus the RT8052 is not a very high frequency chip. So I just checked and the power rails look fine under a scope. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.