From owner-freebsd-arm@FreeBSD.ORG Tue Mar 26 11:51:02 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 86323848 for ; Tue, 26 Mar 2013 11:51:02 +0000 (UTC) (envelope-from lehis2000@mail.ru) Received: from fallback7.mail.ru (fallback7.mail.ru [94.100.176.135]) by mx1.freebsd.org (Postfix) with ESMTP id 0B9216A4 for ; Tue, 26 Mar 2013 11:51:01 +0000 (UTC) Received: from smtp2.mail.ru (smtp2.mail.ru [94.100.176.130]) by fallback7.mail.ru (mPOP.Fallback_MX) with ESMTP id 1402CC6E67AD for ; Tue, 26 Mar 2013 15:50:59 +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=LaCuLApLUkuRLe/ERwNvyzM8+Q1KHyDm1/fH2EniJq8=; b=PTwx8aMFUjIU7fs8bHlhh4sL3gLN/KheRe6lUgINLWth989twtUbOkJuHECCSzE3fp1KyJq0WsQExwPRkU/aiI8RCVfKDixslpHCD2zdySA9P8Et91kyjcEIe1rNPL2pof0wP390pGccjs0TVXHfqwCGNQneT7k+LsDmFO9P1fY=; Received: from [91.217.137.251] (port=2374 helo=work-book.lehis.ru) by smtp2.mail.ru with esmtpa (envelope-from ) id 1UKSOX-0000d1-Ml; Tue, 26 Mar 2013 15:50:26 +0400 Message-ID: <51518B76.4000500@mail.ru> Date: Tue, 26 Mar 2013 15:50:14 +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> In-Reply-To: <514C902D.3030207@mail.ru> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit 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: Tue, 26 Mar 2013 11:51:02 -0000 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. 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