mirror of https://github.com/wolfSSL/wolfBoot.git
39 lines
1.8 KiB
Plaintext
39 lines
1.8 KiB
Plaintext
# NVIDIA Jetson Orin / Tegra234 - bare-metal wolfBoot as the BL33 firmware stage
|
|
# (the edk2 UEFI / cpu-bootloader slot that ARM Trusted Firmware hands off to).
|
|
# This base config boots a bundled signed payload at EL2; for the EL2->EL1 +
|
|
# device-tree Linux boot contract use config/examples/tegra234-linux.config.
|
|
# To run under UEFI instead, use the aarch64_efi target.
|
|
# See docs/Targets.md, "NVIDIA Jetson Orin (NVIDIA Tegra234) BL33 firmware".
|
|
#
|
|
# Toolchain: bare-metal aarch64-none-elf-, or aarch64-linux-gnu- (wolfboot.bin
|
|
# links -ffreestanding -nostartfiles, so the Linux GNU toolchain works too;
|
|
# that is what CI uses).
|
|
ARCH=AARCH64
|
|
TARGET=tegra234
|
|
SIGN?=ECC384
|
|
HASH?=SHA384
|
|
DEBUG?=1
|
|
DEBUG_UART?=1
|
|
# Bring-up: print the handoff state (entry EL, SCTLR/MMU/cache, x0/DTB pointer)
|
|
# from hal_init. Set to 0 for a quiet build once the handoff is characterized.
|
|
TEGRA234_HANDOFF_DUMP?=1
|
|
SPMATH?=1
|
|
# Boot media is external (SD/eMMC/NVMe via ext_flash); no internal flash.
|
|
NO_XIP?=1
|
|
# Skip GIC init before booting the payload (Orin is GICv3; BL31 set it up).
|
|
SKIP_GIC_INIT?=1
|
|
WOLFBOOT_SECTOR_SIZE?=0x1000
|
|
WOLFBOOT_NO_PARTITIONS=1
|
|
# Hard upper bound on the image size accepted for a RAM load. Enforced at
|
|
# runtime by wolfBoot_open_image_address() (src/image.c, no-partition branch).
|
|
WOLFBOOT_RAMBOOT_MAX_SIZE=0x4000000
|
|
# Payload slot in the BL33 bundle: BUNDLE_OFFSET..DTB_OFFSET (see
|
|
# hal/tegra234.h). Bounds the test-app link so an oversized payload fails to
|
|
# build rather than colliding with the bundled DTB.
|
|
WOLFBOOT_PARTITION_SIZE?=0x100000
|
|
# DRAM staging. Keep the DTB target above LOAD_ADDRESS + RAMBOOT_MAX_SIZE
|
|
# (0x90000000 + 0x4000000 = 0x94000000), so update_ram's DTB relocation cannot
|
|
# land inside a large image that already passed signature verification.
|
|
WOLFBOOT_LOAD_ADDRESS?=0x90000000
|
|
WOLFBOOT_LOAD_DTS_ADDRESS?=0x95000000
|