]> git.dujemihanovic.xyz Git - u-boot.git/commit
ubi: Add "skipcheck" command to set/clear this bit in the UBI volume hdr
authorStefan Roese <sr@denx.de>
Tue, 17 Sep 2019 07:17:53 +0000 (09:17 +0200)
committerHeiko Schocher <hs@denx.de>
Wed, 16 Oct 2019 03:42:36 +0000 (05:42 +0200)
commite6661cf767ce644e6ff835537449979859060c5b
tree815585aa39c6bd641ed2569ffcbff990cd047aef
parent524acec47cda4cfab66229e62d0d252b75fef297
ubi: Add "skipcheck" command to set/clear this bit in the UBI volume hdr

U-Boot now supports the "skip_check" flag to optionally skip the CRC
check at open time. Currently its only possible to set this bit upon
UBI volume creation. But it might be very useful to also set this bit
on already installed systems (e.g. field upgrade) to make also use of
the boot-time decrease on those systems.

This patch now adds a new "ubi" command "ubi skipcheck" to set or clear
this bit in the UBI volume header:

=> ubi skipcheck rootfs0 on
Setting skip_check on volume rootfs0

BTW: This saves approx. 10 seconds Linux bootup time on a MT7688 based
target with 128MiB of SPI NAND.

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@collabora.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Andreas Dannenberg <dannenberg@ti.com>
cmd/ubi.c
doc/README.ubi