From 112370ae6c053498dd8c56cbc34b9f1cd215f142 Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 24 May 2021 15:35:35 -0400 Subject: [PATCH] mkfs.fat phase kills gen_config #2736 --- firmware/gen_config_board.sh | 2 +- firmware/hw_layer/mass_storage/create_ini_image.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/gen_config_board.sh b/firmware/gen_config_board.sh index 786622d290..d64f909bd3 100755 --- a/firmware/gen_config_board.sh +++ b/firmware/gen_config_board.sh @@ -43,7 +43,7 @@ java -DSystemOut.name=gen_config_board \ # 1) using unique file name for each configuration? # 2) leverage consistent caching mechanism so that image is generated only in case of fresh .ini. Laziest approach would be to return exit code from java process above # -# todo uncomment #2736 ./hw_layer/mass_storage/create_ini_image.sh ./tunerstudio/generated/rusefi_${SHORT_BOARDNAME}.ini ./hw_layer/mass_storage/ramdisk_image.h +hw_layer/mass_storage/create_ini_image.sh ./tunerstudio/generated/rusefi_${SHORT_BOARDNAME}.ini ./hw_layer/mass_storage/ramdisk_image.h hw_layer/mass_storage/create_ini_image_compressed.sh ./tunerstudio/generated/rusefi_${SHORT_BOARDNAME}.ini ./hw_layer/mass_storage/ramdisk_image_compressed.h exit 0 diff --git a/firmware/hw_layer/mass_storage/create_ini_image.sh b/firmware/hw_layer/mass_storage/create_ini_image.sh index 7e23d7e1fc..9f78c70826 100755 --- a/firmware/hw_layer/mass_storage/create_ini_image.sh +++ b/firmware/hw_layer/mass_storage/create_ini_image.sh @@ -5,8 +5,8 @@ set -e rm -f rusefi.zip ramdisk_image.h -# copy 100KB of zeroes -dd if=/dev/zero of=ramdisk.image bs=1024 count=100 +# copy *count*KB of zeroes +dd if=/dev/zero of=ramdisk.image bs=1024 count=112 # create a FAT filesystem inside, name it RUSEFI mkfs.fat ramdisk.image