Yocto Flashing Guide

This document provides the detailed instructions on how to flash the image to SD Card.

Flashing Image on SD Card

This procedure describes how to flash Yocto image to the SD Card.

Prerequisites

  1. Download Yocto Image: Download the prebuilt Yocto image to the working directory of your development host by clicking_here.

  2. Set Up Devices:

  • Target Device: Ensure your target device is ready.
  • Host Device: Ensure your development host is set up.
  1. Required Hardware:
  • SD Card Drive: Ensure you have a SD Card drive with at least 32GB of capacity.
  1. Flashing Tools:
  • DD CMD: Use the dd command to flash the image onto the SD Card drive.

Linux Host

To begin, launch the terminal and proceed with the instructions given below.

Step 1:Check out the prebuilt bootable Yocto image located in the working directory.

Step 2:To find your SD card, just plug it in and run below mentioned command.

lsblk

lsblk

Step 3: Once you’ve found your SD card, just run below mentioned command to flash the yocto image on it.

$ sudo dd if="image name" of=/dev/sd[x]
  • of=/dev/sd[x]: This specifies the output file (the target device).Replace [x] with the appropriate letter corresponding to your target device (e.g., sdb, sdc).
$ sudo sync

dd_cmd

Step 4: After completion, take SD Card to plug into your target platform and then proceed to boot it.

Booti_process

Step 5: The XFCE Desktop is now visible.

XFCE Desktop

Flashing Image on eMMC

This procedure describes how to flash Yocto image to the eMMC.

Prerequisites

  1. Download Yocto Image: Download the prebuilt Yocto image & unzip to the working directory of your development host by clicking_here.

  2. Download Bootloader Image: Download the prebuilt bootloader image & unzip to the working directory of your development host by clicking_here.

  3. A PC running Linux with sudo permissions are required.

  4. Flashing Tools:

  • UUU : Please download latest UUU tool version to flash yocto image into eMMC.

Linux Host

Step 1: Check out the prebuilt bootable Yocto image and uboot image located in the working directory.

Step 2: Before powering up the board, adjust the boot settings to Serial Downloader, make sure SW7 is OFF, and turn SW8 ON.

Boot_Sel

Step 3: To see if the OTG cable is linked from the host to the target board, run the command below. After that, use the UUU tool to flash the Yocto image onto the EMMC by executing the command provided below.

uuu -lsusb
$ sudo uuu -b emmc_all <ubootimage> <image.wic>

Flashing to eMMC

Step 4: After the image is successfully flashed onto the eMMC, turn off the board, unplug the OTG cable, and change the boot settings to SW7 to ON and SW8 to OFF for booting from eMMC. Then, power the board back on to check if it boots from the eMMC.

Boot_Sel

Step 5: Run the below command to verify which block the eMMC has been mounted.

eMMC