Ethercat installation from repositories - how to step by step

More
2 years 3 months ago #304239 by RiJa

Please Log in to join the conversation.

More
2 years 3 months ago #304243 by rodw

I'm using the same file as you posted earlier, the path on line 14 is:
loadusr -W ./lcec_conf ethercat-conf.xml
Yes, I know. I looked at my git repo before replying. But the difference is it worked for me and is reporting a file not found error for you. Read the error message you posted. I have also experienced similar errors in the past. You can either continue to complain or undertake some troubleshooting at your end to resolve the error like I did. I can't help further.
 

Please Log in to join the conversation.

More
2 years 3 months ago #304329 by zjjxxsh
Err:1 download.opensuse.org/repositories/science:/EtherLab/Debian_12 ./ ethercat-master 1.6.0.gcafd367-1+1.2
404 Not Found [IP: 95.216.238.135 80]
Err:2 mirror.aardsoft.fi/opensuse/repositories...A/EtherLab/Debian_12 ./ linuxcnc-ethercat 1.39.0.g4299f7a-0
404 Not Found [IP: 95.216.238.135 80]
E: Failed to fetch mirror.aardsoft.fi/opensuse/repositories...67-1%2B1.2_arm64.deb 404 Not Found [IP: 95.216.238.135 80]
E: Failed to fetch mirror.aardsoft.fi/opensuse/repositories...g4299f7a-0_arm64.deb 404 Not Found [IP: 95.216.238.135 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

This is what I got, by enter "sudo apt install linuxcnc-ethercat"

Please Log in to join the conversation.

More
2 years 3 months ago #305000 by NickH
Hello Rodw, I think this is what I am coming-up against. When running 'sudo halcmd loadusr -W Icec_conf ethercat-conf.xml ' I get 'commandlin>:0: execv(Icec_conf): no such file or directory' then 'waitpid failed Icec_conf', and then 'Icec_conf exited'..
I'm on the last parts of setting up Ethercat and get stumped by this.
Also, thank you for pointing me in the right direction on the RTAI thread wrt ethercat.

Please Log in to join the conversation.

More
2 years 3 months ago #305037 by rodw
There is something wrong when it can't find lcec_conf. Maybe later versions place it in a different folder
Have you installed linuxcnc-ethercat?

Please Log in to join the conversation.

More
2 years 3 months ago #305053 by endian
hello

have anybody idea what is going on here?
Code:
user@debian:~$ sudo apt install ethercat-master libethercat-dev  linuxcnc-ethercat Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed:   ethercat-dkms The following NEW packages will be installed:   ethercat-dkms ethercat-master libethercat-dev linuxcnc-ethercat 0 upgraded, 4 newly installed, 0 to remove and 3 not upgraded. Need to get 0 B/2,422 kB of archives. After this operation, 73.3 MB of additional disk space will be used. Do you want to continue? [Y/n] y Selecting previously unselected package ethercat-dkms. (Reading database ... 185171 files and directories currently installed.) Preparing to unpack .../ethercat-dkms_1.6.0.gcafd367-1+1.2_all.deb ... Unpacking ethercat-dkms (1.6.0.gcafd367-1+1.2) ... Selecting previously unselected package ethercat-master. Preparing to unpack .../ethercat-master_1.6.0.gcafd367-1+1.2_amd64.deb ... Unpacking ethercat-master (1.6.0.gcafd367-1+1.2) ... Selecting previously unselected package libethercat-dev. Preparing to unpack .../libethercat-dev_1.6.0.gcafd367-1+1.2_amd64.deb ... Unpacking libethercat-dev (1.6.0.gcafd367-1+1.2) ... Selecting previously unselected package linuxcnc-ethercat. Preparing to unpack .../linuxcnc-ethercat_1.39.0.g4299f7a-0_amd64.deb ... Unpacking linuxcnc-ethercat (1.39.0.g4299f7a-0) ... Setting up libethercat-dev (1.6.0.gcafd367-1+1.2) ... Setting up ethercat-dkms (1.6.0.gcafd367-1+1.2) ... Loading new ethercat-dkms-1.6.0 DKMS files... Building for 6.1.0-12-rt-amd64 6.1.0-17-rt-amd64 Building initial module for 6.1.0-12-rt-amd64 Error! Bad return status for module build on kernel: 6.1.0-12-rt-amd64 (x86_64) Consult /var/lib/dkms/ethercat-dkms/1.6.0/build/make.log for more information. dpkg: error processing package ethercat-dkms (--configure):  installed ethercat-dkms package post-installation script subprocess returned error exit status 10 dpkg: dependency problems prevent configuration of ethercat-master:  ethercat-master depends on ethercat-dkms; however:   Package ethercat-dkms is not configured yet. dpkg: error processing package ethercat-master (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linuxcnc-ethercat:  linuxcnc-ethercat depends on etherlabmaster | ethercat-master; however:   Package etherlabmaster is not installed.   Package ethercat-master is not configured yet. dpkg: error processing package linuxcnc-ethercat (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  ethercat-dkms  ethercat-master  linuxcnc-ethercat E: Sub-process /usr/bin/dpkg returned an error code (1)

I did some core frequency setup to hard value and ethercatMaster stopped working...

Please Log in to join the conversation.

More
2 years 3 months ago #305065 by rodw
have you installed linux-headers? for your RT kernel?

Please Log in to join the conversation.

More
2 years 3 months ago #305066 by endian
yes they are here...
Code:
user@debian:~$ sudo apt-get install linux-headers-$(uname -r) Reading package lists... Done Building dependency tree... Done Reading state information... Done linux-headers-6.1.0-12-rt-amd64 is already the newest version (6.1.52-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

 

Please Log in to join the conversation.

More
2 years 3 months ago #305077 by NickH
From memory, as I'm not near that pc presently. I had no end of problems trying to install due to missing Realtek network drivers, but cured that by finding some in the firmware archive. Placed those in the firmware directory of the install boot disk. The install went smoothly as per your instructions here, up until this point. I did an update/upgrade and am on the very latest version of Lcnc. Version ending .3 I think. Yes I did lcnc-ethercat and went very smoothly up to here.

Please Log in to join the conversation.

More
2 years 3 months ago #305078 by NickH
Looking at the above post, I don't recall installing headers separately. Maybe that is it.

Please Log in to join the conversation.

Time to create page: 0.283 seconds
Powered by Kunena Forum