u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Peter Robinson <pbrobinson@gmail.com>
To: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>, u-boot@lists.denx.de
Subject: Re: [v4 0/7] Fix Rockchip RK3399 bootstd migration
Date: Thu, 30 Mar 2023 07:55:47 +0100	[thread overview]
Message-ID: <CALeDE9MdL8NbU8rw-8b1eGOY2Xz5JAFFjRa+TteSjW2=_hW+Gg@mail.gmail.com> (raw)
In-Reply-To: <20230329145401.GE6083@bill-the-cat>

On Wed, Mar 29, 2023 at 3:54 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Mon, Mar 27, 2023 at 06:50:41PM +0100, Peter Robinson wrote:
> > On Mon, Mar 27, 2023 at 5:02 AM Simon Glass <sjg@chromium.org> wrote:
> > >
> > > Hi Tom,
> > >
> > > On Sat, 25 Mar 2023 at 09:58, Tom Rini <trini@konsulko.com> wrote:
> > > >
> > > > Hey all,
> > > >
> > > > I took a look at Simon's v3 series to fix the rk3399 bootstd migration,
> > > > and it changed too much for everything else. I took about half of that
> > > > series and then reworked a few things. Now only rk3399 platforms change
> > > > at all and aside from bootcmd changes, the only thing is they now
> > > > disable true/test/sysboot/showvar/false/exit commands as those were
> > > > being pulled in from distro and now we don't set that flag. I think the
> > > > way I changed how we enable BOOTSTD_DEFAULTS should make it easier to
> > > > perform more SoC migrations.
> > >
> > > Thanks for digging into this. I haven't seen any comments on the rpi
> > > conversion, so perhaps people could test that?
> >
> > I was planning on looking at that once 2023.04 was out but TBH I have
> > wasted so much time over the last few cycles dealing with regressions
> > through a bunch of these series that I now have so little time for
> > enhancements I now shy away. I know a lot of these series should
> > improve things in the future but they don't feel like when there's
> > unnecessary changes for things that are clearly untested.
>
> I too am unhappy with how some of these have gone. The _intent_ here is
> that getting the current "boot generic distro" framework is complex /
> error prone, and we can do better. Unfortunately the first set of
> platforms to switch to this are Rockchip and I think there was overlap
> there with platforms that got broken at the end of the v2023.01 cycle to
> fix other platforms, and then those sets of platforms flipped early in
> v2023.04 and took until -rc2? to get resolved.  Which was less than
> ideal.
>
> > There's also a lot of change for changes sake, for example the
> > rockchips ATF binaries needed is called bl31.elf by the default output
> > of the ATF build process, for others it's bl31.bin, binman for what
> > ever reason has changed that to be atf-bl31, now I have to change the
> > entire build process to be able to work out what is what on a board by
> > board basis to be able to set the required variable to be able to
> > specify the ATF where  previously it "just worked (tm)"..... I suppose
> > there is some perceived goal and improvement here but with both my
> > "U-Boot device maintainer" and "distro maintainer" hats on, both of
> > which I do in my own spare time, I currently fail to see it and I end
> > up.
>
> I wish I knew where to talk to with ATF / TF-A to get some agreed upon
> naming scheme going as one of the things that is very frustrating is
> getting the names and combinations of everything else that's required
> Just Right for every chip. And feedback that things aren't working is
> appreciated, since we do need to make things easier.

In all of the various make_fit_atf.py the various vendors specified
them, this is the case for the rockchip one [1]. This is the case for
the Allwinner boards [2] but the rockchip ports have missed this so it
also should be fixed for GA.

A side point is that binman should not be storing firmware build
specifics in the device tree which is a means of describing the
hardware, This really needs to be fixed as it really isn't the right
place for that sort of things. I suspect a file in arch/arm/mach-<SOC>
is likely a better location, or if it's board specific in the board/
sub directory.

Peter

[1] https://source.denx.de/u-boot/u-boot/-/blob/v2023.01/arch/arm/mach-rockchip/make_fit_atf.py#L227
[2] https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/dts/sunxi-u-boot.dtsi#L64

  reply	other threads:[~2023-03-30  6:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-24 20:58 [v4 0/7] Fix Rockchip RK3399 bootstd migration Tom Rini
2023-03-24 20:58 ` [v4 1/7] rockchip: Drop bootstage stash in TPL and SPL for rockpro64 Tom Rini
2023-03-24 20:58 ` [v4 2/7] Move DISTRO_DEFAULTS into boot/ Tom Rini
2023-03-24 20:58 ` [v4 3/7] lmb: Enable LMB if SYS_BOOT_RAMDISK_HIGH Tom Rini
2023-03-24 20:58 ` [v4 4/7] boot: Create a common BOOT_DEFAULTS for distro and bootstd Tom Rini
2023-03-24 20:58 ` [v4 5/7] rockchip: Disable DISTRO_DEFAULTS for rk3399 boards Tom Rini
2023-03-24 23:48   ` Vagrant Cascadian
2023-03-24 20:58 ` [v4 6/7] rockchip: Use BOOTSTD_DEFAULTS if not DISTRO_DEFAULTS Tom Rini
2023-03-24 20:58 ` [v4 7/7] rockchip: rk3399: Drop altbootcmd Tom Rini
2023-03-26 18:07   ` Jonas Karlman
2023-03-27  4:00 ` [v4 0/7] Fix Rockchip RK3399 bootstd migration Simon Glass
2023-03-27 15:42   ` Tom Rini
2023-03-27 17:50   ` Peter Robinson
2023-03-27 19:03     ` Simon Glass
2023-03-29 14:54     ` Tom Rini
2023-03-30  6:55       ` Peter Robinson [this message]
2023-03-30 20:13         ` Simon Glass
2023-03-31  8:39           ` Peter Robinson
2023-03-31 17:44             ` Tom Rini
2023-04-01  6:31             ` Simon Glass
2023-03-27 17:34 ` Tom Rini

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='CALeDE9MdL8NbU8rw-8b1eGOY2Xz5JAFFjRa+TteSjW2=_hW+Gg@mail.gmail.com' \
    --to=pbrobinson@gmail.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --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;
as well as URLs for NNTP newsgroup(s).