981213 / mtk_uartboot

GNU Affero General Public License v3.0
124 stars 26 forks source link

[solved] Want to unbrick Linksys E8450, got "timed out" error #6

Closed dalutou closed 7 months ago

dalutou commented 7 months ago

@981213 Hello, my Linksys E8450 suddenly unable to bootup.

Got the error below:

F0: 102B 0000
F6: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0400 0041 [0000]
G0: 1190 0000
T0: 0000 02D5 [000F]
Jump to BL

NOTICE:  BL2: v2.9(release):OpenWrt v2023-07-24-00ac6db3-2 (mt7622-snand-1ddr)
NOTICE:  BL2: Built : 21:45:35, Oct  9 2023
NOTICE:  CPU: MT7622
NOTICE:  WDT: Cold boot
NOTICE:  WDT: disabled
NOTICE:  SPI-NAND: FM35Q1GA (128MB)
ERROR:   BL2: Failed to load image id 5 (-2)

I try to unbrick it with mtk_uartboot, but got errors.

ENV

> $env:RUST_BACKTRACE="full"
> mtk_uartboot.exe --brom-load-baudrate 115200 -s COM7 --aarch64 -p bl2.bin -f uboot.fip
mtk_uartboot - 0.1.1
Using serial port: COM7
Handshake...
hw code: 0x7622
hw sub code: 0x8a00
hw ver: 0xcb00
sw ver: 0x100
Baud rate set to 115200
sending payload to 0x201000...
Checksum: 0xdac6
Setting baudrate back to 115200
Jumping to 0x201000 in aarch64...
Waiting for BL2. Message below:
==================================
NOTICE:  BL2: v2.10.0   (release):v2.4-rc0-5845-gbacca82a8
NOTICE:  BL2: Built : 19:21:54, Mar  1 2024
NOTICE:  WDT: Cold boot
NOTICE:  CPU: MT7622
NOTICE:  WDT: disabled
NOTICE:  Starting UART download handshake ...
==================================
BL2 UART DL version: 0x10
Baudrate set to: 921600
thread 'main' panicked at src\bl2.rs:44:53:
called `Result::unwrap()` on an `Err` value: Custom { kind: TimedOut, error: "Operation timed out" }
stack backtrace:
   0:     0x7ff6c58fb3d2 - <unknown>
   1:     0x7ff6c590ca2d - <unknown>
   2:     0x7ff6c58f95d1 - <unknown>
   3:     0x7ff6c58fb1fa - <unknown>
   4:     0x7ff6c58fcbf9 - <unknown>
   5:     0x7ff6c58fc8b5 - <unknown>
   6:     0x7ff6c58fd124 - <unknown>
   7:     0x7ff6c58fcff9 - <unknown>
   8:     0x7ff6c58fba79 - <unknown>
   9:     0x7ff6c58fccc2 - <unknown>
  10:     0x7ff6c5925e07 - <unknown>
  11:     0x7ff6c59262a3 - <unknown>
  12:     0x7ff6c57b777f - <unknown>
  13:     0x7ff6c57b7d66 - <unknown>
  14:     0x7ff6c57b2eff - <unknown>
  15:     0x7ff6c57be386 - <unknown>
  16:     0x7ff6c57bdc9c - <unknown>
  17:     0x7ff6c58f4e72 - <unknown>
981213 commented 7 months ago

Which UART adapter are you using? Could you limit the UART baudrate with --bl2-load-baudrate=115200 ?

dalutou commented 7 months ago

Which UART adapter are you using? Could you limit the UART baudrate with --bl2-load-baudrate=115200 ?

Yes, I tried --bl2-load-baudrate=115200, it got the same error.

I have been using DAPLINK's USB-TTL adapter all along.

Minutes ago, I tried a different adapter with FTDI FT4232 and surprisingly succeeded, and my E8450 got bootup.

Thank you for your guidance.