All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,
	Michal Simek <michal.simek@amd.com>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Joe Hershberger <joe.hershberger@ni.com>,
	Ramon Fried <rfried.dev@gmail.com>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>,
	Patrick Rudolph <patrick.rudolph@9elements.com>,
	Jerome Forissier <jerome.forissier@linaro.org>,
	Sumit Garg <sumit.garg@linaro.org>,
	Raymond Mao <raymond.mao@linaro.org>,
	Weijie Gao <weijie.gao@mediatek.com>,
	Daniel Golle <daniel@makrotopia.org>,
	Svyatoslav Ryhel <clamor95@gmail.com>,
	Mattijs Korpershoek <mkorpershoek@baylibre.com>,
	Caleb Connolly <caleb.connolly@linaro.org>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Jonathan Humphreys <j-humphreys@ti.com>,
	Dmitry Rokosov <ddrokosov@salutedevices.com>,
	U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: [PATCH v2 5/6] cmd: bootmenu: add parameter -e for UEFI boot options
Date: Mon, 13 Jan 2025 19:27:25 -0600	[thread overview]
Message-ID: <20250114012725.GH3476@bill-the-cat> (raw)
In-Reply-To: <CAFLszTjWf546_gO9UEUzWkc1tFcf70dGw1Oxe=3UCvzgGsWgSA@mail.gmail.com>

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

On Mon, Jan 13, 2025 at 05:15:08PM -0700, Simon Glass wrote:
> Hi Tom,
> 
> On Mon, 13 Jan 2025 at 13:35, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Mon, Jan 13, 2025 at 01:09:16PM -0700, Simon Glass wrote:
> > > Hi Tom,
> > >
> > > On Mon, 13 Jan 2025 at 12:24, Tom Rini <trini@konsulko.com> wrote:
> > > >
> > > > On Mon, Jan 13, 2025 at 12:01:45PM -0700, Simon Glass wrote:
> > > > > Hi,
> > > > >
> > > > > On Sun, 12 Jan 2025 at 18:51, Tom Rini <trini@konsulko.com> wrote:
> > > > > >
> > > > > > On Sun, Jan 12, 2025 at 08:08:13PM +0100, Heinrich Schuchardt wrote:
> > > > > > > Tom Rini <trini@konsulko.com> schrieb am Fr., 10. Jan. 2025, 23:46:
> > > > > > >
> > > > > > > > On Wed, Nov 27, 2024 at 08:06:30AM +0100, Heinrich Schuchardt wrote:
> > > > > > > >
> > > > > > > > > The bootmenu command can display
> > > > > > > > >
> > > > > > > > > * menu entries defined by environment variables
> > > > > > > > > * menu entries defined by UEFI boot options
> > > > > > > > >
> > > > > > > > > Not in all cases showing the UEFI boot options is desired.
> > > > > > > > > Provide a new parameter '-e' to select the display of UEFI boot options.
> > > > > > > > >
> > > > > > > > > Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
> > > > > > > > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> > > > > > > >
> > > > > > > > Very strangely, this leads to the EFI selftest "Executing 'random number
> > > > > > > > generator'" test failing on Pi 4, where was was passing previously (and
> > > > > > > > Pi 4 has an RNG, unlike Pi 3), and this is
> > > > > > >
> > > > > > > Do you have a link to the log?
> > > > > >
> > > > > > Here's the failing part:
> > > > > > Setting up 'random number generator'
> > > > > > ESC[0;37;40mESC[1;32;40mSetting up 'random number generator' succeeded
> > > > > > ESC[0;37;40mESC[1;34;40m
> > > > > > Executing 'random number generator'
> > > > > > ESC[0;37;40mESC[1;31;40mlib/efi_selftest/efi_selftest_rng.c(52):
> > > > > > ERROR: ESC[0;37;40mESC[1;31;40mRandom number generator protocol not
> > > > > > available
> > > > > > ESC[0;37;40mESC[1;31;40mlib/efi_selftest/efi_selftest.c(114):
> > > > > > ERROR: ESC[0;37;40mESC[1;31;40mExecuting 'random number generator'
> > > > > > failed
> > > > > > ESC[0;37;40mESC[1;34;40m
> > > > >
> > > > > This might help make the log more intelligible.
> > > > >
> > > > > https://patchwork.ozlabs.org/project/uboot/patch/20240811145209.4191404-37-sjg@chromium.org/
> > > >
> > > > Shrug, it's the age old problem of sending raw stdout to a file. It
> > > > looks fine on console as it happens, I was just grabbing from an
> > > > existing log.
> > >
> > > Oh well. I would probably suggest only writing this junk to log files
> > > if we actually need it in there (i.e. something is programmatically
> > > checking), but it seems like this is a different situation from the
> > > one my patch fixes.
> >
> > I mean, yes? The problem here is that the random number generator test
> > now fails, when it didn't before. As far as I know (and I think the rest
> > of us understood?) your problem was that the ANSI sequences exist.
> 
> Yes, I want them to be controlled, so we can have them when needed
> (e.g. for user benefit, getting the terminal size) but not when not
> needed (CI output, log files, testing that ANSI works, etc.)

Yes, and Heinrich said for the test he wrote he finds having color
sequences to them (and not just the color sequence tests) helpful. That
is literally the only place we have them when not strictly needed AFAIK.
So using one of the countless "strip ansi color sequences from my log"
tool seems the best option here, when bothered by them.

-- 
Tom

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

  reply	other threads:[~2025-01-14  1:27 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-27  7:06 [PATCH v2 0/6] efi_loader: run bootdev_hunt() to find ESP Heinrich Schuchardt
2024-11-27  7:06 ` [PATCH v2 1/6] test: fix test_extension.py Heinrich Schuchardt
2024-11-27  7:06 ` [PATCH v2 2/6] configs: sandbox_deconfig: remove CONFIG_AMIGA_PARTITION Heinrich Schuchardt
2024-11-27  8:25   ` Ilias Apalodimas
2024-11-27  7:06 ` [PATCH v2 3/6] CI: xilinx_versal_virt: disable USB_DWC3 Heinrich Schuchardt
2024-11-27 12:07   ` Michal Simek
2024-11-27  7:06 ` [PATCH v2 4/6] net: eth_bootdev_hunt() should not run DHCP Heinrich Schuchardt
2024-11-27 13:07   ` Simon Glass
2024-11-27 14:00     ` Heinrich Schuchardt
2024-11-27 14:14       ` Simon Glass
2024-12-04  9:10         ` Heinrich Schuchardt
2024-12-04 15:13           ` Simon Glass
2024-11-27  7:06 ` [PATCH v2 5/6] cmd: bootmenu: add parameter -e for UEFI boot options Heinrich Schuchardt
2025-01-10 22:45   ` Tom Rini
2025-01-12 19:08     ` Heinrich Schuchardt
2025-01-13  1:51       ` Tom Rini
2025-01-13 19:01         ` Simon Glass
2025-01-13 19:04           ` Heinrich Schuchardt
2025-01-13 19:23           ` Tom Rini
2025-01-13 20:09             ` Simon Glass
2025-01-13 20:35               ` Tom Rini
2025-01-14  0:15                 ` Simon Glass
2025-01-14  1:27                   ` Tom Rini [this message]
2024-11-27  7:06 ` [PATCH v2 6/6] efi_loader: run bootdev_hunt() to find ESP Heinrich Schuchardt
  -- strict thread matches above, loose matches on Subject: below --
2024-11-23 21:45 [PATCH v2 0/6] " Heinrich Schuchardt
2024-11-23 21:45 ` [PATCH v2 5/6] cmd: bootmenu: add parameter -e for UEFI boot options Heinrich Schuchardt
2024-11-25 13:02   ` Ilias Apalodimas

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=20250114012725.GH3476@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=caleb.connolly@linaro.org \
    --cc=clamor95@gmail.com \
    --cc=daniel@makrotopia.org \
    --cc=ddrokosov@salutedevices.com \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=j-humphreys@ti.com \
    --cc=jerome.forissier@linaro.org \
    --cc=jiaxun.yang@flygoat.com \
    --cc=joe.hershberger@ni.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=michal.simek@amd.com \
    --cc=mkorpershoek@baylibre.com \
    --cc=patrick.rudolph@9elements.com \
    --cc=raymond.mao@linaro.org \
    --cc=rfried.dev@gmail.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@linaro.org \
    --cc=u-boot@lists.denx.de \
    --cc=weijie.gao@mediatek.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.