On Mon, 2005-05-09 at 14:24, Jan Kiszka wrote:
> Michael Neuhauser wrote:
> > [...] Now it compiles without problems
> > (for RTAI vulcano on ARM/EP9301, linux 2.4.21).
> > 
> 
> That's fine.
>
> [...]
>
> > Another thing: is there a quick way to test basic rtnet functionality on
> > my ARM board without having a real-time ethernet driver?
> 
> insmod rtai_rtdm
> insmod rtnet
> insmod rt_loopback
> # the next one is only for starting the timer
> insmod rtcfg
> rtifconfig rtlo up 127.0.0.1
> rtping 127.0.0.1
> # or
> insmod addons/examples/frag-ip/frag-ip
> 
> Jan

Thanks. I tried it and it worked (I think):

/ # /usr/local/rtnet/sbin/rtping 127.0.0.1
Real-time PING 127.0.0.1 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 time=218.7 us
64 bytes from 127.0.0.1: icmp_seq=2 time=215.7 us
64 bytes from 127.0.0.1: icmp_seq=3 time=215.7 us

/rtnet # insmod frag-ip.o
Using frag-ip.o
destination ip address 127.0.0.1=0100007f
size 65505
start timer 0
Sending message of 65505+2 bytes
received packet from 127.0.0.1, length: 65505+2, encoded length: 65505,
 flags: 0, content ok

/rtnet/lxrt # ./rtnet_ifs
RTnet, interface lister for NEWLXRT
Device rtlo: IP 127.0.0.1, flags 0x00000049

/rtnet/lxrt # ./simpleserver 4711 &
RTnet, simpleserver for NEWLXRT
/rtnet/lxrt # ./simpleclient 0815 127.0.0.1 4711
RTnet, simpleclient for NEWLXRT
Received message: "This message was sent using rtnet_lxrt."


One thing needed tweaking: it was necessary to add

        EXPORT_SYMBOL(__arch_strncpy_from_user);

to linux-2.4.21-rmk1-crus1.4.2/arch/arm/kernel/armksyms.c because of the
strncpy_from_user() usage in rtai_rtdm/rtdm.c (but I don't know if that
is a general problem with ARM kernels).

Mike
-- 
Dr. Michael Neuhauser                phone: +43 1 789 08 49 - 30
Firmix Software GmbH                   fax: +43 1 789 08 49 - 55
Vienna/Austria/Europe                      email: [EMAIL PROTECTED]
Embedded Linux Development and Services    http://www.firmix.at/



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to