<p dir="ltr">Hello,</p>
<p dir="ltr">1. due to the fact that the ethernet on raspberry pi is realized over usb, it is not the ideal platform for ethercat applications, ... but it works.</p>
<p dir="ltr">2. If you want to use raspberry pi for ethercat, the raspbian wheezy distribution is also not the ideal OS, because it comes with a lot of overhead.</p>
<p dir="ltr">I also tried to compile ethercat master for an existing linux but never got it to run.</p>
<p dir="ltr">In the end i decided to create a new small linux for the pi.</p>
<p dir="ltr">Therefore i used the buildroot system, it is quite easy to use,  in principle you have to download buildroot, the linux kernel sources, the linaro toolchain and ethercat sources, then inside buildroot make raspberrypi_defconfig, configure buildroot for the toolchain and raspberry kernel sources (you have to tell buildroot where to find these things) then make.</p>
<p dir="ltr">Takes a little time, after buildroot finished, you get your own linux without all the overhead. Then you can compile the ethercat master for these configured kernel sources and you're shure that kernel and ethercat master are exact the same version.</p>
<p dir="ltr">Hope this is helpful, if you need further help, don't hesitate to ask me, maybe via personal mail, because this is a linux thing not especially ethercat.</p>
<p dir="ltr">Regards</p>
<p dir="ltr">Karsten</p>
<div class="gmail_quote">Am 17.11.2014 18:27 schrieb "Thomas Reischl" <<a href="mailto:reischl.tomml@web.de">reischl.tomml@web.de</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>Hi all,</div>
<div> </div>
<div>I am trying to install the Ethercat-Master on a Raspberry Pi.</div>
<div> </div>
<div>I downloaded the tarball from the Etherlab site with ‘wget ....’ and did 
everything according to the intsructions.</div>
<div>For ‘./configure --disable-e8139too’ it was necessary to download 
linux-headers for my kernel version 3.12.28+.</div>
<div>After this everything was working (make, make modules, make install, make 
modules_install, cp...., ln...., insserv)</div>
<div> </div>
<div>However, if I try to start the service  (/etc/init.d/ethercat) with 
‘sudo ./ethercat start’ it says:</div>
<div> </div>
<div>        Starting EtherCAT master 1.5.2 
ERROR: could not insert ‘ec_master’: Exec format error</div>
<div>            
failed</div>
<div> </div>
<div>Vermagic of ‘modinfo iptable_nat’ and of ‘modinfo ec_master’ are exactly 
the same.</div>
<div> </div>
<div>I don’t know what I’m doing wrong, because I’m not very experienced 
regarding kernel modules.</div>
<div>I am grateful about all kind of help.</div>
<div> </div>
<div>Best Regards,</div>
<div>Thomas</div>
<div> </div>
<div> </div></div></div></div>
<br>_______________________________________________<br>
etherlab-users mailing list<br>
<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<a href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" target="_blank">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
<br></blockquote></div>