NOTICE: The Processors Wiki will End-of-Life in December of 2020. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

Boot Time Optimization

From Texas Instruments Wiki
Jump to: navigation, search
{{#switchcategory:MSP430=<McuHitboxHeader/>|C2000=<McuHitboxHeader/>|Stellaris=<McuHitboxHeader/>|TMS570=<McuHitboxHeader/>|MCU=<McuHitboxHeader/>|MAVRK=<MAVRKHitboxHeader/>|<HitboxHeader/>}}

Boot time optimization[edit]

Boot Time[edit]

"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[edit]

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[edit]

  • 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[edit]

  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


see also:

  1. Measuring Boot Time
  2. All This For 1 Second Boot

DaVinci_Optimization

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Boot Time Optimization here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Boot Time Optimization here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Boot Time Optimization here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Boot Time Optimization here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Boot Time Optimization here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Boot Time Optimization here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Boot Time Optimization here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Boot Time Optimization here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Boot Time Optimization here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity

{{#switchcategory:MSP430=<McuHitboxFooter/>|C2000=<McuHitboxFooter/>|Stellaris=<McuHitboxFooter/>|TMS570=<McuHitboxFooter/>|MCU=<McuHitboxFooter/>|MAVRK=<MAVRKHitboxFooter/>|<HitboxFooter/>}}