BootMCU is designated to load and verify the first mutable code for whole SoC and that of the main processos. The image verification is achieved in the collaboration with the RoT Caliptra. It is also responsible for device recovery by the boot-from-USB/UART capabilities.
This repo contains the baremetal code to build BootMCU code in terms of the project selected.
- Download lowrisc toolchain (v2022 for example)
wget https://github.com/lowRISC/lowrisc-toolchains/releases/download/20220524-1/lowrisc-toolchain-gcc-rv32imcb-20220524-1.tar.xz
- Extract lowrisc toolchain
tar xvf lowrisc-toolchain-gcc-rv32imcb-20220524-1.tar.xz
- Export cross compiler prefix
export CROSS_COMPILE=<TOOLCHAIN_FOLDER>/bin/riscv32-unknown-elf-
- Build AST2700 ROM project
cd <BOOTMCU_FOLDER>
make ast2700-rom_defconfig
make