2022-12-11 07:50 AM
When i use update_prebuilt cmd to build bsp component report failed,my openStDroid tags is st-android-11.0.0-2021-08-31, Can anyone help me solve this problem?
error:
Build and update images for primary and secondary bootloaders (programmer images)
[1/8]: Generate U-Boot image for stm32mp157c-ev1 board, case programmer
ERROR: Not possible to generate the SBL image
ERROR: Increase verbose level to get more information
Build and update images for TEE OS
[1/4]: Generate OP-TEE OS images for stm32mp157c-ev1 board
ERROR: Not possible to generate the OP-TEE OS images
Build TAs
[1/80]: Generate TA keymaster (dba51a17-0563-11e7-93b1-6fa7b0071a51) for stm32mp157c-ev1 board
ERROR: Not possible to generate the TA dba51a17-0563-11e7-93b1-6fa7b0071a51
The prebuilt images have been updated
Solved! Go to Solution.
2022-12-12 08:46 AM
There is a missing python package in your environnement.
Can you cross-check your installation vs the Prerequisites wiki page ? https://wiki.st.com/stm32mpu-ecosystem-v2/wiki/PC_prerequisites#Installing_extra_packages_for_AndroidTM
2022-12-12 12:21 AM
Hi Tao
You can first increase verbosity modifying the update_prebuilt script available in the device/stm/stm32mp1/scripts/prebuilt
It's just a series of build commands.
add "--verbose 2" option to all failed build commands.
By default, the programmer update is not necessary (you can also bypass, commenting in the script the commands associated).
For the OP-TEE OS issue, you can also build it separately using directly the command:
build_tee --verbose 2
Regards
Nicolas
2022-12-12 07:44 AM
hi Nicolas
It looks like didn't work, no valid log output.
B&R
Tao
2022-12-12 08:19 AM
Sorry, I made a mistake: it's the option: --verbose=2 you have to use as it's mentioned in the script helper.
2022-12-12 08:38 AM
Hi Nicolas
Looks like crypto lob can't be found, how do I add this library?
Error:No module named 'Crypto'
B&R
Tao
2022-12-12 08:46 AM
There is a missing python package in your environnement.
Can you cross-check your installation vs the Prerequisites wiki page ? https://wiki.st.com/stm32mpu-ecosystem-v2/wiki/PC_prerequisites#Installing_extra_packages_for_AndroidTM
2022-12-12 09:08 AM
hi Nicolas
When i install this components as below it build success now(ubuntu20.4 python3.8.10),thanks for you help!
pip install pycryptodomex
sudo apt install python3-pyelftools
B&R
Tao