Skip to content

Mr85x dsa2 - #131

Closed
namiltd wants to merge 1 commit into
mainfrom
MR85X_DSA2
Closed

namiltd wants to merge 1 commit into
mainfrom
MR85X_DSA2

Conversation

@namiltd

@namiltd namiltd commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Thanks for your contribution to OpenWrt!

To help keep the codebase consistent and readable,
and to help people review your contribution,
we ask you to follow the rules you find in the wiki at this link
https://openwrt.org/submitting-patches

Please remove this message before posting the pull request.

@namiltd namiltd changed the title Mr85 x dsa2 Mr85x dsa2 Jun 16, 2026
@namiltd
namiltd force-pushed the MR85X_DSA2 branch 3 times, most recently from 2dc58ca to 82c535e Compare June 17, 2026 09:53
@namiltd
namiltd force-pushed the MR85X_DSA2 branch 6 times, most recently from 7d0f1c0 to 406d40c Compare June 28, 2026 15:53
@namiltd
namiltd force-pushed the MR85X_DSA2 branch 2 times, most recently from 8100e78 to dfc8259 Compare July 1, 2026 16:58
@namiltd
namiltd force-pushed the MR85X_DSA2 branch 9 times, most recently from f6c57ab to 9c833d4 Compare July 22, 2026 20:03
This commit adds DSA support for Mercusys MR85X router.

Device specification:
 - SoC: Mediatek MT7981b, Cortex-A53, 64-bit
 - RAM: 512MB
 - Flash: SPI NAND GigaDevice GD5F1GQ5UEYIGY (128 MB)
 - Ethernet: Realtek rtl8367s + 2.5Gbe Airoha en8811h
 - Ethernet: 1x2.5Gbe (WAN 2.5Gbps), 3xGbe (LAN 1Gbps, port0, port1, port2)
 - Wireless: 2.4GHz (802.11 b/g/n/ax)
 - Wireless: 5GHz (802.11 a/n/ac/ax)
 - LEDs: 1 amber and 1 green status LEDs, 4 green gpio-controlled LEDs
   on ethernet ports
 - Buttons: 2 (reset,wps)
 - Bootloader: Main U-Boot - U-Boot 2022.07-rc3. Additionally, both UBI
   slots contain "seconduboot" (also U-Boot 2022.07-rc3)

Installation (UART):
 - Place OpenWrt initramfs-kernel image on tftp server with IP 192.168.1.2
 - Attach UART, switch on the router and interrupt the boot process by
   pressing 'Ctrl-C'.
 - Set the uboot environment for startup.
   setenv tp_boot_idx 0; saveenv
   If the bootarg is set to boot from ubi1, also change it to ubi0.
 - Load and run OpenWrt initramfs image.
   setenv serverip 192.168.1.2; setenv ipaddr 192.168.1.1; tftpboot initramfs-kernel.bin; bootm
 - Browse IP 192.168.1.1, upload the 'sysupgrade' image and do upgrade.

Recovery:
 - Press Reset button and power on the router.
 - Navigate to U-Boot recovery web server (http://192.168.1.1/) and
   upload the OEM firmware.

Stock layout:
0x000000000000-0x000000200000 : "boot"
0x000000200000-0x000000300000 : "u-boot-env"
0x000000300000-0x000003500000 : "ubi0"
0x000003500000-0x000006700000 : "ubi1"
0x000006700000-0x000006f00000 : "userconfig"
0x000006f00000-0x000007300000 : "tp_data"

ubi0/ubi1 format:
U-Boot at boot checks that all volumes are in place:
+-------------------------------+
| Volume Name: uboot   Vol ID: 0|
| Volume Name: kernel  Vol ID: 1|
| Volume Name: rootfs  Vol ID: 2|
+-------------------------------+

MAC addresses:
+---------+-------------------+-----------+
|         | MAC               | Algorithm |
+---------+-------------------+-----------+
| label   | 00:FF:xx:xx:xx:EE | label     |
| WAN     | 00:FF:xx:xx:xx:EF | label+1   |
| LAN     | 00:FF:xx:xx:xx:EE | label     |
| WLAN 2g | 00:FF:xx:xx:xx:ED | label-1   |
| WLAN 5g | 00:FF:xx:xx:xx:EC | label-2   |
+---------+-------------------+-----------+
label MAC address was found in UBI partition "tp_data", file "default-mac".
OEM wireless eeprom is also there, file "MT7981_EEPROM.bin".

Signed-off-by: Schneider Azima <[email protected]>
csharper2005 added a commit to csharper2005/openwrt that referenced this pull request Aug 4, 2026
Migrate the Mercusys MR85X network switch configuration from the legacy
swconfig architecture to the Distributed Switch Architecture (DSA) driver
framework.

This updates the device tree bindings to utilize the realtek-rtl8365mb
DSA driver for the integrated Realtek RTL8367S switch, enabling proper
native Linux bridging interface management.

Co-authored-by: Schneider Azima <[email protected]>
Link: openwrt#19445
Co-authored-by: Mieczyslaw Nalewaj <[email protected]>
Link: namiltd#131
Co-authored-by: Mikhail Zhilkin <[email protected]>
Signed-off-by: Mikhail Zhilkin <[email protected]>
@namiltd namiltd closed this Aug 4, 2026
csharper2005 added a commit to csharper2005/openwrt that referenced this pull request Aug 4, 2026
Migrate the Mercusys MR85X network switch configuration from the legacy
swconfig architecture to the Distributed Switch Architecture (DSA) driver
framework.

This updates the device tree bindings to utilize the realtek-rtl8365mb
DSA driver for the integrated Realtek RTL8367S switch, enabling proper
native Linux bridging interface management.

Co-authored-by: Schneider Azima <[email protected]>
Link: openwrt#19445
Co-authored-by: Mieczyslaw Nalewaj <[email protected]>
Link: namiltd#131
Co-authored-by: Mikhail Zhilkin <[email protected]>
Signed-off-by: Mikhail Zhilkin <[email protected]>
csharper2005 added a commit to csharper2005/openwrt that referenced this pull request Aug 5, 2026
Migrate the Mercusys MR85X network switch configuration from the legacy
swconfig architecture to the Distributed Switch Architecture (DSA) driver
framework.

This updates the device tree bindings to utilize the realtek-rtl8365mb
DSA driver for the integrated Realtek RTL8367S switch, enabling proper
native Linux bridging interface management.

Co-authored-by: Schneider Azima <[email protected]>
Link: openwrt#19445
Co-authored-by: Mieczyslaw Nalewaj <[email protected]>
Link: namiltd#131
Co-authored-by: Mikhail Zhilkin <[email protected]>
Signed-off-by: Mikhail Zhilkin <[email protected]>
csharper2005 added a commit to csharper2005/openwrt that referenced this pull request Aug 6, 2026
Migrate the Mercusys MR85X network switch configuration from the legacy
swconfig architecture to the Distributed Switch Architecture (DSA) driver
framework.

This updates the device tree bindings to utilize the realtek-rtl8365mb
DSA driver for the integrated Realtek RTL8367S switch, enabling proper
native Linux bridging interface management.

Co-authored-by: Schneider Azima <[email protected]>
Link: openwrt#19445
Co-authored-by: Mieczyslaw Nalewaj <[email protected]>
Link: namiltd#131
Co-authored-by: Mikhail Zhilkin <[email protected]>
Signed-off-by: Mikhail Zhilkin <[email protected]>
csharper2005 added a commit to csharper2005/openwrt that referenced this pull request Aug 7, 2026
Migrate the Mercusys MR85X network switch configuration from the legacy
swconfig architecture to the Distributed Switch Architecture (DSA) driver
framework.

This updates the device tree bindings to utilize the realtek-rtl8365mb
DSA driver for the integrated Realtek RTL8367S switch, enabling proper
native Linux bridging interface management.

Co-authored-by: Schneider Azima <[email protected]>
Link: openwrt#19445
Co-authored-by: Mieczyslaw Nalewaj <[email protected]>
Link: namiltd#131
Co-authored-by: Mikhail Zhilkin <[email protected]>
Signed-off-by: Mikhail Zhilkin <[email protected]>
csharper2005 added a commit to csharper2005/openwrt that referenced this pull request Aug 7, 2026
Migrate the Mercusys MR85X network switch configuration from the legacy
swconfig architecture to the Distributed Switch Architecture (DSA) driver
framework.

This updates the device tree bindings to utilize the realtek-rtl8365mb
DSA driver for the integrated Realtek RTL8367S switch, enabling proper
native Linux bridging interface management.

Co-authored-by: Schneider Azima <[email protected]>
Link: openwrt#19445
Co-authored-by: Mieczyslaw Nalewaj <[email protected]>
Link: namiltd#131
Co-authored-by: Mikhail Zhilkin <[email protected]>
Signed-off-by: Mikhail Zhilkin <[email protected]>
csharper2005 added a commit to csharper2005/openwrt that referenced this pull request Aug 7, 2026
Migrate the Mercusys MR85X network switch configuration from the legacy
swconfig architecture to the Distributed Switch Architecture (DSA) driver
framework.

This updates the device tree bindings to utilize the realtek-rtl8365mb
DSA driver for the integrated Realtek RTL8367S switch, enabling proper
native Linux bridging interface management.

Co-authored-by: Schneider Azima <[email protected]>
Link: openwrt#19445
Co-authored-by: Mieczyslaw Nalewaj <[email protected]>
Link: namiltd#131
Co-authored-by: Mikhail Zhilkin <[email protected]>
Signed-off-by: Mikhail Zhilkin <[email protected]>
@namiltd
namiltd deleted the MR85X_DSA2 branch October 18, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants