E.3.5. Using a boot script to run an image automatically

Use a boot script to run an image automatically after power-on:

  1. Create a boot script from the Boot Monitor by typing:

    • if your image is in MMC or SD Card:

      M:\> CREATE myscript.txt
      ; put any startup code here RUN path\file_name
      
    • if your image is in CompactFlash:

      K:\> CREATE myscript.txt
      ; put any startup code here RUN path\file_name
      
    • if your image is in NOR flash:

      M:\> CREATE myscript.txt
      ; put any startup code here FLASH RUN file_name.
      
  2. Press Ctrl-Z to indicate the end of the boot script and return to the Boot Monitor prompt.

    Note

    RVD does not support Ctrl-Z when creating a boot script using the debugger. You must instead type +++ on a new line to indicate the end of a boot script.

  3. Verify the file was entered correctly by typing:

    M:\>TYPE myscript.txt
    

    The contents of the file is displayed to the currently selected output device.

  4. Specify the boot script to use at reset from the Boot Monitor by typing:

    M:\>SET BOOTSCRIPT myscript.txt
    
  5. Set User Switch 1 ON to instruct the Boot Monitor to run the boot script at power on.

  6. Reset the platform. The Boot Monitor runs and executes the boot script myscript.txt. In this case, it relocates the image file_name and executes it.

Copyright © 2008-2011 ARM Limited. All rights reserved.ARM DUI 0417D