🛠 Construire sa propre image Armbian pour la PINE A64 (armbian/build)

Pine64 PINE A64 / PINE A64+ (Allwinner A64) · avance · Schéma : IMG-pine64-avance-1-construire-image-armbian.svg — PC x86 avec Docker lancant armbian/compile.sh, fleches de compilation vers une carte microSD etiquetee Armbian pine64, encart config BOARD=pine64 BRANCH=current, BOOTCONFIG pine64_plus_defconfig, CRUSTCONFIG a64_defconfig, chaine de boot BROM -> U-Boot -> kernel DTB

Objetivos

Deja de depender de imágenes binarias: compila tú mismo el sistema de la PINE A64 con el framework armbian/build, cuya configuración de placa pine64 se mantiene siempre activa (family sun50iw1, KERNEL_TARGET="current,edge,legacy"). Verás la cadena de arranque completa específica de Allwinner — BROM del SoC → U-Boot (mainline, defconfig pine64_plus_defconfig) → kernel + DTB, todo leído desde la microSD (no hay SPI NOR en esta placa) — y el firmware ARM Trusted Firmware reemplazado aquí por CRUST (a64_defconfig), el port mainline del BSP ARM Trusted de Allwinner.

Hardware

Código completo

# Cloner le framework de build Armbian
git clone --depth=1 https://github.com/armbian/build
cd build

# Compiler une image CLI Debian Bookworm, noyau mainline LTS (BRANCH=current)
# Le framework lit config/boards/pine64.conf :
#   BOOTCONFIG=pine64_plus_defconfig   (U-Boot mainline)
#   CRUSTCONFIG=a64_defconfig          (ARM Trusted Firmware pour A64)
#   KERNEL_TARGET="current,edge,legacy"
./compile.sh BOARD=pine64 BRANCH=current DISTRIBUTION=bookworm \
             BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no

# Image produite :
ls -lh output/images/   # Armbian_*_Bookworm_current_pine64.img.xz

# Graver et booter (console EXP 115200 8N1 pour voir le U-Boot custom) :
xzcat output/images/Armbian_*_Bookworm_current_pine64.img.xz | sudo dd of=/dev/sdX bs=4M
sync

Verificación esperada

Al final de la compilación, output/images/ contiene la imagen .img.xz con el kernel current, U-Boot u-boot-sunxi-with-spl.bin y el DTB sun50i-a64-pine64*.dtb. En la consola serie, aparece el banner de U-Boot y luego el kernel arranca en serial0:115200n8 (el chosen stdout-path del device tree mainline). uname -a en la placa confirma la versión del kernel que acabas de compilar — y ahora puedes parchear el kernel o el DTS, recompilar y ver tu cambio en el siguiente arranque.

Errores frecuentes

Otros tutoriales para esta placa

Ejemplos de código para esta placa

← Volver a la ficha 🛠 Todos los tutoriales