How to work with KernelRelocate and other ways to minimize boot time? RRS feed

  • Question

  • I'm looking for solution to reduce the boot-up time of our WEC 7 system to maybe 4-7 seconds.

    I have read few documents and KernelRelocate() seems like a widely suggested method. However, when I check the bootloader of the AM335x BSP, this wasn't used in it. Any ideas how I can modify the bootloader of the current BSP to implement this?

    Also, this seems to use the contents of the NK.bin Table of Contents (pTOC structure) but when I run viewbin with the NK.bin image, it seems there are a lot of entry in it. Any tips how I should analyze the output of the viewbin to get a good idea of the TOC? And what changes should I do with my build so that the TOC will be updated and reduced to only the essential files?


    Monday, February 18, 2013 10:12 AM

All replies

  • There are many factors influence the boot-time of WEC7. This is one of them.

    For bootloader the KernelRelocate() is implemented at:


    and for WEC7 kernel this is called from Private Source code of Windows CE.

    To view the relevant sections you can use the

    viewbin -t  nk.bin > ptoc.txt

    check the COPY sections----------------

    COPY Sections ---------------------------------
        Src: 0x825A1000   Dest: 0x82CA9000   CLen: 0x1382     DLen: 0x7A4C 
        Src: 0x81779AE4   Dest: 0x82CB7000   CLen: 0x51C      DLen: 0x3EB18
        Src: 0x81A1BB54   Dest: 0x82CF8000   CLen: 0x4AC      DLen: 0x6360

    Copy Sections indicate the KernelRelocate() Impact.

    To reduce the KernelRelocate() Impact you can try several things,

     - Reduce the Image size (Bootloader & NK)
     - Use BINFS vs single bin

    -  etc...

    Best Regards,


    Tuesday, February 19, 2013 8:10 AM
  • using BINFS would be helpful to achieve fast boot.

    instead of the single NK image try to use multiple binfs files.

    --- Misbah

    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India)

    Tuesday, February 19, 2013 11:55 AM
  • Hi Misbah,

    Could you share your knowledge on implementation of BINFS.

    I want to implement BINFS with WinCE7.0 on imx53,booting WinCE will be through SD card.

    Please can you guide me to achieve this?

    Thanks in advance for the help

    With Thanks


    Tuesday, February 19, 2013 12:35 PM
  • Nadini,

    Can you open a new thread for the same. ?


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India)

    Thursday, February 21, 2013 7:53 AM
  • Hi Misbha,

    Thanks for the response,

    Please find the new thread for the same issue,

    With Thanks


    Thursday, February 21, 2013 1:03 PM