Ethercat installation from repositories - how to step by step

  • rodw
  • rodw's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
29 Nov 2024 10:47 #315526 by rodw

Hello,

is the any way to change the network card driver from default generic to my hardware native e1000e when I install ethercat stuff from responsitories please? 

thanks regards

I think only the generic driver is supported in the deb install. If you build Ethercat master from sources I think you can build the Intel driver which will give better performance. Check the docs which outlines the build process. Its pretty easy.
etherlab.org/en_GB/ethercat

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

More
29 Nov 2024 19:53 #315582 by endian
I have built them form the source with
./configure --sysconfdir=/etc/ --disable-8139too --enable-userlib --disable-generic --disable-eoe --enable-e1000e
but it has behaviour same same... after
ethercat master
Master0
  Phase: Waiting for device(s)...
  Active: no
  Slaves: 0
  Ethernet devices:
    Main: 00:01:05:xx:93:xx (waiting...)
      Link: DOWN
      Tx frames:   0
      Tx bytes:    0
      Rx frames:   0
      Rx bytes:    0
      Tx errors:   0
      Tx frame rate [1/s]:      0      0      0
      Tx rate [KByte/s]:      0.0    0.0    0.0
      Rx frame rate [1/s]:      0      0      0
      Rx rate [KByte/s]:      0.0    0.0    0.0

but when I change to
DEVICE_MODULES="generic"
and did
sudo systemctl restart ethercat.service
it immediately works

it looks like it does not have disabled generic driver and still using it

regards

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

More
29 Nov 2024 21:51 #315589 by Grotius
Hi,

Following the doc, this looks a set to me :

--enable-e1000
--with-e1000-kernel

If kernel not specified, it uses current kernel.
 

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

  • rodw
  • rodw's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
29 Nov 2024 23:23 #315595 by rodw
don't forget to specify the driver in /etc/ethercat.conf

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

More
30 Nov 2024 09:09 #315623 by endian
Yes this all actions I did,

and I have some machines with custom drivers such ass e1000, e100,8139too ... but I did install 2.9.2 over rods steps and just reinstall ethercat master over thread and it works from first shot ... after
sudo systemctl restart ethercat.service

but now I tried everythnig what is in the my fantasy and it is still in the
  Phase: Waiting for device(s)...

regards

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

  • rodw
  • rodw's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
30 Nov 2024 18:57 #315675 by rodw
From your dump, is there a typo in your MAC address?

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

More
30 Nov 2024 19:59 #315680 by endian
Gentelmen, my bad...

I have 4 ethernet interfaces ... 3 are e1000e and 1 is igb hardware .....

can you guess on which hardware I want to install e1000e driver...

life is life..

Thanks for pushing me

 
The following user(s) said Thank You: rodw

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

More
04 Dec 2024 17:43 #315974 by Rkatts
Update ... 
(After installing LinuxCNC 2.9.3 (Debian 12) and EtherCAT module (Master driver 1.6.2), I am unable to get EtherCAT communication working.  These slave drives work fine with LinuxCNC 2.8.  Something is different in 2.9.3.  What changed?)

However, sometimes one or more slave drives come up in OP state.  When a drive goes to OP, I can see position feedback, I can enable the drive, I can see the DS402 statusword (in drive software).  But it seems to be completely random whether the drives go to OP or PreOP ERROR.  Something must be working for the drives to sometimes go to OP, but I can't figure out what is causing the errors.

With only restarting LinuxCNC multiple times, I get different slaves erroring or going into OP state:
jim@cnc:~$ ethercat slaves
0  6:0  PREOP  E  AKD EtherCAT Drive (CoE)
1  6:1  PREOP  E  AKD2G Single Axis FS1 EtherCAT Drive (CoE)
2  1:0  PREOP  E  AKD EtherCAT Drive (CoE)

jim@cnc:~$ ethercat slaves
0  6:0  PREOP  E  AKD EtherCAT Drive (CoE)
1  6:1  OP     +  AKD2G Single Axis FS1 EtherCAT Drive (CoE)
2  1:0  PREOP  E  AKD EtherCAT Drive (CoE)

jim@cnc:~$ ethercat slaves
0  6:0  OP     +  AKD EtherCAT Drive (CoE)
1  6:1  PREOP  E  AKD2G Single Axis FS1 EtherCAT Drive (CoE)
2  1:0  PREOP  E  AKD EtherCAT Drive (CoE)

jim@cnc:~$ ethercat slaves
0  6:0  PREOP  E  AKD EtherCAT Drive (CoE)
1  6:1  PREOP  E  AKD2G Single Axis FS1 EtherCAT Drive (CoE)
2  1:0  OP     +  AKD EtherCAT Drive (CoE)

jim@cnc:~$ ethercat slaves
0  6:0  OP     +  AKD EtherCAT Drive (CoE)
1  6:1  PREOP  E  AKD2G Single Axis FS1 EtherCAT Drive (CoE)
2  1:0  OP     +  AKD EtherCAT Drive (CoE)

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

More
05 Dec 2024 20:34 - 05 Dec 2024 20:51 #316044 by vibram
Hello

My turn to request some help.
Brand new installation with the latest ISO from the Linuxcnc download section version 2.9.3 PREMPT-RT

paul@mill:~$ sudo apt install  linuxcnc-ethercat
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linuxcnc-ethercat 


and same for:

sudo apt install ethercat-master libethercat-dev  linuxcnc-ethercatReading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package ethercat-master
E: Unable to locate package libethercat-dev
E: Unable to locate package linuxcnc-ethercat
I tried the mokutil stuff:sudo mokutil --import /var/lib/dkms/mok.pub
EFI variables are not supported on this system

sudo mokutil --sb-state
EFI variables are not supported on this system



I also tried the ecat.sh script from the other topic:

paul@mill:~/Downloads$ sudo ./ecat.sh
[sudo] password for paul:
sudo: ./ecat.sh: command not found

paul@mill:~/Downloads$ ls -l
total 4
-rw-r--r-- 1 paul paul 726 Dec  5 21:45 ecat.sh


Any idea of what should I do?

Thanks you in advance

 

Last edit: 05 Dec 2024 20:51 by vibram.

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

More
05 Dec 2024 21:28 #316048 by Grotius
Hi,

Looks your sources.list is not ok.

$ sudo thunar

Then find and edit the ~/etc/apt/sources.list
# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware

deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware

# Fetch sources list.
$ sudo apt get update
# Check if source excists:
$ sudo apt-get install --dry-run ethercat-master

 

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

Time to create page: 0.230 seconds
Powered by Kunena Forum