diff options
author | Tomasz Maciej Nowak <tmn505@gmail.com> | 2020-12-01 18:29:15 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-12-01 19:40:22 +0100 |
commit | 59130180ec860d1b1f33362d64189bfb3a0cc77a (patch) | |
tree | d9052b2bce2c35037f2d3c3ea086b2de3598c220 /target/linux/tegra/base-files | |
parent | 1f6bec228866639632f4d3f869c81ff729b1a28a (diff) | |
download | upstream-59130180ec860d1b1f33362d64189bfb3a0cc77a.tar.gz upstream-59130180ec860d1b1f33362d64189bfb3a0cc77a.tar.bz2 upstream-59130180ec860d1b1f33362d64189bfb3a0cc77a.zip |
tegra: sysupgrade: write additional information to log output
This will explain what is actually occuring on dd invocations.
Additionally remove comments for steps which are described by printed
statements anyway.
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Diffstat (limited to 'target/linux/tegra/base-files')
-rw-r--r-- | target/linux/tegra/base-files/lib/upgrade/platform.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/target/linux/tegra/base-files/lib/upgrade/platform.sh b/target/linux/tegra/base-files/lib/upgrade/platform.sh index 4b39b3e182..3e6ea8a44f 100644 --- a/target/linux/tegra/base-files/lib/upgrade/platform.sh +++ b/target/linux/tegra/base-files/lib/upgrade/platform.sh @@ -12,7 +12,7 @@ platform_check_image() { get_partitions "/dev/$diskdev" bootdisk - #extract the boot sector from the image + v "Extract boot sector from the image" get_image_dd "$1" of=/tmp/image.bs count=1 bs=512b get_partitions /tmp/image.bs image @@ -52,7 +52,7 @@ platform_do_upgrade() { if [ "$UPGRADE_OPT_SAVE_PARTITIONS" = "1" ]; then get_partitions "/dev/$diskdev" bootdisk - #extract the boot sector from the image + v "Extract boot sector from the image" get_image_dd "$1" of=/tmp/image.bs count=1 bs=512b get_partitions /tmp/image.bs image @@ -74,7 +74,7 @@ platform_do_upgrade() { return 0 fi - #write uboot image + v "Writing bootloader to /dev/$diskdev" get_image_dd "$1" of="$diskdev" bs=512 skip=1 seek=1 count=4097 conv=fsync,notrunc #iterate over each partition from the image and write it to the boot disk while read part start size; do @@ -86,7 +86,6 @@ platform_do_upgrade() { fi done < /tmp/partmap.image - #copy partition uuid v "Writing new UUID to /dev/$diskdev..." get_image_dd "$1" of="/dev/$diskdev" bs=1 skip=440 count=4 seek=440 conv=fsync } |