Skip to main content
Visitor II
December 11, 2022
Solved

Android: update_prebuilt fail (OP-TEE OS images)

  • December 11, 2022
  • 3 replies
  • 2290 views

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

    This topic has been closed for replies.
    Best answer by Nicolas L

    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

    3 replies

    ST Employee
    December 12, 2022

    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

    ttao.1Author
    Visitor II
    December 12, 2022

    hi Nicolas

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

    0693W00000WKo59QAD.pngB&R

    Tao

    ST Employee
    December 12, 2022

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

    ttao.1Author
    Visitor II
    December 12, 2022

    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 LAnswer
    ST Employee
    December 12, 2022

    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

    ttao.1Author
    Visitor II
    December 12, 2022

    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