> Karl Reichert wrote:
> >> Karl Reichert wrote:
> >>>> Karl Reichert wrote:
> >>>>> Hello,
> >>>>>
> >>>>> while configuring RTnet (make menuconfig) I exclude RTcfg so that it
> >>>> wouldn't be included. But when I start now RTnet, it gives me:
> >>>>> insmod: can't read /usr/local/rtnet/modules/rtcfg.ko: No such file
> or
> >>>> directory
> >>>>> and so on ...
> >>>>>
> >>>>> When I look into the start-script, I see it just tries to load
> >>>> RTcfg-module, no matter what. So, where do I tell not to use RTcfg?
> Do
> >> I have to
> >>>> delete those by hand from the startup-script?
> >>>>
> >>>> The rtnet start script aims at full RTmac/TDMA + RTcfg setups. The
> only
> >>>> exceptions are "rtnet capture" (passive sniffing) and "rtnet
> loopback"
> >>>> (hardware-less local testing). Any other setup requires manual
> loading
> >>>> and configuring, but that should be fairly trivial.
> >>>>
> >>>> Jan
> >>>>
> >>> Thanks. Now I tried to also use RTcfg and when I do "rtnet -v start"
> it
> >> waits for all slaves so that's fine. But I get the following:
> >>> [ 86.856794] Xenomai: xnintr_irq_handler: IRQ20 not handled.
> >> Disabling IRQ line.
> >>> Did I do sth wrong with my xenomai-config? My keyboard also freezes.
> >> What does /proc/interrupt say, and do you have a chance to grab
> >> /proc/xenomai/irq after the hang (maybe remotely via ssh or serial
> >> console)? Then please report the full dmesg, your kernel .config, and
> >> the used RTnet driver. Also Xenomai and I-pipe versions might be of
> some
> >> interest.
> >>
> >> Jan
> >>
> > Hmm, ssh isn't working. I also tried to sleep 10 and then cat
> /proc/xenomai into a text file (cause I can't use keyboard), but it also
> works. I
> guess it both doesn't works because of the fact that no interrupts are handled
> anymore. I now build a kernel from an old config-file and now it works,
> can't say what was the reason.
>
> If the config files differ, please post the diff. Then try to enable
> Xenomai and I-pipe debugging option to see if they catch something.
>
> If there is no difference, you may have faced an inconsistent build
> after updating parts of Xenomai.
>
> Jan
>
> PS: Reply to all!
>
I made an own rtnet_start-script now which is just used to start as a master
with a slot right after the synchronisation slot, no NRT data will ever be sent.
I attached it because I'm not sure if this is really all I need to do or if sth
is missing. I don't want to use RTcfg, the slaves get their configuration
hardcoded.
Can somebody please have a look and tell me if everything is allright?
Thanks in advance
Karl
--
von Karl Reichert
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
#!/bin/bash
prefix="/usr/local/rtnet"
debug_func() {
echo "$*"
eval $*
}
if [ "$1" = "-v" ]; then
echo "Turning on verbose mode"
RTIFCONFIG="debug_func $RTIFCONFIG"
TDMACFG="debug_func $TDMACFG"
shift 1
fi
NETMASK_OPT=
if [ ! "$NETMASK" = "" ]; then
NETMASK_OPT="netmask $NETMASK"
fi
insmod $RTNET_MOD/rtnet$MODULE_EXT || exit 1
insmod $RTNET_MOD/rtipv4$MODULE_EXT || exit 1
insmod $RTNET_MOD/rtpacket$MODULE_EXT || exit 1
insmod $RTNET_MOD/$RT_DRIVER$MODULE_EXT $RT_DRIVER_OPTIONS || exit 1
if [ $RT_LOOPBACK = "yes" ]; then
insmod $RTNET_MOD/rt_loopback$MODULE_EXT || exit 1
fi
if [ $RTCAP = "yes" ]; then
insmod $RTNET_MOD/rtcap$MODULE_EXT || exit 1
fi
if [ $RT_LOOPBACK = "yes" ]; then
$RTIFCONFIG rtlo up 127.0.0.1
fi
if [ $RTCAP = "yes" ]; then
ifconfig rteth0 up
ifconfig rteth0-mac up
if [ $RT_LOOPBACK = "yes" ]; then
ifconfig rtlo up
fi
fi
insmod $RTNET_MOD/rtmac$MODULE_EXT
insmod $RTNET_MOD/tdma$MODULE_EXT
$RTIFCONFIG rteth0 up $IPADDR $NETMASK_OPT
$TDMACFG rteth0 master $TDMA_CYCLE
$TDMACFG rteth0 slot 0 0
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users