We have two ELCOM Eurocom E148 hosts, with Slack 9.2 (host with name "rt_linux-1") and Slack 9.1 (host with name "rt_linux-2").
We have installed on the two host kernel 2.6.15, rtai 3.3 and rtnet (latest snapshot).
We tried the configuration Master/Slave first with an hub connecting "rt_linux-1" and "rt_linux-2" and then with a switch. The result is the same. The LAN is not connected to Internet.

We have configured "rt_linux-1" as a master and this is the configuration file:

----------------------------------------
file di configurazione del master
-----------------------------------------------------

#!/bin/sh
#
# This file is usually located in <PREFIX>/etc/rtnet.conf
# Please adapt it to your system.
# This configuration file is used with the rtnet script.
#

# RTnet installation path
prefix="/usr/local/rtnet"
exec_prefix="${prefix}"
RTNET_MOD="${exec_prefix}/modules"
RTIFCONFIG="${exec_prefix}/sbin/rtifconfig"
RTCFG="${exec_prefix}/sbin/rtcfg"
TDMACFG="${exec_prefix}/sbin/tdmacfg"

# Module suffix: ".o" for 2.4 kernels, ".ko" for later versions
MODULE_EXT=".ko"



# RT-NIC driver
RT_DRIVER="rt_eepro100"
RT_DRIVER_OPTIONS="cards=1,0,0,0"

# IP address and netmask of this station
#   The TDMA_CONFIG file overrides these parameters for masters and backup
#   masters. Leave blank if you do not use IP addresses or if this station is
#   intended to retrieve its IP from the master based on its MAC address.
IPADDR="10.0.0.1"
NETMASK=""

# Start realtime loopback device ("yes" or "no")
RT_LOOPBACK="yes"

# Start capturing interface ("yes" or "no")
RTCAP="yes"



# Common RTcfg stage 2 config data (master mode only)
#   The TDMA_CONFIG file overrides this parameter.
STAGE_2_SRC=""

# Stage 2 config data destination file (slave mode only)
STAGE_2_DST=""

# Command to be executed after stage 2 phase (slave mode only)
STAGE_2_CMDS=""



# TDMA mode of the station ("master" or "slave")
#   Start backup masters in slave mode, it will then be switched to master
#   mode automatically during startup.
TDMA_MODE="master"


# Master parameters

# Simple setup: List of TDMA slaves
TDMA_SLAVES="10.0.0.2"

# Simple setup: Cycle time in microsecond
TDMA_CYCLE="5000"

# Simple setup: Offset in microsecond between TDMA slots
TDMA_OFFSET="200"

# Advanced setup: Config file containing all TDMA station parameters
#   To use this mode, uncomment the following line and disable the
#   three master parameters above (SLAVES, CYCLE, and OFFSET).
#TDMA_CONFIG="${prefix}/etc/tdma.conf"

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

We have configured "rt_linux-2" as a slave and this is the configuration file:

----------------------------------------
#!/bin/sh
#
# This file is usually located in <PREFIX>/etc/rtnet.conf
# Please adapt it to your system.
# This configuration file is used with the rtnet script.
#

# RTnet installation path
prefix="/usr/local/rtnet"
exec_prefix="${prefix}"
RTNET_MOD="${exec_prefix}/modules"
RTIFCONFIG="${exec_prefix}/sbin/rtifconfig"
RTCFG="${exec_prefix}/sbin/rtcfg"
TDMACFG="${exec_prefix}/sbin/tdmacfg"

# Module suffix: ".o" for 2.4 kernels, ".ko" for later versions
MODULE_EXT=".ko"



# RT-NIC driver
RT_DRIVER="rt_eepro100"
RT_DRIVER_OPTIONS="cards=1,0,0,0"

# IP address and netmask of this station
#   The TDMA_CONFIG file overrides these parameters for masters and backup
#   masters. Leave blank if you do not use IP addresses or if this station is
#   intended to retrieve its IP from the master based on its MAC address.
IPADDR="10.0.0.2"
NETMASK=""

# Start realtime loopback device ("yes" or "no")
RT_LOOPBACK="yes"

# Start capturing interface ("yes" or "no")
RTCAP="yes"



# Common RTcfg stage 2 config data (master mode only)
#   The TDMA_CONFIG file overrides this parameter.
STAGE_2_SRC=""

# Stage 2 config data destination file (slave mode only)
STAGE_2_DST=""

# Command to be executed after stage 2 phase (slave mode only)
STAGE_2_CMDS=""



# TDMA mode of the station ("master" or "slave")
#   Start backup masters in slave mode, it will then be switched to master
#   mode automatically during startup.
TDMA_MODE="slave"


# Master parameters

# Simple setup: List of TDMA slaves
# TDMA_SLAVES="10.0.0.2 10.0.0.3 10.0.0.4"

# Simple setup: Cycle time in microsecond
TDMA_CYCLE="5000"

# Simple setup: Offset in microsecond between TDMA slots
TDMA_OFFSET="200"

# Advanced setup: Config file containing all TDMA station parameters
#   To use this mode, uncomment the following line and disable the
#   three master parameters above (SLAVES, CYCLE, and OFFSET).
#TDMA_CONFIG="${prefix}/etc/tdma.conf"

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

We followed the instructions in the file README of /usr/local/rtnet to load the modules and to unload the ethernet's module (eepro100) before doing

"/usr/local/rtnet/sbin/rtnet start"

in the two hosts.

In the master, we have the message
"Waiting for all slaves" and nothing else. We must do CTRL+C to stop the process. In this host, the following

rtnet stop

gives error and a Segmentation fault. I can't write you the error because the process do loop on a message:

RTDM: info > IRQ: 11, intrcnt: 21228
rtnet: unregistering rteth0 deferred -refcount=2
....
rtnet: unregistering rteth0 deferred -refcount=2
rtnet: unregistering rteth0 deferred -refcount=2
rtnet: unregistering rteth0 deferred -refcount=2
....

and i must shutdown the machine turning off the power.

In the slave, we have the message
"Searching for master" and nothing else. When we do on this host

rtnet stop

we have no errors.

What we do wrong??

Tery

--
Teresa Noviello
Chiedersi Sempre:"Avro' il tempo di rifarlo?"

Reply via email to