1 | Driver for opencores ethernet MAC - README |
---|
2 | ------------------------------------------ |
---|
3 | |
---|
4 | The device name for the driver is 'open_eth1', the attach |
---|
5 | function for the leon bsp is rtems_leon_open_eth_driver_attach(). |
---|
6 | |
---|
7 | No cache flushing is made when a frame is received. On leon, |
---|
8 | this means that cache snooping must be configured in the |
---|
9 | vhdl model and enabled by software. |
---|
10 | |
---|
11 | TX interrupts are not used and masked in the interrupt mask |
---|
12 | register. |
---|
13 | |
---|
14 | For now, only 10 Mbit/s half-duplex is supported. |
---|
15 | 100 Mbit/s operations does not work reliably, the transmitter |
---|
16 | locks up or skips frames. Seems to depend on the TX fifo |
---|
17 | implementation in the opencores MAC. Send a mail to |
---|
18 | jiri@gaisler.com if you know how to fix this. |
---|
19 | |
---|
20 | Tested only on leon, using the GR-PCI-XC2V board @ 40 MHz. |
---|
21 | Output from ttcp receiving 1 Mbyte file: |
---|
22 | |
---|
23 | >>> ttcp -r -s |
---|
24 | ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcp |
---|
25 | ttcp-r: socket |
---|
26 | ttcp-r: accept from 192.168.0.2 |
---|
27 | ttcp-r: 1145339 bytes in 1.18 real seconds = 947.88 KB/sec +++ |
---|
28 | ttcp-r: 792 I/O calls, msec/call = 1.53, calls/sec = 671.19 |
---|
29 | ttcp-r: 0.0user 1.1sys 0:01real 100% 0i+0d 0maxrss 0+0pf 0+0csw |
---|
30 | ************ MBUF STATISTICS ************ |
---|
31 | mbufs:1024 clusters: 128 free: 112 |
---|
32 | drops: 0 waits: 0 drains: 0 |
---|
33 | free:1007 data:17 header:0 socket:0 |
---|
34 | pcb:0 rtable:0 htable:0 atable:0 |
---|
35 | soname:0 soopts:0 ftable:0 rights:0 |
---|
36 | ifaddr:0 control:0 oobdata:0 |
---|
37 | |
---|
38 | ************ INTERFACE STATISTICS ************ |
---|
39 | ***** open_eth1 ***** |
---|
40 | Address:192.168.0.66 Broadcast Address:192.168.0.255 |
---|
41 | Flags: Up Broadcast Running Simplex |
---|
42 | Send queue limit:50 length:0 Dropped:0 |
---|
43 | Rx Packets:796 Rx Interrupts:796 Length:0 |
---|
44 | Bad CRC:0 Overrun:0 Miss:0 |
---|
45 | Tx Interrupts:0 Deferred:0 Missed Hearbeat:0 |
---|
46 | No Carrier:0 Retransmit Limit:0 Late Collision:0 |
---|
47 | Underrun:0 Raw output wait:0 |
---|
48 | |
---|
49 | ************ IP Statistics ************ |
---|
50 | total packets received 795 |
---|
51 | datagrams delivered to upper level 795 |
---|
52 | total ip packets generated here 401 |
---|
53 | |
---|
54 | ************ TCP Statistics ************ |
---|
55 | connections accepted 1 |
---|
56 | connections established 1 |
---|
57 | conn. closed (includes drops) 1 |
---|
58 | segs where we tried to get rtt 2 |
---|
59 | times we succeeded 2 |
---|
60 | delayed acks sent 4 |
---|
61 | total packets sent 401 |
---|
62 | ack-only packets sent 6 |
---|
63 | window update-only packets sent 394 |
---|
64 | control (SYN|FIN|RST) packets sent 1 |
---|
65 | total packets received 795 |
---|
66 | packets received in sequence 792 |
---|
67 | bytes received in sequence 1145339 |
---|
68 | rcvd ack packets 2 |
---|
69 | bytes acked by rcvd acks 2 |
---|
70 | times hdr predict ok for data pkts 791 |
---|
71 | |
---|
72 | |
---|