Hi @[email protected]<mailto:[email protected]> and 
@corebsp.boot.integration<mailto:[email protected]> team,

I downloaded the code for BOOT.MXF.2.0-01110-WAIPIO-1 CRM, and encountered the 
following error when using the compilation command below. Could you please help 
me figure out why?
It seems to be caused by a mismatch in the Python version I'm using. I'm using 
Python 3.10.12
Compiling command: python -u boot_images/boot_tools/buildex.py -t 
Waipio,Fillmore -v LAA -r DEBUG
Fd File Name:WAIPIO_EFI 
(/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/Build/WaipioLAA/Core/DEBUG_CLANG120LINUX/FV/WAIPIO_EFI.fd)

Generate Region at Offset 0x0
   Region Size = 0x2A0000
   Region Name = FV

Generating FVMAIN_COMPACT FV


build.py...
: error C0DE: Tools code failure
        Please send email to [email protected] for help, attaching following 
call stack trace!

Traceback (most recent call last):
  File 
"/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFds.py",
 line 371, in GenFdsApi
    GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList)
  File 
"/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFds.py",
 line 510, in GenFd
    FdObj.GenFd()
  File 
"/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2/BaseTools/Source/Python/GenFds/Fd.py",
 line 131, in GenFd
    RegionObj.AddToBuffer (FdBuffer, self.BaseAddress, self.BlockSizeList, 
self.ErasePolarity, GenFdsGlobalVariable.ImageBinDict, self.DefineVarDict, 
Flag=Flag)
  File 
"/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2/BaseTools/Source/Python/GenFds/Region.py",
 line 134, in AddToBuffer
    FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum, 
ErasePolarity, Flag=Flag)
  File 
"/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2/BaseTools/Source/Python/GenFds/Fv.py",
 line 127, in AddToBuffer
    FileName = FfsFile.GenFfs(MacroDict, FvParentAddr=BaseAddress, 
IsMakefile=Flag, FvName=self.UiFvName)
  File 
"/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py",
 line 518, in GenFfs
    InputSectList, InputSectAlignments = self.__GenComplexFileSection__(Rule, 
FvChildAddr, FvParentAddr, IsMakefile=IsMakefile)
  File 
"/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py",
 line 969, in __GenComplexFileSection__
    SectList, Align = Sect.GenSection(self.OutputPath, self.ModuleGuid, 
SecIndex, self.KeyStringList, self, IsMakefile = IsMakefile)
  File 
"/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2/BaseTools/Source/Python/GenFds/EfiSection.py",
 line 263, in GenSection
    ImageObj = PeImageClass (File)
  File 
"/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2/BaseTools/Source/Python/Common/Misc.py",
 line 1638, in __init__
    if ByteArray.tostring() != b'PE\0\0':
AttributeError: 'array.array' object has no attribute 'tostring'

build.py...
: error 7000: Failed to execute command

- Failed -
Build end time: 18:11:49, Mar.27 2026
Build total time: 00:00:31

ERROR: buildex::Run  ['python', 
'/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2/BaseTools/Source/Python/build/build.py',
 '-p', 'QcomPkg/SocPkg/Waipio/LAA/Core.dsc', '-j', 
'QcomPkg/SocPkg/Waipio/LAA/build_Core.log', '-w', '-a', 'AARCH64', '-b', 
'DEBUG', '-t', 'CLANG120LINUX', '-D', 
'BUILDROOT=/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images',
 '-D', 
'BOOTROOT=/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/boot',
 '-D', 'REL=DEBUG', '-D', 'PRODMODE=DEBUGMODE', '-D', 'VAR=LAA', '-D', 
'COMPLIER=', '-D', 'FIRSTDLL=', '-D', 'SECONDDLL=', '-D', 'XBLSEC=', '-D', 
'TARGETROOT=QcomPkg/SocPkg/Waipio', '-D', 'TARGETID=SocWaipio', '-D', 
'TARGETPKG=SocPkg', '-D', 'QCOMDIR=', '-D', 
'BOOTTOOLS=/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/boot_tools',
 '-D', 
'EDK2ROOT=/local/mnt/workspace/chhuan/TZ_workspace/Clarence/Boot_workspace/BOOT.MXF.2.0-01110-WAIPIO-1/boot_images/edk2',
 '-D', 'CLANG120=/pkg/qct/software/llvm/release/arm/12.0.3/bin', '-D', 
'SECTOOLS_DIR=/pkg/sectools/v2/latest/Linux', '-D', 
'DTC=/pkg/qct/software/boottools/', '-D', 
'SECTOOLSROOT=/pkg/sectools/v2/latest/Linux', '-D', 'COMPILER=CLANG120LINUX', 
'-D', 'AARCH=AARCH64'] Build Subprocess failed with error...
None

Thanks,
Feng



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121851): https://edk2.groups.io/g/devel/message/121851
Mute This Topic: https://groups.io/mt/118536630/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to