Skip to content

Flashing the eMMC (Hailo)

The recommended method is to boot from an SD card and flash the .wic image to eMMC from a USB drive.


Prerequisites

  • A bootable SD card with a working image
  • A USB drive containing the .wic image

Prepare the USB Drive

Copy the Yocto output image to a USB drive:

cp tmp/deploy/images/hailo15-smarcore/core-image-base-hailo15-smarcore.wic /path/to/usb/

Flash Procedure

Boot the board from the SD card, then mount the USB drive:

mount /dev/sda1 /mnt

Write the image to eMMC with dd:

dd if=/mnt/core-image-base-hailo15-smarcore.wic of=/dev/mmcblk0 bs=4M status=progress conv=fsync

Boot from eMMC

After flashing, reboot and interrupt U-Boot. Run the following command to boot from eMMC:

run boot_mmc1

To make it permanent, set the default boot target in the U-Boot environment:

setenv boot_targets mmc1
saveenv