script/sysconfig/ethercat
author Florian Pose <fp@igh-essen.com>
Thu, 08 Mar 2007 13:06:20 +0000
changeset 638 b0994b4e3b37
parent 588 ba69f7f34fbf
child 639 aa23c48dca2d
permissions -rw-r--r--
Updated NEWS and TODO.
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     1
#------------------------------------------------------------------------------
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     2
#
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
     3
#  EtherCAT master sysconfig file
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
#
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
#  $Id$
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
#
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     7
#------------------------------------------------------------------------------
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     8
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
#
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    10
# Master device and backup-device settings.
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
#
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    12
# The MASTERX_DEVICE variable specifies the ethernet device for master 'X',
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    13
# while the MASTERX_BACKUP variable specifies the backup ethernet device for
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    14
# redundancy purposes.
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    15
#
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    16
# There are three formats for specifying ethernet devices:
588
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    17
# 1) MAC address (example: "00:00:08:44:ab:66"). Specify the MAC address of
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    18
#    the ethernet card to use.
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    19
# 2) PCI bus address (example: "01:1c.0"). Specify the PCU bis address of the
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    20
#    ethernet card to use.
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    21
# 3) Driver and device index (example: "8139too:0"). Currently there are two
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    22
#    drivers available: "8139too" and "e100". The device index is the index
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    23
#    into driver-supported PCI cards.
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    24
#
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    25
# The MASTERX_DEVICE variables also determine, how many masters will be
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    26
# created: A non-empty variable MASTER0_DEVICE will create one master, adding
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    27
# a non-empty variable MASTER1_DEVICE will create a second master, and so on.
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    28
#
573
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    29
MASTER0_DEVICE=
cdee4ea90ce9 Introduced device IDs; removed comment lines from 8139too; removed
Florian Pose <fp@igh-essen.com>
parents: 563
diff changeset
    30
MASTER0_BACKUP=
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    31
588
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    32
#
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    33
# Ethernet driver modules to replace with EtherCAT-capable ones.
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    34
#
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    35
# The init script will try to unload the ethernet driver modules in the list
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    36
# and replace them with the EtherCAT-capable ones, respectively. If a certain
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    37
# (EtherCAT-capable) driver is not found, a warning will appear.
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    38
#
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    39
# Remove all unused driver modules to prevent unnecesessary module
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    40
# replacement.
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    41
# 
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    42
DEVICE_MODULES="8139too e100 forcedeth"
ba69f7f34fbf Introduced DEVICE_MODULES variable in sysconfig file; enabled init
Florian Pose <fp@igh-essen.com>
parents: 573
diff changeset
    43
563
d113b63c55c4 Changed structure of scripts subdirectory.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    44
#------------------------------------------------------------------------------