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.

AM335X Ethernet Hotplug Problem

Hi,

I found one problem in my Ethernet port. I am using a custom AM335X board. The Ethernet function work quite well. Recent, I found one problem. My kernel is version and 3.2 and tested under Arago SDK6 and SDK7. The Ethernet configuration is DHCP.

If my Ethernet cable is plugged during boot, my can get my IP address.

root@smarct335x:~# ifconfig
eth0 Link encap:Ethernet HWaddr C8:A0:30:C1:77:DB
inet addr:192.168.1.50 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:627 errors:0 dropped:185 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:77834 (76.0 KiB) TX bytes:2050 (2.0 KiB)

If I unplug my Ethernet cable, I can see 

root@smarct335x:~# [ 1978.811305] PHY: 0:00 - Link is Down

But now if I ifconfig again, the network configuration does not change at all.

root@smarct335x:~# ifconfig
eth0 Link encap:Ethernet HWaddr C8:A0:30:C1:77:DB
inet addr:192.168.1.50 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:695 errors:0 dropped:185 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:90807 (88.6 KiB) TX bytes:2276 (2.2 KiB)

When I plug Ethernet cable again, I saw the link is up again

root@smarct335x:~# [ 2092.811298] PHY: 0:00 - Link is Up - 100/Full

The network configuration stays the same

root@smarct335x:~# ifconfig
eth0 Link encap:Ethernet HWaddr C8:A0:30:C1:77:DB
inet addr:192.168.1.50 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:698 errors:0 dropped:185 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:91282 (89.1 KiB) TX bytes:2276 (2.2 KiB)

If I boot the device without Ethernet cable attached, the network configuration is as follows.

smarct335x login: root
root@smarct335x:~# ifconfig
eth0 Link encap:Ethernet HWaddr C8:A0:30:C1:77:DB
UP BROADCAST ALLMULTI 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)

After I plug the cable back, I saw the link is up

root@smarct335x:~# [   60.821306] PHY: 0:00 - Link is Up - 100/Full

The IP has not been update. Do you know how to resolve this issue?

-Eric