I was finally able to build tos.img file successfully using the command:
./nv_public_src_build_tos.sh -p t234 -u /home/trident/Downloads/r36_3_0/UEFI_Docker_Build/uefiWorkspace/images/uefi_StandaloneMmOptee_RELEASE.bin -s /home/trident/Downloads/r36_3_0/Linux_for_Tegra/nv_tegra/tos-scripts/gen_tos_part_img.py
But I have few doubts to be clarified, @KevinFFF pls clarify them.
-
The UEFI sources which i downloaded through docker method, already had the patch applied, but I see step for applying patch in your procedure. why?
-
In the below link:
OP-TEE setup questions for the atf_and_optee_README.txt - #5 by JerryChang
I see some additional steps which is missing in your procedure:
$ export CROSS_COMPILE=/home/jerry/L4T/l4t-gcc/aarch64–glibc–stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-
$ export NV_TARGET_BOARD=t234
$ sudo apt remove python3-cryptography
$ pip3 install cryptography
$ ./nv_public_src_build_tos.sh -p t234 -u $OUT/JP-6/Linux_for_Tegra/bootloader/standalonemm_optee_t234.bin -s $OUT/JP-6/Linux_for_Tegra/nv_tegra/tos-scripts/gen_tos_part_img.py
- In your procedure the UEFI_STMM_PATH is different, in this link it is different. pls clarify.
$ export UEFI_STMM_PATH=$OUT/JP_6/Linux_for_Tegra/bootloader/standalonemm_optee_t234.bin
- We are getting the unit back for reflashing, I will flash this tos.img and see, if it resolves the ASSERtion 3 problem.
Thanks.