Esempio n. 1
0
 def appendBootloader(self, elf, encrypt=False, aesKey=None, aesIv=None):
     self.ssbl = binary.SSBL(flashType=self.flashType,
                             elf=elf,
                             encrypt=encrypt,
                             aesKey=aesKey,
                             aesIv=aesIv)
     self.image = self.ssbl.dump()
     self.partitionTableOffset = self.ssbl.partitionTableOffset
     return self.partitionTableOffset
Esempio n. 2
0
 def appendPartitionTable(self, partitionTable):
     self.partitionTable = partitionTable
     
     # Check if a boot loader has been added previously, if not, generating empty boot loader
     if len(self.image) == 0:
         traces.info("Warning: Empty boot loader partition. GAP will not be able to boot from flash.")
         self.ssbl = binary.SSBL(flashType = self.flashType)
         self.image += self.ssbl.dump()
     
     self.image += self.partitionTable.to_binary()