The distro is Scientific Linux 3.4-Beryllium. I've compiled a 2.6.15 patched with rtai3.3 "hal-linux-2.6.15-i386-1.1-03.patch".
RTAI testing goes fine.
I've installed RTnet svn-version number Revision: 1019 (Last Changed Date: 2006-08-03 13:17:59 +0200 (gio, 03 ago 2006).
The host has got two Realtek Net adapters:
(from lspci)
01:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
the drivers are
(from modprobe.conf)
alias eth0 8139too
alias eth1 r8169
The master node is 10.0.0.2 and is working fine on the same switch, waiting for this slave.
I created /dev/rtnet.
I have done rmmod for net adapters drivers and loaded rtai modules with:
initRTNet.sh
---------------
#!/bin/bash
ifconfig eth0 down
ifconfig eth1 down
rmmod r8169
rmmod 8139too
insmod /usr/realtime/modules/rtai_hal.ko
insmod /usr/realtime/modules/rtai_lxrt.ko
insmod /usr/realtime/modules/rtai_sem.ko
insmod /usr/realtime/modules/rtai_rtdm.ko
my rtnet.conf
-------------------
#!/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="rt_8139too"
RT_DRIVER_OPTIONS="cards=1,0,0,0"
#RT_DRIVER_OPTIONS="cards=0,1,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"
IPADDR="10.0.0.3"
NETMASK=""
# Start realtime loopback device ("yes" or "no")
RT_LOOPBACK="yes"
# Start capturing interface ("yes" or "no")
RTCAP="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"
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"
------------------------------------------------------------------------------------------------------------------------------------
When i use 01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) - eth0
"rtnet start" works but "rtnet stop" causes kernel panic.
What's the problem?
Furthermore i can't use the gigabit ethernet.
When I try to use the gigabit adapter, eth1, i write in rtnet.conf
...
# RT-NIC driver
#RT_DRIVER="rt_eepro100"
#RT_DRIVER="rt_8139too"
RT_DRIVER="rt_r8169"
#RT_DRIVER_OPTIONS="cards=1,0,0,0"
RT_DRIVER_OPTIONS="cards=0,1,0,0"
...
[EMAIL PROTECTED] etc]# rtnet start
ioctl: No such device
ioctl: No such device
Stage 1: searching for master...ioctl: No such device
Stage 2: waiting for other slaves...
Stage 3: waiting for common setup completion...ioctl: No such device
[EMAIL PROTECTED] etc]# lsmod|grep rt
rtmac 15268 1 tdma
rtcfg 48196 0
rt_loopback 6916 1
rt_r8169 20100 0
rtpacket 9216 0
rtipv4 30184 1 rtcfg
rtnet 39040 7 tdma,rtmac,rtcfg,rt_loopback,rt_r8169,rtpacket,rtipv4
rtai_rtdm 26540 6 tdma,rtcfg,rt_r8169,rtpacket,rtipv4,rtnet
rtai_sem 27136 4 tdma,rtcfg,rtnet,rtai_rtdm
rtai_lxrt 91560 8 tdma,rtcfg,rt_loopback,rt_r8169,rtipv4,rtnet,rtai_rtdm,rtai_sem
rtai_hal 151628 8 tdma,rtmac,rtcfg,rt_r8169,rtnet,rtai_rtdm,rtai_sem,rtai_lxrt
parport_pc 26820 1
parport 32712 2 parport_pc,lp
Why?
Thank you,
Tery
--
Teresa Noviello
Chiedersi Sempre:"Avro' il tempo di rifarlo?"
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users