[Etherlab-users] Problem with running Etherlab and Ethercat Master
Andreas Stewering-Bone
andreas.stewering-bone at gmx.de
Mon Sep 19 17:42:54 CEST 2022
Dear Henrik,
Am Montag, dem 19.09.2022 um 17:22 +0200 schrieb Henrik Barie:
> Hello Andreas,
>
> thank you very much for the installation manual,
>
> in /etc/sysconfig/ I only had an "ethercat" file but no
> "ethercat.conf"
> I deleted "ethercat"
>
> Ive had a problem with
> KEYRING=/usr/share/keyrings/ethercat.gpg curl -fsSL
> https://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/xUbuntu_22.04/Release.key
>
> > gpg --dearmor | sudo tee "$KEYRING" >/dev/null
>
This is one cmd in one line and there was a failure from my side
"""
KEYRING=/usr/share/keyrings/ethercat.gpg && curl -fsSL
https://download.opensuse.org/repositories/home:/bone11111:/branches:/s
cience:/EtherLab/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee
"$KEYRING" >/dev/null
"""
> it said
> tee: '': File or Directory not found
>
> but it seems to be solved by typing sudo tee"$KEYRING"
> (without any spaces between tee and "$KEYRING".
>
> It executed without any messages.
>
> after step 3. "sudo apt-get update" I got an error message:
>
> .....
> W: GPG-Fehler:
> http://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/xUbuntu_22.04
>
> ./ InRelease: Die folgenden Signaturen konnten nicht überprüft
> werden,
> weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY
> A08216C4FF0D8EF7
This is ok, because the system can not verify the key.
> N: Das Laden der konfigurierten Datei »main/binary-i386/Packages«
> wird
> übersprungen, da das Depot
> »https://esm.ubuntu.com/realtime/ubuntu jammy
> InRelease« die Architektur »i386« nicht unterstützt.
>
> I searched for a solution to get the public key but the code/command
> I
> found was deprecated and didnt work.
>
> I continued with step 4.
> sudo apt-get install linux-headers-5.15.0-1020-realtime
> which said:
> ....
> 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht
> aktualisiert.
>
> but shouldnt it have changed something?
>
> in step 5. the testmanager couldnt be found
Again failure from myside
sudo apt-get install ethercat-master ethercat-dkms libethercat
libethercat-dev libpdserv3 libpdserv3-dev librtipc librtipc-dev
etherlab2 testmanager-ng
>
>
> I wasnt sure if the "ethercat"-file from
> /usr/local/share/etherlab/etc/sysconfig/ethercat has to be copied to
> /etc/sysconfig or if it should be an "etherlab.conf"-file that must
> be
> copied?
You can copy it to /etc/ethercat.conf
>
> also after the intallation there was no new
> /lib/modules/KERNELVERSION/ethercat - file, which I deleted before.
That is correct, because the kernel modules are managed by dkms
have a look at
/lib/modules/KERNELVERSION/updates/dkms/
>
> message after starting and checking the master:
>
> Master0
> Phase: Idle
> Active: no
> Slaves: 4
> Ethernet devices:
> Main: 88:a4:c2:bf:73:10 (attached)
> Link: UP
> Tx frames: 34954
> Tx bytes: 2156184
> Rx frames: 34953
> Rx bytes: 2156124
> Tx errors: 0
> Tx frame rate [1/s]: 488 2403 547
> Tx rate [KByte/s]: 28.6 145.3 32.9
> Rx frame rate [1/s]: 488 2403 547
> Rx rate [KByte/s]: 28.6 145.3 32.9
> Common:
> Tx frames: 620372
> Tx bytes: 37340208
> Rx frames: 620344
> Rx bytes: 37338528
> Lost frames: 28
> Tx frame rate [1/s]: 488 2403 547
> Tx rate [KByte/s]: 28.6 145.3 33.0
> Rx frame rate [1/s]: 488 2403 547
> Rx rate [KByte/s]: 28.6 145.3 33.0
> Loss rate [1/s]: 0 0 0
> Frame loss [%]: 0.0 0.0 0.0
> Distributed clocks:
> Reference clock: Slave 0
> DC reference time: 0
> Application time: 0
> 2000-01-01 00:00:00.000000000
>
> status:
>
> ● ethercat.service - EtherCAT Master Kernel Modules
> Loaded: loaded (/lib/systemd/system/ethercat.service; disabled;
> vendor preset: enabled)
> Active: active (exited) since Mon 2022-09-19 12:48:01 CEST; 4h
> 3min
> ago
> Process: 3296
> ExecStart=/usr/local/share/etherlab/sbin/ethercatctl
> start (code=exited, stat>
> Main PID: 3296 (code=exited, status=0/SUCCESS)
> CPU: 13ms
>
> Sep 19 12:48:01 ec-Lenovo-V15-G2-ITL systemd[1]: Starting EtherCAT
> Master Kernel Modules...
> Sep 19 12:48:01 ec-Lenovo-V15-G2-ITL systemd[1]: Finished EtherCAT
> Master Kernel Modules.
> lines 1-9/9 (END)
>
> Sadly it still doesnt work properly, I guess the installation wasnt
> complete. Do you know how I can fix the errors that occurred?
It is not so bad, the basic work is done:
-Master is running,
-Network device is attached
-You have basic communication over the fieldbus.
- You get output for sudo ethercat ma
- You get output for sudo ethercat sl
- System is ready to start an application.
- Next step is to compile your etherlab model against the correct
system headers.
- Please check /usr/local for old installation files of etherlab and
pdserv.
Best regards
Andreas
>
>
> Regards
> Henrik
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20220919/fa88a802/attachment-0001.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/20220919/fa88a802/attachment-0001.sig>
More information about the Etherlab-users
mailing list