blob: 25c1e01906aa404cf5ec414b2fdb3041a24c0887 [file] [log] [blame]
Neil Armstrong40513892024-09-20 15:33:33 +02001.. SPDX-License-Identifier: GPL-2.0+
2
3U-Boot for Libre Computer AML-A311D-CC 'Alta' (A311D)
4=====================================================
5
6AML-A311D-CC is a Single Board Computer manufactured by Libre Computer Technology with
7the 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
19Schematics are available on the manufacturer website.
20
21U-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
30U-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
40Then 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