U-Boot for ODROID-N2L (S922X)

ODROID-N2L is a Single Board Computer manufactured by Hardkernel with the following specifications:

  • Amlogic S922X ARM Cortex-A53 dual-core + Cortex-A73 quad-core SoC

  • 4GB DDR4 SDRAM

  • HDMI 2.1 4K/60Hz display

  • 40-pin GPIO header

  • 1x USB 3.0 Host

  • 1x USB 2.0 Host

  • eMMC, microSD

  • MIPI DSI Port

Schematics are available on the manufacturer website: https://wiki.odroid.com

U-Boot Compilation

$exportCROSS_COMPILE=aarch64-none-elf-
$makeodroid-n2l_defconfig
$make

U-Boot Signing with Pre-Built FIP repo

$gitclonehttps://github.com/LibreELEC/amlogic-boot-fip--depth=1
$cdamlogic-boot-fip
$mkdirmy-output-dir
$./build-fip.shodroid-n2l/path/to/u-boot/u-boot.binmy-output-dir

Then write U-Boot to SD or eMMC with:

$DEV=/dev/boot_device
$ddif=fip/u-boot.bin.sd.binof=$DEVconv=fsync,notruncbs=512skip=1seek=1
$ddif=fip/u-boot.bin.sd.binof=$DEVconv=fsync,notruncbs=1count=440