GPT fixes

This commit is contained in:
Bjoern Kerler 2019-04-09 22:21:49 +02:00
parent 94c266e84a
commit 9034862418
2 changed files with 4 additions and 4 deletions

View file

@ -117,9 +117,9 @@ class gpt:
self.part_entry_size = part_entry_size
self.part_entry_start_lba = part_entry_start_lba
if num_part_entries is None:
self.gpt_header += [('num_part_entries', 'L'),]
self.gpt_header += [('num_part_entries', 'I'),]
if part_entry_size is None:
self.gpt_header += [('part_entry_size', 'L'),]
self.gpt_header += [('part_entry_size', 'I'),]
def parse(self, gptdata, sectorsize=512):

4
edl.py
View file

@ -1,6 +1,6 @@
#!/usr/bin/env python3
'''
Licensed under MIT License, (c) B. Kerler 2018
Licensed under MIT License, (c) B. Kerler 2018-2019
'''
import argparse
@ -71,7 +71,7 @@ infotbl={
}
def main():
info='Qualcomm Sahara / Firehose Client (c) B.Kerler 2018.'
info='Qualcomm Sahara / Firehose Client (c) B.Kerler 2018-2019.'
parser = argparse.ArgumentParser(description=info)
print("\n"+info+"\n\n")
parser.add_argument('-loader',metavar="none,<filename>",help='[Option] Flash programmer to load e.g. prog_emmc_firehose.elf', default='')