From: Tom Rini <trini@konsulko.com>
To: Jesse Taube <mr.bossman075@gmail.com>
Cc: u-boot@lists.denx.de, "Andrew F . Davis" <afd@ti.com>,
"Giulio Benetti" <giulio.benetti@benettiengineering.com>,
"Stefan Roese" <sr@denx.de>,
"Weijie Gao" <weijie.gao@mediatek.com>,
GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>,
"Mingming lee" <mingming.lee@mediatek.com>,
"Mauro Condarelli" <mc5686@mclink.it>,
"Simon Glass" <sjg@chromium.org>,
"Kever Yang" <kever.yang@rock-chips.com>,
"Quentin Schulz" <quentin.schulz@theobroma-systems.com>,
"Marek Behún" <kabel@kernel.org>,
"Nikhil M Jain" <n-jain1@ti.com>,
"Michal Simek" <michal.simek@amd.com>,
"Patrick Delaunay" <patrick.delaunay@foss.st.com>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Nathan Barrett-Morrison" <nathan.morrison@timesys.com>,
"Stefan Herbrechtsmeier" <stefan.herbrechtsmeier@weidmueller.com>,
"Marek Vasut" <marex@denx.de>,
"Oleksandr Suvorov" <oleksandr.suvorov@foundries.io>,
"Mayuresh Chitale" <mchitale@ventanamicro.com>,
"Roger Quadros" <rogerq@kernel.org>,
"Marek Vasut" <marek.vasut+renesas@gmail.com>
Subject: Re: [PATCH] Convert CFG_SYS_UBOOT_START to Kconfig
Date: Thu, 24 Aug 2023 12:54:56 -0400 [thread overview]
Message-ID: <20230824165456.GD3953269@bill-the-cat> (raw)
In-Reply-To: <20230824023052.655362-1-Mr.Bossman075@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2045 bytes --]
On Wed, Aug 23, 2023 at 10:30:52PM -0400, Jesse Taube wrote:
> Commit 65cc0e2a65d2 ("global: Move remaining CONFIG_SYS_* to CFG_SYS_*")
> renamed CONFIG_SYS_UBOOT_START to CFG_SYS_UBOOT_START. Unfortunately,
> this meant that the value was no longer available to the Makefile. This
> caused imxrt to fail to boot. All the other boards that used this
> variable were unaffected because they were using the default value
> which is CONFIG_TEXT_BASE.
>
> This commit converts CFG_SYS_UBOOT_START to Kconfig and sets the default
> value to CONFIG_TEXT_BASE.
>
> Suggested-by: Marek Vasut <marek.vasut+renesas@gmail.com>
> Suggested-by: Tom Rini <trini@konsulko.com>
> Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com>
[snip]
> diff --git a/boot/Kconfig b/boot/Kconfig
> index 5e2d4286ae..f2f7821cc1 100644
> --- a/boot/Kconfig
> +++ b/boot/Kconfig
> @@ -737,6 +737,22 @@ config TEXT_BASE
> default 0x4a000000 if SUNXI_MINIMUM_DRAM_MB >= 256
> default 0x42e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
> hex "Text Base"
> + help
> + The address in memory that U-Boot will be copied from, initially.
> +
> +config HAVE_SYS_UBOOT_START
> + bool
> + depends on HAVE_TEXT_BASE
> + prompt "Use custom U-Boot Start"
We should use:
bool "Use custom U-Boot start address"
instead of separate bool/prompt.
> + help
> + By default, the address in memory that U-Boot will be copied from(TEXT_BASE) and the
> + entry point are the same. Select this to set a different U-Boot start address.
> +
> +config SYS_UBOOT_START
> + hex
> + depends on HAVE_TEXT_BASE
> + default TEXT_BASE
> + prompt "U-Boot entry" if HAVE_SYS_UBOOT_START
This is clever, and can be kept. I didn't catch at first that this will
do what I was hoping of setting a default, but then allowing for it to
be changed.
> help
> The address in memory that U-Boot will be running from, initially.
This should be slightly different and expand on what's in the help text
for HAVE_SYS_UBOOT_START.
Thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2023-08-24 16:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 2:30 [PATCH] Convert CFG_SYS_UBOOT_START to Kconfig Jesse Taube
2023-08-24 16:54 ` Tom Rini [this message]
2023-08-24 20:01 ` Simon Glass
2023-08-24 22:40 ` Jesse T
2023-08-24 22:45 ` 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=20230824165456.GD3953269@bill-the-cat \
--to=trini@konsulko.com \
--cc=GSS_MTK_Uboot_upstream@mediatek.com \
--cc=afd@ti.com \
--cc=giulio.benetti@benettiengineering.com \
--cc=kabel@kernel.org \
--cc=kever.yang@rock-chips.com \
--cc=marek.vasut+renesas@gmail.com \
--cc=marex@denx.de \
--cc=mc5686@mclink.it \
--cc=mchitale@ventanamicro.com \
--cc=michal.simek@amd.com \
--cc=mingming.lee@mediatek.com \
--cc=mr.bossman075@gmail.com \
--cc=n-jain1@ti.com \
--cc=nathan.morrison@timesys.com \
--cc=oleksandr.suvorov@foundries.io \
--cc=patrick.delaunay@foss.st.com \
--cc=quentin.schulz@theobroma-systems.com \
--cc=rogerq@kernel.org \
--cc=sjg@chromium.org \
--cc=sr@denx.de \
--cc=stefan.herbrechtsmeier@weidmueller.com \
--cc=u-boot@lists.denx.de \
--cc=weijie.gao@mediatek.com \
--cc=xypron.glpk@gmx.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