981213 / mtk_uartboot

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

src/bootrom.rs: called `Result::unwrap()` on an `Err` value: Custom { kind: TimedOut, error: "Operation timed out" } #4

Closed Fail-Safe closed 6 months ago

Fail-Safe commented 7 months ago

@981213 Hello--me again! Getting another timeout error on MacOS (arm64) similar to my previous issue with the timeout for bl2. Is the bl2 fix you put in place able to apply here as well?

❯ RUST_BACKTRACE=full ./mtk_uartboot --brom-load-baudrate 115200 -s /dev/cu.usbserial-A50285BI -p bl2.bin --aarch64
mtk_uartboot - 0.1.1
Using serial port: /dev/cu.usbserial-A50285BI
Handshake...
hw code: 0x7622
hw sub code: 0x8a00
hw ver: 0xcb00
sw ver: 0x100
Baud rate set to 115200
sending payload to 0x201000...
thread 'main' panicked at src/bootrom.rs:53:53:
called `Result::unwrap()` on an `Err` value: Custom { kind: TimedOut, error: "Operation timed out" }
stack backtrace:
   0:        0x1005b2ad4 - __mh_execute_header
   1:        0x1005c7f30 - __mh_execute_header
   2:        0x1005b1118 - __mh_execute_header
   3:        0x1005b2908 - __mh_execute_header
   4:        0x1005b3c0c - __mh_execute_header
   5:        0x1005b3954 - __mh_execute_header
   6:        0x1005b4054 - __mh_execute_header
   7:        0x1005b3f48 - __mh_execute_header
   8:        0x1005b2f58 - __mh_execute_header
   9:        0x1005b3cd0 - __mh_execute_header
  10:        0x1005cf620 - __mh_execute_header
  11:        0x1005cf91c - __mh_execute_header
  12:        0x100555ce4 - __mh_execute_header
  13:        0x100550d0c - __mh_execute_header
[1]    42170 abort      RUST_BACKTRACE=full ./mtk_uartboot --brom-load-baudrate 115200 -s  -p bl2.bin
981213 commented 7 months ago

Could you omit brom-load-baudrate or set it to 921600? The bl2 fix was already done on bootrom before 0.1.0.

Fail-Safe commented 7 months ago

omit brom-load-baudrate

Thanks--this worked for me! I appreciate your quick response!