I would like to detect if network cable is plugged or not to A20-LIME2 eth0 port. I use standart Linux image. Debian 7 kernel 3.4.90
"ethtool eth0" command always displays yes for "link detected"
also
/sys/class/net/eth0/carrier and and operstate values does not change after cable is unplugged.
What may be the reason?
Regards,
does the green led goes off when you unplug the cable ?
Yes, the green led goes off after unplugging the cable.
it should work, I would check the board for tin drops or bridges that don't belong
I checked, but I did not see any problem.
Did you tried the ethernet status/diagonostic tool ethtool? (available as a package in Debian-based distributions). What does the link status say?
Hey,
I have pretty much the same issue. Only the kernel is detecting if the cable is plug in/out, but nothing is detected on a higher level. For example, Network-manager does not detect if a cable is plugged in, the only workaround is to reboot the system or down / up the interface which is not convenient.
Florian