RPI-B as router

Alexey V. Panfilov lehis2000 at mail.ru
Tue Mar 26 11:51:02 UTC 2013


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



More information about the freebsd-arm mailing list