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/07/04 05:50] – add a note about its similar model sold in China hizukiayaka | toh:mercusys:mr90x_v1 [2024/11/30 21:25] – [UART method] csharper2005 | ||
|---|---|---|---|
| Line 217: | 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 295: | 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: | ||