From: "Marek Behún" <kabel@kernel.org>
To: Tom Rini <trini@konsulko.com>
Cc: "Pali Rohár" <pali@kernel.org>, u-boot@lists.denx.de
Subject: Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d
Date: Mon, 8 Aug 2022 09:51:49 +0200 [thread overview]
Message-ID: <20220808095149.2e0ed3ff@thinkpad> (raw)
In-Reply-To: <20220805222019.GE1146598@bill-the-cat>
On Fri, 5 Aug 2022 18:20:19 -0400
Tom Rini <trini@konsulko.com> wrote:
> On Fri, Aug 05, 2022 at 10:17:01PM +0200, Pali Rohár wrote:
> > On Friday 05 August 2022 11:54:53 Tom Rini wrote:
> > > On Fri, Aug 05, 2022 at 05:51:35PM +0200, Pali Rohár wrote:
> > > > On Friday 05 August 2022 11:44:00 Tom Rini wrote:
> > > > > On Fri, Aug 05, 2022 at 05:12:59PM +0200, Pali Rohár wrote:
> > > > > > On Friday 05 August 2022 11:03:40 Tom Rini wrote:
> > > > > > > On Fri, Aug 05, 2022 at 04:59:35PM +0200, Pali Rohár wrote:
> > > > > > > > On Friday 05 August 2022 10:47:31 Tom Rini wrote:
> > > > > > > > > On Fri, Aug 05, 2022 at 04:21:24PM +0200, Pali Rohár wrote:
> > > > > > > > > > On Wednesday 03 August 2022 12:13:18 Tom Rini wrote:
> > > > > > > > > > > On Wed, Aug 03, 2022 at 06:00:13PM +0200, Pali Rohár wrote:
> > > > > > > > > > > > On Tuesday 02 August 2022 06:58:26 Tom Rini wrote:
> > > > > > > > > > > > > On Tue, Aug 02, 2022 at 11:13:38AM +0200, Pali Rohár wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > > Hello Tom!
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Your commit de47ff536363289f92f85ed1e4901724d238432d ("Convert
> > > > > > > > > > > > > > CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") seems to be broken.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I thought I had managed to mirror the TPL/SPL/full usage that was there
> > > > > > > > > > > > > prior, but apparently some got missed.
> > > > > > > > > > > >
> > > > > > > > > > > > Yea, conversion to Kconfig seems that was incorrect.
> > > > > > > > > > >
> > > > > > > > > > > As the config files were just unclear, but you seem to understand what
> > > > > > > > > > > it's supposed to be, a patch to clean it up would be most appreciated,
> > > > > > > > > > > thanks.
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > Tom
> > > > > > > > > >
> > > > > > > > > > Broken is also commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2. Seems
> > > > > > > > > > that all kconfig migration changes done after that commit are broken.
> > > > > > > > > >
> > > > > > > > > > I really do not have energy to investigate what and how was broken due
> > > > > > > > > > to incorrect kconfig migration.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > I did simple test. Applied following change:
> > > > > > > > > >
> > > > > > > > > > diff --git a/include/configs/p1_p2_rdb_pc.h b/include/configs/p1_p2_rdb_pc.h
> > > > > > > > > > index a6523753d5ca..489f24df0ab1 100644
> > > > > > > > > > --- a/include/configs/p1_p2_rdb_pc.h
> > > > > > > > > > +++ b/include/configs/p1_p2_rdb_pc.h
> > > > > > > > > > @@ -624,3 +624,7 @@ __stringify(__PCIE_RST_CMD)"\0"
> > > > > > > > > > "bootm $norbootaddr - $norfdtaddr"
> > > > > > > > > >
> > > > > > > > > > #endif /* __CONFIG_H */
> > > > > > > > > > +
> > > > > > > > > > +#ifdef CONFIG_SDCARD
> > > > > > > > > > +#error
> > > > > > > > > > +#endif
> > > > > > > > > >
> > > > > > > > > > And then called:
> > > > > > > > > >
> > > > > > > > > > make CROSS_COMPILE=powerpc-linux-gnuspe- P2020RDB-PC_defconfig u-boot.bin
> > > > > > > > > >
> > > > > > > > > > And it failed, even when this defconfig file is not SD card builds.
> > > > > > > > >
> > > > > > > > > Where is PBL in that case even then?
> > > > > > > >
> > > > > > > > P2020 (and older) are pre-PBL boards, they do not support NXP PBL
> > > > > > > > header.
> > > > > > >
> > > > > > > Ah, OK, then it should just be removing TARGET_P2020RDB from the choice
> > > > > > > on "Freescale PBL load location".
> > > > > > >
> > > > > > > --
> > > > > > > Tom
> > > > > >
> > > > > > I just do not understand.
> > > > > >
> > > > > > P10** and P20** do not support NXP PBL. They support only pre-PBL and
> > > > > > for SD card pre-PBL support I added option FSL_PREPBL_ESDHC_BOOT_SECTOR.
> > > > > >
> > > > > > But CONFIG_SDCARD is automatically set when SYS_EXTRA_OPTIONS contains
> > > > > > "SDCARD" string and CONFIG_SDCARD is used then also in P10** and P20**
> > > > > > SD-card version of SPL to load proper U-Boot.
> > > > >
> > > > > So CONFIG_SDCARD was over-loaded? That's very frustrating. That's what
> > > > > needs to be corrected then.
> > > >
> > > > But it was correct, no? CONFIG_SDCARD ensures that U-Boot is compiled in
> > > > mode in which can be booted from SD card. Or what do you have in mind as
> > > > purpose of this symbol?
> > > >
> > > > The issue is that your Kconfig migration changes enabled CONFIG_SDCARD
> > > > also when building (parallel) NOR version of U-Boot.
> > >
> > > To me, the biggest issue is that "CONFIG_SDCARD" exists. It's very much
> > > non-descriptive and that for some platforms it means "we have NXP PBL"
> > > and others means "we're booting from SDCARD". The former should be
> > > renamed to be descriptive, and the latter should re-use CONFIG_SD_CARD
> > > which is still a bad name, but what everyone else uses, so makes
> > > renaming it later to something less bad easier.
> >
> > So I hope that you will do something with it. I already spent lot of
> > time to fix and improve powerpc support, but the result is that my
> > patches are on the list, mostly ignored; but changes which are breaking
> > powerpc support are happily merging. In this state I'm loosing any
> > motivation to continue development as it is needed to do again to find
> > out what new is broken.
>
> I'm not planning to try and further fiddle with those symbols. A
> simple revert is not possible as CONFIG_SYS_EXTRA_OPTIONS is gone. I
> assume that Marek will be picking up your PowerPC patches at this point,
> so any further work you're doing in that area shouldn't be delayed.
> I'll put re-examining this on my TODO list, but it's below finishing my
> CONFIG_SYS_* audit, and then renaming stuff to CFG_SYS.
>
> You should fix whatever platforms you have access to and ignore the
> rest, I feel likely to be removing most of them shortly at this point.
>
I shall try to fix this on our platform by "reverting" these to
different names, so that there are no new CONFIG_ macros.
Marek
next prev parent reply other threads:[~2022-08-08 7:52 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-02 9:13 Broken commit de47ff536363289f92f85ed1e4901724d238432d Pali Rohár
2022-08-02 10:58 ` Tom Rini
2022-08-03 16:00 ` Pali Rohár
2022-08-03 16:13 ` Tom Rini
2022-08-05 14:21 ` Pali Rohár
2022-08-05 14:47 ` Tom Rini
2022-08-05 14:59 ` Pali Rohár
2022-08-05 15:03 ` Tom Rini
2022-08-05 15:12 ` Pali Rohár
2022-08-05 15:44 ` Tom Rini
2022-08-05 15:51 ` Pali Rohár
2022-08-05 15:54 ` Tom Rini
2022-08-05 20:17 ` Pali Rohár
2022-08-05 22:20 ` Tom Rini
2022-08-08 7:51 ` Marek Behún [this message]
2022-08-08 13:37 ` Tom Rini
2022-08-17 9:29 ` Pali Rohár
2022-08-26 14:53 ` Tom Rini
2022-10-09 12:41 ` Pali Rohár
2022-10-09 12:45 ` Tom Rini
2022-10-09 13:10 ` Pali Rohár
2022-10-09 16:32 ` Tom Rini
2022-10-10 12:20 ` Marek Behún
2022-11-01 23:14 ` Pali Rohár
2022-11-21 17:56 ` Pali Rohár
2022-12-16 18:01 ` Pali Rohár
2022-12-16 19:24 ` Marek Behún
2022-12-16 21:56 ` Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2 Pali Rohár
2022-12-22 2:54 ` Tom Rini
2022-12-22 7:49 ` Pali Rohár
2022-12-22 14:29 ` Tom Rini
2022-12-22 17:13 ` Pali Rohár
2022-12-22 17:33 ` Tom Rini
2022-12-22 17:56 ` Pali Rohár
2022-12-22 18:22 ` Tom Rini
2022-12-22 21:02 ` Pali Rohár
2022-12-23 0:36 ` Tom Rini
2022-12-25 10:42 ` Freescale P2020 Internal Boot ROM Pali Rohár
2022-12-23 19:10 ` Broken commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2 Pali Rohár
2022-12-23 19:18 ` Tom Rini
2022-12-23 21:39 ` Pali Rohár
2022-12-23 22:34 ` Pali Rohár
2022-12-24 16:13 ` Tom Rini
2022-12-24 17:03 ` Pali Rohár
2022-12-28 14:45 ` Pali Rohár
2022-12-23 21:56 ` Pali Rohár
2022-12-22 17:36 ` Simon Glass
2022-12-28 16:50 ` Broken commit de47ff536363289f92f85ed1e4901724d238432d Pali Rohár
2022-12-28 17:13 ` Tom Rini
2022-12-28 17:50 ` Broken socrates board (Was: Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d) Pali Rohár
2022-12-29 22:38 ` 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=20220808095149.2e0ed3ff@thinkpad \
--to=kabel@kernel.org \
--cc=pali@kernel.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