author | Florian Pose <fp@igh-essen.com> |
Mon, 25 Jul 2011 15:42:02 +0200 | |
branch | redundancy |
changeset 2135 | f99b2249704c |
parent 1883 | 57b500c062fe |
permissions | -rw-r--r-- |
198 | 1 |
------------------------------------------------------------------------------- |
2 |
||
3 |
This is the INSTALL file of the IgH EtherCAT Master. |
|
4 |
||
5 |
$Id$ |
|
6 |
||
1331
7cd33a77f926
merge -c1609 branches/stable-1.4: INSTALL, README.
Florian Pose <fp@igh-essen.com>
parents:
1214
diff
changeset
|
7 |
vim: set spelllang=en spell tw=78 |
7cd33a77f926
merge -c1609 branches/stable-1.4: INSTALL, README.
Florian Pose <fp@igh-essen.com>
parents:
1214
diff
changeset
|
8 |
|
198 | 9 |
------------------------------------------------------------------------------- |
10 |
||
11 |
Building and installing |
|
355 | 12 |
======================= |
13 |
||
1331
7cd33a77f926
merge -c1609 branches/stable-1.4: INSTALL, README.
Florian Pose <fp@igh-essen.com>
parents:
1214
diff
changeset
|
14 |
The complete build and installation procedure is described in the respective |
7cd33a77f926
merge -c1609 branches/stable-1.4: INSTALL, README.
Florian Pose <fp@igh-essen.com>
parents:
1214
diff
changeset
|
15 |
section of the documentation available from http://etherlab.org/en/ethercat. |
355 | 16 |
|
198 | 17 |
------------------------------------------------------------------------------- |
380 | 18 |
|
785 | 19 |
For the impatient: The procedure mainly consists of calling |
380 | 20 |
|
1883
57b500c062fe
Added bootstrap call to INSTALL.
Florian Pose <fp@igh-essen.com>
parents:
1331
diff
changeset
|
21 |
$ ./boostrap # to create the configure script, if downloaded from the repo |
57b500c062fe
Added bootstrap call to INSTALL.
Florian Pose <fp@igh-essen.com>
parents:
1331
diff
changeset
|
22 |
|
487 | 23 |
$ ./configure |
1331
7cd33a77f926
merge -c1609 branches/stable-1.4: INSTALL, README.
Florian Pose <fp@igh-essen.com>
parents:
1214
diff
changeset
|
24 |
$ make all modules |
380 | 25 |
|
1331
7cd33a77f926
merge -c1609 branches/stable-1.4: INSTALL, README.
Florian Pose <fp@igh-essen.com>
parents:
1214
diff
changeset
|
26 |
... and as root: |
487 | 27 |
|
1331
7cd33a77f926
merge -c1609 branches/stable-1.4: INSTALL, README.
Florian Pose <fp@igh-essen.com>
parents:
1214
diff
changeset
|
28 |
# make modules_install install |
1106
745a0cc03143
Added depmod call to docs.
Florian Pose <fp@igh-essen.com>
parents:
1081
diff
changeset
|
29 |
# depmod |
487 | 30 |
|
1331
7cd33a77f926
merge -c1609 branches/stable-1.4: INSTALL, README.
Florian Pose <fp@igh-essen.com>
parents:
1214
diff
changeset
|
31 |
... and linking the init script and copying the sysconfig file from $PREFIX/etc |
1017
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
32 |
to the appropriate locations and customizing the sysconfig file. |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
33 |
|
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
34 |
# ln -s ${PREFIX}/etc/init.d/ethercat /etc/init.d/ethercat |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
35 |
# cp ${PREFIX}/etc/sysconfig/ethercat /etc/sysconfig/ethercat |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
36 |
# vi /etc/sysconfig/ethercat |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
37 |
|
1214 | 38 |
Make sure, that the 'udev' package is installed, to automatically create the |
39 |
EtherCAT character devices. The character devices will be created with mode |
|
40 |
0660 and group root by default. If you want to give normal users reading |
|
41 |
access, create a udev rule like this: |
|
1017
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
42 |
|
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
43 |
# echo KERNEL==\"EtherCAT[0-9]*\", MODE=\"0664\" > /etc/udev/rules.d/99-EtherCAT.rules |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
44 |
|
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
45 |
Now you can start the EtherCAT master: |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
46 |
|
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
47 |
# /etc/init.d/ethercat start |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
48 |
|
1081 | 49 |
Have a look at the examples/ subdirectory for some application examples. |
50 |
||
1017
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
51 |
Have fun! |
380 | 52 |
|
53 |
------------------------------------------------------------------------------- |