From: Pascal Zimmermann <pzimmermann@dh-electronics.com>
To: Simon Glass <sjg@chromium.org>
Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>,
Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd
Date: Wed, 27 Nov 2024 15:29:05 +0000 [thread overview]
Message-ID: <9ee7f1fc7c77445b85348555f705a774@dh-electronics.com> (raw)
Hello Simon,
On Wed, 27 Nov 2024 at 14:08, Simon Glass <sjg@chromium.org> wrote:
>
> Hi Pascal,
>
> On Wed, 27 Nov 2024 at 03:30, Pascal Zimmermann <pzimmermann@dh-
> electronics.com> wrote:
> >
> > Make it possible to substitute the 'part list' command inside
> > 'scan_dev_for_boot_part' with a custom board specific implementation.
> >
> > For this the new define 'SCAN_DEV_FOR_BOOT_PARTS' is introduced.
> >
> > Signed-off-by: Pascal Zimmermann <pzimmermann@dh-electronics.com>
> > ---
> > Cc: Tom Rini <trini@konsulko.com>
> > Cc: Simon Glass <sjg@chromium.org>
> > Cc: u-boot@lists.denx.de
> > ---
> > include/config_distro_bootcmd.h | 7 ++++++-
> > 1 file changed, 6 insertions(+), 1 deletion(-)
>
> Have you looked at converting the board to standard boot?
We are at internal discussion about the switch to standard boot
for our boards, but this will take some time.
>
> >
> > diff --git a/include/config_distro_bootcmd.h
> > b/include/config_distro_bootcmd.h index 0a4e4b8ff8..df0dc8cfde 100644
> > --- a/include/config_distro_bootcmd.h
> > +++ b/include/config_distro_bootcmd.h
> > @@ -194,6 +194,11 @@
> > #define SCAN_DEV_FOR_EFI
> > #endif
> >
> > +#ifndef SCAN_DEV_FOR_BOOT_PARTS
> > +#define SCAN_DEV_FOR_BOOT_PARTS \
> > + "part list ${devtype} ${devnum} -bootable devplist; "
> > +#endif
> > +
> > #ifdef CONFIG_SATA
> > #define BOOTENV_SHARED_SATA BOOTENV_SHARED_BLKDEV(sata)
> > #define BOOTENV_DEV_SATA BOOTENV_DEV_BLKDEV
> > @@ -538,7 +543,7 @@
> > "\0" \
> > \
> > "scan_dev_for_boot_part=" \
> > - "part list ${devtype} ${devnum} -bootable devplist; " \
> > + SCAN_DEV_FOR_BOOT_PARTS \
> > "env exists devplist || setenv devplist 1; " \
> > "for distro_bootpart in ${devplist}; do " \
> > "if fstype ${devtype} " \
> > --
> > 2.30.2
> >
>
> Regards,
> Simon
Best regards,
Pascal
next reply other threads:[~2024-11-27 17:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-27 15:29 Pascal Zimmermann [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-27 10:29 [PATCH 0/2] ARM: stm32: env: Enable scan and start for AB schema on STM32MP15 DHSOM Pascal Zimmermann
2024-11-27 10:29 ` [PATCH 1/2] config_distro_bootcmd: make possible to substitute 'part list' in distro_bootcmd Pascal Zimmermann
2024-11-27 13:07 ` 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=9ee7f1fc7c77445b85348555f705a774@dh-electronics.com \
--to=pzimmermann@dh-electronics.com \
--cc=sjg@chromium.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 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.