Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:mercusys:mr90x_v1 [2024/02/12 11:13] – external edit | toh:mercusys:mr90x_v1 [2024/11/30 21:25] – [UART method] csharper2005 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| The MERCUSYS MR90X(EU) v1 router supports 4 802.11ax streams on both 2.4GHz @40MHz and 5GHz @160MHz for a combined 6000Mbps wireless speed. It is based on the MediaTek MT7986B SoC. | The MERCUSYS MR90X(EU) v1 router supports 4 802.11ax streams on both 2.4GHz @40MHz and 5GHz @160MHz for a combined 6000Mbps wireless speed. It is based on the MediaTek MT7986B SoC. | ||
| + | |||
| + | The Chinese model X60G(AX6000) is **NOT** the same, which doesn' | ||
| /*****/ | /*****/ | ||
| Line 160: | Line 162: | ||
| 16. Login as root via SSH (IP '' | 16. Login as root via SSH (IP '' | ||
| - | 17. Upload OpenWrt '' | + | 17. Once inside OpenWrt, set (or update) env variables: |
| + | <code bash> | ||
| + | fw_setenv baudrate 115200 | ||
| + | fw_setenv bootargs " | ||
| + | fw_setenv fdtcontroladdr 5ffc0e70 | ||
| + | fw_setenv ipaddr 192.168.1.1 | ||
| + | fw_setenv loadaddr 0x46000000 | ||
| + | fw_setenv mtdids " | ||
| + | fw_setenv mtdparts " | ||
| + | fw_setenv netmask 255.255.255.0 | ||
| + | fw_setenv serverip 192.168.1.2 | ||
| + | fw_setenv stderr serial@11002000 | ||
| + | fw_setenv stdin serial@11002000 | ||
| + | fw_setenv stdout serial@11002000 | ||
| + | fw_setenv tp_boot_idx 0 | ||
| + | </ | ||
| + | |||
| + | 18. Upload OpenWrt '' | ||
| - | 18. Run sysupgrade: | + | 19. Run sysupgrade: |
| <code bash> | <code bash> | ||
| sysupgrade -n / | sysupgrade -n / | ||
| Line 198: | Line 217: | ||
| 5. Run '' | 5. Run '' | ||
| + | ==== Installation (OpenWrt U-Boot layout) ==== | ||
| + | |||
| + | 1. Download files from // | ||
| + | openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-bl31-uboot.fip | ||
| + | openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-initramfs-recovery.itb | ||
| + | openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-preloader.bin | ||
| + | openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-squashfs-sysupgrade.itb | ||
| + | |||
| + | 2. Connect network cable to the LAN1 port of the router | ||
| + | |||
| + | 3. Login as root via SSH (router IP, port '' | ||
| + | |||
| + | <code bash> | ||
| + | BusyBox v1.19.4 (2022-09-15 21:10:21 CST) built-in shell (ash) | ||
| + | Enter ' | ||
| + | |||
| + | | ||
| + | | ||
| + | MMMMMMMM | ||
| + | MMMM= MMMMMM | ||
| + | MMMM= MMMMM MMMM MM | ||
| + | MMMM= | ||
| + | MMMM= | ||
| + | MMMM= | ||
| + | MMMM= | ||
| + | MMMM= | ||
| + | MMMM$ , | ||
| + | MMMMMMM: | ||
| + | MMMMMM | ||
| + | | ||
| + | M | ||
| + | | ||
| + | For those about to rock... (Attitude Adjustment, unknown) | ||
| + | | ||
| + | admin@Akronite:/ | ||
| + | </ | ||
| + | |||
| + | 4. Run the following command: | ||
| + | |||
| + | <code bash> | ||
| + | fw_printenv | grep tp_boot_idx | ||
| + | </ | ||
| + | |||
| + | If the result is '' | ||
| + | |||
| + | 5. Open for editing ''/ | ||
| + | |||
| + | 6. Add a newline after ''# | ||
| + | <code bash> | ||
| + | telnetd -l / | ||
| + | </ | ||
| + | |||
| + | 7. Save '' | ||
| + | |||
| + | 8. Toggle '' | ||
| + | |||
| + | 9. Make sure that telnetd is running: | ||
| + | <code bash> | ||
| + | netstat -ltunp | grep 23 | ||
| + | </ | ||
| + | |||
| + | 10. Login via telnet to router IP, port '' | ||
| + | |||
| + | < | ||
| + | BusyBox v1.19.4 (2022-09-15 21:10:21 CST) built-in shell (ash) | ||
| + | Enter ' | ||
| + | |||
| + | | ||
| + | | ||
| + | MMMMMMMM | ||
| + | MMMM= MMMMMM | ||
| + | MMMM= MMMMM MMMM MM | ||
| + | MMMM= | ||
| + | MMMM= | ||
| + | MMMM= | ||
| + | MMMM= | ||
| + | MMMM= | ||
| + | MMMM$ , | ||
| + | MMMMMMM: | ||
| + | MMMMMM | ||
| + | | ||
| + | M | ||
| + | | ||
| + | For those about to rock... (Attitude Adjustment, unknown) | ||
| + | | ||
| + | root@Akronite:/# | ||
| + | </ | ||
| + | |||
| + | 11. Upload OpenWrt '' | ||
| + | | ||
| + | 12. Stock busybox doesn' | ||
| + | |||
| + | Download the '' | ||
| + | <code bash> | ||
| + | cd /tmp | ||
| + | chmod a+x busybox | ||
| + | </ | ||
| + | |||
| + | 13. Check '' | ||
| + | <code bash> | ||
| + | du -h openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-initramfs-recovery.itb | ||
| + | </ | ||
| + | |||
| + | 14. Delete old and create a new one '' | ||
| + | <code bash> | ||
| + | ubirmvol /dev/ubi0 -N kernel | ||
| + | ubimkvol /dev/ubi0 -n 1 -N kernel -s 9MiB | ||
| + | </ | ||
| + | |||
| + | 15. Write OpenWrt '' | ||
| + | <code bash> | ||
| + | ./busybox ubiupdatevol /dev/ubi0_1 / | ||
| + | </ | ||
| + | |||
| + | 16. Make backups: | ||
| + | <code bash> | ||
| + | cat /dev/mtd0 > / | ||
| + | cat /dev/mtd5 > / | ||
| + | </ | ||
| + | Copy ''/ | ||
| + | |||
| + | 17. Reboot to OpenWrt initramfs: | ||
| + | <code bash> | ||
| + | reboot | ||
| + | </ | ||
| + | |||
| + | 18. Copy OpenWrt '' | ||
| + | |||
| + | 19. Prepare UBI: | ||
| + | <code bash> | ||
| + | ubidetach -p /dev/mtd3; ubiformat /dev/mtd3 -y; ubiattach -p /dev/mtd3 | ||
| + | ubimkvol /dev/ubi0 -N fip -t static -s 1MiB | ||
| + | ubiupdatevol /dev/ubi0_0 / | ||
| + | ubimkvol /dev/ubi0 -N ubootenv -s 0x1f000 | ||
| + | ubimkvol /dev/ubi0 -N ubootenv2 -s 0x1f000 | ||
| + | </ | ||
| + | |||
| + | 20. Install '' | ||
| + | <code bash> | ||
| + | opkg update && opkg install kmod-mtd-rw | ||
| + | insmod mtd-rw i_want_a_brick=1 | ||
| + | mtd unlock boot | ||
| + | mtd unlock bl2 | ||
| + | mtd unlock factory | ||
| + | </ | ||
| + | |||
| + | 21. Prepare " | ||
| + | <code bash> | ||
| + | dd if=/ | ||
| + | dd if=/ | ||
| + | dd if=/ | ||
| + | </ | ||
| + | |||
| + | 22. Write " | ||
| + | <code bash> | ||
| + | mtd erase factory | ||
| + | mtd write / | ||
| + | </ | ||
| + | |||
| + | 23. Write preloader partition: | ||
| + | <code bash> | ||
| + | mtd erase bl2 | ||
| + | mtd write / | ||
| + | </ | ||
| + | |||
| + | 24. Write OpenWrt sysupgrade image: | ||
| + | <code bash> | ||
| + | sysupgrade -n / | ||
| + | </ | ||
| ==== Flash Layout ==== | ==== Flash Layout ==== | ||
| <code bash> | <code bash> | ||
| Line 276: | Line 464: | ||
| 4. Do what you need (restore partitions from a backup, install OpenWrt etc.) | 4. Do what you need (restore partitions from a backup, install OpenWrt etc.) | ||
| + | ===== Debricking (OpenWrt U-Boot layout) ===== | ||
| + | |||
| + | 1. Place OpenWrt '' | ||
| + | |||
| + | 2. Press " | ||
| + | |||
| + | 3. Use OpenWrt initramfs system for recovery. | ||
| + | |||
| + | ==== BL2 and FIP recovery ==== | ||
| + | |||
| + | Use '' | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| ===== Failsafe mode ===== | ===== Failsafe mode ===== | ||
| -> [[docs: | -> [[docs: | ||