Boot From UFS

This document provides detailed instructions of how to flash the Yocto image to UFS of I-Pi SMARC 1200 for Linux users.

Prerequisites

  • Make sure you have installed the AIoT tool on your Linux host device. If not, install them by clicking here.
  • Be prepared with the target device(I-Pi SMARC 1200) and power cable, USB to Micro cable.
  • For I-Pi SMARC 1200, the boot switch must be 1001 on the target device.
  • The Linux host must be Ubuntu 18.04 or later.

Flashing the Yocto Image to UFS

  • Download the prebuilt Yocto image files by clicking here.

  • Unzip the downloaded image file.

    tar zxvf lec-mtk-i1200-ufs_2v4_08_03_23.tar.gz
    cd lec-mtk-i1200-ufs
  • Turn on the target device and connect the USB cable from the host device to the target device.

  • Type the following command to flash the image on the UFS.

    aiot-flash
  • Now, the host device ready to find the target device as a fastboot device.

  • Press reset key on the target device to make it as fastboot device.

  • Once the targeted device is detected as a fastboot device it will automatically start to flash the Yocto image.

  • When it’s done you will see the following output,

    target reported max download size of 268435456 bytes
    sending 'mmc0boot1' (4 KB)...
    OKAY [ 0.002s]
    writing 'mmc0boot1'...
    OKAY [ 0.007s]
    finished. total time: 0.009s
    rebooting...
    finished. total time: 0.052s
  • A reboot will be automatically initiated when the image flashing process has been completed.

Changing Audio Codec

  • By default it comes with TLV 320 codec. If the customer would like to change the codec, change the device tree as mentioned below,

    $ fw_setenv boot_conf "#conf-mediatek_lec-mtk-i1200-ufs.dtb#conf-audio-wm8960.dtbo"
    $ reboot