[U-Boot] [PATCH 3/3] ubi: Add "skipcheck" command to set/clear this bit in the UBI volume hdr

Stefan Roese sr at denx.de
Tue Sep 17 05:54:01 UTC 2019


Hi Heiko,

On 17.09.19 07:45, Heiko Schocher wrote:
> Hello Stefan,
> 
> Am 12.09.2019 um 16:41 schrieb Stefan Roese:
>> 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 at denx.de>
>> Cc: Quentin Schulz <quentin.schulz at bootlin.com>
>> Cc: Boris Brezillon <boris.brezillon at bootlin.com>
>> Cc: Heiko Schocher <hs at denx.de>
>> ---
>>    cmd/ubi.c | 34 ++++++++++++++++++++++++++++++++++
>>    1 file changed, 34 insertions(+)
> 
> Reviewed-by: Heiko Schocher <hs at denx.de>
> 
> Could you please send a v2 with the suggestion from Andreas to add
> some infos into doc/README.ubi?

Yes, its on my list for today. ;)

Thanks,
Stefan


More information about the U-Boot mailing list