linux-mtd: ubiattach taking long time
Richard Weinberger
richard at nod.at
Mon Mar 25 11:20:02 PDT 2024
Pintu,
----- Ursprüngliche Mail -----
> Von: "Pintu Agarwal" <pintu.ping at gmail.com>
> I have tried using fastmap as well, but still no difference.
> Are there any other techniques to improve the ubiattach timing ?
>
> Logs:
> ----------
> Doing from initramfs:
> {{{
> [ 6.949143][ T214] ubi0: attaching mtd54
> [ 8.023766][ T214] ubi0: scanning is finished
No fastmap attach here.
Make sure to set fm_autoconvert:
http://www.linux-mtd.infradead.org/doc/ubi.html#L_fastmap
If set, UBI create after a few writes a fastmap.
Speaking of other techniques, you can improve scanning time also by
tuning UBI for your NAND controller/setup.
E.g. transferring only the amount of bytes needed for an header.
Or reading without ECC and re-reading with ECC if the header CRC-check fails.
Thanks,
//richard
More information about the linux-mtd
mailing list