2010-01-19 10:33:46     Problem Building the kernel with touchscreen support BF527-EZ-kit

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-01-19 10:33:46     Problem Building the kernel with touchscreen support BF527-EZ-kit

Vinay Kumar (INDIA)

Message: 84760   

 

Hi,

 

I am building uClinux kernel for BF527-EZkit, and i am using Maxx1233 Driver,

 

 

 

...........................EZKIT.c.................................

...

static const unsigned int cclk_vlev_datasheet[] =

{

VRPAIR(VLEV_100, 400000000),            <--- Error:937

VRPAIR(VLEV_105, 426000000),

VRPAIR(VLEV_110, 500000000),

VRPAIR(VLEV_115, 533000000),

VRPAIR(VLEV_120, 600000000),

};

 

static struct bfin_dpmc_platform_data bfin_dmpc_vreg_data = {

.tuple_tab = cclk_vlev_datasheet,

.tabsize = ARRAY_SIZE(cclk_vlev_datasheet),

.vr_settling_time = 25 /* us */,

};

 

static struct platform_device bfin_dpmc = {

.name = "bfin dpmc",

.dev = {

  .platform_data = &bfin_dmpc_vreg_data,

},

};

 

static struct platform_device *stamp_devices[] __initdata = {

 

&bfin_dpmc,

........

 

 

 

-----------------------------Log-------------------------------------

 

AS      usr/initramfs_data.o

  CHK     include/linux/compile.h

  CC      arch/blackfin/mach-bf527/boards/ezkit.o

  LD      usr/built-in.o

  CC      arch/blackfin/kernel/cplb-nompu/cplbinit.o

  CC      kernel/sched.o

  CC      mm/bootmem.o

  CC      arch/blackfin/kernel/cplb-nompu/cacheinit.o

arch/blackfin/mach-bf527/boards/ezkit.c:937: warning: implicit declaration of function ‘VRPAIR’

arch/blackfin/mach-bf527/boards/ezkit.c:937: error: initializer element is not constant

arch/blackfin/mach-bf527/boards/ezkit.c:937: error: (near initialization for ‘cclk_vlev_datasheet[0]’)

arch/blackfin/mach-bf527/boards/ezkit.c:938: error: initializer element is not constant

arch/blackfin/mach-bf527/boards/ezkit.c:938: error: (near initialization for ‘cclk_vlev_datasheet[1]’)

arch/blackfin/mach-bf527/boards/ezkit.c:939: error: initializer element is not constant

arch/blackfin/mach-bf527/boards/ezkit.c:939: error: (near initialization for ‘cclk_vlev_datasheet[2]’)

arch/blackfin/mach-bf527/boards/ezkit.c:940: error: initializer element is not constant

arch/blackfin/mach-bf527/boards/ezkit.c:940: error: (near initialization for ‘cclk_vlev_datasheet[3]’)

arch/blackfin/mach-bf527/boards/ezkit.c:941: error: initializer element is not constant

arch/blackfin/mach-bf527/boards/ezkit.c:941: error: (near initialization for ‘cclk_vlev_datasheet[4]’)

arch/blackfin/mach-bf527/boards/ezkit.c:944: error: variable ‘bfin_dmpc_vreg_data’ has initializer but incomplete type

arch/blackfin/mach-bf527/boards/ezkit.c:945: error: unknown field ‘tuple_tab’ specified in initializer

arch/blackfin/mach-bf527/boards/ezkit.c:945: warning: excess elements in struct initializer

arch/blackfin/mach-bf527/boards/ezkit.c:945: warning: (near initialization for ‘bfin_dmpc_vreg_data’)

arch/blackfin/mach-bf527/boards/ezkit.c:946: error: unknown field ‘tabsize’ specified in initializer

arch/blackfin/mach-bf527/boards/ezkit.c:946: warning: excess elements in struct initializer

arch/blackfin/mach-bf527/boards/ezkit.c:946: warning: (near initialization for ‘bfin_dmpc_vreg_data’)

arch/blackfin/mach-bf527/boards/ezkit.c:947: error: unknown field ‘vr_settling_time’ specified in initializer

arch/blackfin/mach-bf527/boards/ezkit.c:947: warning: excess elements in struct initializer

arch/blackfin/mach-bf527/boards/ezkit.c:947: warning: (near initialization for ‘bfin_dmpc_vreg_data’)

make[2]: *** [arch/blackfin/mach-bf527/boards/ezkit.o] Error 1

make[1]: *** [arch/blackfin/mach-bf527/boards] Error 2

-----------------------------------------------

 

I am using gcc4.3 compiler

QuoteReplyEditDelete

 

 

2010-01-19 12:27:36     Re: Problem Building the kernel with touchscreen support BF527-EZ-kit

Mike Frysinger (UNITED STATES)

Message: 84764   

 

you never said what version of software you're using.

 

this builds fine in 2009R1.1 and current trunk.  if you simply grep the tree, you'll see the macro is in asm/dpmc.h which the board includes already.

QuoteReplyEditDelete

 

 

2010-01-19 22:54:35     Re: Problem Building the kernel with touchscreen support BF527-EZ-kit

Vinay Kumar (INDIA)

Message: 84782   

 

Hi Mike,

 

Thank you for the reply,  i am using 2008R1.5, will try with 2009R1.1.

QuoteReplyEditDelete

 

 

2010-01-20 02:13:02     Re: Problem Building the kernel with touchscreen support BF527-EZ-kit

Vinay Kumar (INDIA)

Message: 84785   

 

Thank you Mike, I am able to build my kernel now.

Attachments

    Outcomes