Re: [x86] [EFI stub] Changing the kernel command line in the efi application, without recompiling the kernel.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux