public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
	Caleb Connolly <caleb.connolly@linaro.org>,
	Christian Marangi <ansuelsmth@gmail.com>,
	Francis Laniel <francis.laniel@amarulasolutions.com>,
	Guillaume La Roque <glaroque@baylibre.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Julien Masson <jmasson@baylibre.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Martyn Welch <martyn.welch@collabora.com>,
	Mattijs Korpershoek <mkorpershoek@baylibre.com>,
	Michael Trimarchi <michael@amarulasolutions.com>,
	Patrick Rudolph <patrick.rudolph@9elements.com>,
	Quentin Schulz <quentin.schulz@cherry.de>,
	Richard Weinberger <richard@nod.at>,
	Sughosh Ganu <sughosh.ganu@linaro.org>
Subject: Re: [PATCH 4/5] pxe_utils: Support a backup for localboot
Date: Wed, 8 Jan 2025 11:31:51 -0600	[thread overview]
Message-ID: <20250108173151.GL3476@bill-the-cat> (raw)
In-Reply-To: <CAFLszThNrYMZtiPRewdvY-ip6XmHKdLFbQ5OHZLTsULpiJZKsw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3562 bytes --]

On Wed, Jan 08, 2025 at 10:04:07AM -0700, Simon Glass wrote:
> Hi Tom,
> 
> On Fri, 20 Dec 2024 at 13:48, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Fri, Dec 20, 2024 at 10:37:34AM -0700, Simon Glass wrote:
> > > Hi Tom,
> > >
> > > On Fri, 20 Dec 2024 at 10:23, Tom Rini <trini@konsulko.com> wrote:
> > > >
> > > > On Fri, Dec 20, 2024 at 10:18:17AM -0700, Simon Glass wrote:
> > > > > Hi Tom,
> > > > >
> > > > > On Fri, 20 Dec 2024 at 07:56, Tom Rini <trini@konsulko.com> wrote:
> > > > > >
> > > > > > On Thu, Dec 19, 2024 at 09:01:19PM -0700, Simon Glass wrote:
> > > > > >
> > > > > > > The current localboot implementation assumes that a 'localcmd'
> > > > > > > environment variable is provided, with the instructions to follow. This
> > > > > > > may not be included, so provide a fallback in that case.
> > > > > > >
> > > > > > > Add a test image and test as well.
> > > > > > >
> > > > > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > > >
> > > > > > This is a pretty niche feature, I had to dig around a bit to see how
> > > > > > it's specified elsewhere (not really) and how it's used. And I think
> > > > > > that based on how it's used, making up a bootcmd when localcmd is
> > > > > > undefined is the wrong approach. It's the hook for "run what I defined
> > > > > > in the environment", so if not set erroring back out seems appropriate.
> > > > >
> > > > > Yes, but unfortunately it seems to be used and we should support it.
> > > > > The problem with scripts is that we don't know the boot device, etc,
> > > > > so it needs to be integrated into PXE. I did consider putting
> > > > > something in bootstd, but we only find out that it is requesting a
> > > > > localboot when actually running the extlinux bootmeth, so this is what
> > > > > I came up with.
> > > > >
> > > > > It will be interesting to see if any other cases come up.
> > > >
> > > > It would be helpful at this point I think if you can point to how the
> > > > code for handling this case (the LOCALBOOT keyword followed by an
> > > > integer) in other projects so that we can be compliant with what's
> > > > expected, even if it's poorly documented.
> > >
> > > Yes, it seems very hard to find anything at all.
> > >
> > > The implementation in syslinux uses the BIOS to jump to a boot sector:
> > >
> > > https://repo.or.cz/syslinux.git/blob/HEAD:/core/bios/localboot.c
> > >
> > > I'm really not sure how it is supposed to work with a filesystem.
> > >
> > > [1] is a usage of it for rpi
> >
> > Yes, I did some searching on extlinux.conf and localboot and got a few
> > hits on people using localcmd for when they need to run their own
> > special thing, for various reasons, for example:
> > https://stackoverflow.com/questions/54258960/applying-fdt-overlay-with-u-boot-using-extlinux-conf
> >
> > > But other than that, even Gemini doesn't seems to have much idea.
> >
> > I'm only half surprised it didn't make something up for it.
> 
> I've been quite amazed at its capabilities recently. I can mostly get
> good answers to quite complex questions and it is very fast now. I'm
> just waiting for when I can start using it for development.

Oh no, please no. We don't have a policy yet, but no "AI" created code,
please.

> I wonder who maintains the extlinux stuff. Do you have any idea? It
> would be nice to move it into a git tree and generate the spec from
> there.

I would say the syslinux project should be the authority unless they say
otherwise.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2025-01-08 17:32 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-20  4:01 [PATCH 0/5] pxe: Support an automatic localboot Simon Glass
2024-12-20  4:01 ` [PATCH 1/5] test/py: Refactor extlinux-image creation into a function Simon Glass
2024-12-20  4:01 ` [PATCH 2/5] test: bootflow: Avoid a confusing error condition Simon Glass
2024-12-20  4:01 ` [PATCH 3/5] pxe_utils: Allow the FDT to be missing Simon Glass
2024-12-20 14:45   ` Tom Rini
2025-01-14 15:13   ` Quentin Schulz
2025-01-15  1:16     ` Simon Glass
2025-01-15 11:59       ` Quentin Schulz
2025-01-15 13:19         ` Simon Glass
2024-12-20  4:01 ` [PATCH 4/5] pxe_utils: Support a backup for localboot Simon Glass
2024-12-20 14:56   ` Tom Rini
2024-12-20 17:18     ` Simon Glass
2024-12-20 17:23       ` Tom Rini
2024-12-20 17:37         ` Simon Glass
2024-12-20 20:48           ` Tom Rini
2025-01-08 17:04             ` Simon Glass
2025-01-08 17:31               ` Tom Rini [this message]
2025-01-09 12:31                 ` Simon Glass
2024-12-20  4:01 ` [PATCH 5/5] pxe_utils: Support the SAY command Simon Glass
2024-12-20 14:44   ` Tom Rini
2024-12-20 17:36     ` Simon Glass
2024-12-20 18:30       ` Tom Rini
2024-12-20 19:34         ` 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=20250108173151.GL3476@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=ansuelsmth@gmail.com \
    --cc=caleb.connolly@linaro.org \
    --cc=francis.laniel@amarulasolutions.com \
    --cc=glaroque@baylibre.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jmasson@baylibre.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=martyn.welch@collabora.com \
    --cc=michael@amarulasolutions.com \
    --cc=mkorpershoek@baylibre.com \
    --cc=patrick.rudolph@9elements.com \
    --cc=quentin.schulz@cherry.de \
    --cc=richard@nod.at \
    --cc=sjg@chromium.org \
    --cc=sughosh.ganu@linaro.org \
    --cc=u-boot@lists.denx.de \
    --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