Notes from installation of ethercat on Raspberry Pi 4

More
31 Aug 2022 05:42 #250838 by yi2580
Hello, I have an rk3399 board that I also want to use to install linuxcnc and EtherCAT, but I don't know what. ISO file should be downloaded to enable my card to install linuxcnc and EtherCAT, because this system needs to be real-time, which makes it difficult for me to choose.
I hope someone can give me some advice

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

More
26 Sep 2022 15:33 #252776 by Drizzt
目前还没有什么好办法,不过如果只是装LinuxCNC的话还是有做到的。原因是etherlab需要对应的head,而目前市面上的RK3399,RK3568等开发板好像都没有提供32位的内核和RT补丁,并且etherlab还没有arch64的版本。摊手。。。

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

More
27 Sep 2022 01:29 #252819 by yi2580
您好,您是中国人吗,我最近正在研究这方面的东西,您能给我提供一些帮助吗?我可以添加您的联系方式吗?互相讨论一下

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

More
09 Oct 2022 10:37 #253805 by Drizzt
是的,我是中国人
QQ:1591118067
WX:Drizzt_Wu

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

More
16 Apr 2023 21:51 #269241 by Wesleyooms
I followed the instruction untill the reboot, so Etherlabmaster installed, and got no errors. see logging in the atachement.

however, if I now type =10ptethercat master, i get 'command not found':

wesley@wes-lcnc:~$ ethercat master
bash: ethercat: command not found

Do you have any idea what could be wrong or how to debug this? I already checked the .local files

=10ptThanks for any response,

Wesley

 

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

More
17 Apr 2023 15:50 #269310 by Wesleyooms
Thanks for writing this down.

After following the instructions until reboot, the command 'ethercat' is not found. So i do first

$ sudo systemctl start ethercat

as in the instruction of the etherlabmaster github. But then I get the following error:

Failed to start ethercat.service: Unit ethercat.service not found.

as far as I can see, the installation was succesful. Does anyone know what to do next or how to troubleshoot this?
Is it because I haven't connected the ethernet cable yet?

Thanks in advance for the help,

Wesley
 

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

More
17 Apr 2023 16:12 #269312 by Wesleyooms
I think the make setup command went wrong so I did that again and it looks like a file is missing; /sys/class/net/eth0/address:
;

wesley@wes-lcnc:~/etherlabmaster$ make setup
>>> We've found the local configuration file.
    The original ETHERCAT_MASTER0 = enp0s25
    will be overriden with ETHERCAT_MASTER0 = eth0

>>>
ECAT_SYSTEMD_PATH : /opt/etherlab/lib/systemd/system
ECAT_CONF_PATH    : /opt/etherlab/etc
ETHERCAT_CONFIG   : /opt/etherlab/etc/ethercat.conf
Cannot find device "eth0"
>>> Setup the systemd dkms.service in /etc/systemd/system

cat: /sys/class/net/eth0/address: No such file or directory

>>> We could find eth0 with the corresponding mac address
    Please check your system properly.
    For example, one can define it via

    echo "ETHERCAT_MASTER0=eth0" > ethercatmaster.local

wesley@wes-lcnc:~/etherlabmaster$ echo "ETHERCAT_MASTER0=eth0" > ethercatmaster.local
wesley@wes-lcnc:~/etherlabmaster$ make setup
>>> We've found the local configuration file.
    The original ETHERCAT_MASTER0 = enp0s25
    will be overriden with ETHERCAT_MASTER0 = eth0

>>>
ECAT_SYSTEMD_PATH : /opt/etherlab/lib/systemd/system
ECAT_CONF_PATH    : /opt/etherlab/etc
ETHERCAT_CONFIG   : /opt/etherlab/etc/ethercat.conf
Cannot find device "eth0"
>>> Setup the systemd dkms.service in /etc/systemd/system

cat: /sys/class/net/eth0/address: No such file or directory

>>> We could find eth0 with the corresponding mac address
    Please check your system properly.
    For example, one can define it via

    echo "ETHERCAT_MASTER0=eth0" > ethercatmaster.local

wesley@wes-lcnc:~/etherlabmaster$

 

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

More
19 Apr 2023 04:07 #269397 by rodw
Th forum sticky will also work for  the Pi (I have done it)
You might need to use a Raspberry specific descriptor for keys and sources.list based on their repo. build.opensuse.org/project/show/home:bon...hes:science:EtherLab
 

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

More
06 May 2023 05:04 #270766 by Drizzt
RK3399现在可以安装linuxcnc了,并且ethercat也可以使用了。我用的内核是4.4-rt176和4.19.rt87。firefly的平台。系统是debian10
这里要感谢rodw.

For rodw:
Thanks a lot for your etherlab repositories.And I have a question, that generic device driver has better delay than normal TCP/IP protocol. If I use the standard ethercat netword card such as e1000, How can add the specific module base on your projects.Thanks again.

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

More
06 May 2023 10:44 #270784 by rodw
You have a Intel NIC which is not as likely to have real time communication delays.

It is not unexpected that you record better performance. . The ethercat protocol is much more efficient than normal TCP/IP comms, I don't think you will need to make any special meaures

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

Time to create page: 0.107 seconds
Powered by Kunena Forum