2 Gbps WAN/LAN NAT Routing on ramips MT7621 devices

I also have Unielec U7621-06 16M, which works fine with your patch. Thank you very much!

(Off-topic but I also patched mt7621_unielec_u7621-06-16m.dts to increase SPI frequency, i.e. spi-max-frequency = <50000000>; and m25p,fast-read;)

1 Like

Beeline Smartbox Flash works

[ ID][Role] Interval           Transfer     Bitrate         Retr
[  5][TX-C]   0.00-10.00  sec   993 MBytes   833 Mbits/sec   25             sender
[  5][TX-C]   0.00-10.00  sec   991 MBytes   831 Mbits/sec                  receiver
[  7][RX-C]   0.00-10.00  sec  1.07 GBytes   920 Mbits/sec    0             sender
[  7][RX-C]   0.00-10.00  sec  1.07 GBytes   918 Mbits/sec                  receiver

2 Likes

Image works on Ubiquiti EdgeRouter X.

WAN works fine.

Wasn't able to do any speed tests though. Excited to see these changes merged!

Thank you for your work.

1 Like

Hope this isn't a silly question but

You said

The ports called "wan" are muxed where possible. On a minority of devices, this is not possible.

What impact would this have on my edgerouter X?

The impact on your edgerouter x would be that the interface name is eth0 instead of wan. That's it.

Might explain why when I flashed keeping config the device reverted to factory. Next time I will edit the backup to reflect the new device name.

No, that sounds irrelevant to my patches. And there’s no new interface name. It was always eth0 for your device, nothing changed.

Tested on Unielec U7621-01, works fine with gigabit fiber WAN. Looking forward to the merge.

1 Like

anyone with a an GL.inet MT1300 Beryl to do the test?
Its on my wishlist if supported.

Is it possible to get 2Gbps on mt7621_mikrotik_routerboard-760igs.dts by disabling the SFP port and mux the wan port to gmac1?

It will work. I’ve tested that on another board. I’m currently updating the DSA documentation (mediatek,mt7530.yaml) to include information such as this.

2 Likes

@arinc9 something strange with D-Team Newifi D2. It couldn't get WAN IP by DHCP. With the regular snapshot all is ok. Do you have any ideas on this matter?

Did you keep the configuration when installing the test build? I can see the wan interface receive/transmit data so I think the issue must be something else.

Do Wireshark packet capture over SSH, it's possible that gmac1 receives the frames corrupted.

I reset the configuration on every install.

Looks like we have no corrupted frames. I can see both incoming and outgoing packets on WAN of Newifi D2 and they seems ok. And there are no any frames from Newifi D2 on the corresponding device. It's the essence of the problem. Broken gmac1 HW?

Could you completely power off the device then try again?

If I understand correctly, packet capture on the wan interface shows nothing out of the ordinary, while packet capture on a device connected to the wan port does not receive anything from the wan port, is that right?

@arinc9
Nothing has changed after the power cycle. Yeah, no any frames with Newifi D2 WAN MAC. Looks like outgoing Newifi D2 frames do not fall into the Ethernet wire.

Ok, this behaviour is expected if any of the GE2 pins (rgmii2 pins) are connected to GND or Vcc.

D-Team Newifi D2 is very similar to D-Team PandoraBox M1 which uses rgmii2 pins for LEDs and power. It's likely that some of the rgmii2 pins were left wired to unused components.

I will update the PR to remove D-Team Newifi D2 from phy muxing patch. Thanks for testing!

2 Likes

Description
WireGuard Status

The installed version of package kernel is not compatible, require 5.10.131-1-912e6507… while 5.10.127-1-2abe7262… is installed.

pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-kpp found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.131-1-912e65070c8d5fe2f65fc191f37e61f2) for kmod-crypto-lib-curve25519
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-lib-curve25519 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.131-1-912e65070c8d5fe2f65fc191f37e61f2) for kmod-udptunnel4
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-udptunnel4 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.131-1-912e65070c8d5fe2f65fc191f37e61f2) for kmod-udptunnel6
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-udptunnel6 found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.131-1-912e65070c8d5fe2f65fc191f37e61f2) for kmod-wireguard
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-wireguard found, but incompatible with the architectures configured
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-wireguard:
 * 	kernel (= 5.10.131-1-912e65070c8d5fe2f65fc191f37e61f2)
 * opkg_install_cmd: Cannot install package luci-app-wireguard.

This is as expected for custom snapshot builds.

2 Likes

How can I patch a snapshot build? I have compiled version with my own setings.