AnsweredAssumed Answered

adv7511 driver and debug

Question asked by lxw on Sep 3, 2013
Latest reply on Sep 4, 2013 by DaveD

Hi:

    I am a new student of embedded systems.The adv7511 driver  can not debugging success in DM368 development board.It is always have a lot of errors .I don't know how to solve the problem .please help me! thank you!

now ,this is the errors.

make[1]: 正在进入目录 `/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39'

  CC [M]  /opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.o

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:693: error: variable 'adv7511_regmap_config' has initializer but incomplete type

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:694: error: unknown field 'reg_bits' specified in initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:694: warning: excess elements in struct initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:694: warning: (near initialization for 'adv7511_regmap_config')

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:695: error: unknown field 'val_bits' specified in initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:695: warning: excess elements in struct initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:695: warning: (near initialization for 'adv7511_regmap_config')

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:697: error: unknown field 'max_register' specified in initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:697: warning: excess elements in struct initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:697: warning: (near initialization for 'adv7511_regmap_config')

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:698: error: unknown field 'cache_type' specified in initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:698: warning: excess elements in struct initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:698: warning: (near initialization for 'adv7511_regmap_config')

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:699: error: unknown field 'reg_defaults_raw' specified in initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:699: warning: excess elements in struct initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:699: warning: (near initialization for 'adv7511_regmap_config')

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:700: error: unknown field 'num_reg_defaults_raw' specified in initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:700: warning: excess elements in struct initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:700: warning: (near initialization for 'adv7511_regmap_config')

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:702: error: unknown field 'volatile_reg' specified in initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:702: warning: excess elements in struct initializer

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:702: warning: (near initialization for 'adv7511_regmap_config')

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c: In function 'adv7511_parse_dt':

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:763: error: implicit declaration of function 'of_property_read_u32'

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:800: error: implicit declaration of function 'of_property_read_bool'

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:821: error: 'EPROBE_DEFER' undeclared (first use in this function)

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:821: error: (Each undeclared identifier is reported only once

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:821: error: for each function it appears in.)

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c: In function 'adv7511_probe':

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:839: error: 'struct device' has no member named 'of_node'

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:840: error: 'struct device' has no member named 'of_node'

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:856: error: implicit declaration of function 'devm_gpio_request_one'

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:857: error: 'GPIOF_OUT_INIT_HIGH' undeclared (first use in this function)

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:864: error: implicit declaration of function 'devm_regmap_init_i2c'

/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.c:864: warning: assignment makes pointer from integer without a cast

 

 

make[2]: *** [/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511/adv7511.o] 错误 1

make[1]: *** [_module_/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39/include/linux/adv7511] 错误 2

make[1]:正在离开目录 `/opt/dvsdk/psp/linux-2.6.32.17-psp03.01.01.39'

make: *** [modules] 错误 2

 

the adv7511  drive come from our sites .i don't configure the kernel parameters .the kernel come from TI kernel.

Outcomes