[Skiboot] [RFC PATCH 0/6] A few kernel loading tidy ups

Jordan Niethe jniethe5 at gmail.com
Wed Dec 18 15:49:05 AEDT 2019

This tries to fix a few confusing things related to messages about the
size of the kernel you are trying to load.  When trying to load an elf
that is a bit different, (e.g., no sections), it is confusing for
skiboot to tell you that it is size 0. Also when using a preloaded
kernel it can be confusing to be told that it is 4mb large.

First there are a few tidy ups, before adding the option to pass a
kernel size in the device tree to avoid elf size calculations in skiboot

Jordan Niethe (6):
  core/init: Check for STB container for kernel preloaded at 0
  core/init: Stop using size of other kernels for preloaded kernels
  core/init: Move check for STB header into unconditional path
  core/init: Go back to using zero for preloaded kernels of unknown size
  core/init: Move calculating elf size out of try_load_elf64{_le,}()
  core/init: Allow setting size of payload in device-tree

 core/init.c                | 93 ++++++++++++++++++++++++--------------
 external/mambo/skiboot.tcl |  1 +
 2 files changed, 60 insertions(+), 34 deletions(-)


More information about the Skiboot mailing list