Neil Armstrong | ec78ee2 | 2023-01-26 10:48:21 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
Christian Hewitt | b7d4899 | 2023-03-20 11:45:55 +0000 | [diff] [blame^] | 3 | U-Boot for ODROID-N2L (S922X) |
| 4 | ============================= |
Neil Armstrong | ec78ee2 | 2023-01-26 10:48:21 +0100 | [diff] [blame] | 5 | |
Christian Hewitt | b7d4899 | 2023-03-20 11:45:55 +0000 | [diff] [blame^] | 6 | ODROID-N2L is a Single Board Computer manufactured by Hardkernel with the following |
| 7 | specifications: |
Neil Armstrong | ec78ee2 | 2023-01-26 10:48:21 +0100 | [diff] [blame] | 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 |
Christian Hewitt | b7d4899 | 2023-03-20 11:45:55 +0000 | [diff] [blame^] | 13 | - 1x USB 3.0 Host |
| 14 | - 1x USB 2.0 Host |
Neil Armstrong | ec78ee2 | 2023-01-26 10:48:21 +0100 | [diff] [blame] | 15 | - eMMC, microSD |
| 16 | - MIPI DSI Port |
| 17 | |
Christian Hewitt | b7d4899 | 2023-03-20 11:45:55 +0000 | [diff] [blame^] | 18 | Schematics are available on the manufacturer website: https://wiki.odroid.com |
Neil Armstrong | ec78ee2 | 2023-01-26 10:48:21 +0100 | [diff] [blame] | 19 | |
Christian Hewitt | b7d4899 | 2023-03-20 11:45:55 +0000 | [diff] [blame^] | 20 | U-Boot Compilation |
Neil Armstrong | ec78ee2 | 2023-01-26 10:48:21 +0100 | [diff] [blame] | 21 | ------------------ |
| 22 | |
| 23 | .. code-block:: bash |
| 24 | |
| 25 | $ export CROSS_COMPILE=aarch64-none-elf- |
| 26 | $ make odroid-n2l_defconfig |
| 27 | $ make |
| 28 | |
Christian Hewitt | b7d4899 | 2023-03-20 11:45:55 +0000 | [diff] [blame^] | 29 | U-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 | |
| 39 | Then write U-Boot to SD or eMMC with: |
| 40 | |
| 41 | .. code-block:: bash |
Neil Armstrong | ec78ee2 | 2023-01-26 10:48:21 +0100 | [diff] [blame] | 42 | |
Christian Hewitt | b7d4899 | 2023-03-20 11:45:55 +0000 | [diff] [blame^] | 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 |