Skip to content

Commit

Permalink
foboot-bitstream: move multiboot image 4 to 32768
Browse files Browse the repository at this point in the history
Move the multiboot image #4 from 4096 bytes to 32768 bytes.

This helps to future-proof against larger disks which have bigger FATs.
Otherwise, the boot image could be located within the FAT, which would
cause problems.

Signed-off-by: Sean Cross <[email protected]>
  • Loading branch information
xobs committed Jun 7, 2019
1 parent 9013054 commit c2d334e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/foboot-bitstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ def get_rand(x):
160,
157696,
262144,
266240,
262144 + 32768,
])

with open(os.path.join(output_dir, 'gateware', 'multiboot-header.bin'), 'rb') as multiboot_header_file:
Expand Down

0 comments on commit c2d334e

Please sign in to comment.