This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • Resolved

Kernel compilation error...

Intellectual 290 points

Replies: 4

Views: 10537

Hi,

I am using OMAP-L138 EVM board - Kernel version 2.6.37. By default kernel compression mode is selected as gzip format. But when I try to change the compression format to LZO. I am getting compilation error as given below:

make[1]: Entering directory `/home/ti-dvsdk_omapl138-evm_04_03_00_06/psp/linux-2.6.37-psp03.21.00.04.sdk'

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

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

  CALL    scripts/checksyscalls.sh

  CHK     include/generated/compile.h

  GZIP    kernel/config_data.gz

  IKCFG   kernel/config_data.h

  CC      kernel/configs.o

  LD      kernel/built-in.o

  LD      vmlinux.o

  MODPOST vmlinux.o

WARNING: modpost: Found 2 section mismatch(es).

To see full details build your kernel with:

'make CONFIG_DEBUG_SECTION_MISMATCH=y'

  GEN     .version

  CHK     include/generated/compile.h

  UPD     include/generated/compile.h

  CC      init/version.o

  LD      init/built-in.o

  LD      .tmp_vmlinux1

  KSYM    .tmp_kallsyms1.S

  AS      .tmp_kallsyms1.o

  LD      .tmp_vmlinux2

  KSYM    .tmp_kallsyms2.S

  AS      .tmp_kallsyms2.o

  LD      vmlinux

  SYSMAP  System.map

  SYSMAP  .tmp_System.map

  OBJCOPY arch/arm/boot/Image

  Kernel: arch/arm/boot/Image is ready

  LZO     arch/arm/boot/compressed/piggy.lzo

/bin/sh: lzop: command not found

make[3]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1

make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 2

make[1]: *** [uImage] Error 2

make[1]: Leaving directory `/home/ti-dvsdk_omapl138-evm_04_03_00_06/psp/linux-2.6.37-psp03.21.00.04.sdk'

make: *** [linux] Error 2

Please help me??? Thanks in advance...

  • Hi,

      LZO     arch/arm/boot/compressed/piggy.lzo

    /bin/sh: lzop: command not found

    make[3]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1

    make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 2

    make[1]: *** [uImage] Error 2

    make[1]: Leaving directory `/home/ti-dvsdk_omapl138-evm_04_03_00_06/psp/linux-2.6.37-psp03.21.00.04.sdk'

    make: *** [linux] Error 2

    The kernel compression mode you have choose is LZO ? Is what you require,

    If yes you need to install lzop (sudo apt-get install lzop) should help you surpass the error.

    If you are looking for different kernel compression change it using following steps:-

    1:  make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig

         Go under General Setup  --->

                                      Kernel Compression mode  --->

                                              (X) Gzip

                                              ( ) LZMA

                                              ( ) XZ

                                              ( ) LZO

    Chose the appropriate one which you need from the above, currently its set to LZO and the

    tool lzop is not installed becoz of which you are getting the above error

    Regards,

    --Prabhakar Lad

  • In reply to Prabhakar Lad:

    Thanks Prabhakar for your help.. I will try and let you know the result...

  • In reply to Prabhakar Lad:

    Thanks Prabhakar it worked for me... Now I am able to compile and create uImage for LZO compression format...

  • In reply to Niharika Chouhan:

    Thanks Prabhakar, I have solved  it on  your methods.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.