Merge pull request #79 from timg236/rpi-eeprom-config-padding

rpi-eeprom-config: Fix padding calculation
This commit is contained in:
Tim Gover
2020-01-14 15:55:34 +00:00
committed by GitHub

View File

@@ -48,8 +48,8 @@ class BootloaderImage(object):
if name.decode('utf-8') == 'bootconf.txt':
return (offset, length)
offset += 4 + length
offset += 8 - (offset % 8) # Pad
offset += 8 + length # length + type
offset = (offset + 7) & ~7
raise Exception('Bootloader config not found')