AnsweredAssumed Answered

i.MX53 Kernel Build failed

Question asked by Sujatha P.M. on Nov 14, 2013
Latest reply on Nov 20, 2013 by Kirill Brilliantov

Hello,

 

I'm using i.MX53 QSB with NAND interface.

To support for nand,I have enabled mtd in kernel configuration/Device drivers.

After selecting,I have got many error messages,Kernel not build properly.

The error messages:

 

+ make LOCALVERSION= ARCH=arm CROSS_COMPILE= 'HOSTCC=ccache /usr/bin/gcc -B/usr/bin/' uImage

scripts/kconfig/conf -s arch/arm/Kconfig

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

make[1]: `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      drivers/mtd/nand/nand.o

  CC      drivers/mtd/nand/imx_nfc.o

drivers/mtd/nand/imx_nfc.c: In function 'nfc_2_0_set_geometry':

drivers/mtd/nand/imx_nfc.c:2645: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c: In function 'nfc_3_2_init':

drivers/mtd/nand/imx_nfc.c:2789: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c: In function 'mal_set_logical_geometry':

drivers/mtd/nand/imx_nfc.c:4727: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c: In function 'mil_select_chip':

drivers/mtd/nand/imx_nfc.c:5810: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:5816: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c: At top level:

drivers/mtd/nand/imx_nfc.c:6667: error: invalid type argument of 'unary *' (have 'int')

drivers/mtd/nand/imx_nfc.c:6667: warning: type defaults to 'int' in declaration of 'type name'

drivers/mtd/nand/imx_nfc.c:6671: error: invalid type argument of 'unary *' (have 'int')

drivers/mtd/nand/imx_nfc.c:6671: warning: type defaults to 'int' in declaration of 'type name'

drivers/mtd/nand/imx_nfc.c:6675: error: invalid type argument of 'unary *' (have 'int')

drivers/mtd/nand/imx_nfc.c:6675: warning: type defaults to 'int' in declaration of 'type name'

drivers/mtd/nand/imx_nfc.c:6679: error: invalid type argument of 'unary *' (have 'int')

drivers/mtd/nand/imx_nfc.c:6679: warning: type defaults to 'int' in declaration of 'type name'

drivers/mtd/nand/imx_nfc.c:6683: error: invalid type argument of 'unary *' (have 'int')

drivers/mtd/nand/imx_nfc.c:6683: warning: type defaults to 'int' in declaration of 'type name'

drivers/mtd/nand/imx_nfc.c: In function 'show_device_platform_info':

drivers/mtd/nand/imx_nfc.c:6710: error: 'IMX_NFC_BUFFERS_ADDR_RES_NAME' undeclared (first use in this function)

drivers/mtd/nand/imx_nfc.c:6710: error: (Each undeclared identifier is reported only once

drivers/mtd/nand/imx_nfc.c:6710: error: for each function it appears in.)

drivers/mtd/nand/imx_nfc.c:6715: error: 'IMX_NFC_PRIMARY_REGS_ADDR_RES_NAME' undeclared (first use in this function)

drivers/mtd/nand/imx_nfc.c:6720: error: 'IMX_NFC_SECONDARY_REGS_ADDR_RES_NAME' undeclared (first use in this function)

drivers/mtd/nand/imx_nfc.c:6725: error: 'IMX_NFC_INTERRUPT_RES_NAME' undeclared (first use in this function)

drivers/mtd/nand/imx_nfc.c:6741: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:6742: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:6743: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:6744: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:6745: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:6746: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:6758: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:6763: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:6765: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:6783: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'uint64_t'

drivers/mtd/nand/imx_nfc.c:6783: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'uint64_t'

drivers/mtd/nand/imx_nfc.c:6794: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'uint64_t'

drivers/mtd/nand/imx_nfc.c:6794: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'uint64_t'

drivers/mtd/nand/imx_nfc.c: In function 'show_device_mtd_nand_info':

drivers/mtd/nand/imx_nfc.c:6986: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'uint64_t'

drivers/mtd/nand/imx_nfc.c: In function 'show_device_mtd_info':

drivers/mtd/nand/imx_nfc.c:7082: warning: format '%u' expects type 'unsigned int', but argument 6 has type 'uint64_t'

drivers/mtd/nand/imx_nfc.c: In function 'validate_the_platform':

drivers/mtd/nand/imx_nfc.c:7470: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:7477: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:7477: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:7478: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:7478: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c: In function 'set_up_the_nfc_hal':

drivers/mtd/nand/imx_nfc.c:7513: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:7514: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:7522: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:7522: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c: In function 'acquire_resources':

drivers/mtd/nand/imx_nfc.c:7546: error: 'IMX_NFC_BUFFERS_ADDR_RES_NAME' undeclared (first use in this function)

drivers/mtd/nand/imx_nfc.c:7565: error: 'IMX_NFC_PRIMARY_REGS_ADDR_RES_NAME' undeclared (first use in this function)

drivers/mtd/nand/imx_nfc.c:7585: error: 'IMX_NFC_SECONDARY_REGS_ADDR_RES_NAME' undeclared (first use in this function)

drivers/mtd/nand/imx_nfc.c:7619: error: 'IMX_NFC_INTERRUPT_RES_NAME' undeclared (first use in this function)

drivers/mtd/nand/imx_nfc.c:7630: error: 'struct device' has no member named 'bus_id'

drivers/mtd/nand/imx_nfc.c:7639: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:7642: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c: In function 'register_with_mtd':

drivers/mtd/nand/imx_nfc.c:7760: warning: assignment from incompatible pointer type

drivers/mtd/nand/imx_nfc.c:7761: warning: assignment from incompatible pointer type

drivers/mtd/nand/imx_nfc.c:7905: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:7906: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:7907: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c: In function 'imx_nfc_probe':

drivers/mtd/nand/imx_nfc.c:8055: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:8056: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:8082: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:8092: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:8120: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:8121: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c: In function 'imx_nfc_remove':

drivers/mtd/nand/imx_nfc.c:8154: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c:8155: error: dereferencing pointer to incomplete type

drivers/mtd/nand/imx_nfc.c: At top level:

drivers/mtd/nand/imx_nfc.c:8245: error: 'IMX_NFC_DRIVER_NAME' undeclared here (not in a function)

make[3]: *** [drivers/mtd/nand/imx_nfc.o] Error 1

make[2]: *** [drivers/mtd/nand] Error 2

make[1]: *** [drivers/mtd] Error 2

make: *** [drivers] Error 2

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

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

error: Bad exit status from /opt/imx53-ltib/ltib/tmp/rpm-tmp.1884 (%build)

RPM build errors:

    Bad exit status from /opt/imx53-ltib/ltib/tmp/rpm-tmp.1884 (%build)

Build time for kernel-2.6.35: 54 seconds

 

Failed building kernel-2.6.35

f_buildrpms() returned an error, exiting

traceback:

main:560

These packages failed to build:

kernel-2.6.35

Build Failed

 

 

What has to be done to build the kernel suscessfully?

What is the reason for these errors?

 

Regards,

Sujatha

Outcomes