Skip to contentSkip to conversation

Kernel build gets stuck in a endless loop

DISCUSSION Christian Ege 1 participant 1 message Nov 29, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

can anyone give me some advice how to debug an endless loop during kernel and module recipes with my UDOO Neo support layer?

https://github.com/graugans/meta-fsl-arm-extra/tree/master-udooneo

When I build the kernel for the UDOO Neo kernel or a module with bitbake the bitbake process hangs in an endless loop:

bitbake -v kernel-module-imx-gpu-viv

+ cd /data/FSL/fsl-community-bsp-master/build/tmp/work/udooneo-poky-linux-gnueabi/kernel-module-imx-gpu-viv/5.0.11.p7.1+fslc+gitAUTOINC+eeeb23c0fb-r0/git
+ do_make_scripts
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ make CC=arm-poky-linux-gnueabi-gcc -mno-thumb-interwork -marm
-fuse-ld=bfd LD=arm-poky-linux-gnueabi-ld.bfd
AR=arm-poky-linux-gnueabi-ar -C
/data/FSL/fsl-community-bsp-master/build/tmp/work-shared/udooneo/kernel-source O=/data/FSL/fsl-community-bsp-master/build/tmp/work-shared/udooneo/kernel-build-artifacts
scripts

make: Entering directory '/data/FSL/fsl-community-bsp-master/build/tmp/work-shared/udooneo/kernel-source'

GEN
/data/FSL/fsl-community-bsp-master/build/tmp/work-shared/udooneo/kernel-build-artifacts/Makefile

scripts/kconfig/conf --silentoldconfig Kconfig

GEN
/data/FSL/fsl-community-bsp-master/build/tmp/work-shared/udooneo/kernel-build-artifacts/Makefile

scripts/kconfig/conf --silentoldconfig Kconfig

GEN /data/FSL/fsl-community-bsp-master/build/tmp/work-shared

For the kernel I can workaround this by adding the following line to the recipe:

    B = "${S}"

But this does not work for kernel module recipes like the "kernel-module-imx-gpu-viv"

Maybe the cause of this issues is due to the fact that they have included the backports subdirectory into their kernel?

https://github.com/UDOOboard/linux_kernel/tree/imx_3.14.28_1.0.0_ga_neo/backports

I already added some debugging code to the conf utility but it looks like it does what it is supposed to do. But I guess the surrounding Makefile is not happy.

Regards,
Christian