bkerler / mtkclient

MTK reverse engineering and flash tool
GNU General Public License v3.0
2.55k stars 510 forks source link

Unable to detect fastboot after successful write of boot.img #851

Closed stitpragya22 closed 2 months ago

stitpragya22 commented 9 months ago

Power off the phone before connecting. For brom mode, press and hold vol up, vol dwn, or all hw buttons and connect usb. For preloader mode, don't press any hw button and connect usb. If it is already connected and on, hold power for 10 seconds to reset.

........Port - Device detected :) Preloader - CPU: MT6765/MT8768t(Helio P35/G35) Preloader - HW version: 0x0 Preloader - WDT: 0x10007000 Preloader - Uart: 0x11002000 Preloader - Brom payload addr: 0x100a00 Preloader - DA payload addr: 0x201000 Preloader - CQ_DMA addr: 0x10212000 Preloader - Var1: 0x25 Preloader - Disabling Watchdog... Preloader - HW code: 0x766 Preloader - Target config: 0xe7 Preloader - SBC enabled: True Preloader - SLA enabled: True Preloader - DAA enabled: True Preloader - SWJTAG enabled: True Preloader - EPP_PARAM at 0x600 after EMMC_BOOT/SDMMC_BOOT: False Preloader - Root cert required: False Preloader - Mem read auth: True Preloader - Mem write auth: True Preloader - Cmd 0xC8 blocked: True Preloader - Get Target info Preloader - BROM mode detected. Preloader - HW subcode: 0x8a00 Preloader - HW Ver: 0xca00 Preloader - SW Ver: 0x0 Preloader - ME_ID: D40A0C2E3CF1D25F0E4451A3D3A14F64 Preloader - SOC_ID: 81AAAD254562F007B03F0618EB3AB4FCEC267378C844595513EBCB556FD1BE00 PLTools - Loading payload from mt6765_payload.bin, 0x264 bytes Exploitation - Kamakiri Run Exploitation - Done sending payload... PLTools - Successfully sent payload: E:\mtkclient\mtkclient\payloads\mt6765_payload.bin Port - Device detected :) DA_handler - Device is protected. DA_handler - Device is in BROM mode. Trying to dump preloader. DAXFlash - Uploading xflash stage 1 from MTK_AllInOne_DA_5.2228.bin xflashext - Patching da1 ... Mtk - Patched "Patched loader msg" in preloader Mtk - Patched "hash_check" in preloader xflashext xflashext - [LIB]: Error on patching da1 version check... Mtk - Patched "Patched loader msg" in preloader Mtk - Patched "get_vfy_policy" in preloader xflashext - Patching da2 ... DAXFlash - Successfully uploaded stage 1, jumping .. Preloader - Jumping to 0x200000 Preloader - Jumping to 0x200000: ok. DAXFlash - Successfully received DA sync DAXFlash - Sending emi data ... DAXFlash - DRAM setup passed. DAXFlash - Sending emi data succeeded. DAXFlash - Uploading stage 2... DAXFlash - Upload data was accepted. Jumping to stage 2... DAXFlash - Successfully uploaded stage 2 DAXFlash - EMMC FWVer: 0x0 DAXFlash - EMMC ID: DA4128 DAXFlash - EMMC CID: 45010044413431323801cc0bad168799 DAXFlash - EMMC Boot1 Size: 0x400000 DAXFlash - EMMC Boot2 Size: 0x400000 DAXFlash - EMMC GP1 Size: 0x0 DAXFlash - EMMC GP2 Size: 0x0 DAXFlash - EMMC GP3 Size: 0x0 DAXFlash - EMMC GP4 Size: 0x0 DAXFlash - EMMC RPMB Size: 0x1000000 DAXFlash - EMMC USER Size: 0x1d1ec00000 DAXFlash - HW-CODE : 0x766 DAXFlash - HWSUB-CODE : 0x8A00 DAXFlash - HW-VERSION : 0xCA00 DAXFlash - SW-VERSION : 0x0 DAXFlash - CHIP-EVOLUTION : 0x0 DAXFlash - DA-VERSION : 1.0 DAXFlash - Extensions were accepted. Jumping to extensions... DAXFlash - DA Extensions successfully added Progress: |██████--------------------------------------------| 12.5% Write (Sector 0x4000 of 0x20000, 12s left) 4.41 MB/Progress: |████████------------------------------------------| 15.6% Write (Sector 0x5000 of 0x20000, 11s left) 4.67 MB/Progress: |█████████-----------------------------------------| 18.8% Write (Sector 0x6000 of 0x20000, 11s left) 4.67 MB/Progress: |███████████---------------------------------------| 21.9% Write (Sector 0x7000 of 0x20000, 10s left) 4.75 MB/Progress: |████████████--------------------------------------| 25.0% Write (Sector 0x8000 of 0x20000, 10s left) 4.77 MB/Progress: |██████████████------------------------------------| 28.1% Write (Sector 0x9000 of 0x20000, 09s left) 4.75 MB/Progress: |████████████████----------------------------------| 31.2% Write (Sector 0xA000 of 0x20000, 09s left) 4.60 MB/Progress: |█████████████████---------------------------------| 34.4% Write (Sector 0xB000 of 0x20000, 09s left) 4.73 MB/Progress: |███████████████████-------------------------------| 37.5% Write (Sector 0xC000 of 0x20000, 08s left) 4.77 MB/Progress: |████████████████████------------------------------| 40.6% Write (Sector 0xD000 of 0x20000, 08s left) 4.75 MB/Progress: |██████████████████████----------------------------| 43.8% Write (Sector 0xE000 of 0x20000, 07s left) 4.78 MB/Progress: |███████████████████████---------------------------| 46.9% Write (Sector 0xF000 of 0x20000, 07s left) 4.57 MB/Progress: |█████████████████████████-------------------------| 50.0% Write (Sector 0x10000 of 0x20000, 06s left) 4.92 MBProgress: |███████████████████████████-----------------------| 53.1% Write (Sector 0x11000 of 0x20000, 06s left) 4.75 MBProgress: |████████████████████████████----------------------| 56.2% Write (Sector 0x12000 of 0x20000, 05s left) 4.59 MBProgress: |██████████████████████████████--------------------| 59.4% Write (Sector 0x13000 of 0x20000, 05s left) 4.77 MBProgress: |███████████████████████████████-------------------| 62.5% Write (Sector 0x14000 of 0x20000, 05s left) 4.74 MBProgress: |█████████████████████████████████-----------------| 65.6% Write (Sector 0x15000 of 0x20000, 04s left) 4.61 MBProgress: |██████████████████████████████████----------------| 68.8% Write (Sector 0x16000 of 0x20000, 04s left) 4.91 MBProgress: |████████████████████████████████████--------------| 71.9% Write (Sector 0x17000 of 0x20000, 03s left) 4.61 MBProgress: |██████████████████████████████████████------------| 75.0% Write (Sector 0x18000 of 0x20000, 03s left) 4.77 MBProgress: |███████████████████████████████████████-----------| 78.1% Write (Sector 0x19000 of 0x20000, 02s left) 4.64 MBProgress: |█████████████████████████████████████████---------| 81.2% Write (Sector 0x1A000 of 0x20000, 02s left) 4.74 MBProgress: |██████████████████████████████████████████--------| 84.4% Write (Sector 0x1B000 of 0x20000, 02s left) 4.74 MBProgress: |████████████████████████████████████████████------| 87.5% Write (Sector 0x1C000 of 0x20000, 01s left) 4.76 MBProgress: |█████████████████████████████████████████████-----| 90.6% Write (Sector 0x1D000 of 0x20000, 01s left) 4.78 MBProgress: |██████████████████████████████████████████████████| 100.0% Write (Sector 0x20000 of 0x20000, ) 4.20 MB/s Wrote boot.img to sector 2855936 with sector count 131072.

stitpragya22 commented 9 months ago

Device is Redmi 9i Dandelion

github-actions[bot] commented 2 months ago

Stale issue message