From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 8 May 2014 15:07:16 +0200 Subject: [U-Boot] [PATCH v3] dfu: Introduction of the "dfu_hash_algo" env variable for checksum method setting In-Reply-To: <1399552067-31208-1-git-send-email-l.majewski@samsung.com> References: <1399295786-30652-1-git-send-email-l.majewski@samsung.com> <1399552067-31208-1-git-send-email-l.majewski@samsung.com> Message-ID: <201405081507.16595.marex@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 On Thursday, May 08, 2014 at 02:27:47 PM, Lukasz Majewski wrote: > Up till now the CRC32 of received data was calculated unconditionally. > The standard crc32 implementation causes long delay when large images > were uploaded. > > The "dfu_hash_algo" environment variable gives the opportunity to > enable on demand (when e.g. debugging) the hash (crc32) calculation. > It can be done without need to recompile the u-boot binary and reuses > the generic hash framework. > > By default the crc32 is NOT calculated anymore. > > Tests results: > 400 MiB ums.img file > With crc32 calculation: 65 sec [avg 6.29 MB/s] > Without crc32 calculation: 25 sec [avg 16.17 MB/s] > > Signed-off-by: Lukasz Majewski > Cc: Marek Vasut Reviewed-by: Marek Vasut Best regards, Marek Vasut