From owner-freebsd-arm@FreeBSD.ORG Wed Mar 27 05:34:35 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4B1C9521 for ; Wed, 27 Mar 2013 05:34:35 +0000 (UTC) (envelope-from lehis2000@mail.ru) Received: from fallback2.mail.ru (fallback2.mail.ru [94.100.176.87]) by mx1.freebsd.org (Postfix) with ESMTP id C41291DB for ; Wed, 27 Mar 2013 05:34:34 +0000 (UTC) Received: from smtp28.mail.ru (smtp28.mail.ru [94.100.176.181]) by fallback2.mail.ru (mPOP.Fallback_MX) with ESMTP id D41F0D194B67 for ; Wed, 27 Mar 2013 09:33:58 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=O0zbD2EKA4t/FuI5r2e/bdgtl0/dDB2xP58oo2RNabo=; b=CpxT3tPivlRUqL1Smz/4/dh090Oqm/HJ7b1HKxglUN6DTD60fS494feIATKD/fZ6PlFQMMZV4szcLz7xpswPVGSL5Yc14K5dZkTvurtdE4dpLl5+9gJPZ5s7+STuwcAR1jpJ5Z0oSK5W50PXR5WJPIoSssF4JtzbATMOTKipLho=; Received: from [91.217.137.251] (port=54059 helo=work-book.lehis.ru) by smtp28.mail.ru with esmtpa (envelope-from ) id 1UKizG-0005Gx-5X; Wed, 27 Mar 2013 09:33:26 +0400 Message-ID: <51528495.5070101@mail.ru> Date: Wed, 27 Mar 2013 09:33:09 +0400 From: "Alexey V. Panfilov" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130209 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: RPI-B as router References: <514B2188.8030905@mail.ru> <6F05C3AD-D6F0-46B2-95D3-329898DE69B6@bluezbox.com> <514C902D.3030207@mail.ru> <51518B76.4000500@mail.ru> In-Reply-To: <51518B76.4000500@mail.ru> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Spam: Not detected X-Mras: Ok X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Mar 2013 05:34:35 -0000 26.03.2013 15:50, Alexey V. Panfilov wrote: > 22.03.2013 21:09, Alexey V. Panfilov wrote: >> 22.03.2013 09:53, Oleksandr Tymoshenko wrote: >> >>>> So RPI-B network's throughput was around 20Mbit/sec of full-duplex traffic: >>> >>> The problem is that USB works in PIO mode. With DMA mode enabled >>> it's somewhat faster. Here is my half-baked patch: >>> >>> http://people.freebsd.org/~gonzo/patches/dwc_otg-dma-nosplit.diff >> >> Oleksandr, thank you for explaine patch! >> >> Recompiling kernel with your patch in progress :) >> >> I'll report about result. > > I've got match better results with your patch: > > [Host A~]# iperf -c 192.168.0.249 -P 5 -i 5 -t 300 | grep SUM > [SUM] 0.0- 5.0 sec 14.2 MBytes 23.9 Mbits/sec > [SUM] 5.0-10.0 sec 14.2 MBytes 23.9 Mbits/sec > [SUM] 0.0-10.2 sec 29.2 MBytes 24.0 Mbits/sec > > But RPI stop responds via network (till 2-10 mins) and it's MAC address > is absent in this time. It didn't create neither dump (I've add swap > partition) neither logging something to /var/log/all.log. > > I'll try to connect RPI to monitor, get info and post it here later. I did it, but I can't post new info - no panics, no errors, no warnings. Monitor shows just 'login:' prompt. Is it possible to get info about reason of stop responding? What I should setup for it? > P.S. during running iperf I've got at /var/log/all.log: > Mar 26 08:52:01 raspberry-pi kernel: smsc0: warning: Failed to read > register 0x114 > Mar 26 08:52:01 raspberry-pi kernel: smsc0: warning: MII is busy > Mar 26 08:55:29 raspberry-pi kernel: smsc0: warning: Failed to write > register 0x114 > Mar 26 08:55:29 raspberry-pi kernel: smsc0: warning: Failed to read > register 0x114 > Mar 26 08:55:29 raspberry-pi kernel: smsc0: warning: MII read timeout > Mar 26 08:55:29 raspberry-pi kernel: smsc0: warning: Failed to read > register 0x118 > Mar 26 08:55:29 raspberry-pi kernel: smsc0: warning: Failed to write > register 0x114 > Mar 26 08:55:29 raspberry-pi kernel: smsc0: warning: Failed to read > register 0x114 > Mar 26 08:55:29 raspberry-pi kernel: smsc0: warning: MII is busy > > Am I right, that it is expected warnings? > >>> >>> Network interface should work, although USB keyboards will not work >>> with this patch. >>> >> >> I prefer to logon on RPI via ssh, so breaking USB keyboard is not big >> damage for me :) > -- Best regards, Alexey V. Panfilov