6/01/2012

How to calculate boot time with Jtag

T32 has the functionality to trace the running time cost for each instruction.

In our 7K family release,we boot_debug.cmm to provide such the boot time test

function for modem side.




1.From T32, run boot_debug.cmm, you will see following menu

0: Exit

1: Debug PBL

2: Debug QC SBL

3: Debug OEM SBL

4: Debug APPS BL

5: Boot Test - Is the MSM booting up correctly?

2.Select option 5, Boot Test - Is the MSM booting up correctly

3.Go



It will output the boot time test result as below, here

Time to PBL:

0.ms

Time to QCSBL:

86.ms

Time to OEMSBL:

249.ms

Time to AMSS Handoff

3.007288300s



1. Time to pbl, from reset to pbl_main_ctl()

2. Time to qcbl, from reset to qcsbl_main_ctl()

3. Time to oemsbl, from reset to oemsbl_main_ctl()

4. Time to AMSS handoff, from reset to amss_entry_ptr()





pbl is closed-source to customers,so customers can only see the test result for 2,3,4.




Customer can also use T32 to calculate the time between two breakpoints, when T32 stops at


at the first breakpoint, in T32, run "runtime.reset", type "go" and let the system execute to next


breakpoint, in T32 menu, T32->Misc->runtime, the total time from first breakpoint to the second

breakpoint will display.

No comments:

Post a Comment