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,967 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,892 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,935 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,920 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,893 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Please use Ubuntu18.04 to compile Android12.

Best Regards,
Zhiming

%3CLINGO-SUB%20id%3D%22lingo-sub-2016908%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EKernal%20build%20is%20failed%20for%20android%20bsp%2012%20showing%20FAILED%3A%20load%20BTF%20from%20vmlinux%3A%20Invalid%20argument%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2016908%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20tried%20to%20build%20the%20bsp%20of%20android%2012%20for%20imx-8mn%20evk%20board%20with%20lunch%2061%20but%20i%20got%20following%20error%3CBR%20%2F%3E%3CBR%20%2F%3ETEE_LOAD_ADDR%3D0x56000000%20ATF_LOAD_ADDR%3D0x00960000%20VERSION%3Dv2%20.%2Fprint_fit_hab.sh%200x60000%20evk.dtb%3CBR%20%2F%3E0x40200000%200x5B000%200xEFEA8%3CBR%20%2F%3E0x402EFEA8%200x14AEA8%200xBE38%3CBR%20%2F%3E0x960000%200x156CE0%200xA0D0%3CBR%20%2F%3Emake%5B1%5D%3A%20Leaving%20directory%20'%2Fhome%2F1026775%40quest-global.com%2Fandroid_build%2Fvendor%2Fnxp-opensource%2Fimx-mkimage'%3CBR%20%2F%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3DFinish%20building%20imx8mn-evk-uuu%3Aimx8mn_evk_android_uuu_defconfig%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3CBR%20%2F%3EMODPOST%20vmlinux.symvers%3CBR%20%2F%3EMODINFO%20modules.builtin.modinfo%3CBR%20%2F%3EGEN%20modules.builtin%3CBR%20%2F%3ELD%20.tmp_vmlinux.btf%3CBR%20%2F%3EBTF%20.btf.vmlinux.bin.o%3CBR%20%2F%3ELD%20.tmp_vmlinux.kallsyms1%3CBR%20%2F%3EKSYMS%20.tmp_vmlinux.kallsyms1.S%3CBR%20%2F%3EAS%20.tmp_vmlinux.kallsyms1.S%3CBR%20%2F%3ELD%20.tmp_vmlinux.kallsyms2%3CBR%20%2F%3EKSYMS%20.tmp_vmlinux.kallsyms2.S%3CBR%20%2F%3EAS%20.tmp_vmlinux.kallsyms2.S%3CBR%20%2F%3ELD%20vmlinux%3CBR%20%2F%3EBTFIDS%20vmlinux%3CBR%20%2F%3EFAILED%3A%20load%20BTF%20from%20vmlinux%3A%20Invalid%20argument%3CBR%20%2F%3Emake%5B2%5D%3A%20***%20%5B%2Fhome%2F1026775%40quest-global.com%2Fandroid_build%2Fvendor%2Fnxp-opensource%2Fkernel_imx%2FMakefile%3A1247%3A%20vmlinux%5D%20Error%20255%3CBR%20%2F%3Emake%5B2%5D%3A%20***%20Deleting%20file%20'vmlinux'%3CBR%20%2F%3Emake%5B2%5D%3A%20Leaving%20directory%20'%2Fhome%2F1026775%40quest-global.com%2Fandroid_build%2Fout%2Ftarget%2Fproduct%2Fevk_8mn%2Fobj%2FKERNEL_OBJ'%3CBR%20%2F%3Emake%5B1%5D%3A%20***%20%5BMakefile%3A237%3A%20__sub-make%5D%20Error%202%3CBR%20%2F%3Emake%5B1%5D%3A%20Leaving%20directory%20'%2Fhome%2F1026775%40quest-global.com%2Fandroid_build%2Fvendor%2Fnxp-opensource%2Fkernel_imx'%3CBR%20%2F%3Emake%3A%20***%20%5B%2Fhome%2F1026775%40quest-global.com%2Fandroid_build%2Fdevice%2Fnxp%2Fcommon%2Fbuild%2Fkernel.mk%3A197%3A%20%2Fhome%2F1026775%40quest-global.com%2Fandroid_build%2Fout%2Ftarget%2Fproduct%2Fevk_8mn%2Fobj%2FKERNEL_OBJ%2Farch%2Farm64%2Fboot%2FImage.lz4%5D%20Error%202%3CBR%20%2F%3Emake%3A%20Leaving%20directory%20'%2Fhome%2F1026775%40quest-global.com%2Fandroid_build'%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Efull%20log%20while%20running%20the%20.%2Fimx-make.sh%20is%20attached%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2016908%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAndroid%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2018228%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Kernal%20build%20is%20failed%20for%20android%20bsp%2012%20showing%20FAILED%3A%20load%20BTF%20from%20vmlinux%3A%20Invalid%20argumen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2018228%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20use%20Ubuntu18.04%20to%20compile%20Android12.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2017830%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Kernal%20build%20is%20failed%20for%20android%20bsp%2012%20showing%20FAILED%3A%20load%20BTF%20from%20vmlinux%3A%20Invalid%20argumen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017830%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3D%26gt%3B%20Can%20you%20try%20to%20delete%20%2Fhome%2F1026775%40quest-global.com%2Fandroid_build%2Fout%2Ftarget%2Fproduct%2Fevk_8mn%2Fobj%2FKERNEL_OBJ%20and%20rebuild%20it%20again%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAns%20%3A%20Already%20tried%20the%20build%20multiple%20times%20after%20make%20clean%3CBR%20%2F%3E%3CBR%20%2F%3E%3D%26gt%3B%20Are%20you%20using%20Ubuntu18.04%3F%3CBR%20%2F%3EAns%20%3A%20No%20%2C%20Ubuntu%2022.04.5%20LTS%3CBR%20%2F%3E%3CBR%20%2F%3E%3D%26gt%3B%20Did%20you%20install%20the%20gcc%20here%20%3A%20%3CSPAN%20class%3D%22%22%3E1.%20Prepare%20the%20build%20environment%20for%20U-Boot%20and%20Linux%20kernel%20%3F%3C%2FSPAN%3E%3CBR%20%2F%3EAns%20%3A%20yes%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2017635%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Kernal%20build%20is%20failed%20for%20android%20bsp%2012%20showing%20FAILED%3A%20load%20BTF%20from%20vmlinux%3A%20Invalid%20argumen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017635%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20try%20to%20delete%26nbsp%3B%3CSPAN%3E%2Fhome%2F1026775%40quest-global.com%2Fandroid_build%2Fout%2Ftarget%2Fproduct%2Fevk_8mn%2Fobj%2FKERNEL_OBJ%20and%20rebuild%20it%20again%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAre%20you%20using%20Ubuntu18.04%3F%3C%2FP%3E%0A%3CP%3EDid%20you%20install%20the%20gcc%20here%20%3A%20%3CSPAN%20class%3D%22fontstyle0%22%3E1.%20Prepare%20the%20build%20environment%20for%20U-Boot%20and%20Linux%20kernel%20%3F%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E