IOT-GATE-iMX8 and SBC-IOT-iMX8: Yocto Linux: Installation
Contents
Introduction
This article provides instructions to install the Yocto Linux live image on the IOT-GATE-iMX8 / SBC-IOT-iMX8 device, using a Linux Host workstation and a USB flash drive. The image includes the Linux kernel, device driver modules, and Yocto root filesystem.
This installation process requires U-Boot version 2.0 or above. Before proceeding check the U-Boot version on your device and update as needed. |
Preparation steps
- Obtain a Linux PC workstation.
- Obtain a USB flash drive. Any commercially available USB flash drive of 1GB (or larger) may be used for the installation.
- The Yocto Linux live image file, mentioned below, is generated during the Yocto build process.
- Plug the USB flash drive into the host PC. The following instructions assume that the flash drive device name on your Linux PC is /dev/sdX.
Preparing the installation flash drive
- Flash the image file to the USB flash drive:
bzcat ~/path/to/core-image-full-cmdline-iot-gate-imx8.wic.bz2 | sudo dd of=/dev/sdX bs=1M
Run the Yocto live-disk image
- Insert the USB flash drive into one of the USB ports.
- Connect a standard USB cable (included in the kit) between your host PC and the IOT-GATE-iMX8/SBC-IOT-iMX8 Debug console connector. (see drawing)
- Use a terminal emulator as described here
- Power-on the system.
- The system will automatically boot the live disk image from the USB flash drive.
Installing Yocto images onto the internal storage
Use the `CompuLab Deployment Tool` to install the IOT-GATE-iMX8 / SBC-IOT-iMX8 Yocto Linux onto on-board eMMC storage.
The `CompuLab Deployment Tool` is a shell script that allows to deploy a working OS image from USB flash drive to the IOT-GATE-iMX8 / SBC-IOT-iMX8 on-board storage (eMMC).
Follow the step-by-step procedure for a selected image:
- In the terminal window issue, root privilege is needed (sudu):
root@iot-gate-imx8:~# cl-deploy
- Follow the steps below:
Action | Screenshot |
|
Select a destination device
──────────────────────────────────────────────────── ┌────────────────────────────────────────┐ │ Available Devices: │ │ ┌────────────────────────────────────┐ │ │ │ ( ) /dev/mmcblk1 │ │ │ │ (*) /dev/mmcblk2 │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └────────────────────────────────────┘ │ ├────────────────────────────────────────┤ │ < OK > <Cancel> │ └────────────────────────────────────────┘ |
|
Start Deployment
──────────────────────────────────────────────────── ┌─────────────── WARNING ───────────────┐ │ Src: /dev/sda -> Dst: /dev/mmcblk2 │ │ │ │ All data on /dev/mmcblk2 will be │ │ destroyed │ │ │ │ │ │ │ ├────────────────────────────────────────┤ │ < Yes > < No > │ └────────────────────────────────────────┘ |
|
Allocating group tables: done Writing inode tables: done |
|
Finished with success
──────────────────────────────────────────────────── ┌────────────────────────────────────────┐ │ Boot media has been deployed on │ │ /dev/mmcblk2 │ │ │ │ Would you like to reboot the device │ │ now? │ │ │ │ │ ├────────────────────────────────────────┤ │ < Yes > < No > │ └────────────────────────────────────────┘ |
Post Installation
- Power-off the system.
- Remove the USB flash drive from the unit.
- Power-on the system.