Doesnt work 5 to 8 ports with Linksys EA9500?

Model|Linksys EA9500|
Architecture|ARMv7 Processor rev 0 (v7l)
Firmware Version|OpenWrt SNAPSHOT r9579-2cd28c9a08 / LuCI Master (git-19.069.61084-db98461)
Kernel Version|4.19.25

config interface 'lan'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '10.30.30.1'
option delegate '0'
option ifname 'lan1 lan2 lan3 lan4 lan5 lan6 lan7 lan8'

Kernel log 29.582332] bcm53xx 1.0:00 lan1: configuring for phy/gmii link mode
[ 29.591795] br-lan: port 1(lan1) entered blocking state
[ 29.597115] br-lan: port 1(lan1) entered disabled state
[ 29.762355] device lan1 entered promiscuous mode
[ 29.766992] device extsw entered promiscuous mode
[ 29.771706] device eth2 entered promiscuous mode
[ 29.830208] bgmac_bcma bcma0:5: BGMAC speed: 1000
[ 29.834947] bgmac_bcma bcma0:5 eth2: Link is Up - 1Gbps/Full - flow control off
[ 30.173848] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 30.412864] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
[ 31.152322] bcm53xx 1.0:00 lan2: configuring for phy/gmii link mode
[ 31.159642] br-lan: port 2(lan2) entered blocking state
[ 31.165033] br-lan: port 2(lan2) entered disabled state
[ 31.382363] device lan2 entered promiscuous mode
[ 32.812246] bcm53xx 1.0:00 lan3: configuring for phy/gmii link mode
[ 32.819063] br-lan: port 3(lan3) entered blocking state
[ 32.824337] br-lan: port 3(lan3) entered disabled state
[ 33.130134] device lan3 entered promiscuous mode
[ 33.794276] b53-srab-switch 18007000.srab lan4: configuring for phy/gmii link mode
[ 33.802456] br-lan: port 4(lan4) entered blocking state
[ 33.807701] br-lan: port 4(lan4) entered disabled state
[ 33.830177] device lan4 entered promiscuous mode
[ 34.762249] bcm53xx 1.0:00 lan5: configuring for phy/gmii link mode
[ 34.769222] br-lan: port 5(lan5) entered blocking state
[ 34.774503] br-lan: port 5(lan5) entered disabled state
[ 35.182255] device lan5 entered promiscuous mode
[ 36.780116] bcm53xx 1.0:00 lan6: configuring for phy/gmii link mode
[ 36.786967] br-lan: port 6(lan6) entered blocking state
[ 36.792261] br-lan: port 6(lan6) entered disabled state
[ 37.240119] device lan6 entered promiscuous mode
[ 38.011521] b53-srab-switch 18007000.srab lan7: configuring for phy/gmii link mode
[ 38.019630] br-lan: port 7(lan7) entered blocking state
[ 38.024932] br-lan: port 7(lan7) entered disabled state
[ 38.070133] device lan7 entered promiscuous mode
[ 38.101512] b53-srab-switch 18007000.srab lan8: configuring for phy/gmii link mode
[ 38.109635] br-lan: port 8(lan8) entered blocking state
[ 38.114908] br-lan: port 8(lan8) entered disabled state

  • What is this?
  • Where is the original config?
  • Where is your switch config?

The EA9500 does not appear on the supported devices list, that I could find. Maybe I'm missing something there @tmomas ?

It look from the DTS and commit notes that this is a dual-switch device of some sort. The DTS only looks like it only supports the first four ports

target//linux/bcm53xx/patches-4.14/033-v4.19-0003-ARM-dts-BCM5301X-Add-support-for-Linksys-EA9500.patch

target/linux/bcm53xx/patches-4.14/033-v4.19-0001-ARM-dts-BCM5301X-Make-USB-3.0-PHY-use-MDIO-PHY-drive.patch

You might want to ask on

In some Northstar devices like Linksys EA9500, secondary switch is
connected via external MDIO. The only way to access and configure the
external switch is via MDIO bus. When we enable the MDIO bus in it's
current state, the MDIO bus and any child buses fail to register because
of the register range overlap.
+       mdio-mii-mux {
+               compatible = "mdio-mux-mmioreg";
+               mdio-parent-bus = <&mdio_ext>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x1800c1c0 0x4>;
+
+               /* BIT(6) = mdc, BIT(7) = mdio */
+               mux-mask = <0xc0>;
+
+               mdio-mii@0 {
+                       /* Enable MII function */
+                       reg = <0x0>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       switch@0  {
+                               compatible = "brcm,bcm53125";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
+                               reset-names = "robo_reset";
+                               reg = <0>;
+                               dsa,member = <1 0>;
+
+                               ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       port@0 {
+                                               reg = <0>;
+                                               label = "lan1";
+                                       };
+
+                                       port@1 {
+                                               reg = <1>;
+                                               label = "lan5";
+                                       };
+
+                                       port@2 {
+                                               reg = <2>;
+                                               label = "lan2";
+                                       };
+
+                                       port@3 {
+                                               reg = <3>;
+                                               label = "lan6";
+                                       };
+
+                                       port@4 {
+                                               reg = <4>;
+                                               label = "lan3";
+                                       };
+
+                                       sw1_p8: port@8 {
+                                               reg = <8>;
+                                               ethernet = <&sw0_p0>;
+                                               label = "cpu";
+
+                                               fixed-link {
+                                                       speed = <1000>;
+                                                       full-duplex;
+                                               };
+                                       };
+                               };
+                       };
+               };
+       };
1 Like

I found this: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=a07730472c49c1f7bb56afa3eb8be23e6e87b4f1

but there is no specific image for the EA9500 available.

Looking at Build for Linksys EA9500 the support status should be at least "External image". I will create a dataentry for this device later.

2 Likes

Done, dataentry created: https://openwrt.org/toh/hwdata/linksys/linksys_ea9500_v1

However, I'm asking myself why there are no official images ready to download...

1 Like

Thanks so much, after reboot ports start work, but I have got problem with 5GHZ Wifi right now. And I wait console cable.