Hi,
I am using P1020 and SDK 1.9. It seams that the Ethernet driver doesn't detect the cable disconnection. First I start the board with the Ethernet cable not connected. once the board is up and running I connect the Ethernet cable. The Ethernet driver is able to detect the connection and the Ethernet connection works as expected (speed, auto negotiation...). If I disconnect the Ethernet cable the Ethernet driver doesn't detect that the cable is disconnect. This worked well with SDK1.5. I had this problem as soon as I migrate to SDK 1.9.
Is there any known bug with the Ethernet driver with SDK 1.9?
Is there any work around?
Thanks,
Samir Samaha
Hello Samir Samaha,
Sorry for the delay. I verified SDK 1.9 pre-built images on P1020RDB-PD, the Ethernet connection can be detect correctly, please refer to the following.
b25805@star:/home/addon_4T/tftpboot/wyp/p1020rdb$ bft map -m 'P1020RDB-PD-1_eTSEC2,lan1' -c
(Connect networking cable)
Session Log: /home/b25805/P1020RDB-PD-1-kermitlog-_Ts44t, text (0)
----------------------------------------------------
root@p1020rdb-pd:~# ethtool eth1
Settings for eth1:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x0000003f (63)
drv probe link timer ifdown ifup
Link detected: yes
root@p1020rdb-pd:~# ifconfig eth1 100.1.1.100
root@p1020rdb-pd:~# ping 100.1.1.1
PING 100.1.1.1 (100.1.1.1) 56(84) bytes of data.
64 bytes from 100.1.1.1: icmp_seq=1 ttl=64 time=0.421 ms
64 bytes from 100.1.1.1: icmp_seq=2 ttl=64 time=0.187 ms
64 bytes from 100.1.1.1: icmp_seq=3 ttl=64 time=0.204 ms
64 bytes from 100.1.1.1: icmp_seq=4 ttl=64 time=0.202 ms
64 bytes from 100.1.1.1: icmp_seq=5 ttl=64 time=0.164 ms
^C
--- 100.1.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3997ms
rtt min/avg/max/mdev = 0.164/0.235/0.421/0.095 ms
root@p1020rdb-pd:~#
b25805@star:/home/addon_4T/tftpboot/wyp/p1020rdb$
b25805@star:/home/addon_4T/tftpboot/wyp/p1020rdb$ bft map -m 'P1020RDB-PD-1_eTSEC2,lan1' -d
Unmapped: P1020RDB-PD-1_eTSEC2
Disconnect the Ethernet cable
Session Log: /home/b25805/P1020RDB-PD-1-kermitlog-z5iVS6, text (0)
----------------------------------------------------
root@p1020rdb-pd:~# ethtool eth1
Settings for eth1:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x0000003f (63)
drv probe link timer ifdown ifup
Link detected: no
root@p1020rdb-pd:~#
Please compare your Kernel configuration file and dts file with the default.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------