[Etherlab-users] "Master0 dead" and unable to check fro masters/slaves

Andreas Stewering-Bone andreas.stewering-bone at gmx.de
Mon Sep 26 08:50:03 CEST 2022


Dear Henrik,

There is something wrong on kernel module level.
The master module does not fit to your running kernel.
Please have a look at "dmesg".

You can run the master with the standard distribution kernel to get in
touch with ethercat.
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. 

I do not know the actually state of your system, so it is difficult to
decide for the next step.

To start take a Raspberry Pi 4 with raspbian, follow the package
instruction and you will get a running ethercat with the default
kernel.
For many control systems this will be a good starting point for a
project.

Matlab installations on Linux is getting more difficult on each new
 matlab release, but 
there is no need to for a matlab installation an the control system.
You can generate the code on any other system you like (Windows
included), transfer the code to the control system and compile it.
You only need to install the etherlab blockset on both systems.
Please have a look at
https://gitlab.com/etherlab.org/etherlab/-/blob/master/README
Section Power user

Best regards

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20220926/27de8f2f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: This is a digitally signed message part
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20220926/27de8f2f/attachment.sig>


More information about the Etherlab-users mailing list