> For the complete documentation index, see [llms.txt](https://dev.solid-run.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.solid-run.com/nxp/imx8/sbc-platform/imx8m-other-articles/boot-from-usb-otg-imx8m.md).

# Boot from USB OTG - i.MX8M

## Revisions and Notes

| **Date**    | **Owner** | **Revision** | **Notes**       |
| ----------- | --------- | ------------ | --------------- |
| 23 Feb 2022 |           | 1.0          | Initial release |

## Introduction

The following documentation provides a quick guide to boot from USB OTG port.

## Step-by-step

1\. Clone the mfgtools project by running the following:

```
git clone https://github.com/NXPmicro/mfgtools.git
```

* Please follow the [Build instructions](https://github.com/NXPmicro/mfgtools#linux).

{% hint style="info" %}
Please make sure to have cmake 3.19 or a newer version.
{% endhint %}

2\. Install U-Boot binaries

* You can Install U-Boot binaries from [SolidRun Images](https://images.solid-run.com/IMX8/U-Boot) site.

3\. Set the switches on the boot source selector as follows:

![](/files/1ZFY6W3ANORB7sMc0pV0)

4\. Serial connection

Connect your micro USB cable to your device.

* You can refer to the serial connection section in one of our quick start guide pages - [Cubox-M](/nxp/imx8/sbc-platform/cubox-m-quick-start-guide.md#booting-from-an-sd-card), [HummingBoard Pulse](/nxp/imx8/sbc-platform/hummingboard-imx8-sbc-quick-start-guide/hummingboard-pulse-imx8m-plus-som-quick-start-guide.md#booting-from-sd-card).

5\. Connect the Male to Male USB-A cable to the OTG port on your device.

{% hint style="info" %}
**Identify the OTG port**\
It’s the upper USB port. This holds true of all our i.MX8 based boards.
{% endhint %}

* Make sure you can detect the USB = NXP Semiconductors in the usb devices list.

6\. Use the following commands for loading the U-Boot:

```
cd <DIRPATH>/mfgtools/uuu/
sudo ./uuu <flash.bin-dir>/flash.bin
```

* For more information about the uuu tools, you can refer to <https://github.com/NXPmicro/mfgtools>

## i.MX8M-Plus Example

**The following is an example for i.MX8M-Plus Step-by-step:**

1\. Once you built the mfgtools, run the following to install the U-Boot binaries

```
wget https://solid-run-ignition.sos-de-fra-1.exo.io/imx8mp/Buildroot/flash-uboot-1g-and-3g.bin
```

* You can build your own image using the runme.sh script here – <https://github.com/SolidRun/imx8mp_build>. The flash.bin should be under $ROO￼GitHub - SolidRun/imx8mp\_build: IMX8M Plus buildroot build script​.TDIR/build/imx-mkimage/iMX8M/flash.bin

2\. Connect your micro USB cable to your device.

3\. Connect the Male to Male USB-A cable to the OTG port on your device.

* Make sure you can detect the USB = NXP Semiconductors in the usb devices list with the exact same vendor ID as shown in the below figure:

![](/files/urTqy4voujQ9jLLW1AlT)

4\. Change your current working directory and load the U-Boot:

```
cd <DIRPATH>/mfgtools/uuu/
sudo ./uuu <flash.bin-dir>/flash-uboot-1g-and-3g.bin
```

Then, you should be able to see the following:

![](/files/fdltIYJfkO3ApcelnTFA)

At this point U-Boot has been loaded to RAM and is running.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.solid-run.com/nxp/imx8/sbc-platform/imx8m-other-articles/boot-from-usb-otg-imx8m.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
