|
| 1 | +# NXP i.MX95 Cortex-A55 - wolfBoot as BL33 (replaces U-Boot proper): |
| 2 | +# ROM -> ELE -> SM -> OEI -> SPL [c1] -> BL31 -> OP-TEE -> wolfBoot -> Linux |
| 3 | +# wolfBoot takes U-Boot's slot in AHAB container 2 at 0x90200000; the other |
| 4 | +# container images are the vendor's, reused verbatim. |
| 5 | + |
| 6 | +ARCH?=AARCH64 |
| 7 | +TARGET?=imx95_a55 |
| 8 | + |
| 9 | +# ML-DSA-87, matching the imx95_m7 port. Header fits sig (4627) + pubkey. |
| 10 | +SIGN?=ML_DSA |
| 11 | +ML_DSA_LEVEL?=5 |
| 12 | +HASH?=SHA256 |
| 13 | +# Required: unset, ML_DSA_IMAGE_SIGNATURE_SIZE expands empty -> image.c errors. |
| 14 | +IMAGE_SIGNATURE_SIZE?=4627 |
| 15 | +IMAGE_HEADER_SIZE?=12288 |
| 16 | + |
| 17 | +DEBUG?=0 |
| 18 | +DEBUG_SYMBOLS=1 |
| 19 | +DEBUG_UART?=1 |
| 20 | +# Print entry EL, SCTLR, MPIDR, CNTFRQ and the handoff x0 pointer. |
| 21 | +IMX95_HANDOFF_DUMP?=1 |
| 22 | + |
| 23 | +V?=0 |
| 24 | +SPMATH?=1 |
| 25 | +NO_ASM?=0 |
| 26 | + |
| 27 | +# RAM-resident: BL31 loads and enters this image, so there is nothing to copy |
| 28 | +# from a stored .data and no XIP flash behind it. |
| 29 | +NO_XIP?=1 |
| 30 | + |
| 31 | +# GICv3, configured by BL31; gicv2_init_secure() would abort on an unmapped |
| 32 | +# ZynqMP address. |
| 33 | +SKIP_GIC_INIT?=1 |
| 34 | + |
| 35 | +# Stay at EL2 (Linux wants it for KVM). Do NOT set BOOT_EL1: el2_to_el1_boot |
| 36 | +# skips cache/MMU cleanup and would hand Linux stale DRAM. |
| 37 | +EL2_HYPERVISOR=1 |
| 38 | + |
| 39 | +# No flash: boot/update addresses come from the HAL. |
| 40 | +WOLFBOOT_NO_PARTITIONS=1 |
| 41 | + |
| 42 | +# Must match ORIGIN in hal/imx95_a55.ld and IMX95_BL33_BASE in hal/imx95_a55.h. |
| 43 | +WOLFBOOT_ORIGIN=0x90200000 |
| 44 | + |
| 45 | +# RAM staging at 0xA1000000: clear of the M7/BL31/OP-TEE/ELE/vpu carveouts; |
| 46 | +# hal_init() asserts this via imx95_check_load_ranges(). |
| 47 | +WOLFBOOT_LOAD_ADDRESS?=0xA1000000 |
| 48 | +WOLFBOOT_LOAD_DTS_ADDRESS?=0xA0800000 |
| 49 | + |
| 50 | +# Bounds the image before authentication; required without fixed partitions. |
| 51 | +WOLFBOOT_RAMBOOT_MAX_SIZE=0x10000000 |
| 52 | + |
| 53 | +# Required for the test-app link even with WOLFBOOT_NO_PARTITIONS=1. |
| 54 | +WOLFBOOT_SECTOR_SIZE?=0x4000 |
| 55 | +WOLFBOOT_PARTITION_SIZE?=0x4000000 |
| 56 | +WOLFBOOT_PARTITION_BOOT_ADDRESS?=0xA1000000 |
| 57 | + |
| 58 | +# Toolchain |
| 59 | +USE_GCC=1 |
| 60 | +CROSS_COMPILE?=aarch64-none-elf- |
| 61 | + |
| 62 | +# Storage: carrier SD on uSDHC2 (hal/imx95_usdhc.c; i.MX uSDHC, not SDHCI). |
| 63 | +# Boot containers stay on eMMC. |
| 64 | +DISK_SDCARD?=1 |
| 65 | +# A/B slots by 0-based index into the parsed partition table. |
| 66 | +CFLAGS_EXTRA+=-DBOOT_PART_A=1 -DBOOT_PART_B=2 |
| 67 | +CFLAGS_EXTRA+=-DDISK_BLOCK_SIZE=0x10000 |
| 68 | + |
| 69 | +# Linux FIT boot: kernel at 0xB2000000, ramdisk at 0xBA000000 - both above |
| 70 | +# the staging window so the copies cannot overlap the staged FIT. |
| 71 | +FIT_RAMDISK?=1 |
| 72 | +WOLFBOOT_LOAD_RAMDISK_ADDRESS?=0xBA000000 |
| 73 | +# OS cmdline plus serial console; the ostree= path pins the deployment. |
| 74 | +CFLAGS_EXTRA+=-DLINUX_BOOTARGS='"earlycon console=ttyLP1,115200 root=LABEL=otaroot rootfstype=ext4 logo.nologo ostree=/ostree/boot.1/torizon/d976a72bdc954405cfbe989bae393ad9da0b14b5dc0c1328c9b19e88201745a6/0"' |
| 75 | + |
| 76 | +# --- Later phases (not yet implemented) ------------------------------------- |
| 77 | +#ELF?=1 |
| 78 | +#GZIP?=1 |
0 commit comments