|
| 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 | +# Report how long each boot step takes, in ms, from the generic timer. |
| 23 | +BOOT_BENCHMARK?=1 |
| 24 | +# Also mirror the console into a DDR ring, so the verified-boot log can be read |
| 25 | +# from Linux (and shown on a display) long after the UART output has scrolled. |
| 26 | +IMX95_LOG_RING?=1 |
| 27 | + |
| 28 | +V?=0 |
| 29 | +SPMATH?=1 |
| 30 | +NO_ASM?=0 |
| 31 | + |
| 32 | +# RAM-resident: BL31 loads and enters this image, so there is nothing to copy |
| 33 | +# from a stored .data and no XIP flash behind it. |
| 34 | +NO_XIP?=1 |
| 35 | + |
| 36 | +# GICv3, configured by BL31; gicv2_init_secure() would abort on an unmapped |
| 37 | +# ZynqMP address. |
| 38 | +SKIP_GIC_INIT?=1 |
| 39 | + |
| 40 | +# Stay at EL2 (Linux wants it for KVM). Do NOT set BOOT_EL1: el2_to_el1_boot |
| 41 | +# skips cache/MMU cleanup and would hand Linux stale DRAM. |
| 42 | +EL2_HYPERVISOR=1 |
| 43 | + |
| 44 | +# No flash: boot/update addresses come from the HAL. |
| 45 | +WOLFBOOT_NO_PARTITIONS=1 |
| 46 | + |
| 47 | +# Must match ORIGIN in hal/imx95_a55.ld and IMX95_BL33_BASE in hal/imx95_a55.h. |
| 48 | +WOLFBOOT_ORIGIN=0x90200000 |
| 49 | + |
| 50 | +# RAM staging at 0xA1000000: clear of the M7/BL31/OP-TEE/ELE/vpu carveouts; |
| 51 | +# hal_init() asserts this via imx95_check_load_ranges(). |
| 52 | +WOLFBOOT_LOAD_ADDRESS?=0xA1000000 |
| 53 | +WOLFBOOT_LOAD_DTS_ADDRESS?=0xA0800000 |
| 54 | + |
| 55 | +# Bounds the image before authentication; required without fixed partitions. |
| 56 | +WOLFBOOT_RAMBOOT_MAX_SIZE=0x10000000 |
| 57 | + |
| 58 | +# Required for the test-app link even with WOLFBOOT_NO_PARTITIONS=1. |
| 59 | +WOLFBOOT_SECTOR_SIZE?=0x4000 |
| 60 | +WOLFBOOT_PARTITION_SIZE?=0x4000000 |
| 61 | +WOLFBOOT_PARTITION_BOOT_ADDRESS?=0xA1000000 |
| 62 | + |
| 63 | +# Toolchain |
| 64 | +USE_GCC=1 |
| 65 | +CROSS_COMPILE?=aarch64-none-elf- |
| 66 | + |
| 67 | +# Storage: carrier SD on uSDHC2 (hal/imx95_usdhc.c; i.MX uSDHC, not SDHCI). |
| 68 | +# Boot containers stay on eMMC. |
| 69 | +DISK_SDCARD?=1 |
| 70 | +# Cold start: with no U-Boot ahead of wolfBoot the uSDHC2 clock and pinmux are |
| 71 | +# still owned by the System Manager and must be requested over SCMI. |
| 72 | +IMX95_SCMI_COLD_INIT?=1 |
| 73 | +# Power the Cortex-M7 mix and scrub its TCM, as U-Boot's board init does, for |
| 74 | +# boards that launch an M7 image from Linux. |
| 75 | +IMX95_INIT_M7?=1 |
| 76 | +# A/B slots by 0-based index into the parsed partition table. |
| 77 | +CFLAGS_EXTRA+=-DBOOT_PART_A=1 -DBOOT_PART_B=2 |
| 78 | +CFLAGS_EXTRA+=-DDISK_BLOCK_SIZE=0x10000 |
| 79 | + |
| 80 | +# Linux FIT boot: kernel at 0xB2000000, ramdisk at 0xBA000000 - both above |
| 81 | +# the staging window so the copies cannot overlap the staged FIT. |
| 82 | +FIT_RAMDISK?=1 |
| 83 | +WOLFBOOT_LOAD_RAMDISK_ADDRESS?=0xBA000000 |
| 84 | +# OS cmdline plus serial console; the ostree= path pins the deployment. |
| 85 | +# audit=0: the audit subsystem writes multi-line records to this console |
| 86 | +# during late boot, interleaving with anything else printing there. Nothing |
| 87 | +# in this configuration consumes them. |
| 88 | +CFLAGS_EXTRA+=-DLINUX_BOOTARGS='"earlycon console=ttyLP1,115200 audit=0 root=LABEL=otaroot rootfstype=ext4 logo.nologo ostree=/ostree/boot.1/torizon/d976a72bdc954405cfbe989bae393ad9da0b14b5dc0c1328c9b19e88201745a6/0"' |
| 89 | + |
| 90 | +# --- Later phases (not yet implemented) ------------------------------------- |
| 91 | +#ELF?=1 |
| 92 | +#GZIP?=1 |
0 commit comments