Print md5 checksum in fpgactl
This commit is contained in:
parent
ee354156fe
commit
1aa899c8f0
@ -133,6 +133,7 @@ function load_file_in_memory() # {{{
|
|||||||
address=$(($address_hex))
|
address=$(($address_hex))
|
||||||
|
|
||||||
total_size=$(stat --format "%s" "$file")
|
total_size=$(stat --format "%s" "$file")
|
||||||
|
md5sum=$(md5sum "$file" | cut -d' ' -f1)
|
||||||
|
|
||||||
# Previous tests...
|
# Previous tests...
|
||||||
#strace -f dma-to-device -d /dev/${qdmadev}-MM-1 -a "$address" -s $((8*1024*1024)) -f "$file"
|
#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
|
#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() # {{{
|
function do_boot_only() # {{{
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user