Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Introduction

The following quick start guide provides background information about the SolidRun Hailo 15 SOM.

...

Date

Owner

Revision

Notes

Mikhail Anikin 

1.0

Initial release

Mikhail Anikin

1.1

Update flashing process

Mikhail Anikin

1.2

Add IIoT support

Table of Contents

Table of Contents
class
maxLevel4
minLevel1maxLevel4
include
outlinefalse
indent
exclude
styledefault
excludetypelist
printabletrue
class

Hardware Setup

Product specifications

...

Hailo 15 with HummingBoard has two boot options: serial boot (for recovery) and eMMC boot (the main option). The S3 To select a boot option, the DIP switch needs to be modified to select a boot option.

...

Boot Mode

...

1

...

2

...

3

...

4

...

5

...

6

...

eMMC Boot

...

off

...

off

...

off

...

off

...

off

...

off

...

Serial Recovery mode

...

off

...

on

...

off

...

off

...

off

...

off

For more information, see HummingBoard Hailo 15 Boot Select

Generating Yocto image

The prebuilt artifacts are available here.

...

Artifact

Purpose

Target location

hailo15_scu_bl.bin

SCU Bootloader

QSPI Flash

hailo15_scu_fw.bin

SCU Firmware

QSPI Flash

scu_bl_cfg_a.bin, scu_bl_cfg_b.bin

SCU Configuration

QSPI Flash

customer_certificate.bin

Customer key certificate

QSPI Flash

u-boot.dtb.signed

U-Boot device tree

QSPI Flash

u-boot-initial-env

U-Boot environment

QSPI Flash

u-boot-spl.bin

U-Boot SPL

QSPI Flash

u-boot-tfa.itb

TF-A and U-Boot

eMMC Boot partition

fitImage

Linux kernel and device tree

eMMC Boot partition

core-image-minimal-hailo15-solidrun.ext4

RootFS

eMMC Root partition

core-image-minimal-hailo15-solidrun.wic

Full eMMC image that contains both partitions. It can be flashed with bmap-tools using the .bmap file

eMMC

hailo15_uart_recovery_fw.bin

Recovery firmware for reflashing QSPI

...

  1. Serial connection
    Please insert the micro USB into your device. Then, you can refer to Serial Connection to install the necessary serial connection software in Linux/Windows.

  2. Network connection
    The prebuilt image has a preset network configuration with a static IP 10.0.0.1. Connect your PC to the board with a 1GbE RJ45 patch cord and set the static IP of your PC interface to 10.0.0.2.

  3. Optional: Camera connection
    To evaluate the demo application, connect the MIPI-CSI camera to the Hailo 15 SOM MIPI-CSI interface before starting the boot.

  4. Power the board
    Plug in a power supply, and the board will start booting. You will see the boot log in the serial terminal:

...

  1. Run the gstreamer pipeline to start receiving a stream.

On your pc In a bash terminal or Windows cmd run:

...

  1. Run the demo application on the target Hailo15 EVK:

Code Block
root@hailo15:~# ./apps/detection/detection.sh

...

By default, when Linux is booted from eMMC, the eMMC root partition is mounted, which makes it difficult to reflash. The u-boot menu has special entries that allow you to reflash eMMC from the TFTP server on your computer.

...

  1. Run an HTTP server on port 80 in the directory with the image

Code Block
sudo python3 -m http.server 80
  1. Reset the board. In the u-boot menu, select Update eMMC (wic) from

...

  1. HTTP

  2. The Board will grub a new image from the TFTP server and flash it to the eMMC.

Flashing QSPI flash

Reflashing QSPI is only possible under Linux.

View file
namehailo15_board_tools-1.24.10-py3-none-any.whl

  1. Download the flashing tool and install it into your system.

Code Block
python3 -m pip install hailo15_board_tools-1.2.1-py3-none-any.whl
  1. Set the S3 switch to the Serial download mode:

...

1

...

2

...

3

...

4

...

5

...

6

...

off

...

on

...

off

...

off

...

off

...

  1. .

  1. Close the serial terminal on your PC.

  2. Reset the board.

  3. Upload the uart flashing firmware into the SOM:

...

Code Block
hailo15_spi_flash_program --serial-device-name /dev/ttyUSB0 --uart-load --scu-bootloader ./hailo15_scu_bl.bin --scu-bootloader-config scu_bl_cfg_a.bin --scu-firmware ./hailo15_scu_fw.bin --uboot-device-tree ./u-boot.dtb.signed --bootloader ./u-boot-spl.bin --bootloader-env ./u-boot-initial-env --customer-certificate ./customer_certificate.bin

...

Find the line spl_boot_source=mmc2 and replace it with spl_boot_source=mmc2uart in the file u-boot-initial-env-uart.

  1. Set the S3 switch to the Serial download mode:

...

1

...

2

...

3

...

4

...

5

...

6

...

off

...

on

...

off

...

off

...

off

...

  1. .

  1. Close the serial terminal on your PC.

  2. Reset the board.

  3. Upload the uart flashing firmware into the SOM:

...

  1. Set the S3 switch back to the normal boot:

...

1

...

2

...

3

...

4

...

5

...

6

...

off

...

off

...

off

...

off

...

off

...

off

  1. eMMC boot.

  1. Open the serial connection and reset the boot. The board will boot to the SPL and expect the u-boot image to be transferred over the serial.

...

If you previously modified a u-boot env to force a serial mode, you need to restore it.

  1. Set the S3 switch to the Serial download mode:

...

1

...

2

...

3

...

4

...

5

...

6

...

off

...

on

...

off

...

off

...

off

...

off

  1. .

  1. Close the serial terminal on your PC.

  2. Reset the board.

  3. Upload the uart flashing firmware into the SOM:

...

  1. Set the S3 switch back to the normal eMMC boot:

...

1

...

2

...

3

...

4

...

5

...

6

...

off

...

off

...

off

...

off

...

off

...

  1. Open the serial connection and reset the boot. The board will boot to the SPL and expect the u-boot image to be transferred over the serial.

...