Last active
October 8, 2020 09:43
-
-
Save damex/57033b40ad3b816739d142e8cb317eef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EdgeRouter 4: | |
https://deviwiki.com/wiki/Ubiquiti_Networks_EdgeRouter_4_(ER-4) | |
Chipset: | |
https://www.marvell.com/content/dam/marvell/en/public-collateral/embedded-processors/marvell-infrastructure-processors-octeon-iii-cn7130-product-brief-2019.pdf | |
it has two SGMII from a SOC. | |
first SGMII is connected to VSC8504 and have 4 (4, 5, 6, 7) ports polulated as described in table bellow. | |
Which MII it is | Which MD | Which mdio | Mac | Physical port name | |
mdio-octeon0 octeth0 4 fc:ec:da:03:bf:17 eth3 | |
mdio-octeon0 octeth1 5 fc:ec:da:03:bf:18 eth0 | |
mdio-octeon0 octeth2 6 fc:ec:da:03:bf:19 eth1 | |
mdio-octeon0 octeth3 7 fc:ec:da:03:bf:1a eth2 | |
mdio-octeon1 - - - | |
Octeon ubnt_e300(ram)# mii device | |
MII devices: 'mdio-octeon0' 'mdio-octeon1' | |
Current device: 'mdio-octeon0' | |
Octeon ubnt_e300(ram)# mdio list | |
mdio-octeon0: | |
4 - Vitesse VSC8504 <--> octeth0 | |
5 - Vitesse VSC8504 <--> octeth1 | |
6 - Vitesse VSC8504 <--> octeth2 | |
7 - Vitesse VSC8504 <--> octeth3 | |
mdio-octeon1: | |
VSC8504 phy is compatible with either Vitesse or Microchip kernel module when patched in. | |
In later kernels there is just Microchip since it is Vitesse is superseeded by Microchip due to acquision in 2015. | |
Patching to 5.4 as Vitesse does not require external firmware but patching as Microchip does require one. | |
root@OpenWrt:/# ls -1 /sys/bus/mdio_bus/drivers/Vitesse\ VSC8504/ | |
8001180000001800:04 | |
8001180000001800:05 | |
8001180000001800:06 | |
8001180000001800:07 | |
bind | |
uevent | |
unbind | |
root@OpenWrt:/# cat /sys/bus/mdio_bus/drivers/Vitesse\ VSC8504/8001180000001800:0*/phy_interface | |
sgmii | |
sgmii | |
gmii | |
gmii | |
stock firmware same command: | |
root@er4:/home/damex# cat /sys/bus/mdio_bus/drivers/Vitesse\ VSC8504/8001180000001800:0*/phy_interface | |
sgmii | |
sgmii | |
sgmii | |
sgmii | |
Interfaces that is detected as sgmii have working network but ones that is detected as gmii is not. | |
any idea where to proceed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment