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
622 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
604 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
618 Views
Jeyaseelan_Kirubaharan
Contributor II

Please find attached the complete log.

0 Kudos
Reply
605 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
598 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
595 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