[FS#4032] Uplink ethernet ports not connecting at gigabit speeds (Ath79)

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Sat Oct 9 22:02:53 PDT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#4032 - Uplink ethernet ports not connecting at gigabit speeds (Ath79)
User who did this - Boris Gjenero (dreamlayers)

----------
After editing mii-tool (make package/net-tools/compile) and then copying staging_dir/target-mips_24kc_musl/root-ath79/usr/sbin/mii-tool to the router, I can reliably establish a real but unusable gigabit link in 21.02.0. I edited the reset code at https://github.com/ecki/net-tools/blob/master/mii-tool.c#L397 to use ar8216.c initialization:

    if (opt_reset) {
        printf("reinitializing the transceiver...\n");
        mdio_write(skfd, MII_ADVERTISE,
                   ADVERTISE_ALL | ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM);
        mdio_write(skfd, MII_CTRL1000, ADVERTISE_1000FULL);
        mdio_write(skfd, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
    }

By itself "mii-tool -R eth1" still doesn't accomplish anything, but if I do "mii-tool -F 10baseT-FD eth1" before the reset, then the reset always establishes a gigabit connection. Though it's not usable, as ethtool still claims speed is 100 and supported link modes are 100 and below. Seems that for some reason the kernel believes eth1 doesn't support gigabit. I wonder if it's because of failed phy initialization?
----------

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=4032#comment10191

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list