author | Florian Pose <fp@igh-essen.com> |
Wed, 27 Aug 2008 08:01:40 +0000 | |
changeset 1205 | 5868982fcfb6 |
parent 1106 | 745a0cc03143 |
child 1214 | 63802a52dd69 |
permissions | -rw-r--r-- |
198 | 1 |
------------------------------------------------------------------------------- |
2 |
||
3 |
This is the INSTALL file of the IgH EtherCAT Master. |
|
4 |
||
5 |
$Id$ |
|
6 |
||
7 |
------------------------------------------------------------------------------- |
|
8 |
||
9 |
Building and installing |
|
355 | 10 |
======================= |
11 |
||
785 | 12 |
The build and installation procedure is described in section 2.1 in the |
13 |
documentation available from http://etherlab.org/en/ethercat. |
|
355 | 14 |
|
198 | 15 |
------------------------------------------------------------------------------- |
380 | 16 |
|
785 | 17 |
For the impatient: The procedure mainly consists of calling |
380 | 18 |
|
487 | 19 |
$ ./configure |
1017
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
20 |
$ make |
487 | 21 |
$ make modules |
380 | 22 |
|
487 | 23 |
(and as root) |
24 |
||
560 | 25 |
# make install |
487 | 26 |
# make modules_install |
1106
745a0cc03143
Added depmod call to docs.
Florian Pose <fp@igh-essen.com>
parents:
1081
diff
changeset
|
27 |
# depmod |
487 | 28 |
|
1017
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
29 |
...and linking the init script and copying the sysconfig file from $PREFIX/etc |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
30 |
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
|
31 |
|
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
32 |
# 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
|
33 |
# cp ${PREFIX}/etc/sysconfig/ethercat /etc/sysconfig/ethercat |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
34 |
# vi /etc/sysconfig/ethercat |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
35 |
|
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
36 |
The EtherCAT character device will be created with mode 0660 and group root by |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
37 |
default. If you want to give normal users reading access, create a udev rule |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
38 |
like this: |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
39 |
|
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
40 |
# 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
|
41 |
|
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
42 |
Now you can start the EtherCAT master: |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
43 |
|
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
44 |
# /etc/init.d/ethercat start |
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
45 |
|
1081 | 46 |
Have a look at the examples/ subdirectory for some application examples. |
47 |
||
1017
b9224ef0546c
Updated install script; udev rule.
Florian Pose <fp@igh-essen.com>
parents:
785
diff
changeset
|
48 |
Have fun! |
380 | 49 |
|
50 |
------------------------------------------------------------------------------- |