Comments (25)
Can you please rerun using --debugmode ? Looks like the da is sending the sync byte, but nothing else. Maybe I need to increase the timeout for windows or the usbdk port has issues
from mtkclient.
Hi
I had to attach the log, it's too big
from mtkclient.
Please retry latest commit
from mtkclient.
Please retry latest commit
HI
I trying using new files, but got error yet
MT6739_LOG.txt
from mtkclient.
Looks like the command is timing out while sending emi. Try using the appropriate preloader for your device using --preloader option.
from mtkclient.
Confirmed bug. We are working on it.
from mtkclient.
should be fixed with 614ca37
from mtkclient.
should be fixed with 614ca37
C:\mtk>
C:\mtk>py mtk
Capstone library is missing (optional).
Keystone library is missing (optional).
Traceback (most recent call last):
File "C:\mtk\mtk", line 15, in
from mtkclient.Library.mtk_daloader import DAloader
File "C:\mtk\mtkclient\Library\mtk_daloader.py", line 9, in
from mtkclient.Library.mtk_daxflash import DAXFlash
File "C:\mtk\mtkclient\Library\mtk_daxflash.py", line 14, in
from mtkclient.Library.rw_patch import write32, read32
ModuleNotFoundError: No module named 'mtkclient.Library.rw_patch'
C:\mtk>
from mtkclient.
i not found this Library mtkclient.Library.rw_patch
from mtkclient.
Hi
No working yet
mt6739 new log.txt
from mtkclient.
Check file attached
from mtkclient.
me too
have same issue
struct.error: unpack requires a buffer of 12 bytes
from mtkclient.
c:\xxxx\pytyon mtk w seccfg seccfg.bin
...........
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.
........Port - Device detected :)
Preloader - CPU: MT6765(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 - HW subcode: 0x8a00
Preloader - HW Ver: 0xca00
Preloader - SW Ver: 0x0
Preloader - Disabling Watchdog...
Preloader - HW code: 0x766
Preloader - Target config: 0xe5
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: True
Preloader - Mem write auth: True
Preloader - Cmd 0xC8 blocked: True
Preloader - ME_ID: D1F5E12C4125DBD34CB67347674A7FA5
Preloader - SOC_ID: AB2B5E1F5E7CAA11581E62B5A68C824FB7CABF275DDED1F1259C4771959FA560
PLTools - Loading payload from D:\Tools\PortableGit\mtkclient\mtkclient\payloads\mt6765_payload.bin, 0x264 bytes
PLTools - Kamakiri / DA Run
Kamakiri - Trying kamakiri2..
Kamakiri - Done sending payload...
PLTools - Successfully sent payload: D:\Tools\PortableGit\mtkclient\mtkclient\payloads\mt6765_payload.bin
Port - Device detected :)
Main - Device is protected.
Main - Device is in BROM mode. Trying to dump preloader.
DAXFlash - Uploading stage 1...
DAXFlash - Successfully uploaded stage 1, jumping ..
Preloader - Jumping to 0x200000
Preloader - Jumping to 0x200000: ok.
DAXFlash - Successfully received DA sync
DAXFlash - DRAM config needed for : 1501004448364441
DAXFlash - Uploading stage 2...
DAXFlash - Successfully uploaded stage 2
DAXFlash - EMMC FWVer: 0x0
DAXFlash - EMMC CID: 1501004448364441420891f5ceb928b3
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: 0xe8f800000
DAXFlash - DA-CODE : 0x666D0
Progress: |--------------------------------------------------| 0.0% Write (Sector 0 of 16384) 0.00 MProgress: |████████████--------------------------------------| 25.0% Write (Sector 4096 Progress: |█████████████████████████-------------------------| 50.0% Write Progress: |██████████████████████████████████████------------| 75.0% Write (Sector 12288 of 16384) 1999.67 MB/sDAXFlash
DAXFlash - [LIB]: �[31munpack requires a buffer of 12 bytes�[0m
Failed to write seccfg.bin to sector 1048576 with sector count 16384.
Traceback (most recent call last):
File "D:\Tools\PortableGit\mtkclient\mtk", line 1528, in
mtk = Main(args).run()
File "D:\Tools\PortableGit\mtkclient\mtk", line 882, in run
mtk.daloader.close()
File "D:\Tools\PortableGit\mtkclient\mtkclient\Library\mtk_daloader.py", line 80, in close
return self.da.close()
File "D:\Tools\PortableGit\mtkclient\mtkclient\Library\mtk_daxflash.py", line 834, in close
status=self.status()
File "D:\Tools\PortableGit\mtkclient\mtkclient\Library\mtk_daxflash.py", line 228, in status
magic, datatype, length = unpack("<III", hdr)
struct.error: unpack requires a buffer of 12 bytes
from mtkclient.
@330wang you have a different problem. Please make a new issue.
@ligteltelecom please don't mix issues, also please use a valid preloader. Dumped preloaders from ram might fail.
from mtkclient.
In order to solve the "unpack" errors :
- What device is this being tested on (Name, Model, CPU)
- Did you use --preloader with preloader matching the device (from firmware, NOT dump)
- Did you test on other PCs and other USB Hubs ?
We have to distinguish between USB Hub issues, Preloader EMI issues, security issues and real code issues.
from mtkclient.
in tool log :
DAXFlash - DRAM config needed for : 13014e47314a3953
Traceback (most recent call last):
File "C:\Users\Administrateur\Desktop\mtkclient-main_last\mtk", line 1529, in
mtk = Main(args).run()
File "C:\Users\Administrateur\Desktop\mtkclient-main_last\mtk", line 643, in run
if not mtk.daloader.upload_da(preloader=preloader):
File "C:\Users\Administrateur\Desktop\mtkclient-main_last\mtkclient\Library\mtk_daloader.py", line 132, in upload_da
return self.da.upload_da()
File "C:\Users\Administrateur\Desktop\mtkclient-main_last\mtkclient\Library\mtk_daxflash.py", line 1018, in upload_da
if not self.send_emi(self.daconfig.emi):
File "C:\Users\Administrateur\Desktop\mtkclient-main_last\mtkclient\Library\mtk_daxflash.py", line 304, in send_emi
return self.send_param([emi])
File "C:\Users\Administrateur\Desktop\mtkclient-main_last\mtkclient\Library\mtk_daxflash.py", line 258, in send_param
status = self.status()
File "C:\Users\Administrateur\Desktop\mtkclient-main_last\mtkclient\Library\mtk_daxflash.py", line 226, in status
magic, datatype, length = unpack("<III", hdr)
struct.error: unpack requires a buffer of 12 bytes
requested DRAM config needed are 13014e47314a3953
but in preloader file correct DRAM config are : 13014E47314A395339
from mtkclient.
@rebainoor please provide FULL log. Those snippets won't help.
from mtkclient.
@ligteltelecom Please rerun your command with --debugmode and upload log.
from mtkclient.
@ligteltelecom Please rerun your command with --debugmode and upload log.
mt6739_with_preloader_bali.txt
preloader_bali.zip
from mtkclient.
Hi
new log attached
mt6739_log_with_preloader_bali_new.txt
from mtkclient.
I Think about Preloader parsing failed to get EMI settings
For some devices ok but other failed
If device have DDR3 EMI sitting get ok
But if devices with DDR4 EMI setting failed
Waiting users test to confirme
from mtkclient.
@rebainoor do you have a debug log for such a device and its preloader ? A huge update is coming soon and i'd like to have that sorted out
from mtkclient.
@ligteltelecom seems like writing the data is fine but for some unknown reasons the device doesn't reply. So I guess it's expecting more or less data to be sent... will have a look for another mt6739 to figure out what might cause this issue.
from mtkclient.
@ligteltelecom seems like writing the data is fine but for some unknown reasons the device doesn't reply. So I guess it's expecting more or less data to be sent... will have a look for another mt6739 to figure out what might cause this issue.
Hi
need you more any test? This device is working well, SP Flash Tool (in admin mode work well too)
If no run admin mode SP Flash Tool i got fail send DA.
from mtkclient.
I think I found the issue. Gonna do some tests soon.
from mtkclient.
Related Issues (20)
- What does the set_meta function do? HOT 1
- DAA_SIG_VERIFY_FAILED HOT 6
- Realme V11 met a problem on stage 2. HOT 3
- How to make it run on the Android Nethunter OS? HOT 3
- Error in Installing OpenStack CLI HOT 1
- [Oppo F15/MT6771] - Device has is either already unlocked or algo is unknown. Aborting. HOT 4
- area not working using preloader HOT 2
- Mtkclient HOT 1
- how to speed usb read firmware
- mt6762 brom dump HOT 1
- pip install not working HOT 2
- Error on sending parameter: Read parttbl failed (0xc0040007) HOT 2
- mt8168 brom dump no protect
- mt6765 brom dump HOT 1
- redmi 10(selene) : for evrything always get this error
- Unlock on HyperOS printing error HOT 1
- da_handler bugs 8e46df6
- Preloader - [LIB]: Status: Handshake failed, retrying... HOT 1
- Infinix Note 30 Pro MT6789 [DAA_SIG_VERIFY_FAILED (0x7024)] HOT 2
- MT6781 Still Not Supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtkclient.