This doc explain how to optimize the Linux boot time, Contents as follows:
目录
1 默认BSP28 Linux内核的启动时间分析和优化方向 ..... 2
2 UBoot的优化 .............................................................. 3
2.1 缩小Uboot的DTS尺寸 ............................................ 3
2.2 缩小Uboot的尺寸 .................................................... 4
2.3 去掉等待3S输入时间 .............................................. 4
2.4 配合内核修改的Uboot参数 ..................................... 4
2.5 关闭串口调试信息 .................................................. 5
2.6 MMC read的方法来读取内核和DTB ....................... 5
3 Kernal的优化 ............................................................. 5
3.1 DTB中去掉不用的驱动和代码 ................................. 5
3.2 内核中去掉不用的平台与驱动及相关代码 ............... 6
3.3 内核中去掉不用功能,缩小内核大小 ...................... 7
3.4 去掉initramfs支持 ................................................... 7
3.5 关闭调试信息 .......................................................... 7
3.6 提前eMMC驱动加载时间 ........................................ 7
3.7 将Kernel与DTB打包在一起..................................... 8
4 Rootfs+应用程序的优化 ............................................. 8
5 最终全部启动时间比较 ............................................. 12
Hi
Thanks so much for sharing this knowledge.
In Chapter1
Default BSP28 Linux Kernel Boot Time Analysis and
Direction of Optmization
page2
you recommend to use stopwatch
Use the stopwatch to test the startup time of S32G RDB2+BSP28. The test method is as follows:
uboot uses a stopwatch to test multiple times to get the average value
Can you please elaborate, where is stopwatch. How can i call it?