mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
rpi-eeprom-config: Fix padding calculation
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user