2023-04-24 09:13 AM
Hey,
I was able to successfully flash the Starter Package following this article and after building the OpenSTLinux distribution following this, I'm having trouble with flashing it. After completeing the build process, inside the flashlayout_st-image-weston, there are 3 folders optee, extensible and deleteall. I was looking for trusted folder like in starter package but it is not available. Then I tried to follow article found here with cube programmer interface and through terminal with FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv but i'm getting following error.
Error: failed to download Segment[0]
Error: failed to download the File
Error: Download partition 0x05 failed
Error: TSV flashing service failed
After that I tried to flash with FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv in Starter Package but it also showed the same issue. I have attached the cube programmer terminal output. Apreciate if anyone can help me with this.
Thanks.
Solved! Go to Solution.
2023-04-28 11:37 PM
Hi @PatrickF ,
Thanks for your reply.
I was able to enable truested boot by uncommenting
BOOTSCHEME_LABELS += "trusted"
in stm32mp15-disco.conf file. To flash the firmware, there was this mentioning to use 157c-dk2 tsv files instead of 157f-dk2. With that, I was able flash the board. Issue was mentioned as when running at 800MHz. Is there any other solution for this ? What is the real reason behind this ?
I have attached the board console log below.
Thanks.
2023-04-28 07:18 AM
Hi @ISach.1
could you please provide board console log ?
Regards.
2023-04-28 11:37 PM
Hi @PatrickF ,
Thanks for your reply.
I was able to enable truested boot by uncommenting
BOOTSCHEME_LABELS += "trusted"
in stm32mp15-disco.conf file. To flash the firmware, there was this mentioning to use 157c-dk2 tsv files instead of 157f-dk2. With that, I was able flash the board. Issue was mentioned as when running at 800MHz. Is there any other solution for this ? What is the real reason behind this ?
I have attached the board console log below.
Thanks.
2023-04-28 11:43 PM
2023-05-02 05:52 AM
Good to see you overcome the issue.
In fact trusted boot (TF-A SP-MIN) is not recommended anymore (that's explain why it is commented) and future OpenSTLinux packages will support only OP-TEE.
Regards.
2023-05-02 05:54 AM
Regarding the boot using 157c-dk2 (two first lines), this is only a workaround needed on certain boards, not a global rule.
At first intent, you should use 'normal' 157f-dk2 on your 157F-DK2 board.
Regards.