[RFC PATCH 0/2] Passing U-Boot logs to the OS

Bence Cs csokas.bence at prolan.hu
Thu Dec 28 00:30:10 CET 2023


The problem of sending boot logs to the booted OS has not been solved,
but it is high time we do it. This proposed patch aims to give a crude
solution, utilizing CONFIG_CONSOLE_RECORD to capture the logs and
saving them to RAM, along with a struct residing at
CONFIG_CONSOLE_RECORD_SAVE_BASE. There may be more sophisticated
methods than this, which may be implemented if time permits.

Please note that this patch is not the final solution, but we do
intend to finish it by the end of the MW. Also I am WFH for the
holidays, so if someone could smoke-test, I'd appreciate it.

The patch series was based on the current tip of `next` branch:
Commit: 4b151562bb bootmeth: pass size to efi_binary_run()

Previous discussion thread can be found here:
Link: https://lists.denx.de/pipermail/u-boot/2023-December/541138.html

Bence Cs (2):
  Add U_BOOT_VERSION_CODE macro for packing the version number into a
    single int
  common: console: Add support of passing the saved console log to the
    OS

 boot/bootm.c      | 27 +++++++++++++++++++++++++--
 common/Kconfig    | 13 +++++++++++++
 common/console.c  | 13 +++++++++++++
 include/console.h | 19 +++++++++++++++++++
 include/version.h |  3 +++
 5 files changed, 73 insertions(+), 2 deletions(-)

-- 
2.25.1




More information about the U-Boot mailing list