Kernal build is failed for android bsp 12 showing FAILED: load BTF from vmlinux: Invalid argument 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/
[email protected]/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/
[email protected]/android_build/vendor/nxp-opensource/kernel_imx/Makefile:1247: vmlinux] Error 255 make[2]: *** Deleting file 'vmlinux' make[2]: Leaving directory '/home/
[email protected]/android_build/out/target/product/evk_8mn/obj/KERNEL_OBJ' make[1]: *** [Makefile:237: __sub-make] Error 2 make[1]: Leaving directory '/home/
[email protected]/android_build/vendor/nxp-opensource/kernel_imx' make: *** [/home/
[email protected]/android_build/device/nxp/common/build/kernel.mk:197: /home/
[email protected]/android_build/out/target/product/evk_8mn/obj/KERNEL_OBJ/arch/arm64/boot/Image.lz4] Error 2 make: Leaving directory '/home/
[email protected]/android_build' full log while running the ./imx-make.sh is attached Android Re: Kernal build is failed for android bsp 12 showing FAILED: load BTF from vmlinux: Invalid argumen Hello, Please use Ubuntu18.04 to compile Android12. Best Regards, Zhiming Re: Kernal build is failed for android bsp 12 showing FAILED: load BTF from vmlinux: Invalid argumen => Can you try to delete /home/
[email protected]/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 Re: Kernal build is failed for android bsp 12 showing FAILED: load BTF from vmlinux: Invalid argumen Hello, Can you try to delete /home/
[email protected]/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