INSTALL
author Florian Pose <fp@igh-essen.com>
Wed, 18 Jun 2008 10:13:58 +0000
changeset 1022 8e49b519e6ba
parent 1017 b9224ef0546c
child 1081 66c60b99c2e8
permissions -rw-r--r--
Implemented ecrt_slave_config_state(); minor changes in
ec_master_state_t and ec_slave_config_state_t; adapted example.
-------------------------------------------------------------------------------

This is the INSTALL file of the IgH EtherCAT Master.

$Id$

-------------------------------------------------------------------------------

Building and installing
=======================

The build and installation procedure is described in section 2.1 in the
documentation available from http://etherlab.org/en/ethercat.

-------------------------------------------------------------------------------

For the impatient: The procedure mainly consists of calling

$ ./configure
$ make
$ make modules

(and as root)

# make install
# make modules_install

...and linking the init script and copying the sysconfig file from $PREFIX/etc
to the appropriate locations and customizing the sysconfig file.

# ln -s ${PREFIX}/etc/init.d/ethercat /etc/init.d/ethercat
# cp ${PREFIX}/etc/sysconfig/ethercat /etc/sysconfig/ethercat
# vi /etc/sysconfig/ethercat

The EtherCAT character device 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:

# /etc/init.d/ethercat start

Have fun!

-------------------------------------------------------------------------------