bkerler / mtkclient

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

I encountered an error #963

Open liu2-3zhi opened 5 months ago

liu2-3zhi commented 5 months ago

I encountered an error

Zelly@Zelly-PC:~/Downloads/mtkclient-main/mtkclient-main$ python3.9 mtk r boot boot.img
MTK Flash/Exploit Client Public V2.0.0 Beta (c) B.Kerler 2018-2023

Preloader - Status: Waiting for PreLoader VCOM, please reconnect mobile to brom mode

Port - Hint:

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 - Hint:

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 - Hint:

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 - Hint:

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:                    MT6582/MT6574/MT8382()
Preloader -     HW version:             0x0
Preloader -     WDT:                    0x10007000
Preloader -     Uart:                   0x11002000
Preloader -     Brom payload addr:      0x100a00
Preloader -     DA payload addr:        0x201000
Preloader -     Var1:                   0xa
Preloader - Disabling Watchdog...
Preloader - HW code:                    0x6582
Preloader - Target config:              0x0
Preloader -     SBC enabled:            False
Preloader -     SLA enabled:            False
Preloader -     DAA enabled:            False
Preloader -     SWJTAG enabled:         False
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 - BROM mode detected.
Preloader -     HW subcode:             0x8a00
Preloader -     HW Ver:                 0xcb00
Preloader -     SW Ver:                 0x1
Preloader - ME_ID:                      1A113B1A8E7AC015CB3B293D84695832
DA_handler - Device is unprotected.
DA_handler - Device is in BROM-Mode. Bypassing security.
PLTools - Loading payload from mt6582_payload.bin, 0x258 bytes
Exploitation - Kamakiri Run
Exploitation - Done sending payload...
PLTools - Successfully sent payload: /home/Zelly/Downloads/mtkclient-main/mtkclient-main/mtkclient/payloads/mt6582_payload.bin
Port - Device detected :)
DA_handler
DA_handler - [LIB]: Device is in BROM mode. No preloader given, trying to dump preloader from ram.
DALegacy - Uploading legacy da...
DALegacy - Uploading legacy stage 1 from MTK_DA_V5.bin
legacyext
legacyext - [LIB]: Legacy address check not patched.
legacyext
legacyext - [LIB]: Legacy DA2 CMD F0 not patched.
Preloader - Jumping to 0x200000
Preloader - Jumping to 0x200000: ok.
DALegacy - Got loader sync !
DALegacy - Reading nand info
DALegacy - Reading emmc info
DALegacy - ACK: 040287
DALegacy - Setting stage 2 config ...
DALegacy - DRAM config needed for : 90014a48344731640486220010499215
DALegacy - Reading dram nand info ...
DALegacy - Sending dram info ...
DALegacy - RAM-Length: 0xbc
DALegacy - Checksum: 1422
DALegacy - M_EXT_RAM_RET : 0
DALegacy - M_EXT_RAM_TYPE : 0x2
DALegacy - M_EXT_RAM_CHIP_SELECT : 0x0
DALegacy - M_EXT_RAM_SIZE : 0x40000000
DALegacy - Uploading stage 2...
DALegacy - Successfully uploaded stage 2
DALegacy - Connected to stage2
DALegacy - Reconnecting to stage2 with higher speed
DeviceClass - [Errno 2] Entity not found
DALegacy - Connected to stage2 with higher speed
DALegacy - m_int_sram_ret = 0x0
m_int_sram_size = 0x20000
m_ext_ram_ret = 0x0
m_ext_ram_type = 0x2
m_ext_ram_chip_select = 0x0
m_int_sram_ret = 0x0
m_ext_ram_size = 0x40000000
randomid = 0xA07472C466C2B9C26169568AD54D0723

m_emmc_ret = 0x0
m_emmc_boot1_size = 0x200000
m_emmc_boot2_size = 0x200000
m_emmc_rpmb_size = 0x200000
m_emmc_gp_size[0] = 0x0
m_emmc_gp_size[1] = 0x0
m_emmc_gp_size[2] = 0x0
m_emmc_gp_size[3] = 0x0
m_emmc_ua_size = 0xe7000000
m_emmc_cid = 3447316490014a481049921504862200
m_emmc_fwver = 8600000000000000

DA_handler - Requesting available partitions ....
Traceback (most recent call last):
  File "/home/Zelly/Downloads/mtkclient-main/mtkclient-main/mtk", line 948, in <module>
    mtk = Main(args).run(parser)
  File "/home/Zelly/Downloads/mtkclient-main/mtkclient-main/mtkclient/Library/mtk_main.py", line 654, in run
    da_handler.handle_da_cmds(mtk, cmd, self.args)
  File "/home/Zelly/Downloads/mtkclient-main/mtkclient-main/mtkclient/Library/DA/mtk_da_handler.py", line 653, in handle_da_cmds
    self.da_read(partitionname=partitionname, parttype=parttype, filename=filename)
  File "/home/Zelly/Downloads/mtkclient-main/mtkclient-main/mtkclient/Library/DA/mtk_da_handler.py", line 194, in da_read
    if gptentry.name.lower() == partition.lower():
AttributeError: 'bool' object has no attribute 'name'
Zelly@Zelly-PC:~/Downloads/mtkclient-main/mtkclient-main$ 
github-actions[bot] commented 3 months ago

Stale issue message