peterwillcn 发表于 2025-5-28 14:37:19

MT3000变砖u-boot恢复固件

本帖最后由 peterwillcn 于 2025-6-21 21:46 编辑

MT3000 刷了openwrt 官方snapshots 固件就无法启动,进 u-boot 刷回原厂固件和恢复固件
==============================================
修复方法mtd erase spi-nand0 0xfc00000 0x400000
即可修复无法刷入固件的问题
==============================================



U-Boot 2022.07-rc3 (Nov 23 2022 - 11:02:05 +0800)

CPU:   MediaTek MT7981
Model: mt7981-rfb
DRAM:512 MiB
Core:28 devices, 15 uclasses, devicetree: embed

Initializing NMBM ...
spi-nand: spi_nand spi_nand@0: Macronix SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 256 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Could not find a valid device for nmbm0
Signature found at block 2047
First info table with writecount 26 found in block 2016
Second info table with writecount 26 found in block 2019
No spare unmapped blocks. Device is now read-only
NMBM has been successfully attached

Loading Environment from MTD... Failure while reading at offset 0x100000
*** Warning - bad CRC, using default environment

In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
Net:
Warning: ethernet@15100000 (eth0) using random MAC address - 8a:7c:74:b1:3c:fa
eth0: ethernet@15100000
gpio: pin 12 (gpio 12) value is 0
Enter "gl" to stop autoboot in 2 seconds

*** Upgrading Firmware ***

ethernet@15100000 Waiting for PHY auto negotiation to complete..... TIMEOUT !

*** TFTP client failure: -110 ***
*** Operation Aborted! ***
ubi0: attaching mtd7
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 error: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read 0 bytes
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd7, error -30
UBI error: cannot attach mtd7
UBI error: cannot initialize UBI, error -30
*** Failed to attach UBI ***
*** Rebuilding UBI ***
Erasing from 0x0 to 0xf63ffff, size 0xf640000 ... Fail
----
T T T T T T T T T T T T T T T T POST /upload
    Content-Length: 15084118
T T T T GET /flashing.html
GET /index.js
GET /version
GET /result
GET /undefined
ubi0: attaching mtd7
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 error: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read 0 bytes
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd7, error -30
UBI error: cannot attach mtd7
UBI error: cannot initialize UBI, error -30
*** Failed to attach UBI ***
*** Rebuilding UBI ***
Erasing from 0x0 to 0xf63ffff, size 0xf640000 ... Fail
*** Image not supported! ***
GET /fail.html
GET /style.css
GET /index.js
GET /version
MT7981> nmbm nmbm0 state
Physical blocks:

Legends:
-   Good data block
+   Good management block
B   Bad block
I   Main info table
i   Backup info table
M   Remapped spare block
S   Signature block

    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    -----------------------------B----------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    --------------------------------I++i+MBBBBBBBBBBBBBBBBBBBBBBBBBS

Logical blocks:

Legends:
-   Good block
+   Initially remapped block
M   Remapped block
B   Bad/Unmapped block

    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    -----------------------------M----------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    ----------------------------------------------------------------
    --------------------------------












兔三狼 发表于 2025-5-28 20:02:18

在这之前 你都做了哪些操作呢 怎么会变砖呢?

peterwillcn 发表于 2025-5-28 22:08:22

本帖最后由 peterwillcn 于 2025-5-29 10:29 编辑

各位大佬,求如何重刷回原厂固件呢?

yuking_net 发表于 2025-5-30 19:38:46

我也出现了这种情况,是自己编译的固件。正在找解决方案

D-S 发表于 2025-6-5 18:28:39

uboot回原厂也会这样吗?https://dl.gl-inet.cn/router/mt3000/stable
页: [1]
查看完整版本: MT3000变砖u-boot恢复固件