From 1edece69898dda97ffe3c950663c7ec9e9b5243d Mon Sep 17 00:00:00 2001
From: Przemyslaw Marczak
Date: Wed, 2 Dec 2015 11:48:56 +0100
Subject: [PATCH] bootstage: enable bootstage timing report to fdt
This commit enables boot stage time reporting for U-Boot
and appends it to device-tree, which can be seen in Linux.
The report is created as 'bootstage' fdt node with child
for each stage, like:
- main_loop (U-Boot prompt)
- start_kernel
fdt:
bootstage {
44 {
name = "start_kernel";
mark = <>;
};
...
};
This can be checked in linux with 'cat /proc/device-tree/bootstage/id/name'.
Note: The id's are not constant for each boot stage name. For safety
use in linux, it's better to find the proper one by it's name.
This feature is enabled for configs:
- odroid-xu3
- odroid-u3
- tizen
Signed-off-by: Przemyslaw Marczak
---
configs/odroid-xu3_defconfig | 3 +++
configs/odroid_defconfig | 3 +++
configs/tizen_defconfig | 3 +++
3 files changed, 9 insertions(+)
diff --git a/configs/odroid-xu3_defconfig b/configs/odroid-xu3_defconfig
index e6992b1115..6a3a435a73 100644
--- a/configs/odroid-xu3_defconfig
+++ b/configs/odroid-xu3_defconfig
@@ -67,3 +67,6 @@ CONFIG_USB_HOST_ETHER=y
CONFIG_VIDEO_BRIDGE=y
CONFIG_ERRNO_STR=y
CONFIG_SIG=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y
diff --git a/configs/odroid_defconfig b/configs/odroid_defconfig
index ea976829e2..b6d7646305 100644
--- a/configs/odroid_defconfig
+++ b/configs/odroid_defconfig
@@ -66,3 +66,6 @@ CONFIG_USB_HOST_ETHER=y
CONFIG_USB_ETHER_SMSC95XX=y
CONFIG_LIB_HW_RAND=y
CONFIG_ERRNO_STR=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y
diff --git a/configs/tizen_defconfig b/configs/tizen_defconfig
index c1ca8a0a02..e279a31982 100644
--- a/configs/tizen_defconfig
+++ b/configs/tizen_defconfig
@@ -56,3 +56,6 @@ CONFIG_OF_MULTI=y
CONFIG_PLATFORM_MAX_PART_NUM=32
CONFIG_PLATFORM_MAX_SETUP_NUM=6
CONFIG_SIG=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y
--
2.34.1