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