[PATCH 0/6] Allow setting of linux,stdout-path before kexec

Samuel Mendoza-Jonas sam at mendozajonas.com
Wed Jun 8 16:28:06 AEST 2016


This series allows setting the linux,stdout-path device-tree property
based on the active console or a saved default. The primary motivation
is to make the boot progress between Petitboot and a booted kernel more
consistent. For example, currently if a user selects a kernel to boot
while on tty1, the selected kernel will boot with hvc0 (often IPMI) as
the primary boot console. Setting linux,stdout-path causes the kernel to
set its primary console to match the one that was used to select it.

If a user manually selects a kernel to boot the current console will be
set. However the user can also select a default console to be used,
which will be set as the primary console when a kernel boots due to an
auto-boot timeout.

The actual updating of the linux,stdout-path property is handled by the
30-add-offb boot hook after setting up the frame buffer.

Samuel Mendoza-Jonas (6):
  lib: Add support for tracking boot consoles
  discover: Add petitboot,tty and track available consoles
  discover/boot: Set boot_tty variable before kexec
  ui/common: Set current console on boot command
  ui/ncurses: List available consoles in nc-config
  utils/hooks: Set linux,stdout-path for primary console

 discover/boot.c               |  13 +++++
 discover/platform-powerpc.c   |  43 +++++++++++++++
 discover/platform.c           |  10 ++++
 lib/pb-config/pb-config.c     |  12 ++++-
 lib/pb-protocol/pb-protocol.c |  35 +++++++++++-
 lib/types/types.h             |   4 ++
 ui/common/discover-client.c   |   1 +
 ui/ncurses/nc-config.c        |  55 +++++++++++++++++--
 utils/hooks/30-add-offb.c     | 120 ++++++++++++++++++++++++++++++++++++++++++
 9 files changed, 288 insertions(+), 5 deletions(-)

-- 
2.8.3



More information about the Petitboot mailing list