[FS#687] Meraki MR24: Ethernet interface not detected correctly if cable not plugged at boot time
LEDE Bugs
lede-bugs at lists.infradead.org
Sat Apr 8 23:19:42 PDT 2017
The following task has a new comment added:
FS#687 - Meraki MR24: Ethernet interface not detected correctly if cable not plugged at boot time
User who did this - Russell Senior (russell)
----------
When booted with ethernet unplugged:
root at LEDE:/# ls -al /sys/bus/platform/drivers/emac
drwxr-xr-x 2 root root 0 Apr 4 06:13 .
drwxr-xr-x 23 root root 0 Apr 4 06:13 ..
--w------- 1 root root 4096 Apr 4 06:13 bind
--w------- 1 root root 4096 Apr 4 06:13 uevent
--w------- 1 root root 4096 Apr 4 06:13 unbind
Then trying to bind:
root at LEDE:/# echo 4ef600c00.ethernet > /sys/bus/platform/drivers/emac/bind
[ 533.566010] /plb/opb/emac-rgmii at ef601500: input 0 in RGMII mode
[ 533.572086] /plb/opb/ethernet at ef600c00: reset timeout
[ 533.577159] /plb/opb/ethernet at ef600c00: can't find PHY!
ash: write error: No such device
When booted with ethernet plugged:
root at LEDE:/# ls -al /sys/bus/platform/drivers/emac
drwxr-xr-x 2 root root 0 Apr 8 23:10 .
drwxr-xr-x 23 root root 0 Apr 8 23:10 ..
lrwxrwxrwx 1 root root 0 Apr 8 23:10 4ef600c00.ethernet -> ../../../../devices/platform/plb/plb:opb/4ef600c00.ethernet
--w------- 1 root root 4096 Apr 8 23:10 bind
--w------- 1 root root 4096 Apr 8 23:10 uevent
--w------- 1 root root 4096 Apr 8 23:10 unbind
Then unbind, ls, bind with cable still plugged:
root at LEDE:/# ls -al /sys/bus/platform/drivers/emac
drwxr-xr-x 2 root root 0 Apr 8 23:10 .
drwxr-xr-x 23 root root 0 Apr 8 23:10 ..
lrwxrwxrwx 1 root root 0 Apr 8 23:10 4ef600c00.ethernet -> ../../../../devices/platform/plb/plb:opb/4ef600c00.ethernet
--w------- 1 root root 4096 Apr 8 23:10 bind
--w------- 1 root root 4096 Apr 8 23:10 uevent
--w------- 1 root root 4096 Apr 8 23:10 unbind
root at LEDE:/# echo 4ef600c00.ethernet > /sys/bus/platform/drivers/emac/unbind
root at LEDE:/# ls -al /sys/bus/platform/drivers/emac
drwxr-xr-x 2 root root 0 Apr 8 23:10 .
drwxr-xr-x 23 root root 0 Apr 8 23:10 ..
--w------- 1 root root 4096 Apr 8 23:10 bind
--w------- 1 root root 4096 Apr 8 23:10 uevent
--w------- 1 root root 4096 Apr 8 23:11 unbind
root at LEDE:/# echo 4ef600c00.ethernet > /sys/bus/platform/drivers/emac/bind
[ 124.622773] /plb/opb/emac-rgmii at ef601500: input 0 in RGMII mode
[ 124.630448] eth0: EMAC-0 /plb/opb/ethernet at ef600c00, MAC 00:01:73:01:23:41
[ 124.637355] eth0: found Atheros 8035 Gigabit Ethernet PHY (0x01)
[ 124.645524] eth0: link is down
[ 124.649110] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root at LEDE:/# [ 128.178678] eth0: link is up, 1000 FDX, pause enabled
[ 128.183831] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root at LEDE:/# ls -al /sys/bus/platform/drivers/emac
drwxr-xr-x 2 root root 0 Apr 8 23:10 .
drwxr-xr-x 23 root root 0 Apr 8 23:10 ..
lrwxrwxrwx 1 root root 0 Apr 8 23:11 4ef600c00.ethernet -> ../../../../devices/platform/plb/plb:opb/4ef600c00.ethernet
--w------- 1 root root 4096 Apr 8 23:11 bind
--w------- 1 root root 4096 Apr 8 23:10 uevent
--w------- 1 root root 4096 Apr 8 23:11 unbind
Now, remove the ethernet and repeat:
root at LEDE:/# [ 323.765251] eth0: link is down
root at LEDE:/# ls -al /sys/bus/platform/drivers/emac
drwxr-xr-x 2 root root 0 Apr 8 23:10 .
drwxr-xr-x 23 root root 0 Apr 8 23:10 ..
lrwxrwxrwx 1 root root 0 Apr 8 23:11 4ef600c00.ethernet -> ../../../../devices/platform/plb/plb:opb/4ef600c00.ethernet
--w------- 1 root root 4096 Apr 8 23:11 bind
--w------- 1 root root 4096 Apr 8 23:10 uevent
--w------- 1 root root 4096 Apr 8 23:11 unbind
root at LEDE:/# echo 4ef600c00.ethernet > /sys/bus/platform/drivers/emac/unbind
[ 339.974763] /plb/opb/ethernet at ef600c00: RX disable timeout
root at LEDE:/# ls -al /sys/bus/platform/drivers/emac
drwxr-xr-x 2 root root 0 Apr 8 23:10 .
drwxr-xr-x 23 root root 0 Apr 8 23:10 ..
--w------- 1 root root 4096 Apr 8 23:11 bind
--w------- 1 root root 4096 Apr 8 23:10 uevent
--w------- 1 root root 4096 Apr 8 23:15 unbind
root at LEDE:/# echo 4ef600c00.ethernet > /sys/bus/platform/drivers/emac/bind
[ 352.468859] /plb/opb/emac-rgmii at ef601500: input 0 in RGMII mode
[ 352.474941] /plb/opb/ethernet at ef600c00: reset timeout
[ 352.480974] /plb/opb/ethernet at ef600c00: can't find PHY!
ash: write error: No such device
root at LEDE:/# ls -al /sys/bus/platform/drivers/emac
drwxr-xr-x 2 root root 0 Apr 8 23:10 .
drwxr-xr-x 23 root root 0 Apr 8 23:10 ..
--w------- 1 root root 4096 Apr 8 23:15 bind
--w------- 1 root root 4096 Apr 8 23:10 uevent
--w------- 1 root root 4096 Apr 8 23:15 unbind
----------
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=687#comment2351
More information about the lede-bugs
mailing list