arm-trusted-firmware not build successfully

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

arm-trusted-firmware not build successfully

Jump to solution
813 Views
Jeyaseelan_Kirubaharan
Contributor II

Hi All,

I am trying to build the arm-trusted-firmware for S32G. But the build is not successful

git clone https://github.com/nxp-auto-linux/arm-trusted-firmware.git
cd arm-trusted-firmware && git checkout release/bsp37.0-2.5 

make CROSS_COMPILE=aarch64-none-linux-gnu- ARCH=aarch64 PLAT=s32g3xxaevb3 \
BL33=../u-boot/u-boot-nodtb.bin S32_HAS_HV=1 S32_USE_LINFLEX_IN_BL31=1 LOG_LEVEL=40

Getting the below error

user:~/Audi_ADAS/arm-trusted-firmware$ make CROSS_COMPILE=../compiler/arm-gnu-toolchain-14.3.rel1-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=aarch64 PLAT=s32g3xxaevb3 BL33=../u-boot/u-boot-nodtb.bin S32_HAS_HV=1 S32_USE_LINFLEX_IN_BL31=1 LOG_LEVEL=40
HOSTCC fiptool.c
HOSTCC tbbr_config.c
HOSTLD fiptool

Built fiptool successfully

FIP /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/dummy_fip
MKIMAGE /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/dummy_fip.s32
MKIMAGE /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/ivt_location
MKIMAGE /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/fip_offset
CREATE /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/fip_mmc_offset_flag
CREATE /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/fip_qspi_offset_flag
CREATE /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/fip_mem_offset_flag
CREATE /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/fip_hdr_size
CREATE /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/dtb_size
CREATE /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/boot_info.c
CC /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/boot_info.c
CC /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/boot_info.c
LD /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/bl31SRAM/bl31SRAM.elf
../compiler/arm-gnu-toolchain-14.3.rel1-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-ld: warning: /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/bl31SRAM/bl31SRAM.elf has a LOAD segment with RWX permissions
make: *** [plat/nxp/s32/s32g/bl31_sram/bl31_sram.mk:28: /home/user/Audi_ADAS/arm-trusted-firmware/build/s32g3xxaevb3/release/bl31SRAM/bl31SRAM.elf] Error 1

It will be useful if someone provide the suggestion to get over this error.

With regards,

Jeyaseelan

 

Tags (1)
0 Kudos
Reply
1 Solution
795 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Jeyaseelan_Kirubaharan,

Thanks for reaching out to us and thanks for the detailed description of your problem. Checking your logs I see you are using  arm-gnu-toolchain-14.3.rel1-x86_64-aarch64-none-linux-gnu while the BSP37 user manual indicates to use arm-gnu-toolchain-11.3.rel1-x86_64-aarch64-none-linux-gnu, I verified myself and I was able to compile ATF + u-boot without problems.

Can you try using the recommended ARM GCC version and let me know if the behavior is different?

 

Thanks in advance

View solution in original post

0 Kudos
Reply
4 Replies
809 Views
Jeyaseelan_Kirubaharan
Contributor II

Please find attached the complete log.

0 Kudos
Reply
796 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Jeyaseelan_Kirubaharan,

Thanks for reaching out to us and thanks for the detailed description of your problem. Checking your logs I see you are using  arm-gnu-toolchain-14.3.rel1-x86_64-aarch64-none-linux-gnu while the BSP37 user manual indicates to use arm-gnu-toolchain-11.3.rel1-x86_64-aarch64-none-linux-gnu, I verified myself and I was able to compile ATF + u-boot without problems.

Can you try using the recommended ARM GCC version and let me know if the behavior is different?

 

Thanks in advance

0 Kudos
Reply
789 Views
Jeyaseelan_Kirubaharan
Contributor II

Hi Alejandro,

As mentioned from you , after changing the compiler version we can able to build the ATF successfully.

Thanks for the support..

With regards,

Jeyaseelan

 

Tags (1)
0 Kudos
Reply
786 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Jeyaseelan_Kirubaharan,

I'm glad to know you were able to solve your problem! If possible please select my previous answer as an accepted solution.

 

Thanks in advance 

%3CLINGO-SUB%20id%3D%22lingo-sub-2143610%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Earm-trusted-firmware%20not%20build%20successfully%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143610%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20build%20the%20arm-trusted-firmware%20for%20S32G.%20But%20the%20build%20is%20not%20successful%3C%2FP%3E%3CP%3Egit%20clone%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-auto-linux%2Farm-trusted-firmware.git%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-auto-linux%2Farm-trusted-firmware.git%3C%2FA%3E%3CBR%20%2F%3Ecd%20arm-trusted-firmware%20%26amp%3B%26amp%3B%20git%20checkout%20release%2F%3CSTRONG%3Ebsp37.0-2.5%3C%2FSTRONG%3E%26nbsp%3B%3C%2FP%3E%3CP%3Emake%20CROSS_COMPILE%3Daarch64-none-linux-gnu-%20ARCH%3Daarch64%20PLAT%3Ds32g3xxaevb3%20%5C%3CBR%20%2F%3EBL33%3D..%2Fu-boot%2Fu-boot-nodtb.bin%20S32_HAS_HV%3D1%20S32_USE_LINFLEX_IN_BL31%3D1%20LOG_LEVEL%3D40%3C%2FP%3E%3CP%3EGetting%20the%20below%20error%3C%2FP%3E%3CP%3Euser%3A~%2FAudi_ADAS%2Farm-trusted-firmware%24%20make%20CROSS_COMPILE%3D..%2Fcompiler%2Farm-gnu-toolchain-14.3.rel1-x86_64-aarch64-none-linux-gnu%2Fbin%2Faarch64-none-linux-gnu-%20ARCH%3Daarch64%20PLAT%3Ds32g3xxaevb3%20BL33%3D..%2Fu-boot%2Fu-boot-nodtb.bin%20S32_HAS_HV%3D1%20S32_USE_LINFLEX_IN_BL31%3D1%20LOG_LEVEL%3D40%3CBR%20%2F%3EHOSTCC%20fiptool.c%3CBR%20%2F%3EHOSTCC%20tbbr_config.c%3CBR%20%2F%3EHOSTLD%20fiptool%3C%2FP%3E%3CP%3EBuilt%20fiptool%20successfully%3C%2FP%3E%3CP%3EFIP%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Fdummy_fip%3CBR%20%2F%3EMKIMAGE%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Fdummy_fip.s32%3CBR%20%2F%3EMKIMAGE%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Fivt_location%3CBR%20%2F%3EMKIMAGE%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Ffip_offset%3CBR%20%2F%3ECREATE%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Ffip_mmc_offset_flag%3CBR%20%2F%3ECREATE%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Ffip_qspi_offset_flag%3CBR%20%2F%3ECREATE%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Ffip_mem_offset_flag%3CBR%20%2F%3ECREATE%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Ffip_hdr_size%3CBR%20%2F%3ECREATE%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Fdtb_size%3CBR%20%2F%3ECREATE%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Fboot_info.c%3CBR%20%2F%3ECC%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Fboot_info.c%3CBR%20%2F%3ECC%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Fboot_info.c%3CBR%20%2F%3ELD%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Fbl31SRAM%2Fbl31SRAM.elf%3CBR%20%2F%3E..%2Fcompiler%2Farm-gnu-toolchain-14.3.rel1-x86_64-aarch64-none-linux-gnu%2Fbin%2Faarch64-none-linux-gnu-ld%3A%20warning%3A%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Fbl31SRAM%2Fbl31SRAM.elf%20has%20a%20LOAD%20segment%20with%20RWX%20permissions%3CBR%20%2F%3Emake%3A%20***%20%5Bplat%2Fnxp%2Fs32%2Fs32g%2Fbl31_sram%2Fbl31_sram.mk%3A28%3A%20%2Fhome%2Fuser%2FAudi_ADAS%2Farm-trusted-firmware%2Fbuild%2Fs32g3xxaevb3%2Frelease%2Fbl31SRAM%2Fbl31SRAM.elf%5D%20Error%201%3C%2FP%3E%3CP%3EIt%20will%20be%20useful%20if%20someone%20provide%20the%20suggestion%20to%20get%20over%20this%20error.%3C%2FP%3E%3CP%3EWith%20regards%2C%3C%2FP%3E%3CP%3EJeyaseelan%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20arm-trusted-firmware%20not%20build%20successfully%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144654%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F202483%22%20target%3D%22_blank%22%3E%40Jeyaseelan_Kirubaharan%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EI'm%20glad%20to%20know%20you%20were%20able%20to%20solve%20your%20problem!%20If%20possible%20please%20select%20my%20previous%20answer%20as%20an%20accepted%20solution.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThanks%20in%20advance%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144538%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20arm-trusted-firmware%20not%20build%20successfully%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144538%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Alejandro%2C%3C%2FP%3E%3CP%3EAs%20mentioned%20from%20you%20%2C%20after%20changing%20the%20compiler%20version%20we%20can%20able%20to%20build%20the%20ATF%20successfully.%3C%2FP%3E%3CP%3EThanks%20for%20the%20support..%3C%2FP%3E%3CP%3EWith%20regards%2C%3C%2FP%3E%3CP%3EJeyaseelan%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2143905%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20arm-trusted-firmware%20not%20build%20successfully%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143905%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F202483%22%20target%3D%22_blank%22%3E%40Jeyaseelan_Kirubaharan%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20reaching%20out%20to%20us%20and%20thanks%20for%20the%20detailed%20description%20of%20your%20problem.%20Checking%20your%20logs%20I%20see%20you%20are%20using%26nbsp%3B%26nbsp%3B%3CEM%3Earm-gnu-toolchain-%3CSTRONG%3E14.3.rel1%3C%2FSTRONG%3E-x86_64-aarch64-none-linux-gnu%26nbsp%3B%3C%2FEM%3Ewhile%20the%20BSP37%20user%20manual%20indicates%20to%20use%26nbsp%3B%3CEM%3Earm-gnu-toolchain-%3CSTRONG%3E11.3.rel1%3C%2FSTRONG%3E-x86_64-aarch64-none-linux-gnu%3C%2FEM%3E%2C%26nbsp%3BI%20verified%20myself%20and%20I%20was%20able%20to%20compile%20ATF%20%2B%20u-boot%20without%20problems.%3C%2FP%3E%0A%3CP%3ECan%20you%20try%20using%20the%20recommended%20ARM%20GCC%20version%20and%20let%20me%20know%20if%20the%20behavior%20is%20different%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThanks%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2143620%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20arm-trusted-firmware%20not%20build%20successfully%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143620%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPlease%20find%20attached%20the%20complete%20log.%3C%2FP%3E%3C%2FLINGO-BODY%3E