Skip to main content
Graduate II
September 28, 2019
Solved

Can't build u-boot. No u-boot output files after build without errors.

  • September 28, 2019
  • 2 replies
  • 2803 views

Followed this

https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package#Starting_up_the_SDK

and this

https://wiki.st.com/stm32mpu/nsfr_img_auth.php/5/57/U-Boot.README.HOW_TO.txt

at:

make stm32mp15_trusted_defconfig

make DEVICE_TREE=stm32mp157c-dk2 all

build goes fine but no .stm32 files in ../build-trusted

it shows:

-rw-r--r-- 1 user user 932 Sep 28 21:38 Makefile

drwxr-xr-x 4 user user 4096 Sep 28 21:35 scripts

lrwxrwxrwx 1 user user 184 Sep 28 21:38 source -> <path>/u-boot-stm32mp-2018.11-r0/build-trusted

Same for

make stm32mp15_basic_defconfig

make DEVICE_TREE=stm32mp157c-dk2 all

nor does this result in any files

make -f $PWD/../Makefile.sdk all

gives an rror:

cp: cannot stat <path>/Developer-Package/stm32mp1-openstlinux-4.19-thud-mp1-19-02-20/sources/arm-openstlinux_weston-linux-gnueabi/u-boot-stm32mp-2018.11-r0/build-basic/../build-trusted/u-boot.stm32': No such file or directory

cp: cannot stat '<path>/Developer-Package/stm32mp1-openstlinux-4.19-thud-mp1-19-02-20/sources/arm-openstlinux_weston-linux-gnueabi/u-boot-stm32mp-2018.11-r0/build-basic/../build-trusted/u-boot': No such file or directory

Ubuntu 19.04

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

     Gave up on using the makefile.sdk and just use make without it

    it would be nice to have a WIKI for custom board bring up as there are so many manual changes in DT and .mk files involved. Not much hope anyone who can push such forward will read this message anyhow.. :face_with_tears_of_joy:

     

    2 replies

    debuggingAuthor
    Graduate II
    September 29, 2019

    To answer my own question after hours of digging:

    1. the txt file instructions missed the step:

    export KBUILD_OUTPUT=../build/basic

    2.The doc step to move into the source filder is incorrect and should be

    cd stm32mp1-openstlinux-4.19-thud-mp1-19-02-20/sources/arm-openstlinux_weston-linux-gnueabi/u-boot-stm32mp-2018.11-r

    3.The instruction guide to https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Developer_Package#Modifying_the_U-Boot to modify the kernel , but the step

    make -f $PWD/../Makefile.sdk all UBOOT_CONFIGS=stm32mp15_trusted_defconfig,trusted,u-boot.stm32

    Won't work 9probably because the environment is different) so need to go back to the .txt file and follow those steps

    It would be advisable if ST would try to follow the instructions once themselves to see if all is correct or not and update the documentation.There are many links connected abouyt the STM32MP1 but they seem not work well together.

    debuggingAuthorAnswer
    Graduate II
    September 16, 2023

     Gave up on using the makefile.sdk and just use make without it

    it would be nice to have a WIKI for custom board bring up as there are so many manual changes in DT and .mk files involved. Not much hope anyone who can push such forward will read this message anyhow.. :face_with_tears_of_joy: