From: Bartlomiej Sieka Date: Tue, 22 Apr 2008 12:27:50 +0200 Subject: [U-Boot-Users] [PATCH v2 0/2] Calculate image hashes with watchdog triggering In-Reply-To: <20080412111343.16495.21545.stgit@pollux.denx.de> References: <20080412111343.16495.21545.stgit@pollux.denx.de> Message-ID: <20080422102608.30118.57386.stgit@pollux.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hash calculation of an image can be a time consuming operation, with the possibility of making the hardware watchdog (if present/enabled) expire in the middle. Add watchdog-aware hash calculation functions and make image hash calculation use them. --- v2 of the patchset, rebased against current TOT (commit dc7746d8). Bartlomiej Sieka (2): Use watchdog-aware functions when calculating hashes of images Add support for calulacting hashes with watchdog triggering common/image.c | 43 +++++++++---------------------------------- include/common.h | 1 + include/image.h | 17 +++++++++++++++-- include/sha1.h | 11 +++++++++++ include/u-boot/md5.h | 8 ++++++++ lib_generic/crc32.c | 28 ++++++++++++++++++++++++++++ lib_generic/md5.c | 40 ++++++++++++++++++++++++++++++++++++++++ lib_generic/sha1.c | 37 +++++++++++++++++++++++++++++++++++++ 8 files changed, 149 insertions(+), 36 deletions(-)