From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: Jonas Karlman <jonas@kwiboo.se>,
Vagrant Cascadian <vagrant@debian.org>,
U-Boot Mailing List <u-boot@lists.denx.de>,
huang lin <hl@rock-chips.com>,
Jeffy Chen <jeffy.chen@rock-chips.com>,
Kever Yang <kever.yang@rock-chips.com>,
Akash Gajjar <akash@openedev.com>,
Jagan Teki <jagan@amarulasolutions.com>
Subject: Re: [PATCH 2/3] rockchip: Disable DISTRO_DEFAULTS for rockpro64
Date: Wed, 22 Feb 2023 14:15:23 -0500 [thread overview]
Message-ID: <Y/Zpy9D1tcNA3ODZ@bill-the-cat> (raw)
In-Reply-To: <CAPnjgZ2wvn2gXNcreagh1hxx9eNrUip04A-kxU_jp-sz+NDSVA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3500 bytes --]
On Wed, Feb 22, 2023 at 12:03:58PM -0700, Simon Glass wrote:
> Hi Tom,
>
> On Wed, 22 Feb 2023 at 12:01, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Wed, Feb 22, 2023 at 11:58:37AM -0700, Simon Glass wrote:
> > > Hi,
> > >
> > > On Wed, 22 Feb 2023 at 11:56, Jonas Karlman <jonas@kwiboo.se> wrote:
> > > >
> > > > On 2023-02-22 19:24, Tom Rini wrote:
> > > > > On Wed, Feb 22, 2023 at 10:19:03AM -0800, Vagrant Cascadian wrote:
> > > > >> On 2023-02-21, Vagrant Cascadian wrote:
> > > > >>> On 2023-02-21, Simon Glass wrote:
> > > > >>>> This board has moved to standard boot but the old 'distro_bootcmd'
> > > > >>>> command is still active. Disable DISTRO_DEFAULTS to fix this.
> > > > >>>
> > > > >>> Works for booting rockpro64-rk3399, thanks!
> > > > >>
> > > > >> I can also confirm that applying a very similar patch for
> > > > >> pinebook-pro-rk3399 works booting with bootstd.
> > > > >>
> > > > >> Seems worth adding if there is a v2 of the patch series.
> > > > >>
> > > > >> Alternately, rather than doing this on a board-by-board basis, is there
> > > > >> some way to disable CONFIG_DISTRO_DEFAULTS when a board is using
> > > > >> BOOTSTD?
> > > > >
> > > > > I think that's possibly a bit dangerous? DISTRO_DEFAULTS and
> > > > > BOOTSTD_DEFAULTS need to be reconciled to a single new symbol, and the
> > > > > DISTRO_DEFAULTS method of select not imply for most things is also I
> > > > > suspect the right path.
> > > > >
> > > >
> > > > Another option would be to set BOOTSTD_BOOTCOMMAND=y, this is the main
> > > > issue with rk3399 at the moment, distro_bootcmd got removed from env,
> > > > yet bootcmd is still "run distro_bootcmd" due to DISTRO_DEFAULTS=y.
> > > >
> > > >
> > > > config BOOTCOMMAND
> > > > default "bootflow scan -lb" if BOOTSTD_BOOTCOMMAND && CMD_BOOTFLOW_FULL
> > > > default "bootflow scan" if BOOTSTD_BOOTCOMMAND && !CMD_BOOTFLOW_FULL
> > > > default "run distro_bootcmd" if !BOOTSTD_BOOTCOMMAND && DISTRO_DEFAULTS
> > > >
> > > > config BOOTSTD_BOOTCOMMAND
> > > > default y if !DISTRO_DEFAULTS
> > >
> > > That seems reasonable to me, along with a 'depends on BOOTSTD'
> > >
> > > At present DISTRO_DEFAULTS is both enabled in defconfig files (about
> > > 350) and Kconfig (another 300). For rockchip it is the latter.
> > >
> > > It doesn't really make sense to use DISTRO_DEFAULTS when using
> > > BOOTSTD_DEFAULTS. One is 'run distro_bootcmd' and the other is
> > > 'bootflow scan', possibly with -lb flags. But we really don't want
> > > people flipping back and forward.
> >
> > It doesn't make linguistic sense to have "distro defaults" and "bootstd
> > defaults" enabled. It makes compute sense to have these two symbols
> > combined as they're nearly identical and have a similar conceptual need
> > (make sure we have things like bootz/booti/ext4/etc support).
>
> Oh, so you are talking about DISTRO_DEFAULTS, not the actual command?
> In that case I can do a patch to make them both use a common symbol to
> bring in most stuff, although bootstd does not need hush and a few
> other things that are needed by distro_bootcmd.
>
> Let me know if that makes sense.
Yeah, the Kconfig symbols DISTRO_DEFAULTS and BOOTSTD_DEFAULTS need to
be reconciled and combined. This is separate from setting bootcmd to
"run distro_bootcmd", which should be separate, and yes, not be the
chosen symbol when we have bootstd enabled.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2023-02-22 19:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 19:39 [PATCH 1/3] rockchip: Drop bootstage stash in TPL and SPL Simon Glass
2023-02-21 19:39 ` [PATCH 2/3] rockchip: Disable DISTRO_DEFAULTS for rockpro64 Simon Glass
2023-02-21 23:30 ` Vagrant Cascadian
2023-02-22 18:19 ` Vagrant Cascadian
2023-02-22 18:24 ` Tom Rini
2023-02-22 18:56 ` Jonas Karlman
2023-02-22 18:58 ` Simon Glass
2023-02-22 19:01 ` Tom Rini
2023-02-22 19:03 ` Simon Glass
2023-02-22 19:15 ` Tom Rini [this message]
2023-03-16 11:01 ` Peter Robinson
2023-03-16 18:17 ` Tom Rini
2023-03-17 5:25 ` Simon Glass
2023-02-21 19:39 ` [PATCH 3/3] bootstd: Enable BOOTSTD_DEFAULTS by default Simon Glass
2023-02-21 23:29 ` Vagrant Cascadian
2023-02-21 23:28 ` [PATCH 1/3] rockchip: Drop bootstage stash in TPL and SPL Vagrant Cascadian
2023-02-22 14:47 ` Quentin Schulz
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=Y/Zpy9D1tcNA3ODZ@bill-the-cat \
--to=trini@konsulko.com \
--cc=akash@openedev.com \
--cc=hl@rock-chips.com \
--cc=jagan@amarulasolutions.com \
--cc=jeffy.chen@rock-chips.com \
--cc=jonas@kwiboo.se \
--cc=kever.yang@rock-chips.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=vagrant@debian.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