DM355 启动时间优化

 Boot time optimization

Boot Time

"Boot Time" referred in this page is the time elapsed from "chip coming out of reset" to "Linux Prompt" This page considers under 2 seconds boot time as fast boot

In short

Reuse the existing knowledge. Lot of knowledge is available inside and outside of TI /* provide relevant links here */. Measure and identify boot time spenders. Optimize them. U-boot probably is one of the key areas to target.

Techniques

  • Optimize U-Boot
    • Choose the optimal EMIF settings based on NOR used
    • Optimize the NOR to RAM copy
    • Optimize Crc32
    • Avoid printfs
    • Avoid I2C or any other slow peripheral access during U-boot
  • Optimize Kernel
    • Remove unused components from Kernel
    • Use loadable modules option to defer initialization of components to after-boot.
      Example: network initialization.
    • Avoid Linux timer calibration loop
    • Avoid Kernel printks
  • Optimize Filesystem
    • Rebuild Rootfilesystem with minimal components
    • Use cramfs as rootfilesystem

 Linux Boot Sequence

  1. ARM boots and starts executing U-boot code from NOR in-place
  2. U-boot copies Kernel to RAM
  3. U-boot copies filesystem to RAM (copy can be avoided using flash filesystem /* link to relevant page here */ )
  4. U-Boot sets parameters and starts Kernel
  5. Kernel uncompresses itself
  6. Kernel initialization
  7. Driver Initialization
  8. Init
  9. Init scripts
  10. Shell

目前把yaffs2改成的cramfs 启动速度在10s左右
Avoid Linux timer calibration loop 可以再试试

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值