From c2d334e89ce40003a11738178db11c2e6d338938 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Fri, 7 Jun 2019 12:46:42 +0800 Subject: [PATCH] foboot-bitstream: move multiboot image 4 to 32768 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 --- hw/foboot-bitstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/foboot-bitstream.py b/hw/foboot-bitstream.py index 2bcbd2e..9311a7b 100755 --- a/hw/foboot-bitstream.py +++ b/hw/foboot-bitstream.py @@ -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: