]> git.baikalelectronics.ru Git - uboot.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)
commitf5c9f1701bc506f8947dca913dc898d004b891cc
tree815585aa39c6bd641ed2569ffcbff990cd047aef
parente38d7eab28e6e43e95b0fe862f5442e9e0d59947
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