Kernal build is failed for android bsp 12 showing FAILED: load BTF from vmlinux: Invalid argument

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

Kernal build is failed for android bsp 12 showing FAILED: load BTF from vmlinux: Invalid argument

Jump to solution
1,512 Views
althafahammed
Contributor III

I have tried to build the bsp of android 12 for imx-8mn evk board with lunch 61 but i got following error

TEE_LOAD_ADDR=0x56000000 ATF_LOAD_ADDR=0x00960000 VERSION=v2 ./print_fit_hab.sh 0x60000 evk.dtb
0x40200000 0x5B000 0xEFEA8
0x402EFEA8 0x14AEA8 0xBE38
0x960000 0x156CE0 0xA0D0
make[1]: Leaving directory '/home/1026775@quest-global.com/android_build/vendor/nxp-opensource/imx-mkimage'
===================Finish building imx8mn-evk-uuu:imx8mn_evk_android_uuu_defconfig ===================
MODPOST vmlinux.symvers
MODINFO modules.builtin.modinfo
GEN modules.builtin
LD .tmp_vmlinux.btf
BTF .btf.vmlinux.bin.o
LD .tmp_vmlinux.kallsyms1
KSYMS .tmp_vmlinux.kallsyms1.S
AS .tmp_vmlinux.kallsyms1.S
LD .tmp_vmlinux.kallsyms2
KSYMS .tmp_vmlinux.kallsyms2.S
AS .tmp_vmlinux.kallsyms2.S
LD vmlinux
BTFIDS vmlinux
FAILED: load BTF from vmlinux: Invalid argument
make[2]: *** [/home/1026775@quest-global.com/android_build/vendor/nxp-opensource/kernel_imx/Makefile:1247: vmlinux] Error 255
make[2]: *** Deleting file 'vmlinux'
make[2]: Leaving directory '/home/1026775@quest-global.com/android_build/out/target/product/evk_8mn/obj/KERNEL_OBJ'
make[1]: *** [Makefile:237: __sub-make] Error 2
make[1]: Leaving directory '/home/1026775@quest-global.com/android_build/vendor/nxp-opensource/kernel_imx'
make: *** [/home/1026775@quest-global.com/android_build/device/nxp/common/build/kernel.mk:197: /home/1026775@quest-global.com/android_build/out/target/product/evk_8mn/obj/KERNEL_OBJ/arch/arm64/boot/Image.lz4] Error 2
make: Leaving directory '/home/1026775@quest-global.com/android_build'

 

full log while running the ./imx-make.sh is attached

Labels (1)
0 Kudos
Reply
1 Solution
1,437 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Please use Ubuntu18.04 to compile Android12.

Best Regards,
Zhiming

View solution in original post

3 Replies
1,480 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Can you try to delete /home/1026775@quest-global.com/android_build/out/target/product/evk_8mn/obj/KERNEL_OBJ and rebuild it again?

Are you using Ubuntu18.04?

Did you install the gcc here : 1. Prepare the build environment for U-Boot and Linux kernel ?

Best Regards,
Zhiming

0 Kudos
Reply
1,465 Views
althafahammed
Contributor III

=> Can you try to delete /home/1026775@quest-global.com/android_build/out/target/product/evk_8mn/obj/KERNEL_OBJ and rebuild it again?

Ans : Already tried the build multiple times after make clean

=> Are you using Ubuntu18.04?
Ans : No , Ubuntu 22.04.5 LTS

=> Did you install the gcc here : 1. Prepare the build environment for U-Boot and Linux kernel ?
Ans : yes

Tags (1)
0 Kudos
Reply
1,438 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Please use Ubuntu18.04 to compile Android12.

Best Regards,
Zhiming