armbian/patch/atf
Elias Bakken 5ae101dfaf sunxi: recore: update U-Boot and put BL31 in DRAM
Bring the Recore's U-Boot and TF-A in line with what Recore images
ship, so that the linux-u-boot-recore package can be upgraded in place.

TF-A: build Armbian's default TF-A with SUNXI_BL31_IN_DRAM=1 instead of
pinning v2.8.0 in SRAM A2. That frees SRAM A2 for the AR100, which runs
Klipper on this board. The A64 platform does not build the fdt helpers
BL31-in-DRAM needs, so add them (atf-sunxi64/board_recore). The first
MiB of DRAM is reserved for BL31 in the kernel device tree.

U-Boot (v2026.07-sunxi64/board_recore):
- 0001: device tree and defconfig for Recore A5-A8, updated: the USB-C
  port is a peripheral only, a USB stick is tried before the eMMC, the
  AR100 clock is set before Linux starts, the boot targets are FEL,
  MMC and USB, HDMI VBUS is enabled for the panel, and the firmware
  phase runs at 648 MHz
- 0002: load BL31 at its DRAM address
- 0003: probe all regulators at board init, so PD7 is driven low and
  the board does not source VBUS on USB-C
- 0004: do not assert the USB phy reset on exit, which disturbs the
  display timing at the handover to Linux
- 0005: restore USB_READY after a successful transfer, instead of a
  5 ms delay on every command after the first error
- 0006: A64 OHCI1's clock is parented on OHCI0's, which otherwise
  hangs "usb reset" when ohci0 is disabled
- 0007: keep U-Boot's console output off the panel
- 0008: make bootm_size cover the load layout, so a large initrd does
  not fail with "ramdisk - allocation error"

Tested with full images built from main on Recore A8, A6 and A5 (edge,
7.2.8). An earlier revision, which set the boot targets in
sunxi-common.h, was also tested on an A8 with current (6.18.50).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 09:32:18 +02:00
..
atf-d1 atf: fix C23 build errors for D1 (OpenSBI) 2026-09-22 09:34:55 +02:00
atf-genio genio: mt8195: atf: patch: add TF-A RAM size autodetection pass to bl33 2026-01-08 12:30:24 +01:00
atf-rockchip64 atf: rk3399: fix PL330 DMA controller initialization 2026-01-25 11:36:06 +01:00
atf-spacemit SpacemiT: OpenSBI: Fix bool definition 2026-05-16 10:30:29 -04:00
atf-spacemit-k3 SpacemiT K3: Update U-Boot to k3-br-v1.0.8 2026-09-17 13:01:56 -04:00
atf-sunxi64 sunxi: recore: update U-Boot and put BL31 in DRAM 2026-10-03 09:32:18 +02:00
atf-tq fix(atf): move imx8m/imx93 ATF linker-flag patch to shared atf-tq dir 2026-08-30 19:10:56 +02:00