Wind River Support Network

HomeDefectsLIN5-6564
Fixed

LIN5-6564 : On ti-am335x , eth0 doesn't work sometimes and VLAN and IPv6 route doesn't work as well.

Created: Jun 14, 2013    Updated: Dec 19, 2017
Resolved Date: Jul 11, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.5
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: BSP

Description

On ti-am335x , eth0 doesn't work sometimes and VLAN and IPv6 route doesn't work as Gwell.
After target bring up, eth0 could not get the IP( it should be static IP 128.224.158.154 in lab),and configure IP manually, ping gateway fail.  And have warning like
===============================================================
[  276.100953] ------------[ cut here ]------------
[  276.105837] WARNING: at /buildarea1/idp-sanity-log/lge_idp_20130524_214001/lx_prj_am335x_full/bitbake_build/tmp/work/ti_am335x-wrs-linux-gnueabi/linux-windriver-3.4-r1/linux/net/sch)
[  276.127009] NETDEV WATCHDOG: eth0 (cpsw): transmit queue 0 timed out
[  276.133650] Modules linked in: wl12xx_sdio cfg80211 mac80211 wl12xx arc4 nls_cp437 nls_iso8859_1 hidp rfcomm llc stp bridge x_tables ip_tables iptable_filter ip6_tables ip6table_filt
[  276.164216] [<c0016e18>] (unwind_backtrace+0x0/0x104) from [<c06b6efc>] (dump_stack+0x20/0x24)
[  276.173234] [<c06b6efc>] (dump_stack+0x20/0x24) from [<c003f9a4>] (warn_slowpath_common+0x64/0x74)
[  276.182606] [<c003f9a4>] (warn_slowpath_common+0x64/0x74) from [<c003fa70>] (warn_slowpath_fmt+0x40/0x48)
[  276.192605] [<c003fa70>] (warn_slowpath_fmt+0x40/0x48) from [<c0594788>] (dev_watchdog+0x3ac/0x3c4)
[  276.202074] [<c0594788>] (dev_watchdog+0x3ac/0x3c4) from [<c004f5a0>] (run_timer_softirq+0x14c/0x3f0)
[  276.211722] [<c004f5a0>] (run_timer_softirq+0x14c/0x3f0) from [<c00471e0>] (__do_softirq+0xf8/0x288)
[  276.221275] [<c00471e0>] (__do_softirq+0xf8/0x288) from [<c004783c>] (irq_exit+0xb8/0xd4)
[  276.229817] [<c004783c>] (irq_exit+0xb8/0xd4) from [<c000f8d8>] (handle_IRQ+0x4c/0x94)
[  276.238101] [<c000f8d8>] (handle_IRQ+0x4c/0x94) from [<c00086d0>] (omap3_intc_handle_irq+0xdc/0xe8)
[  276.247565] [<c00086d0>] (omap3_intc_handle_irq+0xdc/0xe8) from [<c06c03c0>] (__irq_svc+0x40/0x70)
[  276.256933] Exception stack(0xc683ddf0 to 0xc683de38)
[  276.262220] dde0:                                     00000000 c683ddd0 c683c000 c683c000
[  276.270755] de00: c5cf8000 00000000 000c6000 c6a94780 c72a7160 00000028 c5cf8000 c683de64
[  276.279299] de20: 00000001 c683de3c c010a75c c010aec4 600f0113 ffffffff
[  276.286235] [<c06c03c0>] (__irq_svc+0x40/0x70) from [<c010aec4>] (handle_mm_fault+0xb4/0xe4)
[  276.295065] [<c010aec4>] (handle_mm_fault+0xb4/0xe4) from [<c06c1fb0>] (do_page_fault+0x290/0x408)
[  276.304434] [<c06c1fb0>] (do_page_fault+0x290/0x408) from [<c00083e8>] (do_DataAbort+0x48/0xa8)
[  276.313525] [<c00083e8>] (do_DataAbort+0x48/0xa8) from [<c06c0538>] (__dabt_usr+0x38/0x40)
[  276.322159] Exception stack(0xc683dfb0 to 0xc683dff8)
[  276.327426] dfa0:                                     00000040 01000193 0008f5f4 000c60a8
[  276.335970] dfc0: a17c6b9d 000c24c8 0008f5f0 0000001d 00000050 00000000 00000000 000d0c88
[  276.344517] dfe0: 000cc228 bebbf2c8 00032db1 0004905e 200f0030 ffffffff
[  276.351428] ---[ end trace ef242b025f2b26b6 ]---
=====================================================================
detail please see the attach log.
Image:/buildarea1/idp-sanity-log/lge_idp_20130524_214001/lx_prj_am335x_full/

What is more, VLAN and IPv6 route don't work as well.

Steps to Reproduce

Steps:

1) eth0 issue:
#ifconfig eth0 128.224.158.63 netmask 255.255.254.0 up
#route add default gw 128.224.158.1
#ping 128.224.158.1 ---> ping failed

2)vlan issue:
#vconfig add eth0 100
#ifconfig eth0.100 192.168.1.1 netmask 255.255.254.0 up
Then ping the other interface of test host which interface is of vlan 100.
--->ping failed.

3)IPv6 route issue:
root@WR-IntelligentDevice:~# ifconfig eth0 add 2001::1/64 up
root@WR-IntelligentDevice:~# ifconfig br-lan add 2002::1/64 up
root@WR-IntelligentDevice:~# cp /root/zebra.conf /etc/quagga/zebra.conf
cp /root/ripngd.conf /etc/quagga/ripngd.conf
root@WR-IntelligentDevice:~# cp /root/ripngd.conf /etc/quagga/ripngd.conf
noot@WR-IntelligentDevice:~# ssh -l root 192.168.1.100 -o StrictHostKeyChecking= 
root@192.168.1.100's password: 
Linux lanpc1-desktop 2.6.32-41-generic #89-Ubuntu SMP Fri Apr 27 22:22:09 UTC 2012 i686 GNU/Linux
Ubuntu 10.04.4 LTS

Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/

208 packages can be updated.
184 updates are security updates.

New release 'precise' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Tue Mar 12 13:30:33 2013 from 192.168.1.1
root@lanpc1-desktop:~# ifconfig eth0 add 2002::2/64 up
SIOCSIFADDR: File exists
root@lanpc1-desktop:~# exit
logout
Connection to 192.168.1.100 closed.
root@WR-IntelligentDevice:~# ping6 -c 5 2002::2
PING 2002::2(2002::2) 56 data bytes
64 bytes from 2002::2: icmp_seq=1 ttl=64 time=0.698 ms
64 bytes from 2002::2: icmp_seq=2 ttl=64 time=4.53 ms
64 bytes from 2002::2: icmp_seq=3 ttl=64 time=0.288 ms
64 bytes from 2002::2: icmp_seq=4 ttl=64 time=0.282 ms
64 bytes from 2002::2: icmp_seq=5 ttl=64 time=0.251 ms

--- 2002::2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 0.251/1.210/4.531/1.668 ms
root@WR-IntelligentDevice:~# ping6 -c 5 2002::2
PING 2002::2(2002::2) 56 data bytes
64 bytes from 2002::2: icmp_seq=1 ttl=64 time=0.382 ms
64 bytes from 2002::2: icmp_seq=2 ttl=64 time=0.230 ms
64 bytes from 2002::2: icmp_seq=3 ttl=64 time=0.302 ms
64 bytes from 2002::2: icmp_seq=4 ttl=64 time=0.298 ms
64 bytes from 2002::2: icmp_seq=5 ttl=64 time=0.297 ms

--- 2002::2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 0.230/0.301/0.382/0.052 ms
root@WR-IntelligentDevice:~# exit
logout
Connection to 128.224.158.214 closed.
Password: 
Last login: Sat Mar  9 12:47:21 2013 from 128.224.158.191
root@WR-IntelligentDevice:~# cp /root/zebra.conf /etc/quagga/zebra.conf
root@WR-IntelligentDevice:~# cp /root/ripngd.conf /etc/quagga/ripngd.conf
ifconfig eth0 add 2001::2/64 up
root@WR-IntelligentDevice:~# ifconfig eth0 add 2001::2/64 up
root@WR-IntelligentDevice:~# ifconfig br-lan add 2003::1/64 up
=not@WR-IntelligentDevice:~# ssh -l root 192.168.10.229 -o StrictHostKeyChecking 
root@192.168.10.229's password: 
Linux lanpc3-desktop 2.6.35-32-generic #68~lucid1-Ubuntu SMP Wed Mar 28 17:12:29 UTC 2012 x86_64 GNU/Linux
Ubuntu 10.04.4 LTS

Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/

71 packages can be updated.
61 updates are security updates.

New release 'precise' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Tue Mar 12 13:30:38 2013 from wr-intelligentdevice.lan
root@lanpc3-desktop:~# ifconfig eth0 add 2003::2/64 up
root@lanpc3-desktop:~# exit
logout
Connection to 192.168.10.229 closed.
root@WR-IntelligentDevice:~# ping6 -c 5 2003::2
PING 2003::2(2003::2) 56 data bytes
64 bytes from 2003::2: icmp_seq=1 ttl=64 time=1002 ms
64 bytes from 2003::2: icmp_seq=2 ttl=64 time=4.03 ms
64 bytes from 2003::2: icmp_seq=3 ttl=64 time=1.25 ms
64 bytes from 2003::2: icmp_seq=4 ttl=64 time=1.77 ms
64 bytes from 2003::2: icmp_seq=5 ttl=64 time=1.64 ms

--- 2003::2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4008ms
rtt min/avg/max/mdev = 1.256/202.322/1002.901/400.290 ms
root@WR-IntelligentDevice:~# ping6 -c 5 2003::2
PING 2003::2(2003::2) 56 data bytes
64 bytes from 2003::2: icmp_seq=1 ttl=64 time=1.47 ms
64 bytes from 2003::2: icmp_seq=2 ttl=64 time=1.32 ms
64 bytes from 2003::2: icmp_seq=3 ttl=64 time=1.26 ms
64 bytes from 2003::2: icmp_seq=4 ttl=64 time=0.725 ms
64 bytes from 2003::2: icmp_seq=5 ttl=64 time=0.743 ms

--- 2003::2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 0.725/1.106/1.475/0.311 ms
root@WR-IntelligentDevice:~# ping6 -c 5 2001::1
PING 2001::1(2001::1) 56 data bytes
ping6 -c 5 2001::1
64 bytes from 2001::1: icmp_seq=1 ttl=64 time=1.59 ms
64 bytes from 2001::1: icmp_seq=2 ttl=64 time=0.485 ms
64 bytes from 2001::1: icmp_seq=3 ttl=64 time=0.468 ms
64 bytes from 2001::1: icmp_seq=4 ttl=64 time=0.499 ms
64 bytes from 2001::1: icmp_seq=5 ttl=64 time=0.479 ms

--- 2001::1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.468/0.704/1.592/0.444 ms
root@WR-IntelligentDevice:~# ping6 -c 5 2001::1
PING 2001::1(2001::1) 56 data bytes
64 bytes from 2001::1: icmp_seq=1 ttl=64 time=0.448 ms
64 bytes from 2001::1: icmp_seq=2 ttl=64 time=1.16 ms
64 bytes from 2001::1: icmp_seq=3 ttl=64 time=0.484 ms
64 bytes from 2001::1: icmp_seq=4 ttl=64 time=1.03 ms
64 bytes from 2001::1: icmp_seq=5 ttl=64 time=0.441 ms

--- 2001::1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.441/0.714/1.166/0.317 ms
root@WR-IntelligentDevice:~# exit
logout
Connection to 128.224.158.235 closed.
Password: 
Last login: Fri Mar  8 03:44:54 2013 from pek-lpgtest5.wrs.com
root@WR-IntelligentDevice:~# zebra -d
root@WR-IntelligentDevice:~# ripngd -d
root@WR-IntelligentDevice:~# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
root@WR-IntelligentDevice:~# route -A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
::/0                           ::                         !n   -1  1   510 lo
2001::/64                      ::                         U    256 0     0 eth0
2002::/64                      ::                         U    256 0     0 br-lan
fe80::/64                      ::                         U    256 0     0 br-lan
fe80::/64                      ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 eth1.7
::/0                           ::                         !n   -1  1   510 lo
::1/128                        ::                         Un   0   1   201 lo
2001::/128                     ::                         Un   0   1     0 loexit

2001::1/128                    ::                         Un   0   1    10 lo
2002::/128                     ::                         Un   0   1     0 lo
2002::1/128                    ::                         Un   0   1     9 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::218:31ff:fee7:a993/128   ::                         Un   0   1     9 lo
fe80::218:31ff:fee7:a994/128   ::                         Un   0   1    25 lo
fe80::218:31ff:fee7:a994/128   ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 br-lan
ff00::/8                       ::                         U    256 0     0 eth0
ff00::/8                       ::                         U    256 0     0 eth1.7
::/0                           ::                         !n   -1  1   510 lo
root@WR-IntelligentDevice:~# exit
logout
Connection to 128.224.158.214 closed.
Password: 
Last login: Sat Mar  9 12:48:26 2013 from pek-lpgtest5.wrs.com
root@WR-IntelligentDevice:~# zebra -d
root@WR-IntelligentDevice:~# ripngd -d
root@WR-IntelligentDevice:~# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
root@WR-IntelligentDevice:~# route -A inet6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
2001::/64                      ::                         U    256 0     0 eth0
2003::/64                      ::                         U    256 0     0 br-lan
fe80::/64                      ::                         U    256 0     0 br-lan
fe80::/64                      ::                         U    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 eth1
::/0                           ::                         !n   -1  1    51 lo
::1/128                        ::                         Un   0   1    17 lo
2001::/128                     ::                         Un   0   1     0 lo
2001::2/128                    ::                         Un   0   1    12 lo
2003::/128                     ::                         Un   0   1     0 lo
2003::1/128                    ::                         Un   0   1     9 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::2aa:bbff:fecc:ddee/128   ::                         Un   0   1     0 lo
fe80::2b3:38ff:fe00:2ac/128    ::                         Un   0   1     4 lo
fe80::5c7a:44ff:fe72:8c01/128  ::                         Un   0   1     6 lo
ff00::/8                       ::                         U    256 0     0 br-lan
ff00::/8                       ::                         U    256 0     0 eth0
ff00::/8                       ::                         U    256 0     0 eth1
::/0                           ::                         !n   -1  1    51 lo
root@WR-IntelligentDevice:~# telnet localhost 2603

Entering character mode
Escape character is '^]'.


Hello, this is Quagga (version 0.99.21).
Copyright 1996-2005 Kunihiro Ishiguro, et al.


User Access Verification

Password: 
ripngd> en
ripngd# conf term
ripngd(config)# no router ripng
ripngd(config)# end
ripngd# sh ipv6 ripng
ripngd# conf term
ripngd(config)# router ripng
ripngd(config-router)# network 2001::/64
ripngd(config-router)# redistribute connected
ripngd(config-router)# end
ripngd# sh ipv6 ripng
Codes: R - RIPng, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
      (n) - normal, (s) - static, (d) - default, (r) - redistribute,
      (i) - interface, (a/S) - aggregated/Suppressed

   Network      Next Hop                      Via     Metric Tag Time
C(i) 2001::/64 
                  ::                          self       1    0  
C(r) 2003::/64 
                  ::                          self       1    0  
ripngd# q
Connection closed by foreign host
root@WR-IntelligentDevice:~# exit
logout
Connection to 128.224.158.235 closed.
Password: 
Last login: Fri Mar  8 03:46:03 2013 from pek-lpgtest5.wrs.com
root@WR-IntelligentDevice:~# telnet localhost 2603

Entering character mode
Escape character is '^]'.


Hello, this is Quagga (version 0.99.21).
Copyright 1996-2005 Kunihiro Ishiguro, et al.


User Access Verification

Password: 
ripngd> en
ripngd# conf term
ripngd(config)# no router ripng
ripngd(config)# end
ripngd# sh ipv6 ripng
ripngd# conf term
ripngd(config)# router ripng
ripngd(config-router)# network 2001::/64
ripngd(config-router)# redistribute connected
ripngd(config-router)# end
ripngd# q
Connection closed by foreign host
root@WR-IntelligentDevice:~# sleep 10
root@WR-IntelligentDevice:~# telnet localhost 2603

Entering character mode
Escape character is '^]'.


Hello, this is Quagga (version 0.99.21).
Copyright 1996-2005 Kunihiro Ishiguro, et al.


User Access Verification

Password: 
ripngd> en
ripngd# sh ipv6 ripng
Codes: R - RIPng, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
      (n) - normal, (s) - static, (d) - default, (r) - redistribute,
      (i) - interface, (a/S) - aggregated/Suppressed

   Network      Next Hop                      Via     Metric Tag Time
C(i) 2001::/64 
                  ::                          self       1    0  
C(r) 2002::/64 
                  ::                          self       1    0  
R(n) 2003::/64 
                  fe80::2b3:38ff:fe00:2ac     eth0       2    0  02:52
ripngd# q
Connection closed by foreign host
root@WR-IntelligentDevice:~# exit
logout
Connection to 128.224.158.214 closed.
Password: 
Last login: Sat Mar  9 12:49:11 2013 from pek-lpgtest5.wrs.com
root@WR-IntelligentDevice:~# telnet localhost 2603

Entering character mode
Escape character is '^]'.


Hello, this is Quagga (version 0.99.21).
Copyright 1996-2005 Kunihiro Ishiguro, et al.


User Access Verification

Password: 
ripngd> en
ripngd# sh ipv6 ripng
Codes: R - RIPng, C - connected, S - Static, O - OSPF, B - BGP
Sub-codes:
      (n) - normal, (s) - static, (d) - default, (r) - redistribute,
      (i) - interface, (a/S) - aggregated/Suppressed

   Network      Next Hop                      Via     Metric Tag Time
C(i) 2001::/64 
                  ::                          self       1    0  
C(r) 2003::/64 
                  ::                          self       1    0  
ripngd# expect R\(n\) 2002::/64.*fe80::218:31ff:fee7:a993 string existing failed.
start_teardown line:181 in /wrll-pfg-test/tools/pfg-autotest/src/testrun/000000/rip/1-1-2.tmp
case failed before teardown, there is teardown




Other Downloads


Live chat
Online