i.MX 8M Mini Evaluation Kit

Preparation

Ensure you replace the <factory> placeholder below with the name of your Factory.

Download necessary files from https://app.foundries.io/factories/<factory/targets

  1. Click the latest Target with the platform-devel trigger.

    ../../_images/generic-steps-1.png
  2. Expand the run in the Runs section (by clicking on the + sign) which corresponds with the name of the board and download the Factory image for that machine.

    E.g: lmp-factory-image-<machine_name>.wic.gz
    and: imx-boot-<machine_name>

    For i.MX 8M Mini EVK you’ll also these two additional files:
    u-boot-<machine-name>.itb and sit-<machine-name>.bin
    ../../_images/imx-steps-2.png
  3. Extract the file lmp-factory-image-<machine_name>.wic.gz:

    gunzip lmp-factory-image-<machine_name>.wic.gz
    
  4. Expand the run in the Runs section which corresponds with the name of the board mfgtool-files and download the tools for that machine.

    E.g: <machine_name>-mfgtools

  5. Download and extract the file mfgtool-files-<machine_name>.tar.gz:

    tar -zxvf mfgtool-files-<machine_name>.tar.gz
    
  6. Organize all the files like the tree below:

    ├── imx-boot-<machine_name>
    ├── u-boot-<machine.name>.itb             # imx8mm only
    ├── sit-<machine-name>.bin                # imx8mm only
    ├── lmp-factory-image-<machine_name>.wic
    └── mfgtool-files-<machine_name>
          ├── bootloader.uuu
          ├── full_image.uuu
          ├── imx-boot-mfgtool
          ├── uuu
          └── uuu.exe
    

Hardware Preparation

Set up the board for updating using the manufacturing tools:

../../_images/imx8mmevk.png

imx8mmevk

  1. OPTIONAL - Only required if you have a problems and/or want to see the boot console output.

    Connect the micro-B end of the USB cable into debug port J901. Connect the other end of the cable to a PC acting as a host terminal. Two UART connections will appear on the PC. On a Linux host for example:

    $ ls -l /dev/serial/by-id/
    total 0
    lrwxrwxrwx 1 root root 13 Dec 18 11:09 usb-FTDI_Dual_RS232-if00-port0 -> ../../ttyUSB0
    lrwxrwxrwx 1 root root 13 Dec 18 11:09 usb-FTDI_Dual_RS232-if01-port0 -> ../../ttyUSB1
    

    Using a serial terminal program like minicom, connect to the port with if01 in the name (in this example ttyUSB0) and apply the following configuration

    • Baud rate: 115200
    • Data bits: 8
    • Stop bit: 1
    • Parity: None
    • Flow control: None
  2. Ensure that the power is off (SW101)

  3. Put the imx8mmevk into programing mode:

    Switch SW1101 to ON, OFF, ON, OFF (from 1-4 bit) and switch SW1102 bit 10 to OFF as shown below.

    ../../_images/imx8mmevk_SW.png

    SW1101 and SW1102 programing settings

  4. Connect your computer to the EVK board via the USB Type-C port 1 Download J301 jack.

  5. Connect the USB Type-C power plug to the port 2 Power J302 jack.

  6. Power on the EVK board by sliding power switch SW101 to ON.

Flashing

Once in serial downloader mode and connected to your PC the evaluation board should show up as an NXP USB device.

  1. Verify target is present:

    $ lsusb | grep NXP
    Bus 001 Device 023: ID 1fc9:012b NXP Semiconductors i.MX 8M Dual/8M QuadLite/8M Quad Serial Downloader
    

    In this mode you will use the uuu tools to program the images to the eMMC.

  2. Run the command below to program the LmP to the EMMC:

    $ sudo mfgtool-files-<machine_name>/uuu -pp 1 mfgtool-files-<machine_name>/full_image.uuu
    uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.43-0-ga9c099a
    
    Success 1    Failure 0
    
    
    1:31     3/ 3 [=================100%=================] SDPV: jump
    2:31     8/ 8 [Done                                  ] FB: done
    
  3. Turn off the power.

  4. Put the board into run mode

  1. Start the Device Manager
  2. Select View
  3. Select Devices by container
  4. Verify a device like the following:
../../_images/windows_verify.png
  1. Run the command below to program the LmP to the EMMC:

    C:\Users\Someone> mfgtool-files-<machine_name>\uuu.exe -pp 1 mfgtool-files-<machine_name>\full_image.uuu
    uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.43-0-ga9c099a
    
    Success 1    Failure 0
    
    
    1:31     3/ 3 [=================100%=================] SDPV: jump
    2:31     8/ 8 [Done                                  ] FB: done
    
  2. Turn off the power.

  3. Put the board into run mode

To put the EVK into run mode, switch SW1101 and SW1102 to eMMC setting.

Power on the EVK board by sliding power switch SW101 to ON.