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

From RidgeRun Developer Wiki
No edit summary
mNo edit summary
 
(37 intermediate revisions by 4 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>


The board is able to boot from more that one way, below you will see how to configure the boot device.
__TOC__
== 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 ==
==Boot Loading Options==
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.
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]]
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:
**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.


Instructions to setting up the USB Boot:
*<span style="color:red">'''SW801:'''</span> This switch allows to configure the boot mode by selecting one of the following options:
* Connect the iMX8MQ board to a host machine with the Serial Console Cable.
**Boot from EMMC.
* Start any serial console (i.e minicom or term)
**Boot from SD2.
* 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
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''':


==SDcard==
{| class="wikitable" style="margin-right: auto; margin-left: auto; border: none;"
|-
! style="background: black; color: white;" | Boot Source!! style="background: black; color: white;" | PIN1 !! style="background: black; color: white;" | PIN2
|-
! scope="row" | Boot from fuses
| style="text-align: center" | OFF || style="text-align: center" | OFF
|-
! scope="row" | Serial Downloader
| style="text-align: center" | OFF  || style="text-align: center" | ON
|-
! scope="row" | Internal Boot
| style="text-align: center" | ON || style="text-align: center" | OFF
|-
! scope="row" | Reserved
| style="text-align: center" | ON || style="text-align: center" | ON
|}


Change the boot switch configuration to 1100, plug int the SD card and power on the board.
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:


<noinclude>{{IMX8/Foot|<Replace with "previous" page>|<Replace with "next" page>}}</noinclude>
{| class="wikitable" style="margin-right: auto; margin-left: auto; border: none;"
|-
! style="background: black; color: white;" | BOOT Configuration!! style="background: black; color: white;" | PIN1 !! style="background: black; color: white;" | PIN2 !! style="background: black; color: white;" | PIN3 !! style="background: black; color: white;" | PIN4
|-
! scope="row" | Boot from EMMC
| 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
| 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]]
 
==Boot from SD2==
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]]
 
==Advanced Boot Options==
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.
 
 
<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
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 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
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