配置uboot启动参数,linux启动过程打印每个模块初始化的耗时时间

在boot环境下面添加如下启动参数配置:

c 复制代码
setenv bootargs  initcall_debug driver_debug loglevel=8 dyndbg="file *probe* +p"

先printenv 当前启动参数,如:

printenv
bootargs=earlycon=sbi console=ttySOC0,${baudrate} memdbg=0 cputest=0 bootver=10.2.300.5 bspdbg=${bsp_dbg_ios} ${bsp_dbg_kernel}

然后把上面的添加到后面:
setenv bootargs earlycon=sbi console=ttySOC0,${baudrate} memdbg=0 cputest=0 bootver=10.2.300.5 bspdbg=${bsp_dbg_ios} ${bsp_dbg_kernel} initcall_debug driver_debug loglevel=8 dyndbg="file *probe* +p"

2、或者在linux/init/main.c 文件里面的函数 do_one_initcall中添加如下:

相关推荐
Decay__2 小时前
12_MySQL InnoDB 内存与锁调优 —— Buffer Pool、redo log、隔离级别与锁等待
运维·数据库·sql·mysql·架构
java_logo4 小时前
Docker 部署 Dify:轻松搭建 LLM 应用开发平台
运维·docker·容器
方便面不加香菜5 小时前
Docker Container -- 综合实战案例详解
运维·docker·容器
LongRunning6 小时前
【Linux】RK3568-OpenCV+YOLO(八)
linux·opencv·yolo
海洋之恒6 小时前
GitHub Actions 自动化:5 个真实运维提效案例
运维·自动化·github
迪康coolmu7 小时前
出差终端数据安全落地实战:基于迪康端点安全一体化管理系统的四道防线实践
运维·服务器·经验分享·笔记·其他·安全·php
民乐团扒谱机9 小时前
【微实验】NSGA-II(非支配排序遗传算法)——解决多目标优化问题的“自然选择模拟器”
linux·人工智能·算法
물の韜9 小时前
ZYNQ/FMQL系列Linux之I2C开发实战
linux·arm开发·嵌入式硬件·设备树·iic·zynq
qq_3718021110 小时前
Ubuntu Linux中安装WorkBuddy
linux·运维·服务器·ubuntu