From 1aa899c8f0123f3c562ae06564cafa31fdd72598 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 3 Sep 2024 14:58:44 +0200 Subject: [PATCH] Print md5 checksum in fpgactl --- fpga/fpgactl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fpga/fpgactl b/fpga/fpgactl index 6a2540e..b54bbd6 100755 --- a/fpga/fpgactl +++ b/fpga/fpgactl @@ -133,6 +133,7 @@ function load_file_in_memory() # {{{ address=$(($address_hex)) total_size=$(stat --format "%s" "$file") + md5sum=$(md5sum "$file" | cut -d' ' -f1) # Previous tests... #strace -f dma-to-device -d /dev/${qdmadev}-MM-1 -a "$address" -s $((8*1024*1024)) -f "$file" @@ -145,7 +146,7 @@ function load_file_in_memory() # {{{ #dd if="$file" bs=8M seek="${address}" oflag=seek_bytes of=/dev/${qdmadev}-MM-1 status=none - printf "loaded '%s' at 0x%x with size %d\n" "$file" "$address" "$total_size" >&2 + printf "loaded '%s' at 0x%x with size %d and md5 %s\n" "$file" "$address" "$total_size" "$md5sum" >&2 } # }}} function do_boot_only() # {{{ {