This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6548: PRU eth1 fails after unplugging eth0

Part Number: AM6548

Hello,

Software: SDK6.1

Hardware: EVM

I directly connected ICSSG0 PRU eth1 to my PC and configured it with a static ip, then connected eth0 to the switch and set eth0 DHCP, the log is as follows:

root@am65xx-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr F4:84:4C:EB:A0:32
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth1 Link encap:Ethernet HWaddr 70:FF:76:1D:4E:58
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth2 Link encap:Ethernet HWaddr 70:FF:76:1D:4E:59
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth3 Link encap:Ethernet HWaddr 70:FF:76:1D:4E:56
inet addr:192.168.100.230 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::72ff:76ff:fe1d:4e56/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:117 errors:0 dropped:13 overruns:0 frame:0
TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17098 (16.6 KiB) TX bytes:9645 (9.4 KiB)

eth4 Link encap:Ethernet HWaddr 70:FF:76:1D:4E:57
inet addr:192.168.200.5 Bcast:192.168.200.255 Mask:255.255.255.0
inet6 addr: fe80::72ff:76ff:fe1d:4e57/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:881 (881.0 B) TX bytes:9169 (8.9 KiB)

eth5 Link encap:Ethernet HWaddr 70:FF:76:1D:4C:76
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth6 Link encap:Ethernet HWaddr 70:FF:76:1D:4C:77
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:140 (140.0 B) TX bytes:140 (140.0 B)

 

root@am65xx-evm:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.100.1 0.0.0.0 UG 1024 0 0 eth3
192.168.100.0 * 255.255.255.0 U 0 0 0 eth3
192.168.100.1 * 255.255.255.255 UH 1024 0 0 eth3
192.168.200.0 * 255.255.255.0 U 0 0 0 eth4

 

root@am65xx-evm:~# ping 192.168.200.10
PING 192.168.200.10 (192.168.200.10): 56 data bytes
64 bytes from 192.168.200.10: seq=0 ttl=64 time=0.542 ms
64 bytes from 192.168.200.10: seq=1 ttl=64 time=0.237 ms
64 bytes from 192.168.200.10: seq=2 ttl=64 time=0.270 ms
64 bytes from 192.168.200.10: seq=3 ttl=64 time=0.285 ms
64 bytes from 192.168.200.10: seq=4 ttl=64 time=0.200 ms
64 bytes from 192.168.200.10: seq=5 ttl=64 time=0.296 ms
64 bytes from 192.168.200.10: seq=6 ttl=64 time=0.263 ms
64 bytes from 192.168.200.10: seq=7 ttl=64 time=0.241 ms
64 bytes from 192.168.200.10: seq=8 ttl=64 time=0.274 ms
64 bytes from 192.168.200.10: seq=9 ttl=64 time=0.265 ms

 

The static IP is 192.168.200.5, and the dhcp IP is 192.168.100.230. At this time, I can ping the IP of my PC 192.168.200.10, but after unplugging the cable of eth0, it cannot ping,the log is as follows:

root@am65xx-evm:~# ifconfig
eth0 Link encap:Ethernet HWaddr F4:84:4C:EB:A0:32
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth1 Link encap:Ethernet HWaddr 70:FF:76:1D:4E:58
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth2 Link encap:Ethernet HWaddr 70:FF:76:1D:4E:59
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth3 Link encap:Ethernet HWaddr 70:FF:76:1D:4E:56
inet6 addr: fe80::72ff:76ff:fe1d:4e56/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:560 errors:0 dropped:67 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63568 (62.0 KiB) TX bytes:13160 (12.8 KiB)

eth4 Link encap:Ethernet HWaddr 70:FF:76:1D:4E:57
inet addr:192.168.200.5 Bcast:192.168.200.255 Mask:255.255.255.0
inet6 addr: fe80::72ff:76ff:fe1d:4e57/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55 errors:0 dropped:0 overruns:0 frame:0
TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7190 (7.0 KiB) TX bytes:13388 (13.0 KiB)

eth5 Link encap:Ethernet HWaddr 70:FF:76:1D:4C:76
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth6 Link encap:Ethernet HWaddr 70:FF:76:1D:4C:77
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:140 (140.0 B) TX bytes:140 (140.0 B)

 

root@am65xx-evm:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.200.0 * 255.255.255.0 U 0 0 0 eth4