Dies ist eine alte Version des Dokuments!


Install the Acontis EtherCAT Stack

Overview

Read first this short article to get an overview over the Acontis EtherCAT stack.

The Acontis Stack (Class B) and the DCM Add On (Class A) can be placed anywhere. In this manual the placeholders <classB_path> and <classA_path> are used.

  • <classB_path> Path to the Class B EtherCAT Stack (i.e. /home/username/acontisStack/EC-Master-V2.9-Linux_x64-Eval)
  • <classA_path> Path to the Class A AddOn (i.e. /home/username/acontisStack/EC-Master-ClassA-AddOn-V2.9)

LinkLayer Module

  1. EC LinkLayer Module The EC LinkLayer Module has to be compiled against the installed linux kernel. If the kernel changes, the module has to be rebuilt and reloaded.
  2. The loaded standard Ethernet driver has to be unloaded after boot.
  3. The EC LinkLayer has to be loaded after boot.

Build Module

Compile native

cd <classB_path>/Sources/LinkOsLayer/Linux/atemsys
make modules

Cross-Compile

cd <classB_path>/Sources/LinkOsLayer/Linux/atemsys
export ARCH=<…>
export CROSS_COMPILE=<…>
cd Sources/atemsys
make modules KERNELDIR=<path to target kernel dir>

Unload standard Ethernet driver

Load LinkLayer Module

sudo insmod <installpath>/Sources/LinkOsLayer/Linux/atemsys/atemsys.ko

You may want to add this line to your .bashrc file

Automate load and unload module