简体   繁体   English

Uboot选项用于打印引导时间前缀

[英]Uboot Option to print boot time prefixes

Is there any uboot config option to print boot sequence with time prefixes similar to kernel option CONFIG_PRINTK? 是否有任何uboot配置选项来打印引导序列,其时间前缀类似于内核选项CONFIG_PRINTK?

I am expecting output like below, 我期待如下输出,

[    0.000000] U-Boot 1.1.4-gedeced79 (Feb  6 2012 - 09:27:11)
[    0.011300] Starting kernel ...
[    0.015686] Uncompressing Linux... done, booting the kernel

define DEBUG config option is best for your purpose, it is picked up by all u-boot code after you put it in your include/configs/myboard.h. 定义DEBUG配置选项最适合您的目的,将它放入include / configs / myboard.h后,所有u-boot代码都会将其选中。 (each config option is '#define', but that is doing strange things in my page preview) (每个配置选项都是'#define',但这在我的页面预览中做了一些奇怪的事情)

Also define CONFIG_BOOTSTAGE. 还定义CONFIG_BOOTSTAGE。 You can look at README for this, code is in common/bootstage.c, its functions do some of what you want. 你可以看一下README,代码是共同的/ bootstage.c,它的功能可以做你想要的一些。 You may have to add a function show_boot_progress() in your BSP, for these functions to be used. 您可能必须在BSP中添加函数show_boot_progress(),以便使用这些函数。 With those in place, I believe there are already hooks in infrastructure code for them to get called, but I haven't used this option. 有了这些,我相信已经有基础设施代码的钩子让他们被调用,但我没有使用这个选项。

I am not aware of U-Boot config option that does such thing, but there are some other techniques which enables you to do it. 我不知道U-Boot配置选项做了这样的事情,但还有一些其他技术可以让你做到这一点。 Ie config option inside the Linux kernel. 即Linux内核中的配置选项。

Take a look at: Measuring Boot-up time 看看: 测量启动时间

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM