[OpenWrt-Devel] MV88E6060 switch

Nerijus Baliunas nerijus at users.sourceforge.net
Fri Sep 29 12:32:47 EDT 2017


On Fri, 8 Sep 2017 22:50:13 +0300 Sergey Ryazanov <ryazanov.s.a at gmail.com> wrote:

> >> >> Did  you  see  the  "Marvell  88E6060  PHY  driver attached" in kernel
> >> >> messages   log?  If  not then the mwswitch driver did not attached and
> >> >> you  should  fix  this  first.  And  only  then  go  to  the interface
> >> >> configuration.
> >> >
> >> > No, dmesg|grep 6060 does not show anything. How do I fix it?
> >>
> >> Try   to check, which MDIO addresses PHY core (or Ethernet MAC driver)
> >> scans to detect connected PHYs.
> >
> > I enabled #define DEBUG_MDIO 1 in ixp4xx_eth.c and got this:
> > # dmesg|grep -i MII|grep -v took
> > ...
> > [    0.976646] IXP4xx MII Bus #16: MII read [2] -> 0x141
> > [    0.976747] IXP4xx MII Bus #16: MII read [3] -> 0xC87
> > [    0.978682] IXP4xx MII Bus #24: MII read [3] -> 0x602
> 
> Looks like mvswitch driver tries to check chip here and got an
> expected value 0x060X from register 3. So on the one hand the driver
> is functioning, but on the other hand it can not detect switch IC.
> 
> Can you go to the /sys/class/mdio_bus/ and for each bus check driver
> and ID of the each detected device. E.g.:
> # cd /sys/class/mdio_bus
> # ls -l */*/driver

lrwxrwxrwx    1 root     root             0 Jul 22 21:31 ixp4xx-eth-0/ixp4xx-eth-0:01/driver -> ../../../../../bus/mdio_bus/drivers/Generic PHY
lrwxrwxrwx    1 root     root             0 Jul 22 21:31 ixp4xx-eth-0/ixp4xx-eth-0:10/driver -> ../../../../../bus/mdio_bus/drivers/Marvell 88E6060

> # ls -l */*/phy_id

-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:01/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:10/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:11/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:12/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:13/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:14/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:15/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:16/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:17/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:18/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:19/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:1a/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:1b/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:1c/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:1d/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:1e/phy_id
-r--r--r--    1 root     root          4096 Jul 22 21:32 ixp4xx-eth-0/ixp4xx-eth-0:1f/phy_id

> # cat */*/phy_id

0x00008201
0x088e6060
0x01410c87
0x01410c87
0x01410c87
0x01410c87
0x00000000
0x00000000
0x00000000
0x00000602
0x00000602
0x00000602
0x00000602
0x00000602
0x00000602
0x00000000
0x00000000

Regards,
Nerijus
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list