Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX8M-L/Peripherals/Ethernet

1,177 bytes removed, 8 January
m
U0007 moved page DESK-MX8M-L/Pheripherals/Ethernet to DESK-MX8M-L/Peripherals/Ethernet without leaving a redirect
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
|-
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Version
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|{{oldid|1571316714|1.0.02022/06/21}}|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Jan 2022|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|First DESK-MX8M -L release
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|1.0.1{{oldid|17552|2023/02/24}}|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Jun 2022|style="borderDESK-left:solid 2px #73B2C7; borderMX8M-right:solid 2px #73B2C7;borderL-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Added MAC address info page2.0.0 release
|-
|! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fbededed; padding:5px; color:#000000"|2.0.0|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Feb 2023/08/22|! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fbededed; padding:5px; color:#000000"|DESK-MX8M-L-24.0.0 release
|-
|}
=== Device tree configuration ===
====ORCASOM ====
Here below an example of device tree configuration used on standard DAVE's kit for the ORCA SOM:
</pre>
====MINIMITO 8M Mini====
Here below an example of device tree configuration used on standard DAVE's kit for the MITO 8M Mini SOM:
pinctrl_enet_irq: enet_irqgrp {
fsl,pins = <
MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x41 /* ETH0_INTn */
>;
};
...
...
[ 2.253084063873] fec 30be0000.ethernet eth0: registered PHC device 0
...
[ 6 14.211939263053] Generic PHY 30be0000.ethernet-1:08: attached PHY driver [Generic PHY] (mii_bus:phy_addr=30be0000.ethernet-1:08, irq=POLL)
</pre>
* <code>eth1</code>
<pre class="workstation-terminal">
[ 6 14.139981249319] imx-dwmac 30bf0000.ethernet eth1: PHY [stmmac-1:07] driver [Microchip KSZ9131 Gigabit PHY](irq=POLL)[ 6 14.162868250685] imx-dwmac 30bf0000.ethernet eth1: Register MEM_TYPE_PAGE_POOL RxQ-0[ 14.251110] imx-dwmac 30bf0000.ethernet eth1: No Safety Features support found[ 6 14.170459251133] imx-dwmac 30bf0000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported[ 6 14.181622252851] imx-dwmac 30bf0000.ethernet eth1: registered PTP clock[ 6 14.255249] imx-dwmac 30bf0000.ethernet eth1: FPE workqueue start[ 14.187870255267] imx-dwmac 30bf0000.ethernet eth1: configuring for phy/rgmii-id link mode
</pre>
...
...
[ 1018.422034346266] fec 30be0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off[ 1018.429651353884] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
</pre>
<pre class="workstation-terminal">
root@desk-mx8mp:~# ifconfig eth0
eth0 Link encap:Ethernet flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.118 netmask 255.255.255.0 HWaddr f2broadcast 192.168.10.255 inet6 fe80:b3:2f8449:ee5cff:0cfe4a:692840 prefixlen 64 scopeid 0x20<link> inet6 addr: fe80 ether 86:49:f0b35c:2fff4a:feee:c69/64 Scope28:Link UP BROADCAST RUNNING MULTICAST 40 MTU:1500 txqueuelen 1000 Metric:1(Ethernet) RX packets:16657 56295 bytes 9105391 (8.6 MiB) RX errors:0 dropped:0 overruns:0 frame:0 TX packets:109 225 bytes 23810 (23.2 KiB) TX errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1806277 (1.7 MiB) TX bytes:19191 (18.7 KiB)
root@desk-mx8mp:~# ifconfig eth1eth1 Link encap:Ethernet flags=4099<UP,BROADCAST,MULTICAST> HWaddr 2emtu 1500 ether b2:8979:64b4:91e1:7819:a6 UP BROADCAST MULTICAST 40 MTU:1500 txqueuelen 1000 Metric:1(Ethernet) RX packets:0 errors: bytes 0 dropped:(0 overruns:0 frame:.0B) TX packets:0 RX errors:0 dropped:0 overruns:0 carrier: frame 0 collisions: TX packets 0 txqueuelen:1000 RX bytes:0 (0.0 B) TX errors 0 TX bytes:dropped 0 overruns 0 ( carrier 0. collisions 0 B) Interrupt:45 device interrupt 48
root@desk-mx8mp:~#
<pre class="workstation-terminal">
root@desk-mx8mp:~# iperf3 -t 5 -c 192.168.04.125100Connecting to host 192.168.04.125100, port 5201[ 5] local 192.168.010.146 118 port 56130 51394 connected to 192.168.04.131 100 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 114 MBytes 954 956 Mbits/sec 0 385 680 KBytes [ 5] 1.00-2.00 sec 113 111 MBytes 945 933 Mbits/sec 0 385 771 KBytes [ 5] 2.00-3.00 sec 112 MBytes 938 944 Mbits/sec 0 403 786 KBytes [ 5] 3.00-4.00 sec 112 111 MBytes 940 933 Mbits/sec 0 423 829 KBytes [ 5] 4.00-5.00 sec 112 MBytes 941 Mbits/sec 0 423 KBytes[ 5] 5.00-6.00 sec 113 MBytes 945 Mbits/sec 0 423 KBytes[ 5] 6.00-7.00 sec 112 MBytes 940 Mbits/sec 0 423 KBytes[ 5] 7.00-8.00 sec 112 MBytes 941 Mbits/sec 0 465 KBytes[ 5] 8.00-9.00 sec 112 MBytes 943 Mbits/sec 0 465 KBytes[ 5] 9.00-10.00 sec 112 111 MBytes 938 933 Mbits/sec 0 465 829 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-105.00 sec 1.10 GBytes 943 560 MBytes 940 Mbits/sec 0 sender[ 5] 0.00-105.00 sec 1.10 GBytes 941 558 MBytes 936 Mbits/sec receiver
iperf Done.
</pre>
===Accessing the peripheral in MINI SOMMITO 8M Mini===
MIN SOM provides the network interface mapped as <code>eth0</code>.
====Linux messages at boot time====
* <code>eth0</code>
<pre class="workstation-terminal">
...
[ 2.909811] fec 30be0000.ethernet eth0: registered PHC device 0
...
[ 4 16.532401285429] fec Micrel KSZ9031 Gigabit PHY 30be0000.ethernet eth0-1: registered PHC device 007: attached PHY driver (mii_bus:phy_addr=30be0000.ethernet-1:07, irq=POLL)
...
[ 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>
<pre class="workstation-terminal">
...
[ 20.386519] fec 30be0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 20.394322] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
...
[ 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>
<pre class="workstation-terminal">
root@desk-mx8mm:~# ifconfigeth0eth0 Link encap:Ethernet HWaddr b2:49:03:4f:c6:fe inet6 addr: fe80::b049:3ff:fe4f:c6fe/64 Scope:Link flags=4163<UP ,BROADCAST ,RUNNING ,MULTICAST > MTU:mtu 1500 inet 192.168.4.153 netmask 255.255.255.0 Metric:1broadcast 192.168.4.255 RX packets inet6 fe80:21640 errors:0 dropped80c9:0 overruns10ff:0 framefe49:0b0ee prefixlen 64 scopeid 0x20<link> TX packets ether 82:62 errorsc9:0 dropped10:0 overruns49:0 carrierb0:0 collisions:0 ee txqueuelen:1000 (Ethernet) RX packets 65495 bytes:2288423 4562086 (24.1 3 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 558 bytes 134716 (131.5 KiB) TX 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 class="workstation-terminal">
root@desk-mx8mm:~# iperf3 -t 5 -c 192.168.04.166100Connecting to host 192.168.04.166100, port 5201[ 5] local 192.168.04.111 153 port 42606 50938 connected to 192.168.04.166 100 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 110 113 MBytes 923 951 Mbits/sec 0 769 457 KBytes [ 5] 1.00-2.00 sec 108 112 MBytes 901 941 Mbits/sec 85 652 0 499 KBytes [ 5] 2.00-3.00 sec 108 113 MBytes 902 948 Mbits/sec 144 410 0 525 KBytes [ 5] 3.00-4.00 sec 109 112 MBytes 911 941 Mbits/sec 0 467 525 KBytes [ 5] 4.00-5.00 sec 110 112 MBytes 923 939 Mbits/sec 74 400 0 525 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-5.00 sec 544 563 MBytes 912 944 Mbits/sec 303 0 sender[ 5] 0.00-5.00 sec 540 560 MBytes 906 939 Mbits/sec receiver
iperf Done.
----
[[Category:ORCA]] [[Category:MITO 8M Mini]]
8,221
edits