在树莓派4B上运行IgH EtherCAT master主站

本文详细介绍了如何在树莓派4.x内核下安装并配置IgHEtherCAT Master,包括Git克隆、编译步骤、udev规则设置和启动示例。适合想要在嵌入式环境中使用EtherCAT的开发者参考。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

igh ethercat不介绍了,用的非常广泛,开源的,官方网址:

IgH EtherCAT Master for Linux

代码:

git clone https://gitlab.com/etherlab.org/ethercat.git
git checkout stable-1.5

编译

$ ./bootstrap # to create the configure script, if downloaded from the repo

$ ./configure
$ make all modules

$ sudo su

# make modules_install install
# depmod

PREFIX默认是/usr/local/

  linking the init script and copying the sysconfig file from $PREFIX/etc
to the appropriate locations and customizing the sysconfig file.

# ln -s ${PREFIX}/etc/init.d/ethercat /etc/init.d/ethercat
# cp ${PREFIX}/etc/sysconfig/ethercat /etc/sysconfig/ethercat
# vi /etc/sysconfig/ethercat

Make sure, that the 'udev' package is installed, to automatically create the
EtherCAT character devices. The character devices will be created with mode
0660 and group root by default. If you want to give normal users reading
access, create a udev rule like this:

# echo KERNEL==\"EtherCAT[0-9]*\", MODE=\"0664\" > /etc/udev/rules.d/99-EtherCAT.rules

Now you can start the EtherCAT master:

# /etc/init.d/ethercat start

然后在examples目录下会有一些示例,可以运行看一看。

参考:

i在树莓派/4.x内核下安装IgH EtherCAT master主站_IGH EtherCAT的博客-CSDN博客

树莓派 IgH EtherCAT主站搭建_Eaglewzw的博客-CSDN博客

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

路边闲人2

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值