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 <xypron.glpk@gmx.de>,
	Christian Melki <christian.melki@t2data.com>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Bin Meng <bmeng.cn@gmail.com>,
	U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: [PATCH v7 04/24] x86: Don't process the kernel command line unless enabled
Date: Wed, 29 Dec 2021 08:45:11 -0500	[thread overview]
Message-ID: <20211229134511.GC2773246@bill-the-cat> (raw)
In-Reply-To: <CAPnjgZ1TLYvk0OQSHkiqHdok-9NAhkWDFRdjcsioV7gpcoBzvg@mail.gmail.com>

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

On Wed, Dec 29, 2021 at 06:36:30AM -0700, Simon Glass wrote:
> Hi Heinrich,
> 
> On Tue, 21 Dec 2021 at 00:37, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> >
> > On 12/18/21 19:28, Simon Glass wrote:
> > > If the 'bootm' command is not enabled then this code is not available and
> > > this causes a link error. Fix it.
> > >
> > > Note that for the EFI app, there is no indication of missing code. It just
> > > hangs!
> > >
> > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > ---
> > >
> > > (no changes since v1)
> > >
> > >   arch/x86/lib/zimage.c | 13 ++++++++-----
> > >   1 file changed, 8 insertions(+), 5 deletions(-)
> > >
> > > diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c
> > > index 7ce02226ef9..9cc04490307 100644
> > > --- a/arch/x86/lib/zimage.c
> > > +++ b/arch/x86/lib/zimage.c
> > > @@ -365,11 +365,14 @@ int setup_zimage(struct boot_params *setup_base, char *cmd_line, int auto_boot,
> > >                       strcpy(cmd_line, (char *)cmdline_force);
> > >               else
> > >                       build_command_line(cmd_line, auto_boot);
> > > -             ret = bootm_process_cmdline(cmd_line, max_size, BOOTM_CL_ALL);
> > > -             if (ret) {
> > > -                     printf("Cmdline setup failed (max_size=%x, bootproto=%x, err=%d)\n",
> > > -                            max_size, bootproto, ret);
> > > -                     return ret;
> > > +             if (IS_ENABLED(CONFIG_CMD_BOOTM)) {
> >
> > For zImages we have command bootz. Why would you disable this if
> > CONFIG_CMD_BOOTZ=y?
> 
> Well, without the 'bootm' command, this bootm_process_cmdline()
> functoin does not exist. So it just hangs. One thing we need to fix is
> that it should give a build error when a function is missing, not just
> hang. But in any case, this would prevent a build error if that
> worked. So we still need this change.

Perhaps a new common symbol for CMD_BOOT[IMZ] to select to control the
common do_bootm_* code inclusion, both here, other arch code and
boot/Makefile.

-- 
Tom

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

  reply	other threads:[~2021-12-29 13:45 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-18 18:28 [PATCH v7 00/24] efi: Improvements to U-Boot running on top of UEFI Simon Glass
2021-12-18 18:28 ` [PATCH v7 01/24] efi: Locate all block devices in the app Simon Glass
2021-12-20 10:51   ` Heinrich Schuchardt
2021-12-18 18:28 ` [PATCH v7 02/24] efi: serial: Support arrow keys Simon Glass
2021-12-18 18:28 ` [PATCH v7 03/24] x86: Allow booting a kernel from the EFI app Simon Glass
2021-12-18 18:28 ` [PATCH v7 04/24] x86: Don't process the kernel command line unless enabled Simon Glass
2021-12-21  7:32   ` Heinrich Schuchardt
2021-12-29 13:36     ` Simon Glass
2021-12-29 13:45       ` Tom Rini [this message]
2021-12-30  6:03         ` Simon Glass
2021-12-18 18:28 ` [PATCH v7 05/24] x86: efi: Add room for the binman definition in the dtb Simon Glass
2021-12-18 18:28 ` [PATCH v7 06/24] efi: Drop device_path from struct efi_priv Simon Glass
2021-12-18 18:28 ` [PATCH v7 07/24] efi: Add comments to " Simon Glass
2021-12-18 18:28 ` [PATCH v7 08/24] efi: Fix ll_boot_init() operation with the app Simon Glass
2021-12-21  8:20   ` Heinrich Schuchardt
2021-12-18 18:28 ` [PATCH v7 09/24] efi: Add a few comments to the stub Simon Glass
2021-12-21  8:23   ` Heinrich Schuchardt
2021-12-18 18:28 ` [PATCH v7 10/24] efi: Share struct efi_priv between the app and stub code Simon Glass
2021-12-18 18:28 ` [PATCH v7 11/24] efi: Move exit_boot_services into a function Simon Glass
2021-12-18 18:28 ` [PATCH v7 12/24] efi: Check for failure when initing the app Simon Glass
2021-12-18 18:28 ` [PATCH v7 13/24] efi: Mention that efi_info_get() is only used in the stub Simon Glass
2021-12-18 18:28 ` [PATCH v7 14/24] efi: Show when allocated pages are used Simon Glass
2021-12-18 18:28 ` [PATCH v7 15/24] efi: Allow easy selection of serial-only operation Simon Glass
2021-12-18 18:28 ` [PATCH v7 16/24] x86: efi: Update efi_get_next_mem_desc() to avoid needing a map Simon Glass
2021-12-18 18:28 ` [PATCH v7 17/24] efi: Support the efi command in the app Simon Glass
2021-12-18 18:28 ` [PATCH v7 18/24] x86: efi: Show the system-table revision Simon Glass
2021-12-18 18:28 ` [PATCH v7 19/24] x86: efi: Don't set up global_data again with EFI Simon Glass
2021-12-18 18:28 ` [PATCH v7 21/24] x86: efi: Round out the link script for 64-bit EFI Simon Glass
2021-12-18 18:28 ` [PATCH v7 22/24] x86: efi: Don't use the 64-bit link script for the EFI app Simon Glass
2021-12-18 18:28 ` [PATCH v7 23/24] x86: efi: Set the correct link flags for the 64-bit " Simon Glass
2021-12-18 18:28 ` [PATCH v7 24/24] efi: Build the 64-bit app properly 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=20211229134511.GC2773246@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=bmeng.cn@gmail.com \
    --cc=christian.melki@t2data.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=sjg@chromium.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 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.