wolfBoot/config/examples/rtl8735b.config

62 lines
2.0 KiB
Plaintext

ARCH?=ARM
TARGET?=rtl8735b
SIGN?=ECC256
HASH?=SHA256
# ECC256 + SHA256 header fits in 256 bytes
IMAGE_HEADER_SIZE?=256
# Cortex-M33 (single, non-TrustZone secure world for Model A)
CORTEX_M33?=1
TZEN?=0
VTOR?=1
NO_MPU?=1
# wolfBoot is staged into SRAM by the RealTek bootloader (not XIP). It reads the
# BOOT/UPDATE/SWAP partitions from external SPI NOR and copies the verified
# application into DDR before jumping (src/update_ram.c RAMBOOT path).
NO_XIP?=1
EXT_FLASH?=1
SPI_FLASH?=0
WOLFBOOT_DUALBOOT?=1
# wolfBoot runs entirely from SRAM, so RAM_CODE relocation is unnecessary.
RAM_CODE?=0
DEBUG?=0
DEBUG_UART?=1
V?=0
SPMATH?=1
ALLOW_DOWNGRADE?=0
NVM_FLASH_WRITEONCE?=0
WOLFBOOT_VERSION?=1
# 4 KB SPI NOR sector (flash_erase_sector granularity)
WOLFBOOT_SECTOR_SIZE?=0x1000
# DDR address the verified application is copied to and launched from. Must
# match the application's vector-table link address. The DDR memory window is
# 0x70000000 (128 MB); load 1 MB in so the header (placed at LOAD-0x100 by the
# RAMBOOT path) stays inside DDR. 0x70100000 matches the address proven by the
# prior RealTek DDR bring-up on this board.
WOLFBOOT_LOAD_ADDRESS?=0x70100000
# External SPI NOR partition layout. These are raw NOR byte offsets addressed
# only by ext_flash_*. wolfBoot itself lives in the RealTek PT_FW1 region
# (0x60000, 4 MB). The BOOT/UPDATE/SWAP partitions reuse the PT_FW2 region
# (0x520000-0x920000, 4 MB) -- unused when wolfBoot is the only firmware -- so
# they stay inside the 16 MB flash and do not overlap PARTBL/boot/PT_FW1/ISP/NN.
WOLFBOOT_PARTITION_SIZE?=0x180000
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x520000
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x6A0000
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x820000
# Flash/UART/cache backend: "sdk" (default, RealTek SDK drivers) or "bare"
# (smaller, no SDK dependency -- not yet implemented).
HAL_BACKEND?=sdk
# RealTek SDK + ASDK toolchain locations (override on the command line).
AMEBA_SDK?=$(HOME)/GitHub/ameba-rtos-pro2
ASDK_PATH?=$(HOME)/ameba-pro2-workspace/asdk/asdk-10.3.0/linux/newlib/bin