As stated in the Morello Bare Metal debug example, the necessary changes were made in the scp firmware code's specified file to start the rainier cores from 0x14000000
Now to Build the SCP firmware for PRODUCT=morello,
1. compiling using CC=arm-none-eabi-gcc, builds the firmware but for the resulting FVP invoked as per bare metal documentation states:
arm-none-eabi-gcc, builds the firmware but for the resulting FVP invoked as per bare metal documentation states:
> SCP Firmware -> Module Initialization Complete
> Invalid FIP ToC header nme: [0x20040000]
> Failed to locat SCP_BL2, error -1
And running the program gives error, no function named main could be found.
The guide states "For all products other than host, the code needs to be compiled by a cross-compiler"
host
2. Setting CC=clang-11 and SYSROOT to the bin directory of the morello llvm baremetal toolchain release 1.1 fails. Clang-11 command not found.
also make SYSROOT=/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/aarch64-none-elf CC=clang-11 PRODUCT=morello does not work (after installing the gcc-arm aarch)
make SYSROOT=/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/aarch64-none-elf CC=clang-11 PRODUCT=morello does not work (after installing the gcc-arm aarch)
What is the right compiler to use for Morello FVP to build scp firmware
Hello Raj,
Are you trying to rebuild the SCP firmware to run the Morello bare-metal examples? The instructions for building and running those examples have changed significantly since the initial Arm DS Morello release.
Since around late March or so, the SCP firmware no longer needs to be modified and rebuilt to run the examples. You can now use the standard integrated stack build, and the SCP bare-metal use case is now supported through the model launch script only.
With that being said, you don't need to rebuild the standard SCP firmware if you already have it, but you can if you explicitly want to. To build the standard SCP firmware, you can follow the instructions provided here, in "doc/cmake_readme.md:" https://github.com/ARM-software/SCP-firmware
You can also build the required "scp_fm.bin" and "mcp_fw.bin" from instructions listed here:
https://git.morello-project.org/morello/docs/-/blob/morello/mainline/user-guide.rst
The files should be generated after following the steps at "Board Support Package Stack with Poky distribution".
Lastly, the updated instructions to run the bare-metal example (which will be included in the next official release of the Arm DS Morello Edition in the future):
-----------------------------------------------------------------------------------------------------------------------------