Ethercat installation from repositories - how to step by step

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?
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...
More
2 years 3 months ago #305065 by rodw
have you installed linux-headers? for your RT kernel?
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.

 
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.
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.
The following user(s) said Thank You: rodw
Time to create page: 2.156 seconds
Powered by Kunena Forum