From de42cf3ac50417ab7b00a9d639c5e034709bf349 Mon Sep 17 00:00:00 2001 From: R0rt1z2 Date: Wed, 22 May 2024 09:16:15 +0200 Subject: [PATCH 1/2] mtkclient: Add support for preloaders with PID 3000 * My Fire HD6 2014 (MT8135) seems to use 3000 instead of the (common) 2000 seen across other MTK devices. --- mtkclient/config/usb_ids.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mtkclient/config/usb_ids.py b/mtkclient/config/usb_ids.py index 9d1c238e..cd5d2f82 100755 --- a/mtkclient/config/usb_ids.py +++ b/mtkclient/config/usb_ids.py @@ -4,6 +4,7 @@ [0x0E8D, 0x2000, -1], # MTK Preloader [0x0E8D, 0x2001, -1], # MTK Preloader [0x0E8D, 0x20FF, -1], # MTK Preloader + [0x0E8D, 0x3000, -1], # MTK Preloader [0x1004, 0x6000, 2], # LG Preloader [0x22d9, 0x0006, -1], # OPPO Preloader [0x0FCE, 0xF200, -1], # Sony Brom From 3bf35633cd74644da4d1bdec37931c9a269abaa6 Mon Sep 17 00:00:00 2001 From: R0rt1z2 Date: Wed, 22 May 2024 09:29:26 +0200 Subject: [PATCH 2/2] mtkclient: Add some configs for MT8135 --- mtkclient/config/brom_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mtkclient/config/brom_config.py b/mtkclient/config/brom_config.py index a53fa19a..6ed42513 100755 --- a/mtkclient/config/brom_config.py +++ b/mtkclient/config/brom_config.py @@ -1528,11 +1528,11 @@ def __init__(self, var1=None, watchdog=None, uart=None, brom_payload_addr=None, loader="mt8127_payload.bin"), # ford,austin,tank #mhmm wdt, nochmal checken 0x8135: chipconfig( # var1 watchdog=0x10000000, - # uart + uart=0x11002000, # brom_payload_addr da_payload_addr=0x12001000, - # pl_payload_addr - # gcpu_base + pl_payload_addr=0x80001000, + gcpu_base=0x11018000, # sej_base # cqdma_base # ap_dma_mem