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

Open
openwrt-bot opened this issue May 30, 2021 · 11 comments
Open

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

openwrt-bot opened this issue May 30, 2021 · 11 comments
Labels
flyspray release/21.02

Comments

@openwrt-bot
Copy link

@openwrt-bot openwrt-bot commented May 30, 2021

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

@openwrt-bot openwrt-bot commented Jun 2, 2021

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

@openwrt-bot openwrt-bot commented Jun 2, 2021

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

@openwrt-bot openwrt-bot commented Jun 2, 2021

Skrity:

a few bootlogs if they help

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Jun 4, 2021

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

@openwrt-bot openwrt-bot commented Jul 10, 2021

mishamosher:

The issue still happens on RC3.

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Nov 23, 2021

csharper2005:

The issue still happens on 21.02.1

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Dec 22, 2021

csharper2005:

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

@openwrt-bot
Copy link
Author

@openwrt-bot openwrt-bot commented Feb 6, 2022

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 label Feb 22, 2022
@mishamosher
Copy link

@mishamosher mishamosher commented Feb 28, 2022

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

@bill888uk bill888uk commented Mar 10, 2022

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

@mishamosher mishamosher commented Apr 23, 2022

Issue solved with 22.03-rc1:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray release/21.02
Projects
None yet
Development

No branches or pull requests

4 participants