IMX8/iMX8MEVK/Getting Started/Selecting Boot Options: Difference between revisions

mNo edit summary
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{IMX8/Head}}</noinclude>
<noinclude>{{IMX8/Head|previous=iMX8MEVK/Getting Started|next=iMX8MEVK/Getting Started/System Setup|metakeywords=evk,imx8evk, evaluation kit, i.MX8M Quad Evaluation Kit, iMX8MEVK, configure, configuring host machine, boot, boot options, EMMC, USB boot}}</noinclude>
 
__TOC__


==Boot Loading Options==
==Boot Loading Options==
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:
The i.MX8M Evaluation Kit provides two switches in order to set the boot configurations according to your needs. You can see both switches in the following picture:
[[File:switchesevk.png|300px|center|Boot switches on the i.MX8M EVK]]
[[File:switchesevk.png|300px|center|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.  
Where the one surrounded by a red square is the '''SW801''' switch and the one surrounded by a yellow square is the '''SW802''' switch.  
*<span style="color:#edc93b">'''SW802:'''</span> This switch allows to configure the boot source by selecting one of the following options:
*<span style="color:#edc93b">'''SW802:'''</span> This switch allows to configure the boot source by selecting one of the following options:
**Boot From Fuses: The i.MX8M Applications Processor can be the set as a boot configuration. This can be made established via eFUSE, a dynamic real-time reprogramming technology of computer chips.
**Boot From Fuses: The i.MX8M Applications Processor can be set as a boot configuration. This can be made established via eFUSE, a dynamic real-time reprogramming technology of computer chips.
**Serial Downloader: The i.MX8M downloads a program image from a USB connection.
**Serial Downloader: The i.MX8M downloads a program image from a USB connection.
**Internal Boot: For development. The boot mode is selected by configuring the '''SW801''' switch.
**Internal Boot: For development. The boot mode is selected by configuring the '''SW801''' switch.
Line 41: Line 43:
|-
|-
! scope="row" | Boot from EMMC
! scope="row" | Boot from EMMC
| style="text-align: center" | OFF | OFF | ON | OFF
| style="text-align: center" | OFF || style="text-align: center" | OFF || style="text-align: center" | ON || style="text-align: center" | OFF
|-
|-
! scope="row" | Boot from SD2
! scope="row" | Boot from SD2
| style="text-align: center" | ON | ON | OFF | OFF
| style="text-align: center" | ON || style="text-align: center" | ON || style="text-align: center" | OFF || style="text-align: center" | OFF
|}
|}
==Boot from EMMC==
This is how the physical switches '''SW802''' and '''SW801''' should be set in order to boot from EMMC respectively:
[[File:switchsd.png|500px|center|Boot switches on the i.MX8M EVK]]


This is how the physical switch '''SW801''' should be set in order to boot from EMMC:
==Boot from SD2==
[[File:switchsd.png|200px|center|Boot switches on the i.MX8M EVK]]
This is how the physical switches '''SW802''' and '''SW801''' should be set to boot from SD2 respectively:
 
[[File:switchemmc.png|500px|center|Configuration to boot from the EMMC]]
And this is how the physical switch '''SW801''' should be set to boot from SD2:
[[File:switchemmc.png|200px|center|Configuration to boot from the EMMC]]
 
=Operating System Loading Options=
==EMMC==
In order to boot from the EMMC device, be sure that the Boot Configuration Switch is set to '''0010'''.
The board is preloaded with Android 8.1 and this OS will be loaded after plugging in the power adapter.   
== USB Boot ==
This option requires a Bootable USB stick and a Serial Console Cable, refer to iMX8 Software Support section to download a pre-built image or create your own image with the instructions provided in the Custom Image section.


Instructions to setting up the USB Boot:
==Advanced Boot Options==
* Connect the iMX8MQ board to a host machine with the Serial Console Cable.
You can load the kernel and filesystem by using advanced methods. Please refer to the [[IMX8/iMX8MEVK/Yocto/Advanced_image_loading | Advanced Image Loading]] page for more information.
* 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:
<pre>
setenv boot_targets usb0
</pre>
* If you do not want to repeat this commands, you can save the selected Boot Device with this command:
<pre>
saveenv
</pre>
* Continue the Boot sequence by typing the next command:
<pre>
boot
</pre>


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


<noinclude>{{IMX8/Foot|iMX8MEVK/Getting Started|<Replace with "next" page>}}</noinclude>
<noinclude>{{IMX8/Foot|iMX8MEVK/Getting Started|iMX8MEVK/Getting Started/System Setup}}</noinclude>

Latest revision as of 10:40, 3 March 2023



Previous: iMX8MEVK/Getting Started Index Next: iMX8MEVK/Getting Started/System Setup





Boot Loading Options

The i.MX8M Evaluation Kit provides two switches in order to set the boot configurations according to your needs. You can see both switches in 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.

  • SW802: This switch allows to configure the boot source by selecting one of the following options:
    • Boot From Fuses: The i.MX8M Applications Processor can be set as a boot configuration. This can be made established via eFUSE, a dynamic real-time reprogramming technology of computer chips.
    • Serial Downloader: The i.MX8M downloads a program image from a USB connection.
    • Internal Boot: For development. The boot mode is selected by configuring the SW801 switch.
    • Reserved.
  • SW801: This switch allows to configure the boot mode by selecting one of the following options:
    • Boot from EMMC.
    • Boot from SD2.

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 PIN1 PIN2
Boot from fuses OFF OFF
Serial Downloader OFF ON
Internal Boot ON OFF
Reserved ON ON

For example, if the method of determining the bootable source code is selected to be from the switch, then the developer must set the SW802: PIN1 to ON, PIN2 to OFF, 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 PIN1 PIN2 PIN3 PIN4
Boot from EMMC OFF OFF ON OFF
Boot from SD2 ON ON OFF OFF

Boot from EMMC

This is how the physical switches SW802 and SW801 should be set in order to boot from EMMC respectively:

 
Boot switches on the i.MX8M EVK

Boot from SD2

This is how the physical switches SW802 and SW801 should be set to boot from SD2 respectively:

 
Configuration to boot from the EMMC

Advanced Boot Options

You can load the kernel and filesystem by using advanced methods. Please refer to the Advanced Image Loading page for more information.


Previous: iMX8MEVK/Getting Started Index Next: iMX8MEVK/Getting Started/System Setup