From 65117f1aa1b2d145fd5ca376bde642794d0aae1b Mon Sep 17 00:00:00 2001 From: "Kweh, Hock Leong" Date: Mon, 25 Apr 2016 21:07:01 +0100 Subject: efi: Add misc char driver interface to update EFI firmware This patch introduces a kernel module to expose a capsule loader interface (misc char device file note) for users to upload capsule binaries. Example: cat firmware.bin > /dev/efi_capsule_loader Any upload error will be returned while doing "cat" through file operation write() function call. Signed-off-by: Kweh, Hock Leong [ Update comments and Kconfig text ] Signed-off-by: Matt Fleming Reviewed-by: Bryan O'Donoghue Acked-by: Greg Kroah-Hartman Cc: Andy Lutomirski Cc: Ard Biesheuvel Cc: Borislav Petkov Cc: Peter Jones Cc: Peter Zijlstra Cc: Sam Protsenko Cc: Thomas Gleixner Cc: joeyli Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/1461614832-17633-30-git-send-email-matt@codeblueprint.co.uk Signed-off-by: Ingo Molnar --- drivers/firmware/efi/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/firmware/efi/Kconfig') diff --git a/drivers/firmware/efi/Kconfig b/drivers/firmware/efi/Kconfig index 0b0b635aa101..6394152f648f 100644 --- a/drivers/firmware/efi/Kconfig +++ b/drivers/firmware/efi/Kconfig @@ -102,6 +102,16 @@ config EFI_BOOTLOADER_CONTROL bootloader reads this reboot reason and takes particular action according to its policy. +config EFI_CAPSULE_LOADER + tristate "EFI capsule loader" + depends on EFI + help + This option exposes a loader interface "/dev/efi_capsule_loader" for + users to load EFI capsules. This driver requires working runtime + capsule support in the firmware, which many OEMs do not provide. + + Most users should say N. + endmenu config UEFI_CPER -- cgit v1.2.3-59-g8ed1b