repo.or.cz
/
kvm-coreboot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' of ssh://majeru@repo.or.cz/srv/git/kvm-coreboot
[kvm-coreboot.git]
/
bin
/
verify-rom.sh
blob
2f6ad5a09a6d27cadbc7a503e5df1a11710e5934
1
#!/bin/sh
2
3
ROM
=
$1
4
if
[
-z
"
$ROM
"
];
then
5
echo
"usage: ./verify-rom.sh <rom>"
6
exit
1
7
fi
8
9
echo -n
"EC: "
10
dd
if
=
$ROM
bs
=
1
count
=
64
k
2
> /
dev
/
null |
md5sum
|
awk
'{print
$1
}'
11
12
echo -n
"VSA: "
13
dd
if
=
$ROM
bs
=
1
skip
=
64
k count
=
64
k
2
> /
dev
/
null |
md5sum
|
awk
'{print
$1
}'