Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#3839 - Xiaomi 4A Gigabit link speed auto negotiation #8840

Closed
openwrt-bot opened this issue May 30, 2021 · 14 comments
Closed

FS#3839 - Xiaomi 4A Gigabit link speed auto negotiation #8840

openwrt-bot opened this issue May 30, 2021 · 14 comments
Labels
flyspray release/21.02 pull request/issue targeted (also) for OpenWrt 21.02 release

Comments

@openwrt-bot
Copy link

mishamosher:

  • Device problem occurs on

Xiaomi Mi Router 4A Gigabit Edition

  • Software versions of OpenWrt/LEDE release, packages, etc.

OpenWRT 21.02-rc2

  • Description

The link speed auto-negotiation is broken. I've a 1Gbps switch and a 4-lines ethernet cable (pins 1 2 3 6). It should be possible to achieve a max speed of 100Mbps full duplex. When I connect the switch to the WAN port of the router, the link speed shows up as 1Gbps full duplex (in the router).

Ethernet connectivity remains non-functional unless I set a proper speed and duplex (ex. ethtool -s wan speed 100 duplex full autoneg off).

@openwrt-bot
Copy link
Author

Skrity:

Reporting the same happening on mir3g v1 and redmi ac2100.
Possibly the same issue as in fs#3681.

At the moment fixing this in local.rc like this:
ethtool -s wan advertise 0x8

Both release candidates are affected, but latest 19.07 is not.

@openwrt-bot
Copy link
Author

bouzouste:

Reporting also the same. Tested on both rc1 and rc2 of 21.02
With some fast ethernet switches it works great, but with some others and some POE it does not.

Works great with older 19.07.

@openwrt-bot
Copy link
Author

Skrity:

a few bootlogs if they help

@openwrt-bot
Copy link
Author

bouzouste:

I just saw in source, this piece of code:

fixed-link {
speed = <1000>;
full-duplex;
pause;
};

Do you believe it has something to do with this particular issue?
/linux/ramips/dts/mt7621.dtsi

@openwrt-bot
Copy link
Author

mishamosher:

The issue still happens on RC3.

@openwrt-bot
Copy link
Author

csharper2005:

The issue still happens on 21.02.1

@openwrt-bot
Copy link
Author

csharper2005:

Other mt7621 devices are also affected:
Beeline SmartBox Giga
D-Team Newifi D2

@openwrt-bot
Copy link
Author

serj-47:

I checked on my xiaomi 4a with firmware 21.02.1 stable and on a snapshot from 02/03/2022. And still the same problem.
With a two-pair cable from the ISP, the router reports a 1Gbit connection on the wan interface.
[180840.516823] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
I slightly corrected rc.local and additionally added
sleep)
sleep 10
ethtool -s wan advertise 0x8

@aparcar aparcar added the release/21.02 pull request/issue targeted (also) for OpenWrt 21.02 release label Feb 22, 2022
@mishamosher
Copy link

Still happening in 21.02.2.

Haven't tried latest snapshot builds, but FS#3932 (#8930) reports 2022-02-20 snapshot as working for Mi 3G.

@bill888uk
Copy link

fwiw, I encountered this problem yesterday with my R4AG with 21.02.2 when it is power cycled, with WAN port connected to 100mb switches. One particular unmanaged TPlink TL-SF1008D v9.1 switch was persistently failing. Other TPlink and Netgear switches were slightly better.

I installed snapshot for 10 March 2022, and problem appears to be resolved (for above SF1008D) after reading FS#3932.

@mishamosher
Copy link

Issue solved with 22.03-rc1:

@Djfe
Copy link
Contributor

Djfe commented Feb 17, 2023

so shall we close this?

@Djfe
Copy link
Contributor

Djfe commented Feb 20, 2023

@hauke here are three issues about the same bug. It was fixed with 22.03 release candidate 1
I couldn't find out which commit fixed it, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/21.02 pull request/issue targeted (also) for OpenWrt 21.02 release
Projects
None yet
Development

No branches or pull requests

6 participants