<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="http://schemas.microsoft.com/office/2004/12/omml">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--a:link
{mso-style-priority:99;}
span.MSOHYPERLINK
{mso-style-priority:99;}
a:visited
{mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
{mso-style-priority:99;}
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:Calibri;}
p.MsoTitle, li.MsoTitle, div.MsoTitle
{margin-top:0pt;
margin-right:0pt;
margin-bottom:30.0pt;
margin-left:0pt;
font-size:14.0pt;
font-family:Arial;
font-weight:bold;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage18
{mso-style-type:personal;
font-family:Calibri;
color:windowtext;}
span.E-MailFormatvorlage19
{mso-style-type:personal-reply;
font-family:Arial;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:1378700047;
mso-list-type:hybrid;
mso-list-template-ids:-1565618002 67567633 67567641 67567643 67567631 67567641 67567643 67567631 67567641 67567643;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
ol
{margin-bottom:0pt;}
ul
{margin-bottom:0pt;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Hi<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>>> WARNING: "ecrt_master_..."<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Copy or link the $(PATH_TO_EC_MASTER)/Module.symvers
to your mini-directory.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>>> insmod -1 Invalid parameters<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>1)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'> </span></font></span></span></font><![endif]><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Have
you started your Master? <o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>2)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'> </span></font></span></span></font><![endif]><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>Check
dmesg for more infos.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'>Olaf<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span lang=EN-GB style='font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-family:"Times New Roman"'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-GB
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>Von:</span></font></b><font
size=2 face=Tahoma><span lang=EN-GB style='font-size:10.0pt;font-family:Tahoma'>
etherlab-users-bounces@etherlab.org
[mailto:etherlab-users-bounces@etherlab.org] <b><span style='font-weight:bold'>Im
Auft</span></b></span></font><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>rag von </span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Uriel
Roque<br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Mittwoch, 3. April 2013
11:14<br>
<b><span style='font-weight:bold'>An:</span></b> etherlab-users@etherlab.org<br>
<b><span style='font-weight:bold'>Betreff:</span></b> [etherlab-users] Problem
running examples::mini</span></font><font size=3 face="Times New Roman"><span
style='font-size:12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 face=Calibri><span style='font-size:11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>I am new in ethercat and I am getting problems with the example mini.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>I am using ethercat 1.5.2, Ubunto 12.04.2, linux kernel version
3.5.0-23-generic, the generic Ethernet driver and two proprietary ethercat
slaves.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>I follow the installation instructions and manage to <i><span
style='font-style:italic'>configure </span></i>and <i><span style='font-style:
italic'>make modules</span></i>. I start the master manually with <i><span
style='font-style:italic'>ethercat start</span></i> and get following system
messages with <i><span style='font-style:italic'>dmesg</span></i>:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11789.921570] EtherCAT: Master driver 1.5.2 2eff7c993a63<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11789.921708] EtherCAT: 1 master waiting for devices.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11789.927170] ec_generic: EtherCAT master generic Ethernet device
module 1.5.2 2eff7c993a63<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11789.927193] EtherCAT: Accepting 5C:26:0A:1E:C7:E0 as main device for
master 0.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11789.927205] ec_generic: Binding socket to interface 2 (eth0).<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11789.928833] EtherCAT 0: Starting EtherCAT-IDLE thread.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11789.928892] EtherCAT 0: Link state of ecm0 changed to UP.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11789.932772] EtherCAT 0: 2 slave(s) responding on main device.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11789.932778] EtherCAT 0: Slave states on main device: PREOP.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11789.933336] EtherCAT 0: Scanning bus.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11790.660653] EtherCAT 0: Bus scanning completed in 728 ms.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>[11790.660658] EtherCAT 0: Using slave 0 as DC reference clock.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>I then change the processing data part of mini.c to match my hardware
(slave positions, vendor and products ids). I then delete the .o files
generated in my initial <i><span style='font-style:italic'>make modules</span></i>
after installing ethercat. I run <i><span style='font-style:italic'>make
modules</span></i> again and obtain many undefined:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>root@ethercat-test:~/Desktop/ethercat/ethercat-1.5.2/examples/mini#
make modules<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>make -C "/usr/src/linux-headers-3.5.0-23-generic"
M="/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini"
modules<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>make[1]: Entering directory `/usr/src/linux-headers-3.5.0-23-generic'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'> Building modules, stage 2.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'> MODPOST 1 modules<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_master_receive"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_master_create_domain"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_master_send"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_domain_queue"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_master_send_ext" [/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_domain_reg_pdo_entry_list"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_domain_process" [/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_domain_state"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_master_callbacks" [/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_master_state"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_slave_config_state"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_master_slave_config"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_slave_config_pdos"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_domain_external_memory"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_domain_size"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_master_activate"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_release_master"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>WARNING: "ecrt_request_master"
[/home/ethercat/Desktop/ethercat/ethercat-1.5.2/examples/mini/ec_mini.ko]
undefined!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-23-generic'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>All these undefined mean to me the module was not well built,
isn’t it?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>In spite of having problems building the module, I tried anyway <i><span
style='font-style:italic'>insmod</span></i> and get an error: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>root@ethercat-test:~/Desktop/ethercat/ethercat-1.5.2/examples/mini#
insmod ec_mini.ko<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>insmod: error inserting 'ec_mini.ko': -1 Invalid parameters<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>What could be wrong? <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>Thanks for any advice<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'>Uriel<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Calibri><span lang=EN-US style='font-size:
11.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>