1.. SPDX-License-Identifier: GPL-2.0+
2
3U-Boot for ODROID-N2L (S922X)
4=============================
5
6ODROID-N2L is a Single Board Computer manufactured by Hardkernel with the following
7specifications:
8
9 - Amlogic S922X ARM Cortex-A53 dual-core + Cortex-A73 quad-core SoC
10 - 4GB DDR4 SDRAM
11 - HDMI 2.1 4K/60Hz display
12 - 40-pin GPIO header
13 - 1x USB 3.0 Host
14 - 1x USB 2.0 Host
15 - eMMC, microSD
16 - MIPI DSI Port
17
18Schematics are available on the manufacturer website: https://wiki.odroid.com
19
20U-Boot Compilation
21------------------
22
23.. code-block:: bash
24
25    $ export CROSS_COMPILE=aarch64-none-elf-
26    $ make odroid-n2l_defconfig
27    $ make
28
29U-Boot Signing with Pre-Built FIP repo
30--------------------------------------
31
32.. code-block:: bash
33
34    $ git clone https://github.com/LibreELEC/amlogic-boot-fip --depth=1
35    $ cd amlogic-boot-fip
36    $ mkdir my-output-dir
37    $ ./build-fip.sh odroid-n2l /path/to/u-boot/u-boot.bin my-output-dir
38
39Then write U-Boot to SD or eMMC with:
40
41.. code-block:: bash
42
43    $ DEV=/dev/boot_device
44    $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=512 skip=1 seek=1
45    $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=1 count=440
46