cvetaevvitaliy / stm32mp1-ubuntu

This repo for build Ubuntu 22.04, 20.04, 18.04, and Debian 10, 11 on stm32mp1 CPU
MIT License
49 stars 25 forks source link

STM32MP157A-DK1 manual build failed #9

Closed Albirew closed 1 year ago

Albirew commented 1 year ago

I've tried on a brand new LMDE installation, just in case. compilation fails when trying to cross-compile arm-trusted-firmware against STM32MP157A-DK1.

albirew@VDS-FUSR9:~/arm-trusted-firmware$ make CROSS_COMPILE=${CC} PLAT=stm32mp1 ARCH=aarch32 ARM_ARCH_MAJOR=7 STM32MP_SDMMC=1 STM32MP_EMMC=1 AARCH32_SP=sp_min DTB_FILE_NAME=stm32mp157a-dk1.dtb BL33_CFG=../u-boot/u-boot.dtb BL33=../u-boot/u-boot-nodtb.bin all fip
Including bl32/sp_min/sp_min.mk
  AS      stm32mp1.S
  LDS     /home/albirew/arm-trusted-firmware/build/stm32mp1/release/stm32mp1-stm32mp157a-dk1.o

Built /home/albirew/arm-trusted-firmware/build/stm32mp1/release/tf-a-stm32mp157a-dk1.bin successfully

Generate /home/albirew/arm-trusted-firmware/build/stm32mp1/release/tf-a-stm32mp157a-dk1.stm32
Image Type   : ST Microelectronics STM32 V1.0
Image Size   : 212945 bytes
Image Load   : 0x2ffc2500
Entry Point  : 0x2ffe9000
Checksum     : 0x005cdd59
Option     : 0x00000001
Version    : 0x00000000

Building stm32mp1

Building tools/fiptool/fiptool
  HOSTCC  fiptool.c
In file included from fiptool.h:16,
                 from fiptool.c:19:
fiptool_platform.h:19:11: fatal error: openssl/sha.h: No such file or directory
   19 | # include <openssl/sha.h>
      |           ^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:50: fiptool.o] Error 1
make: *** [Makefile:1272: tools/fiptool/fiptool] Error 2
rm /home/albirew/arm-trusted-firmware/build/stm32mp1/release/stm32mp1-stm32mp157a-dk1.o /home/albirew/arm-trusted-firmware/build/stm32mp1/release/tf-a-stm32mp157a-dk1.elf /home/albirew/arm-trusted-firmware/build/stm32mp1/release/tf-a-stm32mp157a-dk1.bin
albirew@VDS-FUSR9:~/arm-trusted-firmware$

github-actions ubuntu artifact is working fine but there's no debian artifact for 157A-DK1, hence my attempt at manual build.

cvetaevvitaliy commented 1 year ago

Hi! You are missing the openssl header files. Need to install libssl-dev dependency example: sudo apt install libssl-dev

Albirew commented 1 year ago

Ah, many thanks, i was indeed missing this one.