Forums - TrustZone Build failing

1 post / 0 new
TrustZone Build failing
sharat.kulkarni
Join Date: 16 Mar 20
Posts: 1
Posted: Mon, 2021-01-11 05:26
  • Hi there ,

  • I am a newbie to this forum . I  have a blocker while Building the TrustZone-Image . Please let me know how to overcome this issue .

  •  

  • Issue description : We are trying to Build the TrustZone image by refering to the commands given in release notes . But unfortunately the build fails with "${LLVMBIN} not found using system environment." also below is the complete Logs of the same .  Similar issue was discussed here but no  replies found => https://developer.qualcomm.com/forum/qdn-forums/software/hexagon-dsp-sdk...

  • Steps to reproduce : Simply download the source code and follow the release note for detailed compilation steps . We had used below command to compile TZ image

  • => python build_all.py -b TZ.BF.4.0 CHIPSET=mdm9x07 devcfg sampleapp

  • What should have happened ?  : Should have compiled the  tz.mbn

  • Pre-requisites tools installed  :

      Hexagon Tools 8.2.05 , LLVM 3.9.3,  Python 2.7 , Perl v5.22.1  ,

  • Device information (model, manufacturer) : MDM9607 => META BUILD -> MDM9607.LE.2.1.3-00075-STD.PROD .

  • Host Machine : OS-> Ubuntu 16.04 LTS , Kernel 4.15.0-128-generic

 

LOGS :
------------------------------------------------------------------------------
   Loading APPS build system
------------------------------------------------------------------------------
!#!# Command line targets = ['devcfg', 'devcfg_gpio', 'sampleapp']
DEVCFG scorpion       BUILD_ID=XAPAANBAA, TOOL_ENV=linux
** INFO: Begin Target Config: XAPAANBAA
** INFO: Target configuration file: target.builds
** INFO: End Target Config: XAPAANBAA
!! WARNING: VMIDMT not implemented... using stubs.
!! WARNING: HYP target not implemented... using stubs.
!! WARNING: SMMU not implemented... using stubs.
!! WARNING: SMEM type uses default header.
** INFO: LLVMBIN   = /pkg/qct/software/llvm/release/arm/3.9.6/bin


RuntimeError: ${LLVMBIN} not found using system environment.:
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/build/ms/target.scons", line 58:
    env.Tool('ComSConstruct', toolpath = ['${BUILD_ROOT}/tools/build/scons/build'])
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/SCons/Environment.py", line 1692:
    tool(self)
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/SCons/Tool/__init__.py", line 180:
    self.generate(env, *args, **kw)
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/build/ComSConstruct.py", line 54:
    env.LoadImageUnits(env.get('IMAGE_ROOT_DIR_PATTERNS'))
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/SCons/Environment.py", line 222:
    return self.method(*nargs, **kwargs)
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/scripts/utils.py", line 1277:
    load_sub_scripts(env, dir_patterns, script_name_patterns, "image", clone_env=True)
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/scripts/utils.py", line 1531:
    node.load_scripts(script_list, script_type, clone_env=clone_env)
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/scripts/utils.py", line 1576:
    env.SConscript(script, exports='env')
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/core/bsp/devcfg/build/SConscript", line 303:
    SetupDevCfgBuild(devcfg_env, aliases, 'devcfg')
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/core/bsp/devcfg/build/SConscript", line 97:
    env.LoadToolScript('llvm', toolpath = ['${BUILD_SCRIPTS_ROOT}'])
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/SCons/Environment.py", line 222:
    return self.method(*nargs, **kwargs)
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/scripts/utils.py", line 1259:
    m.generate(env)
  File "/home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/scripts/llvm.py", line 195:
    raise RuntimeError, "${LLVMBIN} not found using system environment."

==============================================================================
   SCons build summary
==============================================================================
** Build time...
 Build start  : Mon Jan 11 18:42:35 2021
 Build end    : Mon Jan 11 18:42:36 2021
 Elapsed time : 0:00:01

Start Time = Mon Jan 11 18:42:35 IST 2021 - End Time = Mon Jan 11 18:42:36 IST 2021
Elapsed Time = 1 seconds
SCons Result: 2
ERROR:build_all:build command encountered errors: /home/sharat/MDM9607/mdm9607-le-2-1-3_amss_standard_oem-master-0bbd05fdc2ba107ffe99b2507fc126ee049b6837/trustzone_images/tools/build/scons/build/build.sh -f target.scons tzbsp_enable_sa=0 BUILD_ID=XAPAANBA HAL_PLATFORM=9x07 SOC_HW_VERSION= MSM_ID=9x07 BUILD_VER=40000000 SOC_VERS= BUILD_ASIC=9x07 TARGET_FAMILY=badger CHIPSET=mdm9x07 SOFTWARE_IMAGE=TZ.BF.4.0 devcfg devcfg_gpio sampleapp
ERROR:build_all:error 2 while building devcfg devcfg_gpio sampleapp
ERROR:build_all:Error encountered when building TZ.BF.4.0 for mdm9x07
INFO:build_all:Build encountered errors
INFO:build_all:Total elapsed time: 0 minutes, 3 seconds

 

Thanks & Regards

- Sharat K

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.