blob: 6d581759741d5a4eed6a6a5b2539ae0204c80de1 [file] [log] [blame]
Neil Armstrong8f5e9de2023-01-26 10:48:21 +01001.. SPDX-License-Identifier: GPL-2.0+
2
Christian Hewitt16ea7fc2023-03-20 11:45:55 +00003U-Boot for ODROID-N2L (S922X)
4=============================
Neil Armstrong8f5e9de2023-01-26 10:48:21 +01005
Christian Hewitt16ea7fc2023-03-20 11:45:55 +00006ODROID-N2L is a Single Board Computer manufactured by Hardkernel with the following
7specifications:
Neil Armstrong8f5e9de2023-01-26 10:48:21 +01008
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
Christian Hewitt16ea7fc2023-03-20 11:45:55 +000013 - 1x USB 3.0 Host
14 - 1x USB 2.0 Host
Neil Armstrong8f5e9de2023-01-26 10:48:21 +010015 - eMMC, microSD
16 - MIPI DSI Port
17
Christian Hewitt16ea7fc2023-03-20 11:45:55 +000018Schematics are available on the manufacturer website: https://wiki.odroid.com
Neil Armstrong8f5e9de2023-01-26 10:48:21 +010019
Christian Hewitt16ea7fc2023-03-20 11:45:55 +000020U-Boot Compilation
Neil Armstrong8f5e9de2023-01-26 10:48:21 +010021------------------
22
23.. code-block:: bash
24
25 $ export CROSS_COMPILE=aarch64-none-elf-
26 $ make odroid-n2l_defconfig
27 $ make
28
Christian Hewitt16ea7fc2023-03-20 11:45:55 +000029U-Boot Signing with Pre-Built FIP repo
30--------------------------------------
Neil Armstrong8f5e9de2023-01-26 10:48:21 +010031
Christian Hewitt16ea7fc2023-03-20 11:45:55 +000032.. 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