[U-Boot] [PATCH] spl: implement CRC check on U-Boot uImage
Simon Glass
sjg at chromium.org
Tue Nov 27 01:03:06 UTC 2018
On Sat, 24 Nov 2018 at 05:46, Simon Goldschmidt
<simon.k.r.goldschmidt at gmail.com> wrote:
>
> SPL currently does not check uImage CRCs when loading U-Boot.
>
> This patch adds checking the uImage CRC when SPL loads U-Boot. It does
> this by reusing the existing config option SPL_CRC32_SUPPORT to allow
> leaving out the CRC check on boards where the additional code size or
> boot time is a problem (adding the CRC check currently adds ~1.4 kByte
> to flash).
>
> The SPL_CRC32_SUPPORT config option now gets enabled by default if SPL
> support for legacy images is enabled to check the CRC on all boards
> that don't actively take countermeasures.
>
> Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
> ---
>
> common/spl/Kconfig | 12 ++++++------
> common/spl/spl.c | 30 +++++++++++++++++++++++++++++-
> include/spl.h | 5 +++++
> 3 files changed, 40 insertions(+), 7 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list