Skip to main content
JKell.6
Associate III
Jan 9, 2023 21:17 UTC
Solved

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

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.
JeanPhilippeR
JeanPhilippeRBest answer
ST Employee
Jan 12, 2023 17:05 UTC

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

9 replies

JeanPhilippeR
ST Employee
Jan 10, 2023 10:07 UTC

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.6
JKell.6Author
Associate III
Jan 10, 2023 14:58 UTC

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

JeanPhilippeR
JeanPhilippeRBest answer
ST Employee
Jan 12, 2023 17:05 UTC

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.6
JKell.6Author
Associate III
Jan 12, 2023 17:55 UTC

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

JeanPhilippeR
ST Employee
Jan 13, 2023 08:12 UTC

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