waybyte / tool-pymtkflasher

Python based flash tool for Mediatek MT6261 and MT2503 SoC.
17 stars 9 forks source link

Using this tool #3

Closed qwerty13 closed 2 years ago

qwerty13 commented 2 years ago

hi I'm some confused as this project has no any document or help to use. it must be very good if you put an example command use for flashing some file...

ajaybhargav commented 2 years ago

I should have updated the README. You can run help

$ python mtkflasher.py -h

usage: mtkflasher.py [-h] -p PORT [-b BAUD] [-o OPT] [-n] [-v] firmware [firmware ...]

MT6261/MT2503 Flash Tool

positional arguments:
  firmware              Firmware binary file.

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  Serial port for flashing. (default: None)
  -b BAUD, --baud BAUD  Serial port baudrate. (default: 460800)
  -o OPT, --opt OPT     Flash Options:
                            0: Download Firmware and Format
                            1: Download Firmware only (default: 1)
  -n, --no-reset        Do not reset after flashing (default: False)
  -v, --version         show program's version number and exit

Let me know if there is any issue. It may not be able to update bootloader but can be used for flashing application firmware.