<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1388724556;
mso-list-type:hybrid;
mso-list-template-ids:-1542271100 -1 69140483 69140485 69140481 69140483 69140485 69140481 69140483 69140485;}
@list l0:level1
{mso-level-start-at:2000;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style>
</head>
<body lang="TR" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I was running Ethercat master with Gavin’s patchset older hardware with R8169 driver with Preempt RT. But new hardware is using I225 (Ethernet controller: Intel Corporation Ethernet Controller I225-LM (rev 03)), igc driver,
and newer kernel with Ubuntu 22.04. Unfortunately, I am unable to run with igc driver with Kernel 6.4. But, generic driver works. I tried to compile my RT kernel and Ethercat master a few times with different configurations, but no luck. I slightly suspect
there might be an issue with this new driver patch</span><span style="font-size:12.0pt;font-family:"Segoe UI",sans-serif;color:#0D0D0D;background:white">.
</span><span lang="EN-US">Any help you can give would be appreciated. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here is my dmesg log. (Driver looks like loaded ?)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[ 8167.603308] EtherCAT: Master module cleaned up.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[ 8169.698759] EtherCAT: Master driver 1.5.2 unknown<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[ 8169.699063] EtherCAT: 1 master waiting for devices.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[ 8169.743069] Intel(R) 2.5G Ethernet Linux Driver (EtherCAT enabled)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">When I select igc driver from /etc/sysconfig/ethercat, master is not works. But with generic driver it finds my Ethernet chip. No slaves connected.<o:p></o:p></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="EN-US">igc<o:p></o:p></span></li></ul>
<p class="MsoNormal"><span lang="EN-US"># /etc/init.d/ethercat status<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Checking for EtherCAT master 1.5.2 <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Master0 dead<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">root@lynca:/usr/local/src/ethercat-stable-1.5# ethercat master<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Master0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Phase: Waiting for device(s)...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Active: no<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Slaves: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Ethernet devices:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Main: ff:ff:ff:ff:ff:ff (waiting...)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Link: DOWN<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx frames: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx bytes: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx frames: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx bytes: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx errors: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx frame rate [1/s]: 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx rate [KByte/s]: 0.0 0.0 0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx frame rate [1/s]: 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx rate [KByte/s]: 0.0 0.0 0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Common:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx frames: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx bytes: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx frames: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx bytes: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Lost frames: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx frame rate [1/s]: 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx rate [KByte/s]: 0.0 0.0 0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx frame rate [1/s]: 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx rate [KByte/s]: 0.0 0.0 0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Loss rate [1/s]: 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Frame loss [%]: 0.0 0.0 0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Distributed clocks:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Reference clock: None<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> DC reference time: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Application time: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> 2000-01-01 00:00:00.000000000<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo1"><span lang="EN-US">GENERIC<o:p></o:p></span></li></ul>
<p class="MsoNormal"><span lang="EN-US">ethercat master<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Master0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Phase: Idle<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Active: no<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Slaves: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Ethernet devices:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Main: 86:c0:b4:27:56:65 (attached)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Link: DOWN<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx frames: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx bytes: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx frames: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx bytes: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx errors: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx frame rate [1/s]: 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx rate [KByte/s]: 0.0 0.0 0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx frame rate [1/s]: 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx rate [KByte/s]: 0.0 0.0 0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Common:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx frames: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx bytes: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx frames: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx bytes: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Lost frames: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx frame rate [1/s]: 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Tx rate [KByte/s]: 0.0 0.0 0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx frame rate [1/s]: 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Rx rate [KByte/s]: 0.0 0.0 0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Loss rate [1/s]: 0 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Frame loss [%]: 0.0 0.0 0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Distributed clocks:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Reference clock: None<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> DC reference time: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Application time: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> 2000-01-01 00:00:00.000000000<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Also you can check “lsmod” data for both generic and igc here:
<a href="https://pastes.io/jordbvtiuq">https://pastes.io/jordbvtiuq</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Celil<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>