Am 2022-09-11 19:18, schrieb Henrik Barie:
Dear Etherlab-Users and -Developers,
I tried installing and running Etherlab + Ethercat Master on
my Labtop using the latest Ubuntu version 22.04.1 LTS (Jammy
Jellyfish, because it offers a Realtime-Kernel Beta which is easy to
install. Before that, I tried it with Realtime-Kernel patches on
OpenSUSE, Ubuntu 18.04 and 20.04 but I couldnt get the
Realtime-Kernels to work, so I decided to use this Realtime-Kernel
Beta for 22.04 LTS.
I installed Etherlab + Ethercat Master using this Guide:
https://github.com/SchapplM/etherlab-examples/blob/master/SETUP_ETHERCAT.MD
I set up Matlab 2014b using this guide:
https://symbitron.eu/wiki/index.php?title=EtherLab_Installation#Installing_the_IgH_EtherCAT_master_1.5.2
In this guide it said: this version of etherlab contains a c-file
(ec_slave3.c) that is not compatible with the newer MATALAB versions
That is why I used 2014b and not a newer Version. The "setup_etherlab"
command worked fine and I had no errors which I had with newer
Matlab-Versions.
The Problem is that after installing, I couldnt start Ethercat:
When I first typed in "sudo /etc/init.d/ethercat start", it said
the ec_master module wasnt found. When I used the "depmod"-command
afer this and tried to start again, it said:
Starting EtherCAT master 1.6.0-rc1 modprobe: ERROR: could not insert
'ec_master': Invalid argument
failed
After this I used "sudo dmesg" and saw these Messages:
[ 87.523095] ec_master: loading out-of-tree module taints kernel.
[ 87.523232] ec_master: module verification failed: signature and/or
required key missing - tainting kernel
[ 87.524968] EtherCAT: Master driver 1.6.0-rc1 unknown
[ 87.525000] EtherCAT ERROR: MAC address may not be empty.
......
6007.467568] EtherCAT: Master driver 1.6.0-rc1 unknown
[ 6007.467607] EtherCAT ERROR: MAC address may not be empty.
......
[29706.025402] EtherCAT: Master driver 1.6.0-rc1 unknown
[29706.025429] EtherCAT ERROR: MAC address may not be empty.
(3 times this message)
and for these errors I couldnt find a solution so I wanted to ask you
if you could maybe help me with this.
I have written my Ethernet MAC-Adress as MASTER0_DEVICE as well as the
"generic" Driver as DEVICE_MODULES in the sysconfig-File, which is
also the only one that is enabled.
My Kernel is 5.15.0-1020-realtime
#########################################################################
A second Error which occurred is Matlab-related, but maybe you know
the solution to this:
When typing:
etherlab_lib
I get the following messages and nothing happens afterwards:
MATLAB:dispatcher:loadLibrary Can't reload
'/usr/local/MATLAB/R2014b/bin/glnxa64/libmwsl_graphical_classes.so'.
Caught MathWorks::System::FatalException
This also happens when trying to start Simulink
I really hope you can help me with these problems,
because I am unable to continue my Project without this software.
Greetings
Henrik
Hello,
I tried the solutions you offered and they worked.
I added the MAC-Address as Master0-Device and "generic" as
Device-Moudules
to the etherlab.conf file, typed in modprobe ec_master and afterwards
main_devices=<MAC-Address>.
It worked and the problem with the start-command was at the init script
like you suspected, which sourced
/usr/local/share/etherlab/etc/sysconfig/ethercat
afer adding the MAC-Adresss and "generic" in this ethercat-file too,
it worked fine with the start command.
Thank you very much for your help!
I also could solve the Matlab-issue and now everything seems to work as
it should.
Greetings
Henrik
--
Etherlab-users mailing list
Etherlab-users@etherlab.org
https://lists.etherlab.org/mailman/listinfo/etherlab-users