mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 11:14:56 -05:00
Compare commits
7 commits
66bb0d52ee
...
127c353b39
Author | SHA1 | Date | |
---|---|---|---|
|
127c353b39 | ||
|
7b30c5293c | ||
|
670cd5384c | ||
|
6cbe6786b3 | ||
|
77958d7ac8 | ||
|
cc0a502bc0 | ||
|
093769e72b |
3 changed files with 8 additions and 4 deletions
|
@ -967,7 +967,10 @@ class DAXML(metaclass=LogBase):
|
|||
self.ack_value(length)
|
||||
cmd, result = self.get_command_result()
|
||||
if type(result) is DwnFile:
|
||||
data = fh.read(length)
|
||||
if fh:
|
||||
data = fh.read(length)
|
||||
else:
|
||||
data = wdata
|
||||
if not self.upload(result, data, raw=True):
|
||||
self.error("Error on writing flash at 0x%08X" % addr)
|
||||
return False
|
||||
|
|
|
@ -101,7 +101,7 @@ class PLTools(metaclass=LogBase):
|
|||
return False
|
||||
else:
|
||||
self.error(f"Error on sending payload: {filename}")
|
||||
self.error(f"Error, payload answered instead: {hexlify(ack).decode('utf-8')}")
|
||||
self.error(f"Error, payload answered instead: {hexlify(response_ack).decode('utf-8')}")
|
||||
return False
|
||||
|
||||
def runbrute(self, args):
|
||||
|
|
|
@ -346,7 +346,7 @@ hwconfig = {
|
|||
dacode=0x0598,
|
||||
name="ELBRUS/MT0598"),
|
||||
0x992: Chipconfig( # var1
|
||||
# watchdog
|
||||
watchdog=0x10007000,
|
||||
# uart
|
||||
# brom_payload_addr
|
||||
# da_payload_addr
|
||||
|
@ -355,9 +355,10 @@ hwconfig = {
|
|||
# cqdma_base
|
||||
# ap_dma_mem
|
||||
# blacklist
|
||||
efuse_addr=0x11EC0000,
|
||||
damode=DAmodes.XFLASH,
|
||||
dacode=0x0992,
|
||||
name="MT0992"),
|
||||
name="MT6880/MT6890"),
|
||||
0x2601: Chipconfig(
|
||||
var1=0xA, # Smartwatch, confirmed
|
||||
watchdog=0x10007000,
|
||||
|
|
Loading…
Reference in a new issue