Thanks for the reply.
The rt loaded modules  are

rt_eepro100            13350  1 
rt_loopback             1035  1 
rtpacket                3675  0 
rtipv4                 16346  0 
rtnet                  29493  4 rt_eepro100,rt_loopback,rtpacket,rtipv4
rtai_rtdm              83853  3 rt_eepro100,rtpacket,rtnet
rtai_mbx                9486  0 
rtai_sem               22319  3 rtnet,rtai_rtdm,rtai_mbx
rtai_lxrt             144199  7 
rt_eepro100,rt_loopback,rtipv4,rtnet,rtai_rtdm,rtai_mbx,rtai_sem
rtai_hal               85479  5 rtnet,rtai_rtdm,rtai_mbx,rtai_sem,rtai_lxrt



Here the output ./rtroute. X.149 is my local address, X.150 the target address.

00    0.0.0.0      00:00:00:00:00:00    rtlo
01    127.0.0.1      00:00:00:00:00:00    rtlo
15    10.2.12.149    00:00:00:00:00:00    rtlo
16    10.2.12.150    00:04:50:48:2F:FF    rteth0
3F    10.255.255.255    FF:FF:FF:FF:FF:FF    rteth0




Here the load script:


#!/bin/bash

# This script file:
# - removes Linux kernel module of the driver of your NIC;
# - loads RTnet modules necessary to make use of RTnet;
# - loads RTnet driver of your NIC;
# - configures the C4G Open subnet.

RTAI_MOD_DIR=/usr/realtime/modules
RTNET_MOD_DIR=/usr/rtnet/modules
RTNET_BIN_DIR=/usr/rtnet/sbin

##########################################################
# Substitute "linux_driver_name" and "rtnet_driver_name" #
# of your network card in the following lines.           #
##########################################################

ETH_DRV=e100      # (e.g. 8139too)
RT_ETH_DRV=rt_eepro100   # (e.g. rt_8139too)

LOCAL_IP=10.2.12.149                
TARGET_IP=10.2.12.150

##########################################################
# Substitute SMP+ MAC address in the following line      #
##########################################################

TARGET_MAC_ADDR=00:04:50:48:2F:FF # C4G A SINISTRA SU ETH0

if [ -z "$ETH_DRV" ]; then
    echo
    echo -e "ETH_DRV not set in loadRTnet script (please refer to \"C4G Open 
Library User's Guide\").\n"
    exit 1
fi

if [ -z "$RT_ETH_DRV" ]; then
    echo
    echo -e "RT_ETH_DRV not set in loadRTnet script (please refer to \"C4G Open 
Library User's Guide\").\n"
    exit 1
fi

if [ -z "$TARGET_MAC_ADDR" ]; then
    echo
    echo -e "TARGET_MAC_ADDR not set in loadRTnet script (please refer to \"C4G 
Open Library User's Guide\").\n"
    exit 1
fi

mknod /dev/rtnet c 10 240

rmmod ${ETH_DRV}

insmod ${RTNET_MOD_DIR}/rtnet.ko
insmod ${RTNET_MOD_DIR}/rtipv4.ko
insmod ${RTNET_MOD_DIR}/rtpacket.ko
insmod ${RTNET_MOD_DIR}/rt_loopback.ko
insmod ${RTNET_MOD_DIR}/${RT_ETH_DRV}.ko

${RTNET_BIN_DIR}/rtifconfig rtlo up 127.0.0.1
${RTNET_BIN_DIR}/rtifconfig rteth0 up ${LOCAL_IP}

${RTNET_BIN_DIR}/rtroute add ${TARGET_IP} ${TARGET_MAC_ADDR} dev rteth0




From: marino...@hotmail.it
To: rtnet-users@lists.sourceforge.net
Subject: Error running simpleserver-simpleclient rtnet 0.9.12
Date: Mon, 30 Jan 2012 17:03:57 +0100







Dear all,
I have just installed  linux 2.6.35.9 + rtai 3.9.1 (gcc-4.4.3)+rtnet-0.9.12 
(from git) on a desktop pc equipped with two Intel Corporation 82557/8/9/0/1 
Ethernet Pro 100 (rev 08) cards.

I am trying to run the simpleserver-simpleclient rtnet  example.

What I get is

./simpleserver  9999
Error opening socket: -97


Can u help me, please?

    

    Thanks in advance. Best,

    

    Alessandro                                                                  
                                                                                
          
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to