Skip to content

Commit

Permalink
Remove fdatasync when writing to mtd0
Browse files Browse the repository at this point in the history
When writing to a raw flash device, it's not necessary to do
a sync. Instead, simply closing the file should flush all buffers.
The sync method is not supported and was logging an error when
flashing.
  • Loading branch information
Niels Avonds committed Sep 13, 2023
1 parent 895b8bd commit a97fe27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ set -o errexit
flash_erase /dev/mtd0 0 0

# Write the image to the SPI NOR flash
dd if=/mnt/boot/flash.bin of=/dev/mtd0 conv=fdatasync seek=1 bs=1k
dd if=/mnt/boot/flash.bin of=/dev/mtd0 seek=1 bs=1k

0 comments on commit a97fe27

Please sign in to comment.