kaisawind's blog
  • 关于
  • 所有帖子

build ethercat - Tue, Aug 23, 2022

build ethercat

linux kernel

  • enable loadable module suppot
git clone https://gitlab.com/etherlab.org/ethercat.git
./bootstrap
./configure --enable-cycles --enable-hrtimer --enable-8139too=no --with-linux-dir=/usr/src/linux-4.4.194/
make all modules
sudo make modules_install
sudo make install

mac地址72:fd:55:fc:6f:a0

sudo vim /usr/local/etc/sysconfig/ethercat

修改MASTER0_DEVICE="72:fd:55:fc:6f:a0",DEVICE_MODULES="generic"

sudo ln -s /usr/local/etc/init.d/ethercat /etc/init.d/ethercat
sudo mkdir /etc/sysconfig
sudo cp /usr/local/etc/sysconfig/ethercat /etc/sysconfig/
echo KERNEL==\"EtherCAT[0-9]*\", MODE=\"0664\" > /etc/udev/rules.d/99-EtherCAT.rules

sudo /etc/init.d/ethercat start


辽ICP备2021007608号 | © 2025 | kaisawind

Facebook Twitter GitHub

▄