[U-Boot] [PATCH] common: hash: fix crc32 verify
Marcel Ziswiler
marcel at ziswiler.com
Tue May 5 14:36:59 CEST 2015
From: Marcel Ziswiler <marceli at ziswiler.com>
did not work:
Colibri T30 # crc32 0x80000000 0x100
crc32 for 80000000 ... 800000ff ==> 9eb4f5ca
Colibri T30 # crc32 -v 0x80000000 0x100 c9a057b3
crc32 for 80000000 ... 800000ff ==> 9eb4f5ca != ffffffff ** ERROR **
Colibri T30 # crc32 -v 0x80000000 0x100 9eb4f5ca
crc32 for 80000000 ... 800000ff ==> 9eb4f5ca != 301eeead ** ERROR **
now works again:
Colibri T30 # crc32 0x80000000 0x100
crc32 for 80000000 ... 800000ff ==> 9eb4f5ca
Colibri T30 # crc32 -v 0x80000000 0x100 c9a057b3
crc32 for 80000000 ... 800000ff ==> 9eb4f5ca != c9a057b3 ** ERROR **
Colibri T30 # crc32 -v 0x80000000 0x100 9eb4f5ca
Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
---
common/hash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/hash.c b/common/hash.c
index c94c98b..7ae7c2f 100644
--- a/common/hash.c
+++ b/common/hash.c
@@ -307,7 +307,7 @@ static int parse_verify_sum(struct hash_algo *algo, char *verify_str,
env_var = 1;
}
- if (!env_var) {
+ if (env_var) {
ulong addr;
void *buf;
--
1.9.3
More information about the U-Boot
mailing list