]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dfu: Introduction of the "dfu_hash_algo" env variable for checksum method setting
authorLukasz Majewski <l.majewski@samsung.com>
Mon, 12 May 2014 08:43:36 +0000 (10:43 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 1 Jun 2014 17:18:00 +0000 (19:18 +0200)
commitbd694244db7bc9699548ca276f992aa5ce9bbac0
tree40c8f258de00111bb83f67599b24952a81bb5a92
parent90b51c33f362926e17d4c07dcef1ce822abaa89f
dfu: Introduction of the "dfu_hash_algo" env variable for checksum method setting

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
disable on demand the hash (crc32) calculation.
It can be done without the need to recompile the u-boot binary.

By default the crc32 is calculated, which means that legacy behavior
has been preserved.

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 <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
drivers/dfu/dfu.c