Ethercat installation from repositories - how to step by step

More
2 years 2 months ago #307893 by Moutomation
thanks a lot
What steps should I follow to configure ethercat?

cnc@raspberrypi:~/Desktop$ ethercat slave
bash: ethercat: command not found
cnc@raspberrypi:~/Desktop$ sudo geany /etc/ethercat.conf
cnc@raspberrypi:~/Desktop$ sudo systemctl enable ethercat.service
Failed to enable unit: Unit file ethercat.service does not exist.
cnc@raspberrypi:~/Desktop$ sudo systemctl start ethercat.service
Failed to start ethercat.service: Unit ethercat.service not found.
cnc@raspberrypi:~/Desktop$ sudo systemctl status ethercat.service
Unit ethercat.service could not be found.
cnc@raspberrypi:~/Desktop$ sudo chmod 666 /dev/EtherCAT0
chmod: cannot access '/dev/EtherCAT0': No such file or directory
cnc@raspberrypi:~/Desktop$ ethercat slaves
bash: ethercat: command not found
cnc@raspberrypi:~/Desktop$

Please Log in to join the conversation.

More
2 years 2 months ago #307896 by rodw
You need to install the  linuxcnc image from the downloads page then follow the first post here

Please Log in to join the conversation.

More
2 years 2 months ago #307900 by Moutomation

Please Log in to join the conversation.

More
2 years 2 months ago #307904 by jjdege
Hi
after installing the official LinuxCNC ISO for Raspberry Pi 5
I realized that the screen resolution is not good,
it is not manageable and there is no audio,

it will surely be fixed.

so I tried installing LinuxCNC + EtherCAT on native Raspberry OS
I installed kernel 6.6.45-rt39-v8-16k+ with inspiration from  here
for EtherCAT drivers I entered the keys for the repositories from here
and followed Rod's guide here here

Everything works

 

Attachment not found



latency, maybe a little high

 

Attachment not found



I was wondering if it depends on the kernel and if it is possible to modify it in some way
many Thanks

Please Log in to join the conversation.

More
2 years 2 months ago #307906 by rodw
what does uname -v report?
Seems you don;'t have a RT kernel

Please Log in to join the conversation.

More
2 years 2 months ago #307912 by jjdege
hi
here is the report with uname -v

 

Attachment not found



no RT, yet it works, something went wrong

which kernel is working?

Please Log in to join the conversation.

More
2 years 2 months ago #307916 by elovalvo

hi
here is the report with uname -v

 

Attachment not found



no RT, yet it works, something went wrong

which kernel is working?

If you want instructions to create a PREEMPT_RT for Raspberry Pi 5 with native Raspberry OS you can see at this link

forum.linuxcnc.org/9-installing-linuxcnc...pi-5?start=40#303696

or use the ready-made image you find here

forum.linuxcnc.org/9-installing-linuxcnc...pi-5?start=40#303752

Then follow the procedures already described for Ethercat drivers

Please Log in to join the conversation.

More
2 years 2 months ago #307934 by tommylight
Latency is OK, so the kernel should work just fine.
No idea if it works for EtherCAT though, although in general should work if the same headers are used.

Please Log in to join the conversation.

More
2 years 2 months ago #307956 by jjdege
Thanks so much!
in the meantime
i tried to understand what went wrong and i found the reason,

i skipped a step in menuconfig

 

Attachment not found



with that step the compilation of the RT kernel was successful
the latency is now very ok

 

Attachment not found




 

Attachment not found




unlike the installation of the EtherCAT packages that gives me an error


 

Attachment not found



i don't know what it depends on, maybe we need to wait for Etherlab to update the repositories


 

Please Log in to join the conversation.

More
2 years 2 months ago #307971 by tommylight
Try installing those one by one.

Please Log in to join the conversation.

Time to create page: 5.658 seconds
Powered by Kunena Forum