Karl Reichert wrote:
>>> Karl Reichert wrote:
>>>> Hello,
>>>>
>>>>  I'm trying to use RTnet 0.9.9 on Xenomai 2.3.1 with an Intel PRO/1000
>>> NIC. I did everything as described (mknod, ifconfig down, rmmod, right
>>> module in rtnet.conf) but when I start RTnet via 'rtnet start', I get
>> some
>>> errors:
>>>>  stdout: Waiting for all slaves...
>>>>
>>>> stderr: /usr/local/rtnet/sbin/rtnet: 343: let: not found
>>> Hmm, strange. Already tried to start with "rtnet -v" for more verbosity?
>>>
>> Strange, tried it again, now it said:
>> stderr:
>> /usr/local/rtnet/sbin/rtnet: 1: let: not found
>>
>> stdout:
>> Turning on verbose mode
>> /usr/local/rtnet/sbin/rtifconfig rtlo up 127.0.0.1
>> /usr/local/rtnet/sbin/rtcfg rteth0 server
>> /usr/local/rtnet/sbin/rtifconfig rteth0 up 10.0.0.1
>> /usr/local/rtnet/sbin/tdmacfg rteth0 master 3000
>> /usr/local/rtnet/sbin/tdmacfg rteth0 slot 0 0
>> /usr/local/rtnet/sbin/rtcfg rteth0 add 10.0.0.2 -stage1 -
>> Waiting for all slaves.../usr/local/rtnet/sbin/rtcfg rteth0 wait
>>
>>>>  I also get periodic output: e1000: rteth0: e1000_clean_tx_irq:
>> Detected
>>> Tx Unit Hang
>>>
>>> What does /proc/xenomai/irq tell you? Any changes /wrt to the rt_e1000?
>>>
>> It says:
>> IRQ         CPU0        CPU1
>>  20:          46           0         rteth0
>> 213:           0           0
>> 216:        7931          45         [timer]
>> 217:           0           0
>> 226:           8           0         [virtual]
>>
>>>>  What's the problem here? I'm using bash and let is available.
>>>>
>>>>  Thanks in advance
>>>>
>>>> Karl
>>>>
>>> Jan
>>>
>> Karl
> I found the solution now: Ubuntu seems to use a different shell when 
> executing shell-scripts, not the bash. So, if you change the first line from 
> #!/bin/sh to #!/bin/bash, no more errors occur.
> Only this one if left:
> e1000: rteth0: e1000_clean_tx_irq: Detected Tx Unit Hang
> 
> Any ideas to that? Could the reason be, that I don't have my card connected 
> to any cable nor network?!
> 

Two patches in one: the first one disables TX hang detection (Mathias, why do we
need the watchdog at all? For link startup?). The second one should make the
rtnet script bash-independent, please verify.

Does it work otherwise now?

Jan


Index: tools/rtnet.in
===================================================================
--- tools/rtnet.in      (Revision 1118)
+++ tools/rtnet.in      (Arbeitskopie)
@@ -139,7 +139,7 @@ start_master() {
         for SLAVE in $TDMA_SLAVES; do
             echo "\$TDMACFG rteth0 slot 0 $OFFSET;ifconfig vnic0 up \$IPADDR 
\$NETMASK_OPT" | \
                 $RTCFG rteth0 add $SLAVE -stage1 - $STAGE_2_OPT
-            let OFFSET=$OFFSET+$TDMA_OFFSET
+            OFFSET=$(($OFFSET+$TDMA_OFFSET))
         done
     else
         # Get setup from TDMA_CONFIG file:
Index: drivers/e1000/e1000_main.c
===================================================================
--- drivers/e1000/e1000_main.c  (Revision 1118)
+++ drivers/e1000/e1000_main.c  (Arbeitskopie)
@@ -2330,9 +2330,6 @@ e1000_watchdog(unsigned long data)
        /* Cause software interrupt to ensure rx ring is cleaned */
        E1000_WRITE_REG(&adapter->hw, ICS, E1000_ICS_RXDMT0);
 
-       /* Force detection of hung controller every watchdog period */
-       adapter->detect_tx_hung = TRUE;
-
        /* With 82571 controllers, LAA may be overwritten due to controller
         * reset from the other port. Set the appropriate LAA in RAR[0] */
        if (adapter->hw.mac_type == e1000_82571 && adapter->hw.laa_is_present)


Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to