Recovery MT1300

Hello, I accidentally flashed the firmware containing the U-boot and turned the router into a brick. With difficulty I found the U-boot I stitched with the help of CH341A. Now the router is loaded into the U-boot
and flashes the firmware but the firmware does not work.

As you have UART output, pls post the ouput for better understanding.

MT7621 # printenv
bootcmd=tftp
bootdelay=7
baudrate=115200
ethaddr=“00:AA:BB:CC:DD:10”
ipaddr=192.168.1.1
serverip=192.168.1.2
uboot_name=uboot-gl-mt1300.bin
firmware_name=openwrt-gl-mt1300.bin
lc=if ping $serverip; then tftp 0x81000000 config.bin && cp.b 0xbc40000 0x81100000 0xffff && cp 0x81000000 0x81100000 0x40 && cp.b 0x81000000 0x81101002 0x06 && erase 0xbc040000 +0xffff && cp 0x81000000 0xbc040000 0xffff; fi
lu=if ping $serverip; then tftp 0x81000000 $uboot_name && erase 0xbc000000 +0x40000 && cp $fileaddr 0xbc000000 $filesize && echo OK!; else echo ERROR! Server not reachable!; fi
lf=if ping $serverip; then tftp 0x81000000 $firmware_name && erase 0xbc050000 +$filesize && cp $fileaddr 0xbc050000 $filesize && echo OK!; else echo ERROR! Server not reachable!; fi
stdin=serial
stdout=serial
stderr=serial
BootType=3

Environment size: 812/4092 bytes
MT7621 #

Can you give the whole output of the UART? The output until the system failed to boot. It will show the reason why it fails.

Which firmware did you use to flash?

When UART is connected, the system does not boot

I found the list of partitions on flash drives from a working router
mtd0: 00030000 00010000 “u-boot”
mtdl: 00010000 00010000 “u-boot-env”
mtd2: 00010000 00010000 “factory”
mtd3: 01fb0000 00010000 “firmware”
mtd4: 001f2381 00010000 “kernel”
mtd5: 01dbdc7f 00010000 “rootfs”
mtd6: 00f90000 00010000 “rootfs_data”
Sample u-boot-env was empty
Probably in the factory section of the problem, you need to look for where to get a sample …

UART does not have output at all? How did you be able to access the uboot printenv?

U-Boot 1.1.3 (Nov 2 2020 - 19:47:54)

Board: Ralink APSoC DRAM: 256 MB
relocate_code Pointer at: 8ff90000

Config XHCI 40M PLL


Software System Reset Occurred


flash manufacture id: ef, device id 40 19
find flash: W25Q256FV
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 5.0.0.0

ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: SPI Flash
Date:Nov 2 2020 Time:19:47:54

icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

The CPU freq = 880 MHZ

estimate memory size =256 Mbytes
#Reset_MT7530
set LAN/WAN LLLLW

RESET button is pressed for: 0 second(s)

Catution: RESET button wasn’t pressed or not long enough!
Continuing normal boot…

Trying Eth0 (10/100-M)

Waitting for RX_DMA_BUSY status Start… done

ETH_STATE_ACTIVE!!
Hit ‘gl’ to stop autoboot: 0
Device don’t have ART,please write the default ART first…
MT7621 # Device don’t have ART,please write the default ART first…

Your radio data was cleared. Pls send you bottom sticker photo to support at gl-inet.com, put content: requesting radio data and we will reply.

1 Like

I sent bottom sticker photo

Collected everything in one

copy / b u-boot.bin + u-boot-evn.bin + factory.bin boot.bin

I stitched the resulting file using CH341A.
After booting into u-boot, I flashed the firmware and the router came to life safely.

Thanks for your help!

1 Like