]> git.dujemihanovic.xyz Git - u-boot.git/commit
ubi: provide a way to skip CRC checks
authorQuentin Schulz <quentin.schulz@bootlin.com>
Thu, 12 Sep 2019 14:41:01 +0000 (16:41 +0200)
committerHeiko Schocher <hs@denx.de>
Wed, 16 Oct 2019 03:42:27 +0000 (05:42 +0200)
commit386f20cade50ed36674e3e5827cb282eb1da95c2
treeb084513c19101ec67303d61cec05c460be154215
parent6891152a4596d38ac25d2fe1238e3b6a938554b8
ubi: provide a way to skip CRC checks

Some users of static UBI volumes implement their own integrity check,
thus making the volume CRC check done at open time useless. For
instance, this is the case when one use the ubiblock + dm-verity +
squashfs combination, where dm-verity already checks integrity of the
block device but this time at the block granularity instead of verifying
the whole volume.

Skipping this test drastically improves the boot-time.

Adapted to U-Boot by Stefan Roese.

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
Cc: Quentin Schulz <quentin.schulz@bootlin.com>
Cc: Boris Brezillon <boris.brezillon@bootlin.com>
cmd/ubi.c
drivers/mtd/ubi/kapi.c
drivers/mtd/ubi/ubi-media.h
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/vmt.c
drivers/mtd/ubi/vtbl.c
include/mtd/ubi-user.h