Skip to content

Commit 4ee3f27

Browse files
committed
rpi-eeprom-config: Improve No space available error message
Improve the error handler for the case where the new EEPROM config exceeds the amount of available free space. Display the filename, new size and space available. N.B The 2711/pieeprom-2025-08-13.bin restores the free space to a little of 4KB again. See: #732
1 parent 6f692d1 commit 4ee3f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpi-eeprom-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ class BootloaderImage(object):
346346
update_len = len(src_bytes) + FILE_HDR_LEN
347347

348348
if hdr_offset + update_len > self._image_size - ERASE_ALIGN_SIZE:
349-
raise Exception('No space available - image past EOF.')
349+
raise Exception('No space available. %s size %d available space %d' % (dst_filename, update_len, self._image_size - ERASE_ALIGN_SIZE - hdr_offset))
350350

351351
if hdr_offset < 0:
352352
raise Exception('Update target %s not found' % dst_filename)

0 commit comments

Comments
 (0)