Alessandro,

Put this line (I'm not sure about rtudp.ko or rt_udp.ko. U should verify it
in the rtnet directory)

*insmod ${RTNET_MOD_DIR}/rtudp.ko

* after

insmod ${RTNET_MOD_DIR}/rt_loopback.
ko

This line must be added in the loadRTnet file of C4GOpen Library, if u use
the newest RTnet's versions. Good luck with C4GOpen. It's a powerfull tool.


Att,
-- 
Adriano de Araújo Abreu Mourão
Engenharia de Controle e Automação
Universidade Federal de Minas Gerais
Tel: 31 9208-0357


On Tue, Jan 31, 2012 at 9:19 AM, Alessandro Marino <marino...@hotmail.it>wrote:

>  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
>
>


-- 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)

mQGiBEt+pegRBAC4rRVsyuKj/NR12Pwkq/Ydq4cEtp1eRib/SA/rgaYyrM0VwvDW
qIYJCW/GN9/Q/B7q9ldTqBNx2iRgxItemhVvJt23tAojjkt8a647wbe5+dh7w+MC
JOUDfSG8A0r+Lw/AEsqhLmJqqsJzEkGF4rsUivQMDLeYF3ra0FfnErljLwCgqD6g
e4AGiZlMuLsGiTaWv6gNpt8EAKLTLmMsZLwhpwJXjtRUbNu9+kyY2A8o74RvarU4
1qCIroOBd1L0Z6DZpcY2fDXBRwnQZJ33cRe/yb1GYOAstw6kxIrNLq7UMB1+91mN
Pyf4Z2w6XtJ++37T6s2f3ChoLwZVI6Y0L2Tf35YyxoFtoOOpCA/rpLBNRASmGkcv
pFERBACtOs1QIzWTKpjG/dzxpdoz9/nzXedP8PhwbyRnVZHHJx9a6kWUFOhqGr3L
sKgDH14qVhz+aSRe19tsXBF3fFo76cRD+ZBCp0RTEKrzghGkBDbcced5C+So490+
xYPiw7fUqMzVad+QXoGghu6f2ucZ/VUUhEipA6uRSsMPMm7I87QmQWRyaWFubyBE
YXNobyA8YWRyaWFub2Rhc2hvQGdtYWlsLmNvbT6IYgQTEQIAIgUCS36l6AIbAwYL
CQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQ7ycijIyIUSs/pQCfdpkXxpGiQNaA
CVoVWboT7YCyGjIAnA1QzRI1Mp3aMsDN3cbya2gu4D4ZuQENBEt+pegQBACVKMaT
kGQjx+iA7jJ1+EEni1PNcsWfCKTKWJBwmkowCzQG+M1K4rdejzLiRckqEahzCPG2
81umxkRCTk9lrqsgcX1RR1ma+ji8KzkUaESjxRbf4WB5pFM5xni+XY/QRbjssPZZ
sXXP3ClAjmGWRdo5lrtfrSXMyheMShZ6+w6tqwADBQP+IaH/GcKLpt39JERf9Ps8
FwqqfmojRFldccuhspiAAJYXYCSBqHMwAqRS7FJs9Y2hmKzdmfRdq5YEsSCzyy2/
6XziKsx9A/NrNLVXqE+y00KuhKYnnhtabLW2J5BHFSkvGyJ0IByEw5FrxFQpMq2l
KBWkfRpl4KOf0q93Gvd0Ew2ISQQYEQIACQUCS36l6AIbDAAKCRDvJyKMjIhRKzlC
AJ9sJG8FMg9N4d+NRzvsnCYKKYr5DACgl1ziTat0WFYWksZS2515KSxBRLE=
=lare
-----END PGP PUBLIC KEY BLOCK-----
------------------------------------------------------------------------------
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