Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Vladimir Oltean <olteanv@gmail.com>
Cc: buildroot@buildroot.org,
	Brandon Maier <Brandon.Maier@collins.com>,
	Ioana Ciornei <ciorneiioana@gmail.com>,
	Romain Naour <romain.naour@smile.fr>,
	Vincent Jardin <vjardin@free.fr>, Julien Olivain <ju.o@free.fr>,
	Akhilesh Nema <nemaakhilesh@gmail.com>
Subject: Re: [Buildroot] [PATCH v4 2/2] board/lx2160ardb: new platform
Date: Fri, 2 Jan 2026 23:33:08 +0100	[thread overview]
Message-ID: <20260102233308.49adad9a@windsurf> (raw)
In-Reply-To: <20250830173313.164981-3-olteanv@gmail.com>

Hello Vladimir,

On Sat, 30 Aug 2025 20:33:13 +0300
Vladimir Oltean <olteanv@gmail.com> wrote:

> Add Buildroot support for the NXP LX2160A-RDB (reference design board).
> This is configured here to boot from the SD card. To my surprise, NXP
> RCWs for LX2160A rev2 silicon don't have a pre-existing example for SD
> boot, so until one is available, include the RCW through board files.
> 
> I would have been fine with the default U-Boot environment, except that
> I would like to ship the MC firmware deployed as a file in the
> filesystem, and that requires a custom 'mcinitcmd' environment variable
> to load it. Thus, the 'env default -a' output was customized and
> included here in its entirety.
> 
> Previous review feedback said that the U-Boot environment is too large:
> https://lore.kernel.org/buildroot/2hhshlixqffg7r3o33klqzyvbxnpwllhhkskbi5igtewh6htlg@5huoxuxspqlv/
> Short of me starting to strip away features, the best I can do is to
> amortize the cost by taking away some variables and placing them in
> other U-Boot environment variable files which can be reused.

I'm still not excited by these massive U-Boot environments. Imagine we
start to have something like this for all boards? It would be a real
mess.

Options that I see:

- Since anyway you're rewriting the entire environment, why does it
  matter to use extlinux? extlinux is great when the U-Boot environment
  is already set to use it. But here you anyway override the whole
  environment, so you could just as well use a trivial environment that
  just implements the bootcmd that works for the Buildroot use-case.

- You could use the new "U-Boot Standard Boot" mechanism, which
  replaces the madness of U-Boot scripts/environment variables by
  something much nicer implemented in C, and which needs only a handful
  of environment variables.

> diff --git a/configs/lx2160ardb_defconfig b/configs/lx2160ardb_defconfig
> new file mode 100644
> index 000000000000..02cab7754e28
> --- /dev/null
> +++ b/configs/lx2160ardb_defconfig
> @@ -0,0 +1,58 @@
> +BR2_aarch64=y
> +BR2_cortex_a72=y
> +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y

I think we now want to use external toolchains for new defconfigs.
However, I'll be happy to merge it without this change as it's kind of
a new requirement, and you've been trying to get this defconfig in for
quite some time already.

Honestly the rest looks good, it's really just the madness of the
U-Boot environment that I dislike.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-01-02 22:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-30 17:33 [Buildroot] [PATCH v4 0/2] Initial LX2160A-RDB support Vladimir Oltean
2025-08-30 17:33 ` [Buildroot] [PATCH v4 1/2] package/qoriq-restool: new package Vladimir Oltean
2025-09-10 14:03   ` Romain Naour via buildroot
2026-01-02 22:27   ` Thomas Petazzoni via buildroot
2025-08-30 17:33 ` [Buildroot] [PATCH v4 2/2] board/lx2160ardb: new platform Vladimir Oltean
2026-01-02 22:33   ` Thomas Petazzoni via buildroot [this message]
2026-02-02 11:42 ` [Buildroot] [PATCH v5 0/3] Initial LX2160A-RDB support Maxime Leroy
2026-02-02 11:42 ` [Buildroot] [PATCH v5 1/3] package/qoriq-restool: add runtime dependencies Maxime Leroy
2026-02-02 14:36   ` Vladimir Oltean
2026-02-02 11:42 ` [Buildroot] [PATCH v5 2/3] package/qoriq-restool: bump to lf-6.12.34-2.1.0 Maxime Leroy
2026-02-02 14:36   ` Vladimir Oltean
2026-02-02 11:42 ` [Buildroot] [PATCH v5 3/3] board/lx2160ardb: new platform Maxime Leroy
2026-02-02 14:45   ` Vladimir Oltean

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=20260102233308.49adad9a@windsurf \
    --to=buildroot@buildroot.org \
    --cc=Brandon.Maier@collins.com \
    --cc=ciorneiioana@gmail.com \
    --cc=ju.o@free.fr \
    --cc=nemaakhilesh@gmail.com \
    --cc=olteanv@gmail.com \
    --cc=romain.naour@smile.fr \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=vjardin@free.fr \
    /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