diff --git a/firmware/hw_layer/mass_storage/create_ini_image.sh b/firmware/hw_layer/mass_storage/create_ini_image.sh index 9f3e6bbae5..5570b1c607 100755 --- a/firmware/hw_layer/mass_storage/create_ini_image.sh +++ b/firmware/hw_layer/mass_storage/create_ini_image.sh @@ -1,5 +1,8 @@ #!/bin/bash +# from firmware folder: +# hw_layer/mass_storage/create_ini_image.sh tunerstudio/generated/rusefi.ini hw_layer/mass_storage/ramdisk_image.h 112 test https://rusefi.com/s/test + # fail on error set -e @@ -24,15 +27,15 @@ fatlabel ramdisk.image RUSEFI # -j option dumps all files in the root of the zip (instead of inside directories) zip -j rusefi.ini.zip $FULL_INI -cp hw_layer/rusEFI_Wiki_template.url wiki.temp -echo "URL=${BOARD_SPECIFIC_URL}" >> wiki.temp +cp hw_layer/mass_storage/filesystem_contents/rusEFI_Wiki_template.url hw_layer/mass_storage/wiki.temp +echo "URL=${BOARD_SPECIFIC_URL}" >> hw_layer/mass_storage/wiki.temp # Put the zip inside the filesystem mcopy -i ramdisk.image rusefi.ini.zip :: # Put a readme text file in there too mcopy -i ramdisk.image hw_layer/mass_storage/filesystem_contents/README.txt :: mcopy -i ramdisk.image hw_layer/mass_storage/filesystem_contents/rusEFI\ Forum.url :: -mcopy -i ramdisk.image wiki.temp ::rusEFI\ ${SHORT_BOARDNAME}\ Wiki.url +mcopy -i ramdisk.image hw_layer/mass_storage/wiki.temp ::rusEFI\ ${SHORT_BOARDNAME}\ Wiki.url diff --git a/firmware/hw_layer/mass_storage/create_ini_image_compressed.sh b/firmware/hw_layer/mass_storage/create_ini_image_compressed.sh index aa4df58376..bd18134f33 100755 --- a/firmware/hw_layer/mass_storage/create_ini_image_compressed.sh +++ b/firmware/hw_layer/mass_storage/create_ini_image_compressed.sh @@ -1,5 +1,8 @@ #!/bin/bash +# from firmware folder: +# hw_layer/mass_storage/create_ini_image_compressed.sh tunerstudio/generated/rusefi.ini hw_layer/mass_storage/ramdisk_image.h 1024 test https://rusefi.com/s/test + # fail on error set -e @@ -24,15 +27,15 @@ fatlabel ramdisk.image RUSEFI -cp hw_layer/rusEFI_Wiki_template.url wiki.temp -echo "URL=${BOARD_SPECIFIC_URL}" >> wiki.temp +cp hw_layer/mass_storage/filesystem_contents/rusEFI_Wiki_template.url hw_layer/mass_storage/wiki.temp +echo "URL=${BOARD_SPECIFIC_URL}" >> hw_layer/mass_storage/wiki.temp # Put the zip inside the filesystem mcopy -i ramdisk.image $FULL_INI :: # Put a readme text file in there too mcopy -i ramdisk.image hw_layer/mass_storage/filesystem_contents/README.nozip.txt ::README.txt mcopy -i ramdisk.image hw_layer/mass_storage/filesystem_contents/rusEFI\ Forum.url :: -mcopy -i ramdisk.image wiki.temp ::rusEFI\ ${SHORT_BOARDNAME}\ Wiki.url +mcopy -i ramdisk.image hw_layer/mass_storage/wiki.temp ::rusEFI\ ${SHORT_BOARDNAME}\ Wiki.url # Compress the image as DEFLATE with gzip gzip ramdisk.image