Boot from USB OTG - i.MX8M

Revisions and Notes

Date

Owner

Revision

Notes

Date

Owner

Revision

Notes

Feb 23, 2022

 

1.0

Initial release

Table Of Contents

 

 

 

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 make sure to have cmake 3.19 or a newer version.

2. Install U-Boot binaries

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

4. Serial connection

Connect your micro USB cable to your device.

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

Identify the OTG port
It’s the upper USB port. This holds true of all our i.MX8 based boards.

  • 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

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  $ROOGitHub - 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:

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

Then, you should be able to see the following:

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

 

 

 

 

 

SolidRun Ltd.