<html><head></head><body style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif"><div>Dear Henrik,</div><div><br></div><div>First goal is to get a clean system setup.</div><div><br></div><div>IgH supports OpenSuse system from the official side (Packages are available under <a href="https://build.opensuse.org/project/show/science:EtherLab" style="font-size: 10pt;">https://build.opensuse.org/project/show/science:EtherLab</a><span style="font-size: 10pt;">)</span></div><div><br></div><div>I, a member of the IgH, supports Debian privatly.</div><div><br></div><div>Ubuntu is known to run, but it maybe it is more complicate than the other system.</div><div><br></div><div>I have created some Raspberry images with Etherlab preinstalled on the standard kernel</div><div><br></div><div>Have a look at</div><div><br></div><div><a href="https://www.stewering-bone.de/index.php/s/R7MME7b5Yf7B83x">https://www.stewering-bone.de/index.php/s/R7MME7b5Yf7B83x</a></div><div><br></div><div>That are images like the official raspberry images, please read the official documentation how to install it.</div><div><br></div><div><br></div><div>I have created a Debian live CD for x86 system with RT-Kernel, rt-test tools and EtherLab preinstalled. It can be used with or without installation.</div><div><br></div><div>Have a look at</div><div><br></div><div><div><a href="https://www.stewering-bone.de/index.php/s/R7MME7b5Yf7B83x" style="font-size: 13.333333px;">https://www.stewering-bone.de/index.php/s/R7MME7b5Yf7B83x</a></div></div><div><br></div><div>It is based on the debian live projekt, for further informations see</div><div><br></div><div><a href="https://debian-live-config.readthedocs.io/en/latest/">https://debian-live-config.readthedocs.io/en/latest/</a></div><div><br></div><div>To get the EtherCAT master running:</div><div><span style="font-size: 10pt;">- Get the MAC of your interface via ip a</span></div><div>- You only have to modify /etc/ethercat.conf, Add MAC and select generic driver</div><div>- Start the master via sudo systemctl start ethercat</div><div>- Check bus via sudo ethercat ma and sudo ethercat sl</div><div><br></div><div>Second step should be write and run a minimal c example to access the bus, see the ethercat master examples</div><div><br></div><div>Third step is to get matlab running, but this is a little bit more complicated.</div><div><br></div><div><br></div><div>Any ideas, fixes or comments on the created boot images are welcome.</div><div>The software to create the images is hosted under</div><div>Raspberry: <a href="https://gitlab.com/igh-ab/pi-gen" style="font-size: 10pt;">https://gitlab.com/igh-ab/pi-gen</a></div><div>Debian-Live: <a href="https://gitlab.com/igh-ab/debian-live-config" style="font-size: 10pt;">https://gitlab.com/igh-ab/debian-live-config</a></div><div><br></div><div>Best regards</div><div><br></div><div>Andreas</div><div><br></div><div>Am Dienstag, dem 27.09.2022 um 17:38 +0200 schrieb Henrik Barie:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><p>Hello Andreas,</p><p><br></p><p>when using "dmesg" I dont get any EtherCat-related messages.</p><p>Usually the last messages are something with EtherCat but this time there are none.</p><p>I dont know how to run the Master with the standard kernel.</p><p>Im using Ubuntu 22.04 with a Realtime Kernel in a Beta-Version. The header file is called linux-headers-5.15.0-1020-realtime, if that is any help.</p><p>I couldnt get Realtime Kernel Patches for Ubuntu 18.4 or 20.4 to work, like they were recommended to use in some installation guides I found, so I hoped with using this Realtime Kernel it would finally work.</p><p><br></p><p>The Main-Goal of my Project is to get Etherlab + Etherlabmaster running on a Linux PC like a Labtop or Desktop-PC and to be able to control a Beckhoff Unit with it. But if I cant get this to work, I guess I have to convince my Professor to buy a Raspberry Pi 4 :)</p><p><br></p><p>"You can generate the code on any other system you like (Windows included), transfer the code to the control system and compile it."</p><p>How can I install the etherlab-blockset in Matlab on a Windows PC/ what files do I need for this?</p><p><br></p><p>Also so thank you very much for your help so far, I know Im asking a lot of "simple" questions since Im a complete beginner at Linux.</p><p><br></p><p>Regards</p><p>Henrik</p><p><br></p><p><br></p><p id="reply-intro">Am 2022-09-26 08:50, schrieb Andreas Stewering-Bone:</p><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div id="replybody1"><div><div>Dear Henrik,</div><div> </div><div>There is something wrong on kernel module level.</div><div>The master module does not fit to your running kernel.</div><div>Please have a look at "dmesg".</div><div> </div><div>You can run the master with the standard distribution kernel to get in touch with ethercat.</div><div>But note: actually it is not possible to tun ethercat on a strict uefi safe boot enviroment with signed modules, because the ethercat master is a out of tree module. </div><div> </div><div>I do not know the actually state of your system, so it is difficult to decide for the next step.</div><div> </div><div>To start take a Raspberry Pi 4 with raspbian, follow the package instruction and you will get a running ethercat with the default kernel.</div><div>For many control systems this will be a good starting point for a project.</div><div> </div><div>Matlab installations on Linux is getting more difficult on each new matlab release, but </div><div>there is no need to for a matlab installation an the control system.</div><div>You can generate the code on any other system you like (Windows included), transfer the code to the control system and compile it.</div><div>You only need to install the etherlab blockset on both systems.</div><div>Please have a look at</div><div><a href="https://gitlab.com/etherlab.org/etherlab/-/blob/master/README" target="_blank" rel="noopener noreferrer">https://gitlab.com/etherlab.org/etherlab/-/blob/master/README</a></div><div>Section Power user</div><div> </div><div>Best regards</div><div> </div><div>Am Dienstag, dem 20.09.2022 um 13:32 +0200 schrieb Henrik Barie:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hello Andreas,</div><div> </div><div> </div><div>I installed DKMS for Ubuntu 22.04 with</div><div>"sudo apt-get update" and "sudo apt-get -y install dkms".</div><div>I can now find several dkms directorys and files.</div><div> </div><div>After I rebooted the system I tried to start ethercat-master with "sudo </div><div>systemctl start ethercat", but I got an errormessage:</div><div> </div><div>Job for ethercat.service failed because the control process exited with </div><div>error code.</div><div>See "systemctl status ethercat.service" and "journalctl -xeu </div><div>ethercat.service" for details.</div><div> </div><div>"journalctl -xeu ethercat.service" gave out this:</div><div> </div><div>Sep 20 12:34:15 ec-Lenovo-V15-G2-ITL ethercatctl[5838]: modprobe: ERROR: </div><div>could not insert 'ec_master': Unknown symbol in mod></div><div>Sep 20 12:34:15 ec-Lenovo-V15-G2-ITL systemd[1]: ethercat.service: Main </div><div>process exited, code=exited, status=1/FAILURE</div><div>░░ Subject: Unit process exited</div><div>░░ Defined-By: systemd</div><div>░░ Support: <a href="http://www.ubuntu.com/support" target="_blank" rel="noopener noreferrer">http://www.ubuntu.com/support</a></div><div>░░</div><div>░░ An ExecStart= process belonging to unit ethercat.service has exited.</div><div>░░</div><div>░░ The process' exit code is 'exited' and its exit status is 1.</div><div>Sep 20 12:34:15 ec-Lenovo-V15-G2-ITL systemd[1]: ethercat.service: </div><div>Failed with result 'exit-code'.</div><div>░░ Subject: Unit failed</div><div>░░ Defined-By: systemd</div><div>░░ Support: <a href="http://www.ubuntu.com/support" target="_blank" rel="noopener noreferrer">http://www.ubuntu.com/support</a></div><div>░░</div><div>░░ The unit ethercat.service has entered the 'failed' state with result </div><div>'exit-code'.</div><div>Sep 20 12:34:15 ec-Lenovo-V15-G2-ITL systemd[1]: Failed to start </div><div>EtherCAT Master Kernel Modules.</div><div>░░ Subject: A start job for unit ethercat.service has failed</div><div>░░ Defined-By: systemd</div><div>░░ Support: <a href="http://www.ubuntu.com/support" target="_blank" rel="noopener noreferrer">http://www.ubuntu.com/support</a></div><div>░░</div><div>░░ A start job for unit ethercat.service has finished with a failure.</div><div>░░</div><div>░░ The job identifier is 2704 and the job result is failed.</div><div> </div><div> </div><div>and status showed this:</div><div> </div><div>× ethercat.service - EtherCAT Master Kernel Modules</div><div> Loaded: loaded (/lib/systemd/system/ethercat.service; disabled; </div><div>vendor preset: enabled)</div><div> Active: failed (Result: exit-code) since Tue 2022-09-20 12:29:47 </div><div>CEST; 12s ago</div><div> Process: 4970 ExecStart=/usr/local/share/etherlab/sbin/ethercatctl </div><div>start (code=exited, status=1/FAILURE)</div><div> Main PID: 4970 (code=exited, status=1/FAILURE)</div><div> CPU: 4ms</div><div> </div><div>Sep 20 12:29:47 ec-Lenovo-V15-G2-ITL systemd[1]: Starting EtherCAT </div><div>Master Kernel Modules...</div><div>Sep 20 12:29:47 ec-Lenovo-V15-G2-ITL ethercatctl[4977]: modprobe: ERROR: </div><div>could not insert 'ec_master': Unknown symbol in module, or unknown></div><div>Sep 20 12:29:47 ec-Lenovo-V15-G2-ITL systemd[1]: ethercat.service: Main </div><div>process exited, code=exited, status=1/FAILURE</div><div>Sep 20 12:29:47 ec-Lenovo-V15-G2-ITL systemd[1]: ethercat.service: </div><div>Failed with result 'exit-code'.</div><div>Sep 20 12:29:47 ec-Lenovo-V15-G2-ITL systemd[1]: Failed to start </div><div>EtherCAT Master Kernel Modules.</div><div>~</div><div> </div><div> </div><div>I checked if the ethercat.conf file in /etc is not modified but it is, </div><div>and all other ethercat -files that could be modifed are modified too.</div><div>I dont know why it wont start anymore now.</div><div> </div><div>I deleted the old files EtherCAT and PDServ at /home/user, but that was </div><div>after the error occurred.</div><div> </div><div>"please do not use the local path, they are the rest of your manual </div><div>installation"</div><div> </div><div>How can I be sure im not using the /local- Path?</div><div> </div><div> </div><div>I didnt know how to generate the code for my Simulink Model so I had to </div><div>search it. I found out that my Matlab 2014b with Student Licence is </div><div>missing the "Code Generation"-Tab in the Configuration Parameters of the </div><div>model and that if you are using a Student version liense, MATLAB Coder </div><div>and Simulink Coder can only be running MATLAB R2016a or later.</div><div> </div><div>Is there any other way to generate the code for the model besides </div><div>installing a later Matlab-Version?</div><div> </div><div> </div><div>Regards</div><div>Henrik</div><div> </div><div> </div><div> </div><div> </div></blockquote><div> </div><div> </div></div></div><div><br></div><div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div></blockquote><p><br></p></blockquote><div><br></div><div><span></span></div><div><br></div><div><span></span></div></body></html>