linux-efi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [x86] [EFI stub] Changing the kernel command line in the efi application, without recompiling the kernel.
@ 2015-11-04 11:35 Stoppa, Igor
       [not found] ` <CAC_FEN0qfR47ST4xewf2hc7vgH7eNm1_d-K-ZMwJWd-yNo58jg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Stoppa, Igor @ 2015-11-04 11:35 UTC (permalink / raw)
  To: linux-efi-u79uwXL29TY76Z2rM5mHXA

Hi,

I'm currently building a combo efi application comprised of

* uefi stub from gummiboot
* linux kernel
* kernel command line
* microcode + initramfs

using the approach from mkrescue-uefi.sh [1]

However I'd like to replace the gummiboot stub with the one coming
with the kernel, and get rid of one dependency (gummiboot).
But it seems that the command line is handled differently:

* in the gummiboot way I can change the command line without having to
recompile the kernel, because it is contained in a separate section of
the application.

* in the kernel-only way, it is contained in the field "load_options"
from efi_loaded_image_t [2]
So for what I can understand, I would have to rebuild the kernel, to
change the command line of the combo application.


Is that correct?


[1] https://github.com/haraldh/mkrescue-uefi/blob/master/mkrescue-uefi.sh
[2] http://lxr.free-electrons.com/source/include/linux/efi.h#L741

-- 
thanks, in advance, igor

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [x86] [EFI stub] Changing the kernel command line in the efi application, without recompiling the kernel.
       [not found] ` <CAC_FEN0qfR47ST4xewf2hc7vgH7eNm1_d-K-ZMwJWd-yNo58jg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-11-16  9:30   ` Matt Fleming
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Fleming @ 2015-11-16  9:30 UTC (permalink / raw)
  To: Stoppa, Igor; +Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA

On Wed, 04 Nov, at 01:35:16PM, Stoppa, Igor wrote:
> Hi,
> 
> I'm currently building a combo efi application comprised of
> 
> * uefi stub from gummiboot
> * linux kernel
> * kernel command line
> * microcode + initramfs
> 
> using the approach from mkrescue-uefi.sh [1]
> 
> However I'd like to replace the gummiboot stub with the one coming
> with the kernel, and get rid of one dependency (gummiboot).
> But it seems that the command line is handled differently:
> 
> * in the gummiboot way I can change the command line without having to
> recompile the kernel, because it is contained in a separate section of
> the application.
> 
> * in the kernel-only way, it is contained in the field "load_options"
> from efi_loaded_image_t [2]
> So for what I can understand, I would have to rebuild the kernel, to
> change the command line of the combo application.
> 
> 
> Is that correct?

Nope, you don't need to rebuild your kernel image. You can simply
change the paramters passed in your EFI BootXXXX variable by the EFI
boot manager, see efibootmgr(8).

However, if you're not using the load options argument and instead are
relying on CONFG_CMDLINE, then yes, you will need to rebuild your
kernel.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-16  9:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-04 11:35 [x86] [EFI stub] Changing the kernel command line in the efi application, without recompiling the kernel Stoppa, Igor
     [not found] ` <CAC_FEN0qfR47ST4xewf2hc7vgH7eNm1_d-K-ZMwJWd-yNo58jg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-11-16  9:30   ` Matt Fleming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).