diff --git a/bootloader/build_multi_image.sh b/bootloader/build_multi_image.sh index b584dfcc5ff92411275f7ced9f9a74c81ce45c0a..ac918e1188e2b43657ace4cd00e2bc483cbac513 100755 --- a/bootloader/build_multi_image.sh +++ b/bootloader/build_multi_image.sh @@ -6,8 +6,7 @@ BIN1="$2" BIN2="$3" BINOUT="$4" -dd if=/dev/zero ibs=1k count=448 2>/dev/null | LANG=C LC_CTYPE=C LC_ALL=C LC_COLLATE=C tr "\000" "\377" > "$BINOUT" -dd if="$BIN1" of="$BINOUT" conv=notrunc 2>/dev/null -dd if="$BIN2" >> "$BINOUT" 2>/dev/null +objcopy -I binary -O binary --pad-to=458752 --gap-fill=255 "${BIN1}" "$BINOUT" +cat "$BIN2" >>"$BINOUT" "$PYTHON" "$(dirname "$0")/crc_patch.py" "$BINOUT"