Add support for 0x0C emi (mt6582), improve output

This commit is contained in:
Bjoern Kerler 2023-04-27 11:22:12 +02:00
parent 2bb83de4c1
commit e20651f116
No known key found for this signature in database
GPG key ID: 52E823BB96A55380
2 changed files with 4 additions and 1 deletions

View file

@ -1104,7 +1104,7 @@ class DALegacy(metaclass=LogBase):
self.info("RAM-Info: " + hexlify(info).decode('utf-8'))
dramlength = unpack(">I", self.usbread(0x4))[0]
self.usbwrite(self.Rsp.ACK)
elif self.daconfig.emiver in [0x0D]:
elif self.daconfig.emiver in [0x0C, 0x0D]:
dramlength = unpack(">I", self.usbread(0x4))[0]
self.info("RAM-Length: " + hex(dramlength))
self.usbwrite(self.Rsp.ACK)

View file

@ -520,6 +520,9 @@ class Preloader(metaclass=LogBase):
else:
self.error(f"Jump_DA status error:{self.eh.status(status)}")
self.config.set_gui_status(self.config.tr("DA Error"))
else:
self.error(f"Jump_DA status error:{self.eh.status(addr)}")
self.config.set_gui_status(self.config.tr("DA Error"))
return False