- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat installation from repositories - how to step by step
Ethercat installation from repositories - how to step by step
- rodw
- Topic Author
- Offline
- Platinum Member
- Posts: 10842
- Thank you received: 3580
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.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
etherlab.org/en_GB/ethercat
Please Log in or Create an account to join the conversation.
- endian
- Offline
- Elite Member
- Posts: 176
- Thank you received: 45
./configure --sysconfdir=/etc/ --disable-8139too --enable-userlib --disable-generic --disable-eoe --enable-e1000e
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"
sudo systemctl restart ethercat.service
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.
- Grotius
- Offline
- Platinum Member
- Posts: 2264
- Thank you received: 2014
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
- Topic Author
- Offline
- Platinum Member
- Posts: 10842
- Thank you received: 3580
Please Log in or Create an account to join the conversation.
- endian
- Offline
- Elite Member
- Posts: 176
- Thank you received: 45
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
- Topic Author
- Offline
- Platinum Member
- Posts: 10842
- Thank you received: 3580
Please Log in or Create an account to join the conversation.
- endian
- Offline
- Elite Member
- Posts: 176
- Thank you received: 45
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
Please Log in or Create an account to join the conversation.
- Rkatts
- Offline
- New Member
- Posts: 16
- Thank you received: 0
(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.
- vibram
- Offline
- Junior Member
- Posts: 38
- Thank you received: 1
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
Please Log in or Create an account to join the conversation.
- Grotius
- Offline
- Platinum Member
- Posts: 2264
- Thank you received: 2014
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.
- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Ethercat installation from repositories - how to step by step