Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:mercusys:mr90x_v1 [2023/07/29 15:00] – [OpenWrt bootlog] csharper2005toh:mercusys:mr90x_v1 [2024/11/30 21:25] – [UART method] csharper2005
Line 4: Line 4:
 /* DO NOT CREATE NEW DEVICEPAGES VIA COPY & PASTE! */ /* DO NOT CREATE NEW DEVICEPAGES VIA COPY & PASTE! */
 /* USE https://openwrt.org/meta/create_new_device_page */ /* USE https://openwrt.org/meta/create_new_device_page */
- 
-{{page>meta:infobox:construction&noheader&nofooter&noeditbtn}} 
  
 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't have a 2.5 Gpbs PHY either.
  
 /*****/ /*****/
Line 17: Line 17:
 ===== Supported Versions ===== ===== Supported Versions =====
  
----- datatable ---- +<!-- ToH: { 
-cols    BrandModelVersionsSupported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid +  "source""json", 
-headers BrandModel, Version, Current Release, OEM Info, Forum Search, Technical Data +  "dom": "t", 
-align   c,c,c,c,c,c,c +  "paging": false
-filter  : Brand=MERCUSYS +  "rotate"true
-filter  Model=MR90X +  "shownColumns"["brand""model""version""supportedcurrentrel""oemdevicehomepageurl""forumsearch", "deviceid"]
-filter  Versions~v1 +  "filterColumns"{"brand": "^MERCUSYS$", "model""^MR90X$", "version""^v1$"} 
-----+-->
  
 /* If no unsupported functions known, comment out the following datatable or delete it. */ /* If no unsupported functions known, comment out the following datatable or delete it. */
 /* /*
----- datatable ---- +<!-- ToH: { 
-cols    Unsupported Functions_unsupporteds +  "source""json", 
-filter  : Brand=MERCUSYS +  "dom""t", 
-filter  : Model=MR90X +  "paging"false, 
-filter  : Versions~v1 +  "shownColumns"["unsupported_functions", "model", "version", "cpu", "cpumhz", "cpucores", "flashmb", "rammb", "wlanhardware", "wlan24ghz", "wlan50ghz", "ethernet100mports", "ethernet1gports", "modem", "usbports"], 
-----  +  "filterColumns": {"brand": "^MERCUSYS$", "model": "^MR90X$", "version": "^v1$"} 
-*/+-->
  
-===== Experimental Versions ===== 
  
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *  +===== Installation ===== 
-   The official Table of Hardware only lists current, stable versions of OpenWrt. +/* stable release */
-   Use this space to describe any on-going efforts to create a newer version       * +
-   of the firmware for this device. Provide links to firmware images,              * +
-   active threads on the forum, or other sources of information.                   * +
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */+
  
-//None at this time.//+<!-- ToH: { 
 +  "source": "json", 
 +  "dom": "t", 
 +  "paging": false, 
 +  "rotate": true, 
 +  "shownColumns": ["model", "version", "supportedcurrentrel", "firmwareopenwrtinstallurl", "firmwareopenwrtupgradeurl", "firmwareoemstockurl"], 
 +  "filterColumns": {"brand": "^MERCUSYS$", "model": "^MR90X$", "version": "^v1$"
 +} -->
  
-===== Hardware Highlights ===== +==== Installation ====
----- datatable ---- +
-cols    : Model, Versions, CPU, CPU MHz, CPU Cores_numcores, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, WLAN 2.4GHz, WLAN 5.0GHz, Ethernet 100M ports_, Ethernet Gbit ports_, Modem, USB ports_ +
-header  : Model, Version,SoC,CPU MHz,CPU Cores,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Gbit ports,Modem,USB +
-align   : c,c,c,c,c,c,c,c,c,c,c,c,+
-filter  : Brand=MERCUSYS +
-filter  : Model=MR90X +
-filter  : Versions~v1 +
-----+
  
 +1. Connect network cable to the LAN1 port of the router 
  
-===== Installation ===== +2. Login as root via SSH (router IPport ''20001''password your web interface password)
-/* stable release */ +
-/* uncomment once stable release is available +
----- datatable ---- +
-cols    : ModelVersionsSupported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url +
-headers : Model, Version, Current Release, Firmware OpenWrt Install, Firmware OpenWrt Upgrade, Firmware OEM Stock +
-align   : c,c,c +
-filter  : Brand=MERCUSYS +
-filter  : Model=MR90X +
-filter  : Versions~v1 +
----- +
-*/+
  
 +<code bash>
 +BusyBox v1.19.4 (2022-09-15 21:10:21 CST) built-in shell (ash)
 +Enter 'help' for a list of built-in commands.
  
-/* snapshot */ +     MM           NM                    MMMMMMM          M       M 
-/* delete once stable release is available */ +   $MMMMM        MMMMM                MMMMMMMMMMM      MMM     MMM 
----- datatable ---- +  MMMMMMMM     MM MMMMM.              MMMMM:MMMMMM:   MMMM   MMMMM 
-cols    : Model, Versions, Supported Current Rel, Firmware OpenWrt snapshot Install URL_url, Firmware OpenWrt snapshot Upgrade URL_url, Firmware OEM Stock URL_url +MMMM= MMMMMM  MMM   MMMM       MMMMM   MMMM  MMMMMM   MMMM  MMMMM' 
-headers : Model, Version, Current Release, Firmware OpenWrt snapshot Install, Firmware OpenWrt snapshot Upgrade, Firmware OEM Stock +MMMM=  MMMMM MMMM    MM       MMMMM    MMMM    MMMM   MMMMNMMMMM 
-align   : c,c,c +MMMM=   MMMM  MMMMM          MMMMM     MMMM    MMMM   MMMMMMMM 
-filter  : Brand=MERCUSYS +MMMM=   MMMM   MMMMMM       MMMMM      MMMM    MMMM   MMMMMMMMM 
-filter  : Model=MR90X +MMMM=   MMMM     MMMMM   NMMMMMMMM   MMMM    MMMM   MMMMMMMMMMM 
-filter  : Versions~v1 +MMMM=   MMMM      MMMMMM   MMMMMMMM    MMMM    MMMM   MMMM  MMMMMM 
-----+MMMM  MMMM   MM    MMMM    MMMM      MMMM    MMMM   MMMM    MMMM 
 +MMMM$ ,MMMMM  MMMMM  MMMM    MMM       MMMM   MMMMM   MMMM    MMMM 
 +  MMMMMMM     MMMMMMM             MMMMMMMMMMMM  MMMMMMM MMMMMMM 
 +    MMMMMM       MMMMN               MMMMMMMMM      MMMM    MMMM 
 +     MMMM          M                    MMMMMMM        M       M 
 +       M 
 + --------------------------------------------------------------- 
 +   For those about to rock... (Attitude Adjustment, unknown) 
 + --------------------------------------------------------------- 
 +admin@Akronite:/root$ 
 +</code>
  
 +3. Run the following command: 
  
--[[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]]+<code bash> 
 +fw_printenv grep tp_boot_idx 
 +</code>
  
-FIXME Please add the installation procedure here.+If the result is ''tp_boot_idx=1'' then install MERCUSYS stock firmware using web interface and start from the p.2. Otherwise, go to the next step.
  
 +4. Open for editing ''/etc/hotplug.d/iface/65-iptv'' (e.g., using WinSCP and SSH settings from the p.2)
 +
 +5.  Add a newline after ''#!/bin/sh'':
 +<code bash>
 +telnetd -l /bin/login.sh
 +</code>
 +
 +6.  Save ''65-iptv'' file
 +
 +7.  Toggle ''IPTV/VLAN Enable'' checkbox in the router web interface and save
 +
 +8.  Make sure that telnetd is running:
 +<code bash>
 +netstat -ltunp | grep 23
 +</code>
 +
 +9.  Login via telnet to router IP, port ''23'' (no username and password are required)
 +
 +<code>
 +BusyBox v1.19.4 (2022-09-15 21:10:21 CST) built-in shell (ash)
 +Enter 'help' for a list of built-in commands.
 +
 +     MM           NM                    MMMMMMM          M       M
 +   $MMMMM        MMMMM                MMMMMMMMMMM      MMM     MMM
 +  MMMMMMMM     MM MMMMM.              MMMMM:MMMMMM:   MMMM   MMMMM
 +MMMM= MMMMMM  MMM   MMMM       MMMMM   MMMM  MMMMMM   MMMM  MMMMM'
 +MMMM=  MMMMM MMMM    MM       MMMMM    MMMM    MMMM   MMMMNMMMMM
 +MMMM=   MMMM  MMMMM          MMMMM     MMMM    MMMM   MMMMMMMM
 +MMMM=   MMMM   MMMMMM       MMMMM      MMMM    MMMM   MMMMMMMMM
 +MMMM=   MMMM     MMMMM,    NMMMMMMMM   MMMM    MMMM   MMMMMMMMMMM
 +MMMM=   MMMM      MMMMMM   MMMMMMMM    MMMM    MMMM   MMMM  MMMMMM
 +MMMM=   MMMM   MM    MMMM    MMMM      MMMM    MMMM   MMMM    MMMM
 +MMMM$ ,MMMMM  MMMMM  MMMM    MMM       MMMM   MMMMM   MMMM    MMMM
 +  MMMMMMM:      MMMMMMM             MMMMMMMMMMMM  MMMMMMM MMMMMMM
 +    MMMMMM       MMMMN               MMMMMMMMM      MMMM    MMMM
 +     MMMM          M                    MMMMMMM        M       M
 +       M
 + ---------------------------------------------------------------
 +   For those about to rock... (Attitude Adjustment, unknown)
 + ---------------------------------------------------------------
 +root@Akronite:/#
 +</code>
 +
 +10.  Upload OpenWrt ''initramfs-kernel.bin'' to the ''/tmp'' folder of the router (e.g., using WinSCP and SSH settings from the p.2, or with ''cat initramfs-kernel.bin | ssh -p 20001 root@YOUR_ROUTER_IP "cat > /tmp/initramfs-kernel.bin"'' -- can't simply ''scp'' the file because there's no SFTP on the router)
 +    
 +11.  Stock busybox doesn't contain ''ubiupdatevol'' command. Hence, we need to download and upload the full version of busybox to the router. For example, from ArchLinux - https://archlinuxarm.org/packages/aarch64/busybox. Dowload the pkg.tar.xz file, unpack it with ''tar xvf busybox-1.36.1-1-aarch64.pkg.tar.xz'', then upload ''usr/bin/busybox'' to the ''/tmp'' dir of the router and run in the telnet shell:
 +<code bash>
 +cd /tmp
 +chmod a+x busybox
 +</code>
 +
 +12. Check ''initramfs-kernel.bin'' size:
 +<code bash>
 +du -h initramfs-kernel.bin
 +</code>
 +
 +13. Delete old and create a new one ''kernel'' volume with appropriate size (greater than ''initramfs-kernel.bin'' size):
 +<code bash>
 +ubirmvol /dev/ubi0 -N kernel
 +ubimkvol /dev/ubi0 -n 1 -N kernel -s 9MiB
 +</code>
 +
 +14. Write OpenWrt ''initramfs-kernel.bin'' to the flash:
 +<code bash>
 +./busybox ubiupdatevol /dev/ubi0_1 /tmp/initramfs-kernel.bin
 +</code>
 +
 +15. Reboot to OpenWrt initramfs:
 +<code bash>
 +reboot
 +</code>
 +
 +16. Login as root via SSH (IP ''192.168.1.1'', port ''22'')
 +
 +17. Once inside OpenWrt, set (or update) env variables:
 +<code bash>
 +fw_setenv baudrate 115200
 +fw_setenv bootargs "ubi.mtd=ubi0 console=ttyS0,115200n1 loglevel=8 earlycon=uart8250,mmio32,0x11002000 init=/etc/preinit"
 +fw_setenv fdtcontroladdr 5ffc0e70
 +fw_setenv ipaddr 192.168.1.1
 +fw_setenv loadaddr 0x46000000
 +fw_setenv mtdids "spi-nand0=spi-nand0"
 +fw_setenv mtdparts "spi-nand0:2M(boot),1M(u-boot-env),50M(ubi0),50M(ubi1),8M(userconfig),4M(tp_data)"
 +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
 +</code>
 +
 +18. Upload OpenWrt ''sysupgrade.bin'' image to the ''/tmp'' dir of the router
 +
 +19. Run sysupgrade:
 +<code bash>
 +sysupgrade -n /tmp/sysupgrade.bin
 +</code>
 +
 +==== Installation (using serial console) ====
 +
 +1. Place OpenWrt initramfs image on tftp server with IP ''192.168.1.2''
 +
 +2. Attach [[https://openwrt.org/toh/mercusys/mr90x_v1#serial|UART]], switch on the router and interrupt the boot process by pressing ''Ctrl-C''
 +
 +3. Load and run OpenWrt initramfs image:
 +<code bash>
 +tftpboot initramfs-kernel.bin
 +bootm
 +</code>
 +
 +4. Once inside OpenWrt, set (or update) env variables:
 +<code bash>
 +fw_setenv baudrate 115200
 +fw_setenv bootargs "ubi.mtd=ubi0 console=ttyS0,115200n1 loglevel=8 earlycon=uart8250,mmio32,0x11002000 init=/etc/preinit"
 +fw_setenv fdtcontroladdr 5ffc0e70
 +fw_setenv ipaddr 192.168.1.1
 +fw_setenv loadaddr 0x46000000
 +fw_setenv mtdids "spi-nand0=spi-nand0"
 +fw_setenv mtdparts "spi-nand0:2M(boot),1M(u-boot-env),50M(ubi0),50M(ubi1),8M(userconfig),4M(tp_data)"
 +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
 +</code>
 +      
 +5. Run ''sysupgrade -n'' with the sysupgrade OpenWrt image
 +
 +==== Installation (OpenWrt U-Boot layout) ====
 +
 +1. Download files from //https://downloads.openwrt.org/ -> **Choose release you need** -> targets -> mediatek -> filogic://
 +  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 ''20001'', password - your web interface password)
 +
 +<code bash>
 +BusyBox v1.19.4 (2022-09-15 21:10:21 CST) built-in shell (ash)
 +Enter 'help' for a list of built-in commands.
 +
 +     MM           NM                    MMMMMMM          M       M
 +   $MMMMM        MMMMM                MMMMMMMMMMM      MMM     MMM
 +  MMMMMMMM     MM MMMMM.              MMMMM:MMMMMM:   MMMM   MMMMM
 +MMMM= MMMMMM  MMM   MMMM       MMMMM   MMMM  MMMMMM   MMMM  MMMMM'
 +MMMM=  MMMMM MMMM    MM       MMMMM    MMMM    MMMM   MMMMNMMMMM
 +MMMM=   MMMM  MMMMM          MMMMM     MMMM    MMMM   MMMMMMMM
 +MMMM=   MMMM   MMMMMM       MMMMM      MMMM    MMMM   MMMMMMMMM
 +MMMM=   MMMM     MMMMM,    NMMMMMMMM   MMMM    MMMM   MMMMMMMMMMM
 +MMMM=   MMMM      MMMMMM   MMMMMMMM    MMMM    MMMM   MMMM  MMMMMM
 +MMMM=   MMMM   MM    MMMM    MMMM      MMMM    MMMM   MMMM    MMMM
 +MMMM$ ,MMMMM  MMMMM  MMMM    MMM       MMMM   MMMMM   MMMM    MMMM
 +  MMMMMMM:      MMMMMMM             MMMMMMMMMMMM  MMMMMMM MMMMMMM
 +    MMMMMM       MMMMN               MMMMMMMMM      MMMM    MMMM
 +     MMMM          M                    MMMMMMM        M       M
 +       M
 + ---------------------------------------------------------------
 +   For those about to rock... (Attitude Adjustment, unknown)
 + ---------------------------------------------------------------
 +admin@Akronite:/root$
 +</code>
 +
 +4. Run the following command: 
 +
 +<code bash>
 +fw_printenv | grep tp_boot_idx
 +</code>
 +
 +If the result is ''tp_boot_idx=1'' then install MERCUSYS stock firmware using web interface and start from the p.2. Otherwise, go to the next step.
 +
 +5. Open for editing ''/etc/hotplug.d/iface/65-iptv'' (e.g., using WinSCP and SSH settings from the p.2)
 +
 +6.  Add a newline after ''#!/bin/sh'':
 +<code bash>
 +telnetd -l /bin/login.sh
 +</code>
 +
 +7.  Save ''65-iptv'' file
 +
 +8.  Toggle ''IPTV/VLAN Enable'' checkbox in the router web interface and save
 +
 +9.  Make sure that telnetd is running:
 +<code bash>
 +netstat -ltunp | grep 23
 +</code>
 +
 +10.  Login via telnet to router IP, port ''23'' (no username and password are required)
 +
 +<code>
 +BusyBox v1.19.4 (2022-09-15 21:10:21 CST) built-in shell (ash)
 +Enter 'help' for a list of built-in commands.
 +
 +     MM           NM                    MMMMMMM          M       M
 +   $MMMMM        MMMMM                MMMMMMMMMMM      MMM     MMM
 +  MMMMMMMM     MM MMMMM.              MMMMM:MMMMMM:   MMMM   MMMMM
 +MMMM= MMMMMM  MMM   MMMM       MMMMM   MMMM  MMMMMM   MMMM  MMMMM'
 +MMMM=  MMMMM MMMM    MM       MMMMM    MMMM    MMMM   MMMMNMMMMM
 +MMMM=   MMMM  MMMMM          MMMMM     MMMM    MMMM   MMMMMMMM
 +MMMM=   MMMM   MMMMMM       MMMMM      MMMM    MMMM   MMMMMMMMM
 +MMMM=   MMMM     MMMMM,    NMMMMMMMM   MMMM    MMMM   MMMMMMMMMMM
 +MMMM=   MMMM      MMMMMM   MMMMMMMM    MMMM    MMMM   MMMM  MMMMMM
 +MMMM=   MMMM   MM    MMMM    MMMM      MMMM    MMMM   MMMM    MMMM
 +MMMM$ ,MMMMM  MMMMM  MMMM    MMM       MMMM   MMMMM   MMMM    MMMM
 +  MMMMMMM:      MMMMMMM             MMMMMMMMMMMM  MMMMMMM MMMMMMM
 +    MMMMMM       MMMMN               MMMMMMMMM      MMMM    MMMM
 +     MMMM          M                    MMMMMMM        M       M
 +       M
 + ---------------------------------------------------------------
 +   For those about to rock... (Attitude Adjustment, unknown)
 + ---------------------------------------------------------------
 +root@Akronite:/#
 +</code>
 +
 +11.  Upload OpenWrt ''openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-initramfs-recovery.itb'' to the ''/tmp'' folder of the router (e.g., using WinSCP and SSH settings from the p.3, or with ''cat openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-initramfs-recovery.itb | ssh -p 20001 root@YOUR_ROUTER_IP "cat > /tmp/openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-initramfs-recovery.itb"'' -- can't simply ''scp'' the file because there's no SFTP on the router)
 +    
 +12.  Stock busybox doesn't contain ''ubiupdatevol'' command. Hence, we need to download and upload the full version of busybox to the router. For example, from ArchLinux - https://archlinuxarm.org/packages/aarch64/busybox. 
 +
 +Download the ''pkg.tar.xz'' file, unpack it with ''tar xvf busybox-1.36.1-1-aarch64.pkg.tar.xz'', then upload ''usr/bin/busybox'' to the ''/tmp'' dir of the router and run in the telnet shell:
 +<code bash>
 +cd /tmp
 +chmod a+x busybox
 +</code>
 +
 +13. Check ''initramfs-kernel.bin'' size:
 +<code bash>
 +du -h openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-initramfs-recovery.itb
 +</code>
 +
 +14. Delete old and create a new one ''kernel'' volume with appropriate size (greater than ''initramfs-kernel.bin'' size):
 +<code bash>
 +ubirmvol /dev/ubi0 -N kernel
 +ubimkvol /dev/ubi0 -n 1 -N kernel -s 9MiB
 +</code>
 +
 +15. Write OpenWrt ''initramfs-kernel.bin'' to the flash:
 +<code bash>
 +./busybox ubiupdatevol /dev/ubi0_1 /tmp/openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-initramfs-recovery.itb
 +</code>
 +
 +16. Make backups:
 +<code bash>
 +cat /dev/mtd0 > /tmp/boot.bin
 +cat /dev/mtd5 > /tmp/tp_data.bin
 +</code>
 +Copy ''/tp_data dir'' content, ''/tmp/boot.bin'' and ''/tmp/tp_data.bin'' and to your PC using scp. You can also backup the remaining partititons. Copy backups to a safe place, they are required for the next steps and stock firmware recovery.
 +
 +17. Reboot to OpenWrt initramfs:
 +<code bash>
 +reboot
 +</code>
 +
 +18. Copy OpenWrt ''openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-bl31-uboot.fip'', ''openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-preloader.bin'', ''openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-squashfs-sysupgrade.itb'' and ''MT7986_EEPROM.bin'', ''default-mac'' (from ''/tp_data'' backup) to the ''/tmp'' folder of the router using scp.
 +
 +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 /tmp/openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-bl31-uboot.fip
 +ubimkvol /dev/ubi0 -N ubootenv -s 0x1f000
 +ubimkvol /dev/ubi0 -N ubootenv2 -s 0x1f000
 +</code>
 +
 +20.  Install ''kmod-mtd-rw'' and unlock partitions:
 +<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
 +</code>
 +
 +21. Prepare "factory" partition:
 +<code bash>
 +dd if=/dev/zero bs=$((0x8000)) count=1 | tr '\000' '\377' > /tmp/factory.bin
 +dd if=/tmp/MT7986_EEPROM.bin of=/tmp/factory.bin conv=notrunc
 +dd if=/tmp/default-mac >> /tmp/factory.bin
 +</code>
 +
 +22. Write "factory" partition:
 +<code bash>
 +mtd erase factory
 +mtd write /tmp/factory.bin factory
 +</code>
 +
 +23. Write preloader partition:
 +<code bash>
 +mtd erase bl2
 +mtd write /tmp/openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-preloader.bin bl2
 +</code>
 +
 +24. Write OpenWrt sysupgrade image:
 +<code bash>
 +sysupgrade -n /tmp/openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-squashfs-sysupgrade.itb
 +</code>
 ==== Flash Layout ==== ==== Flash Layout ====
 <code bash> <code bash>
Line 113: Line 411:
 U-Boot 2022.01-rc4 (Sep 15 2022 - 20:55:22 +0800) U-Boot 2022.01-rc4 (Sep 15 2022 - 20:55:22 +0800)
 </code> </code>
 +
 +MAC address is stored in UBI partition ''tp_data'', file ''default-mac''. OEM wireless eeprom is also there (file ''MT7986_EEPROM.bin'').
 +
 ==== OEM easy installation ==== ==== OEM easy installation ====
  
Line 121: Line 422:
 ===== Upgrading OpenWrt ===== ===== Upgrading OpenWrt =====
 ->  [[docs:guide-user:installation:generic.sysupgrade]] ->  [[docs:guide-user:installation:generic.sysupgrade]]
- 
-<WRAP BOX> 
- 
-FIXME These are generic instructions. Update with your router's specifics. 
  
 ==== LuCI Web Upgrade Process ==== ==== LuCI Web Upgrade Process ====
  
-  * Browse to ''<nowiki>http://192.168.1.1/cgi-bin/luci/mini/system/upgrade/</nowiki>'' LuCI Upgrade URL+  * Browse to ''<nowiki>http://192.168.1.1/cgi-bin/luci/admin/system/flash</nowiki>'' LuCI Upgrade URL
   * Upload image file for sysupgrade to LuCI   * Upload image file for sysupgrade to LuCI
   * Wait for reboot   * Wait for reboot
Line 135: Line 432:
  
 If you don't have a GUI (LuCI) available, you can alternatively upgrade via the command line. If you don't have a GUI (LuCI) available, you can alternatively upgrade via the command line.
-There are two command line methods for upgrading: +//Note: It is important that you put the firmware image into the ramdisk (''/tmp'') before you start flashing.//
- +
-  * ''sysupgrade'' +
-  * ''mtd'' +
- +
-Note: It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.+
  
 === sysupgrade === === sysupgrade ===
Line 148: Line 440:
 <code> <code>
 cd /tmp cd /tmp
-wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc +wget http://downloads.openwrt.org/.... 
-sysupgrade /tmp/xxx.abc+sysupgrade /tmp/sysupgrade.bin
 </code> </code>
  
-=== mtd ===+===== Debricking ===== 
 +-> [[docs:guide-user:troubleshooting:generic.debrick]]
  
-If ''sysupgrade'' does not support this router, use ''mtd''.+1Press Reset button and power on the router
  
-  * Login as root via SSH on 192.168.1.1, then enter the following commands:+2. Navigate to U-Boot recovery web server (http://192.168.1.1/) and upload the OEM firmware
  
-<code> +==== UART method  ==== 
-cd /tmp +1Place OpenWrt initramfs image on tftp server with IP ''192.168.1.2'' 
-wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc + 
-mtd write /tmp/xxx.abc linux && reboot+2Attach UART, switch on the router and interrupt the boot process by pressing ''Ctrl-C'' 
 + 
 +3. Load and run OpenWrt initramfs image: 
 +<code bash> 
 +tftpboot initramfs-kernel.bin 
 +bootm
 </code> </code>
  
-</WRAP>+4. Do what you need (restore partitions from a backup, install OpenWrt etc.)
  
-===== Debricking ===== +===== Debricking (OpenWrt U-Boot layout) ===== 
--> [[docs:guide-user:troubleshooting:generic.debrick]]+ 
 +1. Place OpenWrt ''openwrt-mediatek-filogic-mercusys_mr90x-v1-ubi-initramfs-recovery.itb'' image on the tftp server (IP''192.168.1.254''). 
 + 
 +2. Press "reset" button and power on the router. After ~10 sec release the button. 
 + 
 +3. Use OpenWrt initramfs system for recovery. 
 + 
 +==== BL2 and FIP recovery ==== 
 + 
 +Use ''mtk_uartboot'' and UART connetion if BL2 or FIP in UBI is destroyed: 
 + 
 +https://github.com/981213/mtk_uartboot
  
 +https://openwrt.org/toh/mercusys/mr90x_v1#serial
 ===== Failsafe mode ===== ===== Failsafe mode =====
 -> [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]] -> [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]]
Line 177: Line 487:
  
 ===== Specific Configuration ===== ===== Specific Configuration =====
- 
-<WRAP BOX> 
-FIXME Please fill in real values for this device, then remove the EXAMPLEs 
  
 ==== Network interfaces ==== ==== Network interfaces ====
 +
 The default network configuration is: The default network configuration is:
-^ Interface Name   ^ Description                  ^ Default configuration    ^ 
-| br-lan           | EXAMPLE LAN & WiFi           | EXAMPLE 192.168.1.1/24   | 
-| vlan0 (eth0.0)   | EXAMPLE LAN ports (1 to 4)   | EXAMPLE None             | 
-| vlan1 (eth0.1)   | EXAMPLE WAN port             | EXAMPLE DHCP             | 
-| wl0              | EXAMPLE WiFi                 | EXAMPLE Disabled         | 
  
-</WRAP>+^ Interface Name   ^ Description   ^ Default configuration ^ 
 +| br-lan           | LAN & WiFi    | 192.168.1.1/24        | 
 +| wan              | WAN port      | DHCP                  | 
  
 ==== Switch Ports (for VLANs) ==== ==== Switch Ports (for VLANs) ====
-<WRAP BOX> 
-FIXME Please fill in real values for this device, then remove the EXAMPLEs 
  
-Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit, 5 is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on. +^ Port            ^ Switch port ^ 
-^ Port             ^ Switch port   +| WAN/LAN 2.5Gbps wan         
-Internet (WAN)   EXAMPLE 4     +WAN/LAN 1Gbps   lan0        
-| LAN 1            EXAMPLE 3     +LAN1            lan1        
-LAN 2            EXAMPLE 2     +LAN2            lan2        
-LAN 3            EXAMPLE 1     +
-| LAN 4            | EXAMPLE 0     |+
  
-</WRAP> 
  
 ==== Buttons ==== ==== Buttons ====
 -> [[docs:guide-user:hardware:hardware.button]] on howto use and configure the hardware button(s). -> [[docs:guide-user:hardware:hardware.button]] on howto use and configure the hardware button(s).
 Here, we merely name the buttons, so we can use them in the above Howto. Here, we merely name the buttons, so we can use them in the above Howto.
- 
-<WRAP BOX> 
-FIXME Please fill in real values for this device, then remove the EXAMPLEs 
  
 The MERCUSYS MR90X has the following buttons: The MERCUSYS MR90X has the following buttons:
  
-^ BUTTON                       ^ Event   ^ +^ BUTTON               ^ Event   ^ 
-EXAMPLE Reset                |  reset  +| Reset                |  reset  |
-| EXAMPLE Secure Easy Setup    |   ses   | +
-| EXAMPLE No buttons at all.      -    |+
  
-</WRAP> 
  
 ===== Hardware ===== ===== Hardware =====
 ==== Info ==== ==== Info ====
-<WRAP BOX> 
-FIXME 
-  - This table is automatically generated, **once the correct filters for Brand and Model are set.** 
-  - If you see "Nothing." instead of a table, please **edit this section and adjust the filters with the proper Brand and Model.** Just try, it's easy. 
-  - If you still don't see a table here, or a table filled with '¿': [[toh:start|Is there already a Techdata page available]] for MERCUSYS MR90X v1? If not: [[meta:create_new_dataentry_page|Create one]]. 
-  - If you see a table with the desired device data, everything is OK and you can delete this text and the ''<nowiki><WRAP></nowiki>'' that encloses it. 
-  - If it still doesn't work: Don't panic, calm down, take a deep breath and [[:contact|contact a wiki admin]] (tmomas) for help. 
-</WRAP> 
  
----- datatemplatelist dttpllist ---- +<!-- ToH: { 
-templatemeta:template_datatemplatelist +  "source""json", 
-cols    BrandModelVersionsDevice TypeAvailabilitySupported Since Commit_gitSupported since RelSupported current RelUnsupportedBootloaderCPUTargetCPU MHzFlash MBsRAM MBSwitchEthernet 100M ports_Ethernet Gbit ports_Comments network ports_ModemVLANWLAN 2.4GHzWLAN 5.0GHzWLAN HardwaresWLAN Comments_Detachable Antennas_USB ports_SATA ports_Comments USB SATA ports_SerialJTAGLED countButton countPower supplyDevice Techdata_pageidForum topic URL_urlwikidevi URL_urlOEM Device Homepage URL_urlFirmware OEM Stock URL_urlFirmware OpenWrt Install URL_urlFirmware OpenWrt Upgrade URL_urlComments_ +  "dom""t", 
-filter  : Brand=MERCUSYS +  "paging"false, 
-filter  Model=MR90X +  "rotate": true, 
-filter  Versions=v1 +  "shownColumns": ["brand""model""version""devicetype""availability""supportedsincecommit""supportedsincerel""supportedcurrentrel""unsupported_functions""bootloader""cpu""target""cpumhz""flashmb""rammb""switch""ethernet100mports""ethernet1gports""commentsnetworkports""modem""vlan""wlan24ghz""wlan50ghz""wlanhardware""wlancomments""detachableantennas""usbports""sataports""commentsusbsataports""serial""jtag""ledcount""buttoncount""powersupply""deviceid""owrt_forum_topic_url""wikideviurl""oemdevicehomepageurl""firmwareoemstockurl", "firmwareopenwrtinstallurl", "firmwareopenwrtupgradeurl", "comments"]
-----+  "filterColumns"{"brand": "^MERCUSYS$", "model""^MR90X$", "version""^v1$"} 
 +-->
  
 ==== Photos ==== ==== Photos ====
Line 246: Line 535:
 /* Thanks, your wiki administration - Oct. 2015 */ /* Thanks, your wiki administration - Oct. 2015 */
  
 +/*
 //Front://\\ //Front://\\
 **Insert photo of front of the casing** **Insert photo of front of the casing**
Line 254: Line 544:
 //Backside label://\\ //Backside label://\\
 **Insert photo of backside label** **Insert photo of backside label**
 +*/
  
 ==== Opening the case ==== ==== Opening the case ====
  
-**Note:** This will void your warranty!+**Note:** This may void your warranty!
  
-<WRAP BOX> +Unscrew the crews. There are also clips around the edge of the case you will need to prize open, usingfor examplea plastic cardBe carefulCase latches are very tight
-FIXME //Describe what needs to be done to open the devicee.g. remove rubber feetadhesive labels, screws, ...// +
-  * To remove the cover and open the device, do a/b/c +
-</WRAP>+
  
 //Main PCB://\\ //Main PCB://\\
 +
 +/*
 **Insert photo of PCB** **Insert photo of PCB**
 +*/
 +
  
 ==== Serial ==== ==== Serial ====
Line 274: Line 566:
 {{media:mercusys:mr90x-v1_uart.jpeg?400|MERCUSYS MR90X v1 UART}} {{media:mercusys:mr90x-v1_uart.jpeg?400|MERCUSYS MR90X v1 UART}}
  
-The R3 (TX line) and R6 (RX line) are absent on the PCB. You should solder them or solder the jumpers.+The R3 and R6 are absent on the PCB. You should solder them or solder the jumpers.
  
 <code bash> <code bash>
                             V                             V
 +-------+-------+-------+-------+ +-------+-------+-------+-------+
-| +3.3V |  GND  |  TX    RX   |+| +3.3V |  GND  |             |
 +---+---+-------+-------+-------+ +---+---+-------+-------+-------+
     |     |
Line 285: Line 577:
 </code> </code>
  
-^ Serial connection parameters\\ for MERCUSYS MR90X v1 | EXAMPLE 115200, 8N1, 3.3V |+^ Serial connection parameters\\ for MERCUSYS MR90X v1 | 115200, 8N1, 3.3V |
  
 ==== JTAG ==== ==== JTAG ====
 +
 +None so far.
 +
 -> [[docs:techref:hardware:port.jtag]] general information about the JTAG port, JTAG cable, etc. -> [[docs:techref:hardware:port.jtag]] general information about the JTAG port, JTAG cable, etc.
  
Line 295: Line 590:
 */ */
 ===== Bootloader mods ===== ===== Bootloader mods =====
 +
 +None so far.
 +
 -> [[docs:techref:bootloader]] -> [[docs:techref:bootloader]]
  
Line 2167: Line 2465:
  
 ===== Notes ===== ===== Notes =====
 +
 +None so far.
 +
 +/*
 //Space for additional notes, links to forum threads or other resources.// //Space for additional notes, links to forum threads or other resources.//
  
   * ...   * ...
 +*/
 ===== Tags ===== ===== Tags =====
-<WRAP BOX> 
-FIXME //Add tags below, then remove this fixme.// 
-</WRAP> 
  
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>EXAMPLETAG}}+{{tag>mediatek MT7986 armv8 128NAND SPI-NAND 512RAM 4Port 2.5GigabitEthernet GigabitEthernet 8Ant NonDetachableAntenna 0usb 4core 4thread 2wnic 4x4 802.11ax wifi6 u-boot ARMv8 cortexa53 Filogic Serial 12v_powered Dual_firmware serial 1button }}
  • Last modified: 2024/12/07 20:00
  • by csharper2005