2023-08-26 08:50 PM - edited 2023-08-29 04:04 AM
When using the latest git to build TF-A . Have been following the README_HOW_TO form git. All the steps are given blow.
1. The git does not contain the build file .sdk , it is only provided in the ECO package. it is not clearly stated to get the file form the ECO package and put above the source folder for the git build. Why is it not there and why put it above the source location ? This apples both to optee and TF-A
2. make -f $PWD/../Makefile.sdk all
Message show: Missing u-boot-stm32mp157c-ed1.dtb file in folder: '$FIP_DEPLOYDIR_UBOOT' or '$FIP_DEPLOYDIR_ROOT/u-boot'
3. make -f $PWD/../Makefile.sdk TF_A_DEVICETREE=stm32mp157c-dk2 TF_A_CONFIG=trusted ELF_DEBUG_ENABLE='1' all
Message shown: No boot device driver is enabled
4 the FIP_DEPLOYDIR_UBOOT has no output files, why is it mentioned in the script ? (item 2)
5. the DEPLOYDIR has .stm32 fwconfig and debug files. Is this all that is needed ? The documentation does not state what the output files should be.
6. the FIP_DEPLOYDIR_ROOT has no output files. The github readme states: The generated FIP images are available in <FIP_DEPLOYDIR_ROOT>/fip But there are no files.
Following is the execute sequence: Could you please run the step this on your machine to verify and advise how to resolve the issues ?
$ mkdir tf-a
$ cd trf-a
$ git clone https://github.com/STMicroelectronics/arm-trusted-firmware.git
$ cd arm-trusted-firmware
$ git checkout -b WORKING v2.8-stm32mp-r1
# Get the Makefile.sdk and patch file from the STM ECO 5.0.0. TF-A package
# These file in NOT provided in the Git repo . Copy them into tf-a folder
# Error occur because of patches do not apply (probably the git was already patched), so don't apply
# $ for p in `ls -1 ../*.patch`; do git am $p; done
$ export FIP_DEPLOYDIR_UBOOT=$PWD/../FIP_deploy_uboot
$ mkdir $FIP_DEPLOYDIR_UBOOT
$ export DEPLOYDIR=$PWD/../FIP_deploy_dir
$ mkdir $DEPLOYDIR
$ export FIP_DEPLOYDIR_ROOT=$PWD/../FIP_artifacts
$ mkdir $FIP_DEPLOYDIR_ROOT
$make -f $PWD/../Makefile.sdk all
$ make -f $PWD/../Makefile.sdk TF_A_DEVICETREE=stm32mp157c-dk2 TF_A_CONFIG=trusted
When using make -f $PWD/../Makefile.sdk DEPLOYDIR=$FIP_DEPLOYDIR_ROOT/arm-trusted-firmware all the build and FIP folder and files are generatred but there default .bin files are not generated needed for the SD/EMMC flash.
Solved! Go to Solution.
2023-08-30 07:40 AM
The TF-A needes the u-boot and optee files. So need to copy the FIP_artifact folder with the u-boot and optee files from the ECO 5.0.0. distribution linux "source" to the FIP_artifact folder. if there is a not found message it means the files were not found.
2023-08-30 07:40 AM
The TF-A needes the u-boot and optee files. So need to copy the FIP_artifact folder with the u-boot and optee files from the ECO 5.0.0. distribution linux "source" to the FIP_artifact folder. if there is a not found message it means the files were not found.