i.MX 8M Quad Evaluation Kit

Preparation

The instructions in this section also apply to those boards with secure boot enabled. There are references on how to perform common instructions along with the flow. The Security Reference Manual details the required background for secure boot.

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

  1. 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 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
      u-boot-<machine_name>.itb
      imx-boot-<machine_name>
      ../../_images/generic-steps-2.png
  2. Extract the file lmp-factory-image-<machine_name>.wic.gz:

    gunzip lmp-factory-image-imx8mq-evk.wic.gz
    
  3. Download and extract the file mfgtool-files-<machine_name>.tar.gz:

    tar -zxvf mfgtool-files-imx8mq-evk.tar.gz
    
  4. Organize all the files like the tree below:

    ├── lmp-factory-image-imx8mq-evk.wic
    ├── u-boot-imx8mq-evk.itb
    ├── sit-imx8mq-evk.bin
    ├── imx-boot-imx8mq-evk or imx-boot-imx8mq-evk-nohdmi
    └── mfgtool-files-imx8mq-evk
         ├── bootloader.uuu
         ├── full_image.uuu
         ├── imx-boot-mfgtool
         ├── uuu
         └── uuu.exe
    

Hardware Preparation

Set up the board for updating using the manufacturing tools:

image_board_top

Top view of i.MX 8M Quad EVK

  1. OPTIONAL—Only required if you have problems or want to see the boot console output.

    Connect the micro-B end of the USB cable into debug port J1701. 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/
    otal 0
    rwxrwxrwx 1 root root 13 Nov 16 23:45 usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_007FC3F4-if00-port0 -> ../../ttyUSB0
    rwxrwxrwx 1 root root 13 Nov 16 23:45 usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_007FC3F4-if01-port0 -> ../../ttyUSB2
    

    Using a serial terminal program like minicom, connect to the port with if00 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 (SW701)

  3. Put the i.MX 8M Quad EVK into programing mode:

    Switch SW802 to OFF, ON (from 1-2 bit) to Download Mode.

    image_board_SW

    Location of SW802 dip switch on i.MX 8M Quad EVK

  4. Connect your computer to the i.MX 8M Quad EVK board via the USB-C port 1 Download J901 jack.

  5. Connect the 12V power plug to the port 2 Power J902 jack.

  6. Power on the i.MX 8M Quad EVK board by sliding power switch SW701 to ON.

Flashing

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

For instructions on how to sign the required images before flashing them to the board with secure boot enabled, follow the instructions from Machines with secure aspects enabled by FoundriesFactory.

  1. Verify target is present:

    lsusb | grep NXP
    us 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. The USB ID may differ if a different SoC is used.

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

    $ sudo mfgtool-files-imx8mq-evk/uuu mfgtool-files-imx8mq-evk/full_image.uuu
      uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.243-0-ged48c51
    
      Success 1    Failure 0
    
    
      1:92     6/ 6 [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: usb_device_windows

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

    C:\Users\Someone> mfgtool-files-imx8mq-evk\uuu.exe mfgtool-files-imx8mq-evk\full_image.uuu
      uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.243-0-ged48c51
    
      Success 1    Failure 0
    
    
      1:92     6/ 6 [Done                                  ] FB: done
    
  6. Turn off the power.

  7. Put the board into run mode

Put the i.MX 8M Quad EVK into run mode by switching SW802 to ON, OFF to set the board to boot from eMMC.

Power on the i.MX 8M Quad EVK board by sliding the power switch SW701 to ON.