[OpenWrt-Devel] MV88E6060 switch

Sergey Ryazanov ryazanov.s.a at gmail.com
Thu Jul 20 17:36:24 EDT 2017

Hello Nerijus,

Wednesday, July 19, 2017, 1:00:43 PM, you wrote:
> 2017-07-19 04:02, Sergey Ryazanov rašė:
>>> Linksys WRT300N v2.0 has Marvell 88e6060 switch. But ixp4xx arch does not
>>> have
>>> its driver enabled (ar71xx has it). I added CONFIG_NET_DSA_MV88E6060=m,
>>> but when I modprobe mv88e6060.ko, nothing happens. It seems driver does not 
>>> hook
>>> on any hardware:
>> This happened because this driver is quite useless on their own. It
>> requires some assistance to properly detects switch IC either from
>> arch code via platform device data or via DTS.
>> Try to use OpenWRT/LEDE specific driver, which is used by ath25 and
>> ar7 platforms by enabling CONFIG_MVSWITCH_PHY option in the kernel.
> I enabled CONFIG_MVSWITCH_PHY=y. But still no ethernet. When booting:
> [    1.049060] libphy: IXP4xx MII Bus: probed
> [    1.056182] eth0: MII PHY 32 on NPE-B
> [    1.062966] eth1: MII PHY 1 on NPE-C
> [   43.178831] NPE-B: firmware functionality 0x2, revision 0x2:1
> [   43.209983] device eth0 entered promiscuous mode
> [   43.222249] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
> While on a working system as I found in Chinese forum ir should probably be:
> eth0: MII PHY 16 on NPE-B
> eth0: MII PHY 17 on NPE-B
> eth0: MII PHY 18 on NPE-B
> eth0: MII PHY 19 on NPE-B
> eth1: MII PHY 1 on NPE-C
> NPE-B: firmware functionality 0x2, revision 0x2:1
> eth0: link down
> device eth0 entered promiscuous mode
> firmware: requesting NPE-C
> NPE-C: firmware functionality 0x5, revision 0x2:1
> No received/sent packets on br-lan and eth0 before and after modprobe 
> mv88e6060.ko.

Did  you  saw  the  "Marvel 88E6060 PHY driver attached" string in the
kernel messages? If so then at least the driver detects switch chip.

This driver uses VLAN tags to determine which port the frame should be
sent from. Try to create couple of VLAN sub-interfaces on eth0 with ID
1 and 2 and work with them.

And BTW do you use OpenWRT or LEDE and which version?

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list