workflows.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
To: Masahiro Yamada <masahiroy@kernel.org>,
	Chen-Yu Tsai <wenst@chromium.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Simon Glass <sjg@chromium.org>,
	linux-arm-kernel@lists.infradead.org,
	Ahmad Fatoum <a.fatoum@pengutronix.de>,
	U-Boot Mailing List <u-boot@lists.denx.de>,
	Nicolas Schier <nicolas@fjasle.eu>, Tom Rini <trini@konsulko.com>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Jonathan Corbet <corbet@lwn.net>,
	Nathan Chancellor <nathan@kernel.org>,
	Nick Terrell <terrelln@fb.com>, Will Deacon <will@kernel.org>,
	linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org,
	linux-kernel@vger.kernel.org, workflows@vger.kernel.org
Subject: Re: [PATCH v9 2/2] arm64: boot: Support Flat Image Tree
Date: Tue, 9 Jan 2024 15:33:55 +0100	[thread overview]
Message-ID: <5cdd1385-e2cf-4280-a31a-27e15a927b10@prevas.dk> (raw)
In-Reply-To: <CAK7LNAR7Fm-1yaZmyH78vG5yNbbW2Avjj5F63u+aST6JQoMd5A@mail.gmail.com>

On 14/12/2023 08.33, Masahiro Yamada wrote:
> On Thu, Dec 14, 2023 at 3:12 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>>

> One more question to confirm if I can use this
> for my practical use-cases.
> 
> Is U-Boot able to handle FIT (includes kernel + DTs)
> and a separate initrd?
> 
>   # bootm  <fit-address>:<conf-name>  <ramdisk-address>
> 
> 
> Presumably, it would be difficult to inject initramdisk
> into image.fit later, so I am hoping bootm would work like that,
> but I did not delve into U-Boot code.

I recently had occasion to use this, and it actually already works
out-of-the-box, but perhaps it could be better documented. Though you
need not only the ramdisk address but also the size, as in
<addr>:<size>, and of course CONFIG_SUPPORT_RAW_INITRD.

My use case is bootstrapping: I have one FIT image (consisting of
kernel, dtbs and an initramfs) which is the one that will be written to
the target. But for bootstrapping, I (obviously) need to boot with a
different initramfs that contains the bootstrap logic. Since this
project uses fastboot, what I do is: upload the alternative initramfs,
move it out of the way ('cause fastboot only supports one single target
buffer), upload the FIT image, and "bootm $fitaddr $initrdaddr:$initrdsize".

> If it works, is it possible to verify the integrity of initrd?

No, I don't think so. In my case the FIT image is signed, and the kernel
and chosen dtb does get verified, but not the contents of the initrd.
I'm not sure how that should happen - in any case, in the fastboot case,
the host can run arbitrary shell commands so not much U-Boot can do.

Rasmus


  parent reply	other threads:[~2024-01-09 14:34 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-02  3:54 [PATCH v9 0/2] arm64: Add a build target for " Simon Glass
2023-12-02  3:54 ` [PATCH v9 2/2] arm64: boot: Support " Simon Glass
2023-12-03 15:34   ` Laurent Pinchart
2023-12-04 17:59     ` Simon Glass
2023-12-07 14:27     ` Chen-Yu Tsai
2023-12-07 14:38       ` Laurent Pinchart
2023-12-07 20:52         ` Simon Glass
2023-12-07 21:30           ` Laurent Pinchart
2023-12-09 13:13         ` Chen-Yu Tsai
2023-12-09 15:29           ` Laurent Pinchart
2023-12-09 16:31             ` Geert Uytterhoeven
2023-12-14  4:02               ` Chen-Yu Tsai
2023-12-14  6:12                 ` Masahiro Yamada
2023-12-14  7:33                   ` Masahiro Yamada
2023-12-29  6:38                     ` Simon Glass
2024-01-02  3:19                       ` Chen-Yu Tsai
2024-01-09 13:47                       ` Masahiro Yamada
2024-01-10  3:47                         ` Chen-Yu Tsai
2024-01-02 15:53                     ` Ahmad Fatoum
2024-01-09 14:33                     ` Rasmus Villemoes [this message]
2023-12-14  7:57                   ` Geert Uytterhoeven
2023-12-14 12:48                   ` Tom Rini
2023-12-05 11:48   ` Ahmad Fatoum
2023-12-06  3:54     ` Simon Glass
2023-12-08 11:49   ` Nicolas Schier
2023-12-13 12:13   ` Will Deacon
2024-01-02 23:46     ` Simon Glass
2024-01-09 14:01       ` Masahiro Yamada
2024-01-09 14:33         ` Tom Rini
2024-01-17 13:14           ` Simon Glass
2024-01-25 16:03             ` Simon Glass
2024-01-30  9:16               ` Masahiro Yamada
2024-01-31 22:02                 ` Rob Herring
2024-02-01  2:08                   ` Masahiro Yamada
2024-02-01 21:03                     ` Rob Herring
2024-02-02  5:37                       ` Masahiro Yamada
2024-02-02 16:00                   ` Simon Glass
2024-02-02 16:00                 ` Simon Glass

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=5cdd1385-e2cf-4280-a31a-27e15a927b10@prevas.dk \
    --to=rasmus.villemoes@prevas.dk \
    --cc=a.fatoum@pengutronix.de \
    --cc=catalin.marinas@arm.com \
    --cc=corbet@lwn.net \
    --cc=geert@linux-m68k.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=nathan@kernel.org \
    --cc=nicolas@fjasle.eu \
    --cc=sjg@chromium.org \
    --cc=terrelln@fb.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=wenst@chromium.org \
    --cc=will@kernel.org \
    --cc=workflows@vger.kernel.org \
    /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