From: Richard Weinberger <richard@nod.at>
To: Alexander Dahl <ada@thorsis.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>,
linux-mtd <linux-mtd@lists.infradead.org>,
Torben Hohn <torben.hohn@linutronix.de>
Subject: Re: [PATCH 0/1] ubifs: support authentication without hmac
Date: Mon, 29 Jun 2020 09:04:47 +0200 (CEST) [thread overview]
Message-ID: <1067478399.71066.1593414287623.JavaMail.zimbra@nod.at> (raw)
In-Reply-To: <2117676.Cu8v49ySxQ@ada>
Alex,
----- Ursprüngliche Mail -----
> Von: "Alexander Dahl" <ada@thorsis.com>
> An: "linux-mtd" <linux-mtd@lists.infradead.org>, "Sascha Hauer" <s.hauer@pengutronix.de>
> CC: "richard" <richard@nod.at>, "Torben Hohn" <torben.hohn@linutronix.de>
> Gesendet: Montag, 29. Juni 2020 08:46:10
> Betreff: Re: [PATCH 0/1] ubifs: support authentication without hmac
> Hello Richard,
>
> Am Freitag, 26. Juni 2020, 10:09:14 CEST schrieb Richard Weinberger:
>> That said, I'm not really a fan of reading files from UBIFS in u-boot.
>> We have UBI static volumes for that...
>> Maybe you can give this a try and void some complexity in the bootloader.
>
> Surprised to hear that. I saw some boards lately doing exactly that. Things
> like kernel image are copied in Linux to e.g. /boot and U-Boot just picks it
> up from there.
Well, not everyone is using U-Boot. ;-)
> I tried to find out more about using UBI static volumes in general and for
> that usecase, but neither http://linux-mtd.infradead.org/doc/ubi.html nor
> http://linux-mtd.infradead.org/faq/ubi.html point me in a direction where to
> find real world examples to look at. Are there any boards in the wild using
> this? Maybe with defconfigs in U-Boot already?
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.
"""
Thanks,
//richard
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2020-06-29 7:06 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-25 15:59 [PATCH 0/1] ubifs: support authentication without hmac Torben Hohn
2020-06-25 15:59 ` [PATCH 1/1] ubifs: support authentication, for ro mount, when no key is given Torben Hohn
2020-06-26 4:31 ` Sascha Hauer
2020-06-26 7:27 ` Torben Hohn
2020-06-26 7:53 ` Richard Weinberger
2020-06-26 8:10 ` Sascha Hauer
2020-06-26 9:39 ` Torben Hohn
2020-06-26 8:09 ` [PATCH 0/1] ubifs: support authentication without hmac Richard Weinberger
2020-06-29 6:46 ` Alexander Dahl
2020-06-29 7:04 ` Richard Weinberger [this message]
2020-06-29 7:48 ` Wolfgang Denk
2020-06-29 7:51 ` Richard Weinberger
2020-06-30 5:50 ` Wolfgang Denk
2020-06-30 13:36 ` Richard Weinberger
2020-06-30 14:36 ` Alexander Dahl
2020-06-26 11:29 ` [PATCH v2 0/4] " Torben Hohn
2020-06-26 11:29 ` [PATCH v2 1/4] ubifs: move #include "debug.h" above auth.c Torben Hohn
2020-06-26 11:29 ` [PATCH v2 2/4] ubifs: support authentication, for ro mount, when no key is given Torben Hohn
2020-06-26 11:29 ` [PATCH v2 3/4] ubifs: sprinkle ubifs_assert(c, !c->ro_mount) in hmac auth Torben Hohn
2020-06-26 11:29 ` [PATCH v2 4/4] ubifs: prevent remounting rw when no hmac key was given Torben Hohn
2020-06-26 12:27 ` Richard Weinberger
2020-06-29 8:53 ` Torben Hohn
2020-06-29 10:52 ` Richard Weinberger
2020-06-26 14:16 ` [PATCH v2 0/4] ubifs: support authentication without hmac Richard Weinberger
2020-06-26 14:36 ` Richard Weinberger
2020-06-29 9:13 ` Torben Hohn
2020-06-29 9:07 ` Torben Hohn
2020-06-29 10:46 ` Richard Weinberger
2020-07-02 14:40 ` Thomas Gleixner
2020-07-02 15:00 ` Richard Weinberger
2020-07-02 18:48 ` Thomas Gleixner
2020-07-02 19:03 ` Richard Weinberger
2020-07-03 8:16 ` bigeasy
2020-07-03 8:20 ` Richard Weinberger
2020-07-03 9:12 ` Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1067478399.71066.1593414287623.JavaMail.zimbra@nod.at \
--to=richard@nod.at \
--cc=ada@thorsis.com \
--cc=linux-mtd@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
--cc=torben.hohn@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).