[PATCH v2 5/9] bootm: Do bootstage processing in bootm_final()

Simon Glass sjg at chromium.org
Tue Feb 24 15:25:47 CET 2026


Mark kernel start before booting. If enabled, show a bootstage report.

Signed-off-by: Simon Glass <simon.glass at canonical.com>
---

Changes in v2:
- Drop the EFI change

 boot/bootm_final.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/boot/bootm_final.c b/boot/bootm_final.c
index 71661334e11..dd7cac55f1e 100644
--- a/boot/bootm_final.c
+++ b/boot/bootm_final.c
@@ -6,11 +6,17 @@
  */
 
 #include <bootm.h>
+#include <bootstage.h>
 #include <dm/root.h>
 
 void bootm_final(enum bootm_final_t flags)
 {
 	printf("\nStarting kernel ...\n\n");
 
+	bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel");
+
+	if (IS_ENABLED(CONFIG_BOOTSTAGE_REPORT))
+		bootstage_report();
+
 	dm_remove_devices_active();
 }
-- 
2.43.0



More information about the U-Boot mailing list