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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,509 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,434 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Please use Ubuntu18.04 to compile Android12.

Best Regards,
Zhiming

在原帖中查看解决方案

3 回复数
1,477 次查看
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 项奖励
回复
1,462 次查看
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

标记 (1)
0 项奖励
回复
1,435 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Please use Ubuntu18.04 to compile Android12.

Best Regards,
Zhiming