Installing ethercat repositories

More
1 year 9 months ago - 1 year 9 months ago #318740 by hmnijp
If you are still having problems installing, I suggest you first uninstall all possible previously installed keys and repositories:
Code:
sudo rm -f /etc/apt/sources.list.d/ighvh.sources /etc/apt/sources.list.d/linuxcnc-ethercat.list /etc/apt/sources.list.d/science_EtherLab.list /etc/apt/trusted.gpg.d/linuxcnc-ethercat.gpg /etc/apt/trusted.gpg.d/science_EtherLab.gpg*


and then run the script from the first post.
Code:
wget -O ecat.sh https://forum.linuxcnc.org/media/kunena/attachments/20660/ecat.sh.txt chmod +x ./ecat.sh sudo ./ecat.sh

Or you can run the updated script, which will do this immediately. I've attached it.
Code:
wget -O ethercat-repos-update.sh https://forum.linuxcnc.org/media/kunena/attachments/34171/ethercat-repos-update.sh.txt chmod +x ./ethercat-repos-update.sh sudo ./ethercat-repos-update.sh
Last edit: 1 year 9 months ago by hmnijp.
The following user(s) said Thank You: NickH

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago - 9 months 3 weeks ago #341134 by NickH
Also having problems installing and building Ethercat Master. I have tried the first script at the top ofthe thread(editing Deb12 for Deb13) and the new updated script and still get SSL errors, listed below.
Linux headers are installed and latest for rt kernel.

SSL errors:
root@chewy:/home/nick/ethercat-master# make modules_install install
make -C "/usr/src/linux-headers-6.12.57+deb13-rt-amd64" M="/home/nick/ethercat-master" INSTALL_MOD_DIR="ethercat" modules_install
make[1]: Entering directory '/usr/src/linux-headers-6.12.57+deb13-rt-amd64'
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko.xz
DEPMOD /lib/modules/6.12.57+deb13-rt-amd64
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-6.12.57+deb13-rt-amd64'
Making install in include
make[1]: Entering directory '/home/nick/ethercat-master/include'
make[2]: Entering directory '/home/nick/ethercat-master/include'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 ecrt.h ectty.h '/usr/local/include'
make[2]: Leaving directory '/home/nick/ethercat-master/include'
make[1]: Leaving directory '/home/nick/ethercat-master/include'
Making install in script
make[1]: Entering directory '/home/nick/ethercat-master/script'
make[2]: Entering directory '/home/nick/ethercat-master/script'
/usr/bin/mkdir -p '/etc'
/usr/bin/install -c -m 644 ethercat.conf '/etc'
/usr/bin/mkdir -p '/usr/local/sbin'
/usr/bin/install -c ethercatctl '/usr/local/sbin'
/usr/bin/mkdir -p '/usr/local/share/bash-completion/completions'
/usr/bin/install -c -m 644 ethercat.bash_completion '/usr/local/share/bash-completion/completions'
/usr/bin/mkdir -p '/etc/init.d'
/usr/bin/install -c init.d/ethercat '/etc/init.d'
/usr/bin/mkdir -p '/etc/sysconfig'
/usr/bin/install -c -m 644 ethercat '/etc/sysconfig'
make install-data-hook

Can anyone help me put this right please?

##Fresh start, reinstalled## 
Last edit: 9 months 3 weeks ago by NickH.

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago - 9 months 3 weeks ago #341139 by NickH
Tntmold: I think you have to build LinuxCNC from source for an Ethercat install, then build Ethercat master. It will not work from the downloaded ISO file.
Build from a Debian13 Netinstall(or full) image.
Last edit: 9 months 3 weeks ago by NickH. Reason: Sp

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #341140 by tommylight
The following user(s) said Thank You: NickH

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #341142 by NickH
I stand corrected, and somewhat outdated!
The following user(s) said Thank You: tommylight, rodw

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #341146 by rodw
There are still some reasons why its necessary to build the Ethercat master from source which is pretty easy anyway. In that case, go to the etherlab site, get their source and read their instructions in the PDF instructions
etherlab.org/en_GB/ethercat

@NIckH, the Etherlab repository also hosts the latest Ethercat hal driver thanks to Scott Laird. So it is possible to install everything without building anything!

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum