Boot From SD Card

This procedure describes how to flash Ubuntu/Debian/Yocto/Android image to the eMMC.

Flashing Ubuntu or Debian Image

Prerequisites

  • Download the prebuilt bootable Ubuntu image to the working directory on your development host.
  • In Windows environments, please download rufus to flash the image to the SD Card.
  • In a Linux environment use dd command.
  • Please be sure to pay attention to your boot menu settings. Make sure the boot loader on the carrier board is set according to the SD card or eMMC as you boot.
logo

Note: All files will be erased on the SD Card. The size should be preferable 16 GB or larger.

Windows Host

  1. Insert an empty MicroSD Card into the development host and execute rufus.exe. It will auto-detected your storage drives.

  2. Press the SELECT button and browse to the .img file previously downloaded to your working directory in the development host. Then click START and wait for the process to be finished.

logo

Linux Host

  1. Copy the prebuilt bootable Ubuntu/Debian image to the working directory on your development host. Insert an empty SD Card into the development host and enter the following command to copy the .img to the SD Card.

    Warning: Make sure you first properly identify the SD Card device name as for example (/dev/sdb or /dev/sdc) by using “gparted”. Data loss may result if written into the wrong device or in the worst case you kill your development host OS.

    $ sudo dd if=[your image].img of=/dev/sd[x]
  2. After dd has completed, enter the following command:

$ sync

Note: You can also flash Yocto and Android images using Linux host, but make sure, you type the correct image format in your dd command.

Flashing Yocto Image

Prerequisites

  • Copy the prebuilt bootable Yocto image to the working directory on your development host.

  • In Windows environments, please download the Win32DiskImager to flash the image to the SD Card.

    Note: All files will be erased on the SD Card. The size should be preferable 16 GB or larger.

Windows Host

Insert an empty MicroSD Card into the development host and execute the Win32DiskImager tool.

  • The SD card device is automatically detected.
  • Choose Image file by clicking on File explorer icon.
  • Select the image form the downloaded directory of development host, then click the Write button to start the process.
logo

Note:

The tool will prompt to the user that data will be lost. Select “Yes” to continue.

  • Once done, click OK and and it will show the message that Write successful.

  • Eject the SD card and insert it into the target board and power on the board to boot up.

Flashing Android Image

  1. Copy the prebuilt bootable Android image to the working directory on your development host.

  2. Connect an empty SD card to the host device.

  3. Extract the downloaded image go in to the extracted directory and type the following command to flash the image in to the SD card.

    Warning: Make sure you first properly identify the SD card partition as for example (/dev/sdb or /dev/sdc) by using “gparted”. Data loss may result if written into the wrong device or in the worst case you kill your development host’s OS.

    1. For LEC-i.MX8MP 2G module

    $ sudo ./imx-sdcard-partition.sh -f imx8mp -c 28 /dev/sdX

    2. For LEC-i.MX8MP 4G module

    $ sudo ./imx-sdcard-partition.sh -f imx8mp -c 28 -u 4gb /dev/sdX

    3. For LEC-i.MX8MP 8G module

    $ sudo ./imx-sdcard-partition.sh -f imx8mp -c 28 -u 8gb /dev/sdX
  4. After dd has completed, enter the following command:

$ sync

Note:

  • Make sure the boot loader on the carrier board is set according to the SD card as you boot.