bootstage: enable bootstage timing report to fdt
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 2 Dec 2015 10:48:56 +0000 (11:48 +0100)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 6 Apr 2017 06:47:09 +0000 (15:47 +0900)
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 <p.marczak@samsung.com>
configs/odroid-xu3_defconfig
configs/odroid_defconfig
configs/tizen_defconfig

index 9de8e59e696910457ee0544343a1fd780714bd4d..dc1d923fba5a0fb72ed217c4016956279ad104ef 100644 (file)
@@ -48,3 +48,6 @@ CONFIG_G_DNL_PRODUCT_NUM=0x6601
 CONFIG_VIDEO_BRIDGE=y
 CONFIG_ERRNO_STR=y
 CONFIG_SIG=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y
index a28058ad6a9b8a3b72161aed554571bae20fb29c..788506ef53e73fbe8b5f9782f67855f3e8b42a5f 100644 (file)
@@ -57,3 +57,6 @@ CONFIG_G_DNL_MANUFACTURER="Samsung"
 CONFIG_G_DNL_VENDOR_NUM=0x04e8
 CONFIG_G_DNL_PRODUCT_NUM=0x6601
 CONFIG_ERRNO_STR=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_FDT=y
+CONFIG_CMD_BOOTSTAGE=y
index 956dc545e119560282c763245aee43da5d29baa4..c442830a7d2974a90fb1e90bb128e61dc439dfc3 100644 (file)
@@ -55,3 +55,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