public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Patrick Wildt <patrick@blueri.se>
To: u-boot@lists.denx.de
Subject: [PATCH 2/3] mksunxi_fit_atf.sh: Update FIT component descriptions
Date: Sat, 9 May 2020 21:09:39 +0200	[thread overview]
Message-ID: <20200509190939.GA6732@nox.fritz.box> (raw)
In-Reply-To: <9e245d7e-2dc6-b0de-6af5-d7d1b49e5482@sholland.org>

On Sat, May 09, 2020 at 02:02:19PM -0500, Samuel Holland wrote:
> On 5/8/20 4:45 AM, Patrick Wildt wrote:
> > Hi,
> > 
> > now this really confuses me.
> > 
> > commit 0db0ba6141f402b1d496ef53d9fa69978f75ec61 has explicitly made
> > u-boot the firmware and moved atf into the loadables on NXP i.MX.
> > Here you do the complete opposite for sunxi.
> > 
> > Can people please make up their minds how it is *supposed* to work?
> 
> I don't think that commit is suggesting how things are supposed to work; it's a
> workaround responding to the existing limitations in SPL_FIT_IMAGE_TINY.
> Specifically, that "firmware" is assumed to be U-Boot, and "loadables" are
> assumed to be something else.
> 
> The first patch in this series removes those limitations by actually looking at
> the "os" property. With my first patch applied, U-Boot would be detected in
> either list, so booting would work with or without commit 0db0ba6141f4.
> 
> So for the reasons I outline below (the functionality of the "switch
> (spl_image.os)" in board_init_r), it might make sense to revert that commit
> after applying this series.
> 
> Cheers,
> Samuel

I tend to agree.  Having ATF as a "firmware", spl_load_simple_fit()
would with your diff actually recognize that it's ATF and not U-Boot, so
it wouldn't append the FDT.  Then it goes over the loadables.  Loads
U-Boot, sees it is U-Boot, appends the FDT, and then (possibly) OP-TEE.

I'm still not sure what should be "firmware" and what "loadables", but
if ATF is supposed to be "firmware", your diff makes sense and it would
make sense to revert the change in the i.MX mkimage script.

So in that case I'd say:

Acked-by: Patrick Wildt <patrick@blueri.se>

Best regards,
Patrick

  reply	other threads:[~2020-05-09 19:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-07 23:20 [PATCH 1/3] spl: fit: Minimally parse OS properties with FIT_IMAGE_TINY Samuel Holland
2020-05-07 23:20 ` [PATCH 2/3] mksunxi_fit_atf.sh: Update FIT component descriptions Samuel Holland
2020-05-08  9:45   ` Patrick Wildt
2020-05-09 19:02     ` Samuel Holland
2020-05-09 19:09       ` Patrick Wildt [this message]
2020-05-07 23:20 ` [PATCH 3/3] sunxi: Add support for including SCP firmware Samuel Holland
2020-05-08  9:47 ` [PATCH 1/3] spl: fit: Minimally parse OS properties with FIT_IMAGE_TINY Patrick Wildt
2020-06-01 17:04 ` Jagan Teki

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=20200509190939.GA6732@nox.fritz.box \
    --to=patrick@blueri.se \
    --cc=u-boot@lists.denx.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