bkerler / mtkclient

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

Why am I getting this error? It gets stuck at "Trying Kamakiri 2" #578

Closed ARandomComputerNerd closed 3 months ago

ARandomComputerNerd commented 1 year ago

I'm on Ubuntu 22.04 LTS, and when I try to bypass auth (Device - Realme 8 5G RMX3241 Indian, Dimensity 700 aka MT6833) this error shows up. Image (screenshot of the error): [https://imgur.com/a/uNxs3BT]

ARandomComputerNerd commented 1 year ago

It is basically stuck at "Trying kamakiri 2" for too long, and then I removed the USB and got this error.

ARandomComputerNerd commented 1 year ago

I tried leaving it for a while, and it still showed the same error after a while. Then tried the Re LiveDVD provided in the page and still got the exact same results. Please look into it, I'm desperate to fix my phone!

CitrusSin commented 1 year ago

I have met almost the same situation, and I am curious about it too. But there are some differences: I use archlinux, I didn't remove the USB, and my device is OPPO A58x 5G. It stuck for about 2 minutes and then that error message showed up.

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:              0x5
Preloader -     SBC enabled:            True
Preloader -     SLA enabled:            False
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:          False
Preloader -     Mem write auth:         False
Preloader -     Cmd 0xC8 blocked:       False
Preloader - Get Target info
Preloader -     HW subcode:             0x8a00
Preloader -     HW Ver:                 0xca00
Preloader -     SW Ver:                 0x0
PLTools - Loading payload from mt6833_payload.bin, 0x264 bytes
PLTools - Kamakiri / DA Run
Kamakiri - Trying kamakiri2..
Traceback (most recent call last):
  File "/home/citrus/git-repos/mtkclient/mtk", line 814, in <module>
    mtk = Main(args).run(parser)
  File "/home/citrus/git-repos/mtkclient/mtkclient/Library/mtk_main.py", line 615, in run
    mtk = da_handler.configure_da(mtk, preloader)
  File "/home/citrus/git-repos/mtkclient/mtkclient/Library/mtk_da_cmd.py", line 87, in configure_da
    mtk = mtk.bypass_security()
  File "/home/citrus/git-repos/mtkclient/mtkclient/Library/mtk_class.py", line 155, in bypass_security
    if plt.runpayload(filename=self.config.payloadfile):
  File "/home/citrus/git-repos/mtkclient/mtkclient/Library/pltools.py", line 102, in runpayload
    if self.kama.payload(payload, addr, True, exploittype):
  File "/home/citrus/git-repos/mtkclient/mtkclient/Library/kamakiri.py", line 139, in payload
    if self.exploit2(payload, addr):
  File "/home/citrus/git-repos/mtkclient/mtkclient/Library/kamakiri.py", line 117, in exploit2
    ptr_send = unpack("<I", self.da_read(self.mtk.config.chipconfig.send_ptr[0][1], 4))[0] + 8
  File "/home/citrus/git-repos/mtkclient/mtkclient/Library/kamakiri.py", line 68, in da_read
    return self.da_read_write(address, length, None, check_result)
  File "/home/citrus/git-repos/mtkclient/mtkclient/Library/kamakiri.py", line 107, in da_read_write
    return self.mtk.preloader.brom_register_access(address - 0x40, length, data, check_result)
  File "/home/citrus/git-repos/mtkclient/mtkclient/Library/mtk_preloader.py", line 582, in brom_register_access
    raise RuntimeError("Kamakiri2 failed :(")
RuntimeError: Kamakiri2 failed :(
github-actions[bot] commented 3 months ago

Stale issue message