Difference between revisions of "IMX8/Nitrogen8M/Getting Started/Selecting Boot Options"

From RidgeRun Developer Connection
Jump to: navigation, search
(Physical Setup)
(Other Boot Options)
Line 63: Line 63:
  
 
The board is able to boot from more than one way, below you will see how to configure the boot device to boot from a USB device.
 
The board is able to boot from more than one way, below you will see how to configure the boot device to boot from a USB device.
 
== eMMC ==
 
By default, the board will boot from eMMC.
 
Just be sure that the '''Boot Mode Switch''' is place on left side before connecting the power adapter.
 
  
 
== USB Boot ==
 
== USB Boot ==

Revision as of 17:46, 24 October 2018


NXP Partner Program Registered Vertical.jpg NXP Partner Program Horizontal.jpg
  Index  





Physical Setup

The i.MX8M Evaluation Kit provides two switches in order to set the boot configurations according to your needs. You can see both switches on the following picture:

Boot switches on the i.MX8M EVK

Where the one surrounded by a red square is the SW801 switch and the one surrounded by a yellow square is the SW802 switch.

  • SW801: This switch allows to configure the boot mode by selecting one of the following options:
    • Boot from EMMC.
    • Boot from SD2.
  • SW802: This switch allows to configure the boot source by selecting one of the following options:
    • Boot From Fuses.
    • Serial Downloader.
    • Internal Boot (Development).
    • Reserved.

The i.MX8M Applications Processor can be the boot configuration selected on SW802 or by the boot configuration stored on internal eFUSE. Alternatively, the i.MX8M can download a program image from a USB connection when configured in serial downloader mode. The method used to determine where the processor finds its boot information is from two dedicated BOOT MODE pins.

In the following table you can see how to configure each mode on SW802:

Boot Source BOOT_MODE1 BOOT_MODE0
Boot from fuses 0 0
Serial Downloader 0 1
Internal Boot 1 0
Reserved 1 1

The two pins are tied to the BOOT modules. It is recommended to use the dual-switch (SW802) to select the input voltage of these two pins, 0 or 3.3 V. If the developer wants to boot the program Image from the Fuses Mode, the position of the switch 1 and 2 must be set to OFF, it is the same principle to choose the Serial Downloader Module or Internal Boot Module to load bootable code into the processor.

If the method of determining the bootable source code is selected to be from the hardware, then the developer must set the switch SW802: MODE0 to OFF, MODE1 to ON, and the four i.MX8M pins of the SW801 must be set on the EVK board by considering the information present in the following table:

BOOT Configuration SW801
Boot from EMMC 0010
Boot from SD2 1100

This is how the physical switch SW801 should be set in order to boot from EMMC:

Configuration to boot from the EMMC

And this is how the physical switch SW801 should be set to boot from SD2:

Boot switches on the i.MX8M EVK

Other Boot Options

The board is able to boot from more than one way, below you will see how to configure the boot device to boot from a USB device.

USB Boot

This Boot option requires a Bootable USB stick and a Serial Console Cable, refer to iMX8 Software Support section to download a prebuilt image or create your own image with the instructions provided in the Custom Image section.

Instructions to setting up the USB Boot:

  • Connect the Nitrogen8m to a host machine with the Serial Console Cable.
  • Start any serial console (i.e minicom or term)
  • Power on the board, the console will display the U-boot start-up screen.
  • Press any key on your keyboard to stop the boot sequence, this will display the U-Boot console.
  • Change the Boot Device with the following command:
setenv boot_targets usb0
  • If you do not want to repeat this commands, you can save the selected Boot Device with this command:
saveenv
  • Continue the Boot sequence by typing the next command:
boot

After the previous instructions, the board will boot from the USB stick


[[IMX8/<Replace with "previous" page>|Previous: <Replace with "previous" page>]] Index [[IMX8/<Replace with "next" page>|Next: <Replace with "next" page>]]