Edge2

Overview

See Product page

Hardware

See Hardware details

Supported Features

The khadas_edge2 board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
khadas_edge2
/
rk3588s

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-A55 CPU1

arm,cortex-a55

Interrupt controller

on-chip

ARM Generic Interrupt Controller v31

arm,gic-v3

Serial controller

on-chip

ns16550 UART1

ns16550

Timer

on-chip

per-core ARM architected timer1

arm,armv8-timer

There are multiple serial ports on the board: Zephyr is using uart2 as serial console.

Programming and Debugging

Use the following configuration to run basic Zephyr applications and kernel tests on Khadas Edge2 board. For example, with the Hello World:

  1. Non-SMP mode

# From the root of the zephyr repository
west build -b khadas_edge2 samples/hello_world

This will build an image with the hello world sample app.

Build the zephyr image:

mkimage -C none -A arm64 -O linux -a 0x10000000 -e 0x10000000 -d build/zephyr/zephyr.bin build/zephyr/zephyr.img

Burn the image on the board (we choose to use Rockchip burning tool rkdeveloptool, you will need a SPL which is provided by khadas:

rkdeveloptool db rk3588_spl_loader_*; rkdeveloptool wl 0x100000 zephyr.img; rkdeveloptool rd

The sector 0x100000 was chosen arbitrarily (far away from U-Boot image)

Use U-Boot to load and run Zephyr:

mmc read ${pxefile_addr_r} 0x100000 0x1000; bootm start ${pxefile_addr_r}; bootm loados; bootm go

0x1000 is the size (in number of sectors) or your image. Increase it if needed.

It will display the following console output:

*** Booting Zephyr OS build XXXXXXXXXXXX  ***
Hello World! khadas_edge2

Flashing

Zephyr image can be loaded in DDR memory at address 0x10000000 from SD Card, EMMC, QSPI Flash or downloaded from network in uboot.

References

Edge2 Documentation