cancel
Showing results for 
Search instead for 
Did you mean: 

Android: update_prebuilt fail (OP-TEE OS images)

ttao.1
Associate II

0693W00000WKiq4QAD.pngWhen 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

1 ACCEPTED SOLUTION

Accepted Solutions
Nicolas L
ST Employee

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

View solution in original post

6 REPLIES 6
Nicolas L
ST Employee

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

hi Nicolas

​It looks like didn't work, no valid log output.

0693W00000WKo59QAD.pngB&R

Tao

Nicolas L
ST Employee

Sorry, I made a mistake: it's the option: --verbose=2 you have to use as it's mentioned in the script helper.

Hi Nicolas

Looks like crypto lob can't be found, how do I add this library?

Error:No module named 'Crypto'

B&R

Tao

0693W00000WKoRyQAL.png

Nicolas L
ST Employee

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

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