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':
|
if name.decode('utf-8') == 'bootconf.txt':
|
||||||
return (offset, length)
|
return (offset, length)
|
||||||
|
|
||||||
offset += 4 + length
|
offset += 8 + length # length + type
|
||||||
offset += 8 - (offset % 8) # Pad
|
offset = (offset + 7) & ~7
|
||||||
|
|
||||||
raise Exception('Bootloader config not found')
|
raise Exception('Bootloader config not found')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user