summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-11-01 19:06:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-12-07 08:02:48 +0100
commita798864ecd866924c33a373e1b32d10f918cc95a (patch)
treed937c43a1de35a29461a0f80424e8d6a2173a11a /commands
parentda45ff9a615d49d14adaabd209a35740de407f08 (diff)
downloadbarebox-a798864ecd866924c33a373e1b32d10f918cc95a.tar.gz
barebox-a798864ecd866924c33a373e1b32d10f918cc95a.tar.xz
ARM: i.MX8M: implement bootrom log viewing command
The ROM event log[1] of the i.MX8M* can help with debugging boot failures as it lists various information about boot mode, image, fallback and recovery as well as timestamps when some actions along the boot process occurred. Add a new bootrom -l command that supports reading this out. A generic name is intentionally chosen, as other SoCs also provide similar functionality and it would be nice if they can just reuse the name and command line arguments in future. [1]: NXP AN12853 "i.MX ROMs Log Events" Rev. 0 - May 2020 Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20221101180643.244270-6-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index a59616ad14..555ae401a0 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -60,6 +60,14 @@ config CMD_RISCV_CPUINFO
help
Show info about RISC-V CPU
+config CMD_BOOTROM
+ bool "bootrom command"
+ depends on ARCH_IMX8M
+ help
+ Interact with bootrom on i.MX8M
+
+ bootrom [-la]
+
config CMD_DEVINFO
tristate
default y