mirror of
https://github.com/bkerler/edl.git
synced 2024-11-14 19:14:58 -05:00
MSM8916 fixes
This commit is contained in:
parent
775684a62f
commit
a9f78898b3
3 changed files with 16 additions and 2 deletions
|
@ -526,6 +526,16 @@ class qualcomm_firehose:
|
||||||
|
|
||||||
if rsp[0] == True:
|
if rsp[0] == True:
|
||||||
self.cdc.read()
|
self.cdc.read()
|
||||||
|
if not "MemoryName" in rsp[1]:
|
||||||
|
#print(rsp[1])
|
||||||
|
rsp[1]["MemoryName"]="eMMC"
|
||||||
|
if not "MaxXMLSizeInBytes" in rsp[1]:
|
||||||
|
rsp[1]["MaxXMLSizeInBytes"]="4096"
|
||||||
|
logging.warning("Couldn't detect MaxPayloadSizeFromTargetinBytes")
|
||||||
|
if not "MaxPayloadSizeToTargetInBytes" in rsp[1]:
|
||||||
|
rsp[1]["MaxPayloadSizeToTargetInBytes"] = "1038576"
|
||||||
|
if not "MaxPayloadSizeToTargetInBytesSupported" in rsp[1]:
|
||||||
|
rsp[1]["MaxPayloadSizeToTargetInBytesSupported"] = "1038576"
|
||||||
self.cfg.MemoryName = rsp[1]["MemoryName"]
|
self.cfg.MemoryName = rsp[1]["MemoryName"]
|
||||||
self.cfg.MaxPayloadSizeToTargetInBytes = int(rsp[1]["MaxPayloadSizeToTargetInBytes"])
|
self.cfg.MaxPayloadSizeToTargetInBytes = int(rsp[1]["MaxPayloadSizeToTargetInBytes"])
|
||||||
self.cfg.MaxPayloadSizeToTargetInBytesSupported = int(rsp[1]["MaxPayloadSizeToTargetInBytesSupported"])
|
self.cfg.MaxPayloadSizeToTargetInBytesSupported = int(rsp[1]["MaxPayloadSizeToTargetInBytesSupported"])
|
||||||
|
|
|
@ -156,7 +156,10 @@ class usb_class():
|
||||||
try:
|
try:
|
||||||
logger.debug("TX: "+command.decode('utf-8'))
|
logger.debug("TX: "+command.decode('utf-8'))
|
||||||
except:
|
except:
|
||||||
logger.debug("TX: "+hexlify(command).decode('utf-8'))
|
try:
|
||||||
|
logger.debug("TX: "+hexlify(command).decode('utf-8'))
|
||||||
|
except:
|
||||||
|
logger.debug("TX: "+command)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def read(self,length=0x80000, timeout=None):
|
def read(self,length=0x80000, timeout=None):
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
pyusb
|
pyusb
|
||||||
pyserial
|
pyserial
|
||||||
docopt
|
docopt
|
||||||
pylzma
|
pylzma
|
||||||
|
pycryptodome
|
Loading…
Reference in a new issue