Package: u-boot-sunxi
Version: 2016.11+dfsg1-4
Severity: wishlist

Dear Maintainer,

in file
/usr/share/doc/u-boot-sunxi/README.Debian
please, the following command is suggested to install U-Boot:

dd if=/usr/lib/u-boot/BOARD/u-boot-sunxi-with-spl.bin of=/dev/mmcblkX
bs=1024 seek=8

If the command is applied to a file image the image is truncated.

If the disk is unmounted directly after the command the change may be
lost due to missing synchronization.

I suggest to change the line to

dd if=/usr/lib/u-boot/BOARD/u-boot-sunxi-with-spl.bin \
  conv=fsync,notrunc of=/dev/mmcblkX bs=1024 seek=8

conv=fsync ensures that the disk is synchronized before it is unmounted.
conv=notrunc ensures that if 'of' is pointing to an image it is not
truncated.

Best regards

Heinrich Schuchardt

Reply via email to