diff options
author | Jens Scharsig <esw@bus-elektronik.de> | 2011-07-18 14:39:11 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-26 14:36:07 +0200 |
commit | a16a84b7258c4fb9d320372543ea691a01e2adf9 (patch) | |
tree | 945d1b2692d421b87d3d4fd31fd3dea1d74cfb1f /common | |
parent | 3e499b6ab02663e996e4b08456f8733f4234fdab (diff) | |
download | u-boot-imx-a16a84b7258c4fb9d320372543ea691a01e2adf9.zip u-boot-imx-a16a84b7258c4fb9d320372543ea691a01e2adf9.tar.gz u-boot-imx-a16a84b7258c4fb9d320372543ea691a01e2adf9.tar.bz2 |
Fix: watchdog timed out, if using md5 command
* Fix: if using md5 command watchdog timed out
* change function call md5(..) to the watchdog-safe variant
md5_wd(..) to support watchdog reset
Signed-off-by: Jens Scharsig <esw@bus-elektronik.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_md5sum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_md5sum.c b/common/cmd_md5sum.c index d6ebb80..629a74d 100644 --- a/common/cmd_md5sum.c +++ b/common/cmd_md5sum.c @@ -37,7 +37,7 @@ static int do_md5sum(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) addr = simple_strtoul(argv[1], NULL, 16); len = simple_strtoul(argv[2], NULL, 16); - md5((unsigned char *) addr, len, output); + md5_wd((unsigned char *) addr, len, output, CHUNKSZ_MD5); printf("md5 for %08lx ... %08lx ==> ", addr, addr + len - 1); for (i = 0; i < 16; i++) printf("%02x", output[i]); |