AnsweredAssumed Answered

Kernel build error when enabling low-level debugging with Linux-2.6.35 for MX53

Question asked by Jie Jiang on May 26, 2016
Latest reply on Jun 4, 2016 by TomE


I'm working with Linux-2.6.35/MX53,

and would like to enable kernel low level debugging and early printk to help debug kernel booting problem.However, after enabling "Kernel hacking->Kernel low-level debugging functions"

and  "Kernel hacking->Kernel low-level debugging functions->Early printk",

the build process (with the cmd: make ARCH=arm CROSS_COMPILE=arm-fsl-linux-gnueabi- -j 4 uImage)

failed with errors:


  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

make[1]: `include/generated/mach-types.h' is up to date.

  CALL    scripts/

  CHK     include/generated/compile.h

  AS      arch/arm/kernel/debug.o

In file included from arch/arm/plat-mxc/include/mach/debug-macro.S:52,

                 from arch/arm/kernel/debug.S:130:

arch/arm/plat-mxc/include/mach/mx5x.h:23:2: error: #error "Do not include directly."

make[1]: *** [arch/arm/kernel/debug.o] Error 1

make: *** [arch/arm/kernel] Error 2

make: *** Waiting for unfinished jobs....

make: *** wait: No child processes.  Stop.


The cross-compiling toolchain is arm-fsl-linux-gnueabi-gcc-4.4.4.


Any idea?