2008-10-15 21:37:38 usbnet on bf527 unstable????
zc liang (CHINA)
Message: 63742
I have tested the usbnet on bf527.The usbnet can be found on my pc.But there is a bug.
THE TEST:
root:/> modprobe g_ether host_addr=00:dc:c8:f7:75:05 dev_addr=00:dd:dc:eb:6d:f1
musb_hdrc: version 6.0, pio, peripheral, debug=0
musb_hdrc: USB Peripheral mode controller at ffc03800 using PIO, IRQ 59
usb0: Ethernet Gadget, version: May Day 2005
usb0: using musb_hdrc, OUT ep6out IN ep5in STATUS ep1in
usb0: MAC 00:dd:dc:eb:6d:f1
usb0: HOST MAC 00:dc:c8:f7:75:05
usb0: RNDIS ready
root:/> usb0: high speed config #1: 100 mA, Ethernet Gadget, using CDC Ethernet
root:/> ifconfig usb0 192.168.1.111 up
root:/> ping 192.168.1.222
PING 192.168.1.222 (192.168.1.222): 56 data bytes
64 bytes from 192.168.1.222: seq=0 ttl=64 time=4.000 ms
64 bytes from 192.168.1.222: seq=1 ttl=64 time=0.000 ms
64 bytes from 192.168.1.222: seq=2 ttl=64 time=0.000 ms
^C
--- 192.168.1.222 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.000/1.333/4.000 ms
root:/> mount -o nolock,rsize=1024,wsize=1024 192.168.1.222:/tmp /mnt/
root:/> cp /mnt/3MB-file /tmp/
nfs: server 192.168.1.222 not responding, still trying
nfs: server 192.168.1.222 not responding, still trying
nfs: server 192.168.1.222 not responding, still trying
Another test:
bf527 ping to pc while ping form pc with "-f" ,after an hour(about), found packet lossing.
The kernel my bf527 used is 2.6.26.5-ADI-2009R1.
Is it unstable for usbnet on bf527?
QuoteReplyEditDelete
2008-10-15 21:48:33 Re: usbnet on bf527 unstable????
Mike Frysinger (UNITED STATES)
Message: 63746
i have never found a system that can respond completely to `ping -f` without dropping a packet ... so without any real information, that test isnt really valid
as for nfs, it looks like you're using NFSv2/UDP ... that's an awful idea as it's completely unreliable (has nothing to do with the Blackfin -- try it on any system and you'll find it unreliable). please read the NFS documentation:
http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:nfs
QuoteReplyEditDelete
2008-10-16 22:37:19 Re: usbnet on bf527 unstable????
zc liang (CHINA)
Message: 63818
So,how do I test that I can make sure the usbnet work stable?
I compare Emac-net with usbnet on bf527.The emac test fine.
The nfs I used is nfsv3/udp.But I also test nfs over tcp.
Moreover, I tested the nfs with the option "timeo=600" "sync".
The results are the same except that the testing file is less than 1MB.
root:/> ls /mnt/800.bmp4 -l
-rw-r--r-- 1 1000 1000 768008 Oct 16 2008 /mnt/800.bmp4
root:/> cp /mnt/800.bmp4 /tmp/
root:/> ls /mnt/foo.raw -l
-rw-r--r-- 1 1000 1000 1244160 Oct 16 2008 /mnt/foo.raw
root:/> cp /mnt/foo.raw /tmp/
nfs: server 192.168.1.222 not responding, still trying
nfs: server 192.168.1.222 not responding, still trying
What is wrong ?
QuoteReplyEditDelete
2008-10-17 00:33:44 Re: usbnet on bf527 unstable????
Bryan Wu (CHINA)
Message: 63826
Actually, we still try to fix a bug found by ethernet over usb of bf548/bf527.
So what I can say now is usbnet on bf548/bf527 is not stable and we still try to fix this.
-Bryan
QuoteReplyEditDelete
2008-10-17 00:41:09 Re: usbnet on bf527 unstable????
zc liang (CHINA)
Message: 63832
use netperf test
EMAC :
root:/> netperf -H 192.168.2.153
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.2.153 (192.168.2.153) port 0 AF_INET
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.00 81.00
USBNET:
root:/> netperf -H 192.168.1.222
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.1.222 (192.168.1.222) port 0 AF_INET
netperf: receive_response: no response received. errno 113 counter 0