<div dir="ltr"><div><div><div>Hi wuybit,<br><br></div>don't worry. /etc/sysconfig is only for etherlab. Yes, just create the directory /etc/sysconfig first, and then copy the config file into it.<br><br></div>You're not using a SUSE Linux, so 'insserv ethercat' won't work.It is a Debian Linux. You may follow my command list<br><br>$ sudo ln -s /opt/etherlab/etc/init.d/ethercat /etc/init.d/ethercat<br>$ sudo cp -r /opt/etherlab/etc/sysconfig/ /etc/ <br>$ sudo ln -s /opt/etherlab/bin/ethercat /usr/local/bin/ethercat<br>$ sudo bash -c "echo KERNEL==\"EtherCAT[0-9]*\", MODE=\"0664\" > /etc/udev/rules.d/99-EtherCAT.rules"<br><br>And don't forget to edit the config file /etc/sysconfig/ethercat to specify the correct MAC address and the driver module.<br><br>After that, you can try to start the EtherCAT master:<br>$ sudo /etc/init.d/ethercat start<br></div><div><br></div><div>And if you want the ethercat service starts automatically after the system boots:<br>$ sudo update-rc.d -f ethercat defaults 90<br></div><div><br></div><div>Regards,<br>Jun<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 October 2014 10:10, wuybit <span dir="ltr"><<a href="mailto:wuybit@126.com" target="_blank">wuybit@126.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="BORDER-LEFT-WIDTH:0px;BORDER-RIGHT-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;MARGIN:12px;LINE-HEIGHT:1.3;BORDER-TOP-WIDTH:0px" marginheight="0" marginwidth="0">
<div><font color="#000000" face="宋体" size="3">Hi Jun,</font></div>
<div>Thank you for your help</div>
<div>After do $ apt-get install linux-headers-2.6.32-5-686, it's OK.</div>
<div> </div>
<div>But when I do 'cp etc/sysconfig/ethercat /etc/sysconfig/', </div>
<div>it comes out that "cp: cannot creat creat rugular file '
/etc/sysconfig/ethercat': no such file file or directory. I also see directory
/etc/, there is no sysconfig (Debian 6.04)</div>
<div>How should I do? Should I make a folder named sysconfig, then do copy or
else?</div>
<div> </div>
<div>Also, executing 'insserv ethercat' command wasn't OK.</div>
<div> </div>
<div>I almost do not have linux foundation knowledge.</div><span class="">
<div> </div>
<div align="left"><font color="#c0c0c0" face="Verdana">2014-10-30</font></div>
<div align="left"><font face="Verdana">
<hr style="min-height:2px;WIDTH:122px" align="left" size="2">
</font></div>
<div align="left"><font color="#c0c0c0" face="Verdana"><span>wuybit</span></font></div>
<div><font face="Verdana">
<hr>
</font></div>
<div><font face="Verdana"><strong>发件人:</strong>Jun Yuan
<<a href="mailto:j.yuan@rtleaders.com" target="_blank">j.yuan@rtleaders.com</a>></font></div>
</span><div><font face="Verdana"><strong>发送时间:</strong>2014-10-30 16:39</font></div>
<div><font face="Verdana"><strong>主题:</strong>Re: Re: [etherlab-users]
./configure error</font></div><span class="">
<div><font face="Verdana"><strong>收件人:</strong>"wuybit"<<a href="mailto:wuybit@126.com" target="_blank">wuybit@126.com</a>></font></div>
<div><font face="Verdana"><strong>抄送:</strong>"<a href="mailto:etherlab-users@etherlab.org" target="_blank">etherlab-users@etherlab.org</a>"<<a href="mailto:etherlab-users@etherlab.org" target="_blank">etherlab-users@etherlab.org</a>></font></div>
<div><font face="Verdana"></font> </div>
</span><span class=""><div><font face="Verdana">
<div dir="ltr">
<div>Hi wuybit,<br><br>it seems that linux headers are missing. Try to install
the missing headers with<br><br>$ apt-get install
linux-headers-2.6.32-5-686<br><br></div>
<div>and do ./configure again.<br></div>
<div><br></div>
<div>Regards,<br></div>
<div>Jun</div></div></font></div></span></div></blockquote></div><br></div>