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

From RidgeRun Developer Connection
Jump to: navigation, search
m
Line 1: Line 1:
 
<noinclude>{{IMX8/Head}}</noinclude>
 
<noinclude>{{IMX8/Head}}</noinclude>
  
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.
+
__TOC__
 +
 
 +
==Boot Loading Options==
 +
The Nitrogen8M provides a switch in order to set the boot configurations according to your needs. You can see the switch on the following picture:
 +
 
 +
'''IMAGE'''
 +
 
 +
This switch allows to configure the boot source by selecting one of the following options:
 +
*Serial Downloader: The Nitrogen8M downloads a program image from a USB connection.
 +
*Internal Boot: The boot mode is selected according to U-Boot,  the variable '''boot_targets''' controls boot device (EMMC or SDCARD).
 +
 
 +
In the following table you can see how to configure each boot mode.
 +
 
 +
{| class="wikitable" style="margin-right: auto; margin-left: auto; border: none;"
 +
|-
 +
! style="background: black; color: white;" | Boot Source!! style="background: black; color: white;" | PIN
 +
|-
 +
! scope="row" | Serial Downloader
 +
| style="text-align: center" | OFF 
 +
|-
 +
! scope="row" | Internal Boot
 +
| style="text-align: center" | ON
 +
|}
 +
 
 +
The bootable source code is selected from the switch and U-Boot, the complete information is presented in the following table:
 +
 
 +
{| class="wikitable" style="margin-right: auto; margin-left: auto; border: none;"
 +
|-
 +
! style="background: black; color: white;" | BOOT Source!! style="background: black; color: white;" | PIN !! style="background: black; color: white;" | boot_targets
 +
|-
 +
! scope="row" | Serial Downloader
 +
| style="text-align: center" | OFF || style="text-align: center" | ---
 +
|-
 +
! scope="row" | Boot from EMMC
 +
| style="text-align: center" | ON || style="text-align: center" | emmc
 +
|-
 +
! scope="row" | Boot from SDCARD
 +
| style="text-align: center" | ON || style="text-align: center" | usb0
 +
|}
  
 
==EMMC==
 
==EMMC==
In order to boot from the EMMC device, be sure that the Boot Configuration Switch is set to '''0010'''.
+
This is how the physical switch should be set in order to boot from EMMC:
The board is preloaded with Android 8.1 and this OS will be loaded after powering on the board.
+
 
 +
'''IMAGE'''
  
 
== USB Boot ==
 
== 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:
+
This is how the physical switch should be set in order to boot from SDCARD:
* Connect the Nitrogen8m to a host machine with the Serial Console Cable.
+
 
* Start any serial console (i.e minicom or term)
+
 
 +
This Boot option also requires a Bootable USB stick and a Serial Console Cable.
 +
 
 +
Instructions to setting up the USB Boot from U-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.  
 
* 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.
 
* Press any key on your keyboard to stop the boot sequence, this will display the U-Boot console.
Line 19: Line 62:
 
setenv boot_targets usb0
 
setenv boot_targets usb0
 
</pre>
 
</pre>
* If you do not want to repeat this commands, you can save the selected Boot Device with this command:
+
* If you do not want to repeat this process, you can save the selected Boot Device with this command:
 
<pre>
 
<pre>
 
saveenv
 
saveenv

Revision as of 12:35, 12 November 2018


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





Boot Loading Options

The Nitrogen8M provides a switch in order to set the boot configurations according to your needs. You can see the switch on the following picture:

IMAGE

This switch allows to configure the boot source by selecting one of the following options:

  • Serial Downloader: The Nitrogen8M downloads a program image from a USB connection.
  • Internal Boot: The boot mode is selected according to U-Boot, the variable boot_targets controls boot device (EMMC or SDCARD).

In the following table you can see how to configure each boot mode.

Boot Source PIN
Serial Downloader OFF
Internal Boot ON

The bootable source code is selected from the switch and U-Boot, the complete information is presented in the following table:

BOOT Source PIN boot_targets
Serial Downloader OFF ---
Boot from EMMC ON emmc
Boot from SDCARD ON usb0

EMMC

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

IMAGE

USB Boot

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


This Boot option also requires a Bootable USB stick and a Serial Console Cable.

Instructions to setting up the USB Boot from U-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 process, 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


Previous: Nitrogen8M/Getting Started Index Next: Nitrogen8M/Getting Started/Loading Pre-built Images