7 ------------------------------------------------------------------------------- |
7 ------------------------------------------------------------------------------- |
8 |
8 |
9 Building and installing |
9 Building and installing |
10 ======================= |
10 ======================= |
11 |
11 |
12 The first two steps are only necessary, if the kernel sources to compile |
12 The building and installation procedure is described in section 2.1 in the |
13 against are not those of the running kernel. |
13 EtherCAT master documentation: |
14 |
14 |
15 1) Create a copy of the configuration template: |
15 documentation/ethercat-doc.pdf |
16 |
|
17 $ cp ethercat.conf.tmpl ethercat.conf |
|
18 |
|
19 2) Adjust the variables in the configuration file to your needs. |
|
20 |
|
21 3) Build the EtherCAT master and network device driver modules: |
|
22 |
|
23 $ make |
|
24 |
|
25 4) Install the the EtherCAT master (as root): |
|
26 |
|
27 # make install |
|
28 |
|
29 This will create the following files and directories: |
|
30 - /etc/sysconfig/ethercat (configuration file) |
|
31 - /etc/init.d/ethercat (startup script) |
|
32 - /usr/sbin/rcethercat (link to startup script) |
|
33 |
|
34 The modules will be placed in /lib/modules/<KERNEL>/ethercat |
|
35 (where <KERNEL> is the Linux kernel version configured in ethercat.conf). |
|
36 |
|
37 5) Adjust the configuration file /etc/sysconfig/ethercat to your needs. |
|
38 |
16 |
39 ------------------------------------------------------------------------------- |
17 ------------------------------------------------------------------------------- |
|
18 |
|
19 For the impatient: |
|
20 |
|
21 The procedure mainly consists of calling |
|
22 |
|
23 ./configure |
|
24 make |
|
25 make install |
|
26 |
|
27 ...and copying the init script and sysconfig files from $prefix/etc to the |
|
28 appropriate locations and customizing the sysconfig file. |
|
29 |
|
30 ------------------------------------------------------------------------------- |