-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
52 lines (31 loc) · 1.6 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
-------------------------------------------------------------------------------
This is the INSTALL file of the IgH EtherCAT Master.
$Id$
vim: set spelllang=en spell tw=78
-------------------------------------------------------------------------------
Building and installing
=======================
The complete build and installation procedure is described in the respective
section of the documentation available from http://etherlab.org/en/ethercat.
-------------------------------------------------------------------------------
For the impatient, the procedure mainly consists of calling:
$ ./bootstrap # to create the configure script, if downloaded from the repo
$ ./configure --sysconfdir=/etc
$ make all modules
... and as root:
# make modules_install install
# depmod
... and then customizing the appropriate configuration file:
# vi /etc/ethercat.conf # For systemd based distro
# vi /etc/sysconfig/ethercat # For init.d based distro
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:
# systemctl start ethercat # For systemd based distro
# /etc/init.d/ethercat start # For init.d based distro
Have a look at the examples/ subdirectory for some application examples.
Have fun!
-------------------------------------------------------------------------------