Ethercat installation from repositories - how to step by step

More
3 years 6 months ago #270447 by CORBETT
Rod,

I don't have time tonight to check things out, but when trying to install Ethercat I was getting the NO PUBKEY error, so think the KEY needs updating.

This had to have just happened as I did a quick build of Bullseye with a 2.9 RIP and had no problem a week ago for a different controller. Plus did 2 builds on Buster last month. I am completely overloaded with work, so will not have any time to check things out on Andreas openSUSE page but will check back in case you get to it first. I was going to double check with another Buster build, but don't have time. Just wanted to put it out there in case others are having a problem with the error.

Thanks,
Robert

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

More
3 years 5 months ago #270450 by rodw
I had issues too. It seems  some of our Debian repos have been disabled by one of their users. But if you click through, the debs seem to be available for download. You might need to  register as a user ( I am) 
build.opensuse.org/repositories/home:bon...ce:EtherLab/ethercat
The following user(s) said Thank You: CORBETT

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

More
3 years 5 months ago #270838 by CORBETT
Rod,

Ok I decided to go and compile the code from the "official" IgH EtherCAT site that Florian, Richard, and Andreas maintain.  I just finished a bit ago, but just wanted to say it was still there and working.  I haven't done it this way since way back with Wheezy.  After EC-Debianize I never wasted time on compiling as it was just too easy... "sudo update-ethercat-config".

I will check out the DEB in a few days as I just wanted to ease my mind that it could be done still.  Plus, this is the official code just like Andreas had on the repo.  I was getting nervous there for a second as I have too much time and money in our equipment.  Glad to see the "ethercat-master". 

Thanks,
Robert

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

More
3 years 5 months ago #270839 by rodw
Robert,  I am not across what you did

did you just
​
​
Code:
git clone https://gitlab.com/etherlab.org/ethercat.git

Odd they show that on their site but no build instructions so do you just  follow this?
gitlab.com/etherlab.org/ethercat/-/blob/master/INSTALL.md

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

More
3 years 5 months ago #271023 by 0x2102
@rodw / all: did it every work for you to upgrade the kernel on a running EtherCAT system?

I wanted to give Kernel 6.3 a try ...Kernel works, but dkms fails to build the EtherCAT driver for 6.3

cnc@lcnc-dev:/var/lib/dkms/ethercat-dkms/1.5.2/build$ cat make.log
DKMS make.log for ethercat-dkms-1.5.2 for kernel 6.3.1-rt11-linuxcnc (x86_64)
Tue 09 May 2023 02:24:50 PM CEST
make: Entering directory '/usr/src/linux-headers-6.3.1-rt11-linuxcnc'
  CC [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/devices/generic.o
  CC [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/master/cdev.o
  CC [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/master/coe_emerg_ring.o
  CC [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/master/datagram.o
  CC [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/master/datagram_pair.o
  CC [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/examples/mini/mini.o
  CC [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/master/device.o
  CC [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/master/domain.o
  CC [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/master/flag.o
  LD [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/examples/mini/ec_mini.o
  CC [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/master/fmmu_config.o
/var/lib/dkms/ethercat-dkms/1.5.2/build/master/cdev.c: In function ‘eccdev_mmap’:
/var/lib/dkms/ethercat-dkms/1.5.2/build/master/cdev.c:246:19: error: assignment of read-only member ‘vm_flags’
  246 |     vma->vm_flags |= VM_DONTDUMP; /* Pages will not be swapped out */
      |                   ^~
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/ethercat-dkms/1.5.2/build/master/cdev.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  LD [M]  /var/lib/dkms/ethercat-dkms/1.5.2/build/devices/ec_generic.o
make[1]: *** [scripts/Makefile.build:494: /var/lib/dkms/ethercat-dkms/1.5.2/build/master] Error 2
make: *** [Makefile:2025: /var/lib/dkms/ethercat-dkms/1.5.2/build] Error 2
make: Leaving directory '/usr/src/linux-headers-6.3.1-rt11-linuxcnc'

cnc@lcnc-dev:/var/lib/dkms/ethercat-dkms/1.5.2/build$ uname -a
Linux lcnc-dev 6.1.0-0.deb11.5-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.12-1~bpo11+1 (2023-03-05) x86_64 GNU/Linux

 
The following user(s) said Thank You: xwhatsit

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

More
3 years 5 months ago #271025 by 0x2102
Seems like there is already a merge request pending to address this:

I have modified the source code cdev.c and dkms was able to build the driver.

gitlab.com/igh-vh/ethercat/-/commit/27db...69e4f3a8fc469326f09d
The following user(s) said Thank You: CORBETT

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

Time to create page: 0.152 seconds
Powered by Kunena Forum