The SCP firmware that is programmed on the board doesn’t load OP-tee. As I understand the SCP firmware is built and written into NOR Flash separately from arm-tf. Does anyone know how to build and load the OP-tee enabled SCP-firmware ?
1 Like
Update SCP-firmware
- get the SCP-firmware prebuild binary.
- flash SCP-firmware into NOR Flash
- Need to access LS Connector UART0.
- Set DSW2-7 to ON, then power on the Developerbox. Developerbox boots in
maintenance mode. - In the console , enter
flash write cm3
and send
scp_romramfw_debug.bin via XMODEM.
Update trusted firmware-a
You need SCMI enabled trusted firmware-a.
- clone the code
-
build
$ make -j `nproc` PLAT=synquacer PRELOADED_BL33_BASE=0x08200000 \ DEBUG=1 SQ_USE_SCMI_DRIVER=1 all fiptool $ ./tools/fiptool/fiptool create --tb-fw \ ./build/synquacer/debug/bl31.bin --soc-fw \ ./build/synquacer/debug/bl31.bin --scp-fw \ ./build/synquacer/debug/bl31.bin \ ./optee.bin --tos-fw fip_all_arm_tf.bin
- please make sure to place tos-fw at 4th position.
-
flash trusted firmware binary into NOR Flash
- Set DSW2-7 to ON, then power on Developerbox.
- In the console , enter
flash write arm-tf
and send
fip_all_arm_tf.bin via XMODEM.
Run OP-tee on Developerbox
- Set DSW2-7 to OFF.
- Set DSW3-3 to ON, it enables secure DRAM and scp-firmware loads the tos-fw into the secure DRAM.
-
arm trusted firmware source code can be cloned from trusted-firmware-a.git - Trusted Firmware for A profile Arm CPUs
-
SCP-firmware can be cloned from httpsgithub.com/ARM-software/SCP-firmware.git
I was able to build both arm trusted firmware and SCP firmware successfully.