bkerler / mtkclient

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

Redmi Note 10 5G — Unable to get past Device Identification thing #969

Open Frankiscophil opened 7 months ago

Frankiscophil commented 7 months ago

I'm really hoping someone can lend a hand and help me with this. I've seen other Redmi Note 10 5G phones work without issues when using MTKClient but mine just refuses to. My guess is it has to do with it saying "no preloader given" as that seems to be an issue unique to me. So far, after a few hours of internet browsing and sleuthing, I haven't found any other device using this software that had the same preloader issues.

Here's what comes up every time I attempt to have my device recognized or when I try to flash files to it.

Port - Device detected :)
Preloader -     CPU:                    MT6833(Dimensity 700 5G k6833)
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:                   0x73
Preloader - Disabling Watchdog...
Preloader - HW code:                    0x989
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:                       *********************************
Preloader - SOC_ID:                     *********************************
DA_handler - Device is protected.
DA_handler - Device is in BROM-Mode. Bypassing security.
PLTools - Loading payload from mt6833_payload.bin, 0x264 bytes
Exploitation - Kamakiri Run
Exploitation - Done sending payload...
PLTools - Successfully sent payload: /home/francenin/mtkclient/mtkclient/payloads/mt6833_payload.bin
Port - Device detected :)
DA_handler
DA_handler - [LIB]: Device is in BROM mode. No preloader given, trying to dump preloader from ram.
DeviceClass - USBError(5, 'Input/Output Error')
DA_handler
DA_handler - [LIB]: unpack requires a buffer of 65536 bytes
DA_handler
DA_handler - [LIB]: Failed to dump preloader from ram, provide a valid one via --preloader option
DAXFlash - Uploading xflash stage 1 from MTK_DA_V5.bin
DeviceClass
DeviceClass - [LIB]: USB Overflow
Preloader
Preloader - [LIB]: Error on DA_Send cmd
DAXFlash
DAXFlash - [LIB]: Error on sending DA.

Again, I really hope someone can come in and tell me what might be wrong so I can unbrick my phone. Thank you in advanced.

ElectroBoy404NotFound commented 6 months ago

Same problem with another phone with same processor

bkerler commented 4 months ago

@Frankiscophil is this issue still relevant or fixed ?

ElectroBoy404NotFound commented 4 months ago

@Frankiscophil is this issue still relevant or fixed ?

It's still relevant for me atleast

bkerler commented 4 months ago

what happens if you dump the preloader directly using mtk dumppreloader ?

ElectroBoy404NotFound commented 4 months ago

Same error

bkerler commented 3 months ago

Should be fixed now @Frankiscophil with latest commit

ElectroBoy404NotFound commented 3 months ago

Should be fixed now @Frankiscophil with latest commit

Still having same issues

bkerler commented 3 months ago

Tested on Redmi 10 5G and I cannot confirm that there is any issue with mt6833. As stated, use proper preloader in brom mode using --preloader.

ElectroBoy404NotFound commented 3 months ago

Tested on Redmi 10 5G and I cannot confirm that there is any issue with mt6833. As stated, use proper preloader in brom mode using --preloader.

Hmm possible that it is a problem with my Oppo A79 5G then... I don't think it should be any different from the device you are using....