BRK uboot build

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #12939
      Ben R.Ben
      Participant

        Hello,
        I try unsuccessfully to build brk uboot from your repo.
        I’ve got this error

        Missing stm32mp157c-osd32mp1-brk-fw-config-optee.dtb

        Can you help me where is my mistake please.

        I use the following command:

        source  /opt/st/stm32mp1/3.1.0-openstlinux-5.10-yocto-kirkstone-mp1-v21.11.17/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
        
        git clone https://github.com/octavosystems/OSD32MP1-BRK-device-tree.git
        git clone https://github.com/octavosystems/BRK_Developer_Package_patches.git
        cp -a ../en.SOURCES-stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17_tar.xz .
        
        tar xf ./en.SOURCES-stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17_tar.xz
        
        export FIP_DEPLOYDIR_ROOT=<WORKING DIRECTORY>/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/FIP_artifacts
        
        #uboot
        cd stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/u-boot-stm32mp-v2020.10-stm32mp-r2-r0/
        tar -xf u-boot-stm32mp-v2020.10-stm32mp-r2-r0.tar.gz
        
        cd u-boot-stm32mp-v2020.10-stm32mp-r2/
        for p in ls -a ../*patch;do patch -p1 < $p; done
        
        #change in arch/arm/dtb/Makefile
        # dtb-$(CONFIG_STM32MP15x) += \
        # 	stm32mp157c-osd32mp1-brk.dtb \
        
        #get last uboot file from git
        cp -av <WORKING DIRECTORY>/OSD32MP1-BRK-device-tree/u-boot-v2020.10-r0/* arch/arm/dts
        
        make -f $PWD/../Makefile.sdk all UBOOT_CONFIG=trusted UBOOT_DEFCONFIG=stm32mp15_trusted_defconfig UBOOT_BINARY=u-boot.dtb FIP_BL32_CONF="tfa," DEVICETREE=stm32mp157c-osd32mp1-brk

         

        Thanks for taking the time to help.

         

      • #12960
        Neeraj Dantu
        Moderator

          Hey Ben,

          As a quick check, can you make sure you have proper double quotation marks around the FIP_BL32_CONF variable? There could be a problem with the way the quotation marks are encoded. Can you check by deleting the quotation marks and re-entering them when you execute the command on the terminal?

          Also, please make sure you have your FIP_DEPLOYDIR_ROOT assignment correctly as that is important. Please see https://octavosystems.com/app_notes/stm32mp1-cubemx-tutorial-for-osd32mp15x/ for more information on compiling using Developer Package.

          Finally, please note that we stopped maintaining the BRK developer Package patches as we have moved to supporting Distribution Package: https://github.com/octavosystems/meta-octavo-osd32mp1. So, the latest sources in the BRK patches repo will only work for OpenSTLInux v2.x.

          However, you can use the patches in meta-octavo and import them into the Developer Package. For example, uboot patches are available here: https://github.com/octavosystems/meta-octavo-osd32mp1/tree/dunfell/recipes-bsp/u-boot/files.

          Best,

          Neeraj

           

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.