Merge branch 'master' of ssh://majeru@repo.or.cz/srv/git/kvm-coreboot
[kvm-coreboot.git] / bin / verify-rom.sh
blob2f6ad5a09a6d27cadbc7a503e5df1a11710e5934
1 #!/bin/sh
3 ROM=$1
4 if [ -z "$ROM" ]; then
5 echo "usage: ./verify-rom.sh <rom>"
6 exit 1
7 fi
9 echo -n "EC: "
10 dd if=$ROM bs=1 count=64k 2> /dev/null | md5sum | awk '{print $1}'
12 echo -n "VSA: "
13 dd if=$ROM bs=1 skip=64k count=64k 2> /dev/null | md5sum | awk '{print $1}'