Neil Armstrong | 4051389 | 2024-09-20 15:33:33 +0200 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | U-Boot for Libre Computer AML-A311D-CC 'Alta' (A311D) |
| 4 | ===================================================== |
| 5 | |
| 6 | AML-A311D-CC is a Single Board Computer manufactured by Libre Computer Technology with |
| 7 | the following specifications: |
| 8 | |
| 9 | - Amlogic A311D Arm Cortex-A53 dual-core + Cortex-A73 quad-core SoC |
| 10 | - 2 or 4GB LPDDR4 SDRAM |
| 11 | - Gigabit Ethernet |
| 12 | - HDMI 2.1 display |
| 13 | - 40-pin GPIO header |
| 14 | - 4 x USB 3.0 Host, 1 x USB 2.0 Type-C |
| 15 | - eMMC 5.x SM Interface for Libre Computer Modules |
| 16 | - microSD |
| 17 | - Infrared receiver |
| 18 | |
| 19 | Schematics are available on the manufacturer website. |
| 20 | |
| 21 | U-Boot Compilation |
| 22 | ------------------ |
| 23 | |
| 24 | .. code-block:: bash |
| 25 | |
| 26 | $ export CROSS_COMPILE=aarch64-none-elf- |
| 27 | $ make aml-a311d-cc_defconfig |
| 28 | $ make |
| 29 | |
| 30 | U-Boot Signing with Pre-Built FIP repo |
| 31 | -------------------------------------- |
| 32 | |
| 33 | .. code-block:: bash |
| 34 | |
| 35 | $ git clone https://github.com/LibreELEC/amlogic-boot-fip --depth=1 |
| 36 | $ cd amlogic-boot-fip |
| 37 | $ mkdir my-output-dir |
| 38 | $ ./build-fip.sh aml-a311d-cc /path/to/u-boot/u-boot.bin my-output-dir |
| 39 | |
| 40 | Then write U-Boot to SD or eMMC with: |
| 41 | |
| 42 | .. code-block:: bash |
| 43 | |
| 44 | $ DEV=/dev/boot_device |
| 45 | $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=512 skip=1 seek=1 |
| 46 | $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=1 count=440 |