<html><head></head><body><div>Dear Henrik,</div><div><br></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><br></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><br></div><div>I do not know the actually state of your system, so it is difficult to decide for the next step.</div><div><br></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><br></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">https://gitlab.com/etherlab.org/etherlab/-/blob/master/README</a></div><div>Section Power user</div><div><br></div><div>Best regards</div><div><br></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,<br></div><div><br></div><div><br></div><div>I installed DKMS for Ubuntu 22.04 with<br></div><div>"sudo apt-get update" and "sudo apt-get -y install dkms".<br></div><div>I can now find several dkms directorys and files.<br></div><div><br></div><div>After I rebooted the system I tried to start ethercat-master with "sudo <br></div><div>systemctl start ethercat", but I got an errormessage:<br></div><div><br></div><div>Job for ethercat.service failed because the control process exited with <br></div><div>error code.<br></div><div>See "systemctl status ethercat.service" and "journalctl -xeu <br></div><div>ethercat.service" for details.<br></div><div><br></div><div>"journalctl -xeu ethercat.service" gave out this:<br></div><div><br></div><div>Sep 20 12:34:15 ec-Lenovo-V15-G2-ITL ethercatctl[5838]: modprobe: ERROR: <br></div><div>could not insert 'ec_master': Unknown symbol in mod><br></div><div>Sep 20 12:34:15 ec-Lenovo-V15-G2-ITL systemd[1]: ethercat.service: Main <br></div><div>process exited, code=exited, status=1/FAILURE<br></div><div>░░ Subject: Unit process exited<br></div><div>░░ Defined-By: systemd<br></div><div>░░ Support: <a href="http://www.ubuntu.com/support">http://www.ubuntu.com/support</a><br></div><div>░░<br></div><div>░░ An ExecStart= process belonging to unit ethercat.service has exited.<br></div><div>░░<br></div><div>░░ The process' exit code is 'exited' and its exit status is 1.<br></div><div>Sep 20 12:34:15 ec-Lenovo-V15-G2-ITL systemd[1]: ethercat.service: <br></div><div>Failed with result 'exit-code'.<br></div><div>░░ Subject: Unit failed<br></div><div>░░ Defined-By: systemd<br></div><div>░░ Support: <a href="http://www.ubuntu.com/support">http://www.ubuntu.com/support</a><br></div><div>░░<br></div><div>░░ The unit ethercat.service has entered the 'failed' state with result <br></div><div>'exit-code'.<br></div><div>Sep 20 12:34:15 ec-Lenovo-V15-G2-ITL systemd[1]: Failed to start <br></div><div>EtherCAT Master Kernel Modules.<br></div><div>░░ Subject: A start job for unit ethercat.service has failed<br></div><div>░░ Defined-By: systemd<br></div><div>░░ Support: <a href="http://www.ubuntu.com/support">http://www.ubuntu.com/support</a><br></div><div>░░<br></div><div>░░ A start job for unit ethercat.service has finished with a failure.<br></div><div>░░<br></div><div>░░ The job identifier is 2704 and the job result is failed.<br></div><div><br></div><div><br></div><div>and status showed this:<br></div><div><br></div><div>× ethercat.service - EtherCAT Master Kernel Modules<br></div><div> Loaded: loaded (/lib/systemd/system/ethercat.service; disabled; <br></div><div>vendor preset: enabled)<br></div><div> Active: failed (Result: exit-code) since Tue 2022-09-20 12:29:47 <br></div><div>CEST; 12s ago<br></div><div> Process: 4970 ExecStart=/usr/local/share/etherlab/sbin/ethercatctl <br></div><div>start (code=exited, status=1/FAILURE)<br></div><div> Main PID: 4970 (code=exited, status=1/FAILURE)<br></div><div> CPU: 4ms<br></div><div><br></div><div>Sep 20 12:29:47 ec-Lenovo-V15-G2-ITL systemd[1]: Starting EtherCAT <br></div><div>Master Kernel Modules...<br></div><div>Sep 20 12:29:47 ec-Lenovo-V15-G2-ITL ethercatctl[4977]: modprobe: ERROR: <br></div><div>could not insert 'ec_master': Unknown symbol in module, or unknown><br></div><div>Sep 20 12:29:47 ec-Lenovo-V15-G2-ITL systemd[1]: ethercat.service: Main <br></div><div>process exited, code=exited, status=1/FAILURE<br></div><div>Sep 20 12:29:47 ec-Lenovo-V15-G2-ITL systemd[1]: ethercat.service: <br></div><div>Failed with result 'exit-code'.<br></div><div>Sep 20 12:29:47 ec-Lenovo-V15-G2-ITL systemd[1]: Failed to start <br></div><div>EtherCAT Master Kernel Modules.<br></div><div>~<br></div><div><br></div><div><br></div><div>I checked if the ethercat.conf file in /etc is not modified but it is, <br></div><div>and all other ethercat -files that could be modifed are modified too.<br></div><div>I dont know why it wont start anymore now.<br></div><div><br></div><div>I deleted the old files EtherCAT and PDServ at /home/user, but that was <br></div><div>after the error occurred.<br></div><div><br></div><div>"please do not use the local path, they are the rest of your manual <br></div><div>installation"<br></div><div><br></div><div>How can I be sure im not using the /local- Path?<br></div><div><br></div><div><br></div><div>I didnt know how to generate the code for my Simulink Model so I had to <br></div><div>search it. I found out that my Matlab 2014b with Student Licence is <br></div><div>missing the "Code Generation"-Tab in the Configuration Parameters of the <br></div><div>model and that if you are using a Student version liense, MATLAB Coder <br></div><div>and Simulink Coder can only be running MATLAB R2016a or later.<br></div><div><br></div><div>Is there any other way to generate the code for the model besides <br></div><div>installing a later Matlab-Version?<br></div><div><br></div><div><br></div><div>Regards<br></div><div>Henrik<br></div><div><br></div><div><br></div><div><br></div><div><br></div></blockquote><div><br></div><div><span></span></div></body></html>