[PATCH 0/1] ubifs: support authentication without hmac

Richard Weinberger richard.weinberger at gmail.com
Tue Jun 30 09:36:28 EDT 2020


Alex,

On Mon, Jun 29, 2020 at 9:11 AM Richard Weinberger <richard at nod.at> wrote:

> U-Boot choose the UBIFS way AFAICT.
>
> But if you have your own minimal loader you can read from an UBI static volume with
> a few lines of C (~200 LoC). This is what I see/use most of the time.
> Using static volumes in U-Boot is also possible, IIRC just use "ubi read".
>
> From http://www.linux-mtd.infradead.org/doc/ubi.html#L_overview:
> """
> There are 2 types of UBI volumes: dynamic volumes and static volumes. Static volumes are read-only and their contents are protected by CRC-32 checksums, while dynamic volumes are read-write and the upper layers (e.g., a file-system) are responsible for ensuring data integrity.
>
> Static volumes are typically used for the kernel, initramfs, and dtb. Larger static volumes may incur a significant penalty when opening, as the CRC-32 needs to be calculated at this time. If you are looking to use static volumes for anything besides the kernel, initramfs, or dtb you are likely doing something wrong and would be better off using a dynamic volume instead.
> """

Did this and Wolfgang's input help?

-- 
Thanks,
//richard



More information about the linux-mtd mailing list