Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX8M-L/Peripherals/Ethernet

2,669 bytes added, 10:39, 15 February 2023
Accessing the peripheral
</pre>
===Accessing the peripheralfor ORCA SOM===
ORCA SOM provides the network interface mapped as <code>eth0</code> and <code>eth1</code>.
root@desk-mx8mp:~#
</pre>
 
===Accessing the peripheral for MINI SOM===
MIN SOM provides the network interface mapped as <code>eth0</code>.
 
====Linux messages at boot time====
 
* <code>eth0</code>
<pre class="workstation-terminal">
...
...
[ 4.532401] fec 30be0000.ethernet eth0: registered PHC device 0
...
[ 8.010083] Micrel KSZ9031 Gigabit PHY 30be0000.ethernet-1:07: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=30be0000.ethernet-1:07, irq=POLL)
</pre>
 
Cable connection:
 
<pre class="workstation-terminal">
...
...
[ 12.113452] fec 30be0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 12.121253] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
</pre>
 
==== Check the interface with ifconfig ====
 
<pre class="workstation-terminal">
root@desk-mx8mm:~# ifconfig
eth0 Link encap:Ethernet HWaddr b2:49:03:4f:c6:fe
inet6 addr: fe80::b049:3ff:fe4f:c6fe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21640 errors:0 dropped:0 overruns:0 frame:0
TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2288423 (2.1 MiB) TX bytes:12548 (12.2 KiB)
 
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:82 errors:0 dropped:0 overruns:0 frame:0
TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6220 (6.0 KiB) TX bytes:6220 (6.0 KiB)
 
root@desk-mx8mm:~#
</pre>
 
==== Test with [https://iperf.fr/ iperf3] ====
 
<pre class="workstation-terminal">
root@desk-mx8mm:~# iperf3 -t 5 -c 192.168.0.166
Connecting to host 192.168.0.166, port 5201
[ 5] local 192.168.0.111 port 42606 connected to 192.168.0.166 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 110 MBytes 923 Mbits/sec 0 769 KBytes
[ 5] 1.00-2.00 sec 108 MBytes 901 Mbits/sec 85 652 KBytes
[ 5] 2.00-3.00 sec 108 MBytes 902 Mbits/sec 144 410 KBytes
[ 5] 3.00-4.00 sec 109 MBytes 911 Mbits/sec 0 467 KBytes
[ 5] 4.00-5.00 sec 110 MBytes 923 Mbits/sec 74 400 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-5.00 sec 544 MBytes 912 Mbits/sec 303 sender
[ 5] 0.00-5.00 sec 540 MBytes 906 Mbits/sec receiver
 
iperf Done.
root@desk-mx8mm:~#
</pre>
 
==== MAC Address ====
dave_user
424
edits