From 7251e0ee1c4e7e462cc7d12166bc583f0e9d29a6 Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Thu, 28 Oct 2021 19:49:28 +0200 Subject: [PATCH] Add ro and wo examples --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 222f356..22a41d3 100644 --- a/README.md +++ b/README.md @@ -207,12 +207,24 @@ python mtk r boot boot.bin [--preloader=Loader/Preloader/your_device_preloader.b ``` +Dump preloader partition to filename preloader.bin via bootrom + +``` +python mtk r preloader preloader.bin --parttype=boot1 [--preloader=Loader/Preloader/your_device_preloader.bin] +``` + Read full flash to filename flash.bin (use --preloader for brom) ``` python mtk rf flash.bin ``` +Read flash offset 0x128000 with length 0x200000 to filename flash.bin (use --preloader for brom) + +``` +python mtk ro 0x128000 0x200000 flash.bin +``` + Dump all partitions to directory "out". (use --preloader for brom) ``` @@ -247,6 +259,12 @@ Write all files in directory "out" to the flash partitions python mtk wl out ``` +write file flash.bin to flash offset 0x128000 with length 0x200000 (use --preloader for brom) + +``` +python mtk wo 0x128000 0x200000 flash.bin +``` + ### Erase flash Erase boot partition