Skip to main content
Visitor II
January 9, 2023
Solved

U-Boot Developer Build Not Finding libcrypto.so.1.1

  • January 9, 2023
  • 2 replies
  • 2736 views

Building per the Developer Package Device Tree Building Wiki

Using STM32MP1-Ecosystem_v4.0.0

Verified libssl-dev and libncurses have been installed

openssl version 3.0.0 is present

confirmed libcrypto.so is present at usr/lib/x86_64_linux-gnu

[fiptool] Create fip-stm32mp153a-xpro-mp1-mx-optee.bin fip binary into 'FIP_DEPLOYDIR_FIP' folder...
fiptool: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
[fiptool] Done

    This topic has been closed for replies.
    Best answer by JeanPhilippeR

    Hi Jim,

    When checking the build commands you are using, you are following the chapter §5.2 in README.HOW_TO.txt, and I recommend you to not launch "make stm32mp15_defconfig" first, only the second make command with all the given parameters.

    So you can try

    • "make mrproper" first to get clean environment
    • make -f $PWD/../Makefile.sdk UBOOT_CONFIG=trusted UBOOT_DEFCONFIG=stm32mp15_defconfig UBOOT_BINARY=u-boot.dtb FIP_CONFIG="optee" DEVICETREE=$DTS_NAME all

    One more point, in order to take into account your dt file generated from CubeMx, you will have to update arch/arm/dts/Makefile, in order to add it on the CONFIG_STM32MP15x. Do not know if already taken into account on your side?

    Thank you

    Jean-Philippe

    2 replies

    ST Employee
    January 10, 2023

    Dear @Community member​ 

    This issue must be corrected with new STM32MP1-Ecosystem_v4.1.0.

    However, you can probably cherry-pick some commits on https://github.com/STMicroelectronics/meta-st-stm32mp:

    Thank you

    BR

    Jean-Philippe

    JKell.6Author
    Visitor II
    January 10, 2023

    Thanks Jean-Phillipe, I'll give that a go and see what happens.

    ST Employee
    January 12, 2023

    Hi Jim,

    When checking the build commands you are using, you are following the chapter §5.2 in README.HOW_TO.txt, and I recommend you to not launch "make stm32mp15_defconfig" first, only the second make command with all the given parameters.

    So you can try

    • "make mrproper" first to get clean environment
    • make -f $PWD/../Makefile.sdk UBOOT_CONFIG=trusted UBOOT_DEFCONFIG=stm32mp15_defconfig UBOOT_BINARY=u-boot.dtb FIP_CONFIG="optee" DEVICETREE=$DTS_NAME all

    One more point, in order to take into account your dt file generated from CubeMx, you will have to update arch/arm/dts/Makefile, in order to add it on the CONFIG_STM32MP15x. Do not know if already taken into account on your side?

    Thank you

    Jean-Philippe

    JKell.6Author
    Visitor II
    January 12, 2023

    Hi Jean-Philippe,

    Yes! Very good. Seems that I'm now building a complete set of binaries. The solution is in two parts though one of which doesn't seem documented that I could find, therefore I hadn't done it.

    1. Removing the "make stm32mp15_defconfig" is important and adding "make mrproper" is good. Doing this removed some errors I was still getting after doing point 2 in this list yesterday.
    2. Updating the Makefile file in <u-boot source folder>/arch/arm/dts" is required and doesn't seem to be documented very well. It was brought to my attention yesterday by another. For anyone else having this issue - Search in the Makefile mentioned above for dtb-$(CONFIG_STM32MP15x). You have to add your custom DTB filename to the list.

    After that all was good.

    Thanks,

    Jim

    ST Employee
    January 13, 2023

    Hi Jim,

    Good to hear this is ok now on your side!

    Thank you for your feedback.

    I will check how to improve guidelines in the README.HOW_TO.txt.

    Thank you

    BR

    Jean-Philippe