Print md5 checksum in fpgactl

This commit is contained in:
Rodrigo Arias 2024-09-03 14:58:44 +02:00
parent ee354156fe
commit 1aa899c8f0

View File

@ -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() # {{{
{