<div dir="ltr"><div><div><div><div><div><div>Hi all,<br><br></div>The "Master still
waiting for devices!" problem was cleared after we departed the network
driver from kernel and blocked the module.<br></div>Now we got a new problem. It's seems like related to IRQ.<br></div>Here's the info in dmesg:<br><br>[ 42.811736] EtherCAT: Master driver 1.5.2 unknown<br>[ 42.823040] EtherCAT 0: Registering RTDM device EtherCAT.<br>[ 42.829957] EtherCAT: 1 master waiting for devices.<br>[ 42.977620] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6<br>[ 42.984045] davinci_mdio 4a101000.mdio: detected phy mask fffffff5<br>[ 43.051015] libphy: 4a101000.mdio: probed<br>[ 43.055261] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver TLK110<br>[ 43.063694] davinci_mdio 4a101000.mdio: phy[3]: device 4a101000.mdio:03, driver TLK110<br>[ 43.079564] ec_cpsw 4a100000.ethernet: Detected MACID = a0:f6:fd:22:bd:ed<br>[ 43.107209] EtherCAT: Accepting A0:F6:FD:22:BD:ED as main device for master 0.<br>[ 43.121821] (null): initializing cpsw version 1.12 (0)<br>[ 43.209114] (null): phy found : id is : 0x2000a211<br>[ 43.228929] EtherCAT 0: Starting EtherCAT-IDLE thread.<br>[ 55.208124] libphy: 4a101000.mdio:01 - Link is Up - 100/Full<br>[ 55.214091] EtherCAT 0: Link state of ecm0 changed to UP.<br>[ 55.465263] irq 58: nobody cared (try booting with the "irqpoll" option)<br>[ 55.472258] CPU: 0 PID: 2102 Comm: EtherCAT-IDLE Tainted: G O 3.14.26-g1126d79-dirty #3<br>[ 55.481499] Backtrace: <br>[ 55.484084] [<c0011df0>] (dump_backtrace) from [<c0012004>] (show_stack+0x18/0x1c)<br>[ 55.492026] r7:00000000 r6:0000003a r5:00000000 r4:dd006e3c<br>[ 55.497948] [<c0011fec>] (show_stack) from [<c060ae0c>] (dump_stack+0x24/0x28)<br>[ 55.505538] [<c060ade8>] (dump_stack) from [<c006d020>] (__report_bad_irq.isra.7+0x30/<wbr>0xe4)<br>[ 55.514306] [<c006cff0>] (__report_bad_irq.isra.7) from [<c006d3a4>] (note_interrupt+0x260/0x2b0)<br>[ 55.523615] r5:00000000 r4:dd006e00<br>[ 55.527357] [<c006d144>] (note_interrupt) from [<c006b528>] (handle_irq_event_percpu+<wbr>0x158/0x1d0)<br>[ 55.536594] r10:dd006e00 r9:0000003a r8:c088dc08 r7:00000000 r6:00000000 r5:00000000<br>[ 55.544767] r4:00000000 r3:00000000<br>[ 55.548503] [<c006b3d0>] (handle_irq_event_percpu) from [<c006b5d0>] (handle_irq_event+0x30/0x40)<br>[ 55.557740] r10:c088dc08 r9:c08efb80 r8:00000001 r7:c088dc0c r6:00000000 r5:0000003a<br>[ 55.565912] r4:dd006e00<br>[ 55.568556] [<c006b5a0>] (handle_irq_event) from [<c006e444>] (handle_level_irq+0x6c/0xcc)<br>[ 55.577159] r5:0000003a r4:dd006e00<br>[ 55.580892] [<c006e3d8>] (handle_level_irq) from [<c006abe8>] (generic_handle_irq+0x34/0x44)<br>[ 55.589678] r5:0000003a r4:0000003a<br>[ 55.593413] [<c006abb4>] (generic_handle_irq) from [<c000f294>] (handle_IRQ+0x40/0x8c)<br>[ 55.601655] r5:0000003a r4:c0898acc<br>[ 55.605394] [<c000f254>] (handle_IRQ) from [<c0017b9c>] (__ipipe_do_IRQ+0x14/0x1c)<br>[ 55.613274] r7:c088dc0c r6:c088dc10 r5:00000004 r4:c08f0a00<br>[ 55.619198] [<c0017b88>] (__ipipe_do_IRQ) from [<c008d4d4>] (__ipipe_do_sync_stage+0x250/<wbr>0x274)<br>[ 55.628334] [<c008d284>] (__ipipe_do_sync_stage) from [<c008d588>] (__ipipe_do_sync_pipeline+<wbr>0x90/0x98)<br>[ 55.638191] r10:00000000 r9:c088ec08 r8:c088fc08 r7:c08efb80 r6:c08efb40 r5:c088dc08<br>[ 55.646365] r4:c088dc08<br>[ 55.649010] [<c008d4f8>] (__ipipe_do_sync_pipeline) from [<c008da40>] (__ipipe_dispatch_irq+0x1d0/<wbr>0x260)<br>[ 55.658957] r9:c088ec08 r8:c088fc08 r7:0000003b r6:00000000 r5:0000003a r4:c088dc04<br>[ 55.667050] [<c008d870>] (__ipipe_dispatch_irq) from [<c0008428>] (__ipipe_grab_irq+0x50/0x5c)<br>[ 55.676084] r10:00000000 r9:0000002e r8:db299ed8 r7:0000003a r6:db299e58 r5:c08c5ccc<br>[ 55.684258] r4:db299e58 r3:c088dc08<br>[ 55.687989] [<c00083d8>] (__ipipe_grab_irq) from [<c000876c>] (omap3_intc_handle_irq+0x98/<wbr>0xa8)<br>[ 55.697048] Exception stack(0xdb299e38 to 0xdb299e80)<br>[ 55.702309] 9e20: <wbr> bf0b06b0 600f0013<br>[ 55.710829] 9e40: ffffffff db299e8c db299ebc db299e58 c060f1c0 c00086e0 00000000 dd5ec230<br>[ 55.719350] 9e60: 00000000 00000000 dd5ec060 0000003c dd424740 00000000 db299ed8 0000002e<br>[ 55.727864] r5:c08c5ccc r4:fa200000<br>[ 55.731604] [<c00086d4>] (omap3_intc_handle_irq) from [<c060f1c0>] (__irq_svc+0x40/0x4c)<br>[ 55.740028] Exception stack(0xdb299e58 to 0xdb299ea0)<br>[ 55.745287] 9e40: <wbr> 00000000 dd5ec230<br>[ 55.753806] 9e60: 00000000 00000000 dd5ec060 0000003c dd424740 00000000 db299ed8 0000002e<br>[ 55.762326] 9e80: 00000000 db299ebc db299e38 db299ea0 c0451408 bf0b06b0 600f0013 ffffffff<br>[ 55.770839] r7:db299e8c r6:ffffffff r5:600f0013 r4:bf0b06b0<br>[ 55.776985] [<bf0b0638>] (ec_device_send [ec_master]) from [<bf0ca43c>] (ec_master_send_datagrams+<wbr>0x1d4/0x324 [ec_master])<br>[ 55.788577] r7:db74074e r6:dd5ec720 r5:db74077c r4:00000000<br>[
55.794592] [<bf0ca268>] (ec_master_send_datagrams [ec_master])
from [<bf0ca5fc>] (ecrt_master_send+0x70/0x110 [ec_master])<br>[ 55.806273] r10:00000001 r9:dd5ed000 r8:00000005 r7:dd5ec060 r6:00000000 r5:00000000<br>[ 55.814447] r4:dd5ec000<br>[ 55.817186] [<bf0ca58c>] (ecrt_master_send [ec_master]) from [<bf0cb398>] (ec_master_idle_thread+0xbc/<wbr>0x14c [ec_master])<br>[ 55.828593] r9:dd5ed000 r8:dd5ec544 r7:dd5ec054 r6:dd5ec2b0 r5:dd5ed284 r4:dd5ec000<br>[ 55.836737] [<bf0cb2dc>] (ec_master_idle_thread [ec_master]) from [<c0055abc>] (kthread+0xcc/0xe4)<br>[ 55.846137] r10:00000000 r9:00000000 r8:00000000 r7:bf0cb2dc r6:dd5ec000 r5:db785e80<br>[ 55.854311] r4:00000000 r3:dd41c400<br>[ 55.858046] [<c00559f0>] (kthread) from [<c000ea20>] (ret_from_fork+0x18/0x38)<br>[ 55.865564] r7:00000000 r6:00000000 r5:c00559f0 r4:db785e80<br>[ 55.871469] handlers:<br>[ 55.873853] [<bf111ba0>] cpsw_tx_interrupt [ec_cpsw]<br>[ 55.879021] Disabling IRQ #58<br>[ 55.901101] EtherCAT WARNING 0: 1 datagram TIMED OUT!<br>[ 56.897597] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br>[ 57.897595] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br>[ 58.897598] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br>[ 59.897602] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br>[ 60.897605] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br>[ 61.897602] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br>[ 62.897593] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br>[ 63.897589] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br>[ 64.897599] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br>[ 65.897592] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br>[ 66.897604] EtherCAT WARNING 0: 50 datagrams TIMED OUT!<br> <br></div>Does that mean we did not adapt the cpsw driver correctly?<br></div>How could it be caused?<br><br></div><div>Attachments are the related files and patchs.<br><br></div>Thanks & Regards.<div class="gmail-yj6qo gmail-ajU"><div id="gmail-:u9" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-19 17:51 GMT+08:00 Patrick Brünn <span dir="ltr"><<a href="mailto:P.Bruenn@beckhoff.com" target="_blank">P.Bruenn@beckhoff.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="DE">
<div class="m_-126073935698193148WordSection1">
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Just another thought:<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">In your log I see a:<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt" lang="EN-US"> Link: DOWN<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Check if your driver is propagating the link state to Etherlab by calling:
ecdev_set_link(ecdev, 1);<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Regards,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="EN-US">Patrick<u></u><u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font size="2" color="#1f497d" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;font-weight:bold" lang="EN-US">From:</span></font></b><font size="2" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">
etherlab-dev [mailto:<a href="mailto:etherlab-dev-bounces@etherlab.org" target="_blank">etherlab-dev-bounces@<wbr>etherlab.org</a>] <b><span style="font-weight:bold">On Behalf Of
</span></b>???<br>
<b><span style="font-weight:bold">Sent:</span></b> Donnerstag, 19. Januar 2017 04:15<br>
<b><span style="font-weight:bold">To:</span></b> Graeme Foot <<a href="mailto:Graeme.Foot@touchcut.com" target="_blank">Graeme.Foot@touchcut.com</a>><br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:etherlab-dev@etherlab.org" target="_blank">etherlab-dev@etherlab.org</a><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [etherlab-dev] "Master still waiting for devices!" problem.<u></u><u></u></span></font></p>
</div>
</div><span class="">
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hi Graeme,<u></u><u></u></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I think that 1) and 2) was done correctly in my case.<u></u><u></u></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">For 3), I'll check dmesg.<u></u><u></u></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">For 4), I found the thread in 2013:<br>
<a href="http://lists.etherlab.org/pipermail/etherlab-users/2013/002074.html" target="_blank">http://lists.etherlab.org/<wbr>pipermail/etherlab-users/2013/<wbr>002074.html</a><u></u><u></u></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">But I can't get the attachment since I'm not in the etherlab-user mail list.<u></u><u></u></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Is there any other way to get the attachment?<u></u><u></u></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Thank you for your response.<br>
Best regards - Erix Chou<u></u><u></u></span></font></p>
</div>
</span><div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
<div><span class="">
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">2017-01-19 5:27 GMT+08:00 Graeme Foot <<a href="mailto:Graeme.Foot@touchcut.com" target="_blank">Graeme.Foot@touchcut.com</a>>:<u></u><u></u></span></font></p>
<br>
</span><span style="FONT-FAMILY:Arial,Helvetica,sans-serif;FONT-SIZE:8pt">Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans Beckhoff<br>
Registered office: Verl, Germany | Register court: Guetersloh HRA 7075</span> <br><div><div class="h5">
<br>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div id="m_-126073935698193148m_8988594303130456556divtagdefaultwrapper">
<div id="m_-126073935698193148m_8988594303130456556divtagdefaultwrapper">
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">I can think of four possible errors at the moment:<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">1) Your ethercat configuration file isn't matching the correct MAC address.<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">In /etc/sysconfig/ethercat you have "MASTER0_DEVICE="ff:ff:ff:ff:<wbr>ff:ff"". ff:ff:ff:ff:ff:ff matches the first available device, looking
at devices in the order the drivers are loaded (in the DEVICE_MODULES key). So you may have sepecified a MAC address that is not matching your device<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">2) You are not loading your device module.<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">In /etc/sysconfig/ethercat you have "DEVICE_MODULES=". This specifies the network driver modules (ethercat versions) that you want to
run (space delimited list). You should put your module first in the list if you use a generic MAC address (ie: ff:ff:ff:ff:ff:ff) in the setting above.<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">eg: <u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">DEVICE_MODULES="cpsw e1000 e1000e"<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">3) Your driver doesn't work.<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">Check dmesg for any errors.<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">4) Your driver is not correctly integrating with the EtherCAT master.<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">There's various functions that your driver needs to interact with the master. But from memory the one that tells the master that a device
is available is:<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">ecdev_offer();<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">But the guts of it is that no offered net devices match the requirements of the MASTER0_DEVICE config setting.<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">I wrote a patch for the CX2100 device a while ago. You could look it up in the forums to check how it interacts with the master (or I
could send it if you can't find it). Look for the ecdev_... methods and the notes about the skb's.<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">Regards,<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">Graeme.<u></u><u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
<p><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"><u></u> <u></u></span></font></p>
</div>
<div class="MsoNormal" style="text-align:center" align="center"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">
<hr width="98%" size="2" align="center">
</span></font></div>
<div id="m_-126073935698193148m_8988594303130456556divRplyFwdMsg">
<p class="MsoNormal"><b><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black;font-weight:bold">From:</span></font></b><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
etherlab-dev <<a href="mailto:etherlab-dev-bounces@etherlab.org" target="_blank">etherlab-dev-bounces@<wbr>etherlab.org</a>> on behalf of
</span></font><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">周甫霖</span></font><font size="2" color="black" face="Calibri"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
<<a href="mailto:erixchou@mapacode.tw" target="_blank">erixchou@mapacode.tw</a>><br>
<b><span style="font-weight:bold">Sent:</span></b> Wednesday, 18 January 2017 9:26:42 PM<br>
<b><span style="font-weight:bold">To:</span></b> <a href="mailto:etherlab-dev@etherlab.org" target="_blank">
etherlab-dev@etherlab.org</a><br>
<b><span style="font-weight:bold">Subject:</span></b> [etherlab-dev] "Master still waiting for devices!" problem.</span></font><font color="black" face="Calibri"><span style="font-family:"Calibri",sans-serif;color:black">
<u></u><u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black"> <u></u><u></u></span></font></p>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><font size="3" color="black" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:black">Hi all,<br>
<br>
First appreciate the implement of etherlabmaster.<br>
I'm devolping a non-native supported ethernet device to be able to work as a RTDM EtherCAT master.<br>
What the device is one part of TI AM335x SoC and is named "cpsw".<br>
Everything smoothly while adapting driver code, building module file, and installing.<br>
But I was stuck by a problem when I try to start EtherCAT master.<br>
Following is my steps and message shown by dmesg:<br>
<br>
# /etc/init.d/ethercat start<br>
Starting EtherCAT master 1.5.2 done<br>
<br>
[ 30.849754] EtherCAT: Requesting master 0...<br>
[ 30.854265] EtherCAT ERROR 0: Master still waiting for devices!<br>
<br>
More information:<br>
<br>
# /opt/etherlab/bin/ethercat master<br>
Master0<br>
Phase: Waiting for device(s)...<br>
Active: no<br>
Slaves: 0<br>
Ethernet devices:<br>
Main: a0:f6:fd:22:bd:ed (waiting...)<br>
Link: DOWN<br>
Tx frames: 0<br>
Tx bytes: 0<br>
Rx frames: 0<br>
Rx bytes: 0<br>
Tx errors: 0<br>
Tx frame rate [1/s]: 0 0 0<br>
Tx rate [KByte/s]: 0.0 0.0 0.0<br>
Rx frame rate [1/s]: 0 0 0<br>
Rx rate [KByte/s]: 0.0 0.0 0.0<br>
Common:<br>
Tx frames: 0<br>
Tx bytes: 0<br>
Rx frames: 0<br>
Rx bytes: 0<br>
Lost frames: 0<br>
Tx frame rate [1/s]: 0 0 0<br>
Tx rate [KByte/s]: 0.0 0.0 0.0<br>
Rx frame rate [1/s]: -509579 -509608 -335544<br>
Rx rate [KByte/s]: 845836.0 -469824.0 163840.0<br>
Loss rate [1/s]: 0 0 0<br>
Frame loss [%]: 0.0 0.0 0.0<br>
Distributed clocks:<br>
Reference clock: None<br>
Application time: 0<br>
2000-01-01 00:00:00.000000000<br>
<br>
<br>
<br>
Could anyone kindly advice what is the key point to go forword form "waiting device"?<br>
<br>
Best regards - Erix Chou<u></u><u></u></span></font></p>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div></div></div><div><div class="h5">
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
<br clear="all">
<br>
-- <u></u><u></u></span></font></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif">動程科技有限公司</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif"><u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif">台南市安平區建平十七街</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif">159</span></font><font face="Calibri"><span style="font-family:"Calibri",sans-serif">號七樓之一</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif"><u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif">周甫霖</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif"> Erix Chou<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Arial"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">E-mail</span></font><font face="Calibri"><span style="font-family:"Calibri",sans-serif">:</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif"><a href="mailto:erixchou@mapacode.tw" target="_blank"><font color="#1155cc"><span style="color:#1155cc">erixchou@mapacode.tw</span></font></a><u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Arial"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">TEL</span></font><font face="Calibri"><span style="font-family:"Calibri",sans-serif">:</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif">06-2970665<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Arial"><span style="font-size:12.0pt;font-family:"Arial",sans-serif">Mobile</span></font><font face="Calibri"><span style="font-family:"Calibri",sans-serif">:</span></font><font face="Arial"><span style="font-family:"Arial",sans-serif">0985946776<u></u><u></u></span></font></p>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-family:arial;font-size:small"><div>動程科技有限公司</div><div>台南市安平區建平十七街159號七樓之一<br></div><div>周甫霖 Erix Chou</div><div>E-mail:<a href="mailto:erixchou@mapacode.tw" style="color:rgb(17,85,204)" target="_blank">erixchou@mapacode.tw</a></div><div>TEL:06-2970665</div><div>Mobile:0985946776</div></div></div></div>
</div>