[RFC PATCH v2 0/4] Check if the kernel image has Ultravisor support

Maxiwell S. Garcia maxiwell at linux.ibm.com
Tue Sep 24 08:30:20 AEST 2019


Hi,

This patchset enables petitboot to check if the kernel image is
an ultravisor-system compatible. Platform-specific validation is called
from boot_process() and it can be disabled from config UI screen.

I used the name 'preboot check' many times (nvram var, config UI option,
platform-specific check) but maybe better names might be suggested.

Maxiwell S. Garcia (4):
  configure: Add libelf as a requirement
  discover: Add helper functions to read ELF notes
  ui/ncurses: Add preboot check option in the config screen
  discover: Check if the kernel image has Ultravisor support

 configure.ac                  |  6 +++
 discover/Makefile.am          |  7 ++-
 discover/boot.c               | 21 +++++++++
 discover/elf.c                | 86 +++++++++++++++++++++++++++++++++++
 discover/elf.h                | 29 ++++++++++++
 discover/platform-powerpc.c   | 50 ++++++++++++++++++++
 discover/platform.c           | 15 ++++++
 discover/platform.h           |  5 ++
 lib/param_list/param_list.c   |  1 +
 lib/pb-protocol/pb-protocol.c |  9 ++++
 lib/types/types.h             |  2 +
 ui/ncurses/nc-config.c        | 43 +++++++++++++++++-
 utils/Makefile.am             |  3 +-
 13 files changed, 273 insertions(+), 4 deletions(-)
 create mode 100644 discover/elf.c
 create mode 100644 discover/elf.h

-- 
2.20.1



More information about the Petitboot mailing list