You signed in with another tab or window. Reload to refresh your
8000
session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
struct.error: unpack requires a buffer of 8 bytes #1
Thanks for this awesome tool :)
I'm trying to use it on LYF F300B, I can shorten a pin on the board to boot in edl. And I've a loader.
But I've an issue on the read_object function:
python3.7 edl.py -printgpt -memory ufs -lun 0
Qualcomm Sahara / Firehose Client (c) B.Kerler 2018.
Trying with loaders in Loader directory ...
Waiting for the device
Device detected :)
Mode detected: Firehose
TargetName=MSM8909
MemoryName=eMMC
Version=1
Reading from physical partition 0, sector 0, sectors 32
Progress: |██████████████████████████████████████████████████| 100.0% Complete
Traceback (most recent call last):
File "edl.py", line 370, in <module>
main()
File "edl.py", line 193, in main
guid_gpt.parse(data,cfg.SECTOR_SIZE_IN_BYTES)
File "/Users/sylvainblot/Repositories/nokia/edl/Library/gpt.py", line 118, in parse
self.header = read_object(gptdata[sectorsize:sectorsize+0x5C], self.gpt_header)
File "/Users/sylvainblot/Repositories/nokia/edl/Library/utils.py", line 242, in read_object
obj[name] = struct.unpack(stype, data[pos:pos+struct.calcsize(stype)])[0]
struct.error: unpack requires a buffer of 8 bytes
From what I've understood, when the exception occurred data[pos:pos+struct.calcsize(stype)] is b''.
If you need any debugging informations, let me know.
Activity
sylvainblot commentedon Jan 26, 2019
here is a gpt dump in base64:
sylvainblot commentedon Jan 26, 2019
num_part_entries,part_entry_sizeandcrc32_part_arrayare all zeros on the partition table, how can I find the values by myself ?sylvainblot commentedon Jan 26, 2019
Ok I've found the solution the tool is working great :)
I will submit a merge request to support an argument to explicit the number of partitions and partition entry size, sorry for the noise
sylvainblot commentedon Jan 27, 2019
#2
Merge pull request #1 from bkerler/master
Merge pull request #1 from alltern/alltern-patch-2