Firefly开源社区

标题: firefly PAD SDK //synatics (新思) 驱动编译不通过,请帮忙指点问题! [打印本页]

作者: Vera    时间: 2015-6-19 08:23
标题: firefly PAD SDK //synatics (新思) 驱动编译不通过,请帮忙指点问题!

请帮忙指点调试,感谢.
作者: Vera    时间: 2015-6-19 11:36
使用最新的同步 SDK ::
以后就可以直接从 bitbucket 处更新:
git pull bitbucket pad:pad
到 file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/%25W@GJ$ACOF(TYDYECOKVDYB.pnghttps://bitbucket.org/T-Firefly/firefly-rk3288/commits/branch/pad 在线浏览源码。
______________________________________________________________________________________________________________
CC      drivers/input/touchscreen/synaptics_i2c_rmi4.o
drivers/input/touchscreen/synaptics_i2c_rmi4.c:33:34: fatal error: linux/earlysuspend.h: No such file or directory
drivers/input/touchscreen/synaptics_i2c_rmi4.c:38:23: fatal error: mach/gpio.h: No such file or directory
compilation terminated.
drivers/input/touchscreen/synaptics_i2c_rmi4.c:39:24: fatal error: mach/board.h: No such file or directory
compilation terminated.
make[3]: *** [drivers/input/touchscreen/synaptics_i2c_rmi4.o] 错误 1
make[2]: *** [drivers/input/touchscreen] 错误 2
make[1]: *** [drivers/input] 错误 2
make[1]: *** 正在等待未完成的任务....
make: *** [drivers] 错误 2

没有找到以下文件:
#include <linux/earlysuspend.h>  
#include <mach/gpio.h>
#include <mach/board.h>

drivers/input/touchscreen/synaptics_i2c_rmi4.c:247:23: error: field 'm_early_suspend' has incomplete type
drivers/input/touchscreen/synaptics_i2c_rmi4.c: In function 'synaptics_rmi4_work_func':
drivers/input/touchscreen/synaptics_i2c_rmi4.c:708:2: error: implicit declaration of function 'gpio_get_value' [-Werror=implicit-function-declaration]
drivers/input/touchscreen/synaptics_i2c_rmi4.c: In function 'synpatics_rmi4_touchpad_config':
drivers/input/touchscreen/synaptics_i2c_rmi4.c:919:9: warning: unused variable 'buf' [-Wunused-variable]
drivers/input/touchscreen/synaptics_i2c_rmi4.c: At top level:
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1222:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'synaptics_rmi4_probe'
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1409:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'synaptics_rmi4_remove'
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1554:1: warning: data definition has no type or storage class [enabled by default]
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1554:1: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Wimplicit-int]
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1554:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1560:11: warning: "CONFIG_HAS_EARLYSUSPEND" is not defined [-Wundef]
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1566:12: error: 'synaptics_rmi4_probe' undeclared here (not in a function)
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1567:2: error: implicit declaration of function '__devexit_p' [-Werror=implicit-function-declaration]
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1567:25: error: 'synaptics_rmi4_remove' undeclared here (not in a function)
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1595:16: error: expected declaration specifiers or '...' before string constant
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1596:15: error: expected declaration specifiers or '...' before string constant
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1597:20: error: expected declaration specifiers or '...' before string constant
drivers/input/touchscreen/synaptics_i2c_rmi4.c:1598:14: error: expected declaration specifiers or '...' before string constant
drivers/input/touchscreen/synaptics_i2c_rmi4.c:106:27: warning: 'syna_client' defined but not used [-Wunused-variable]
drivers/input/touchscreen/synaptics_i2c_rmi4.c:389:12: warning: 'synaptics_rmi4_i2c_block_write' defined but not used [-Wunused-function]
drivers/input/touchscreen/synaptics_i2c_rmi4.c:689:13: warning: 'synaptics_rmi4_work_func' defined but not used [-Wunused-function]
drivers/input/touchscreen/synaptics_i2c_rmi4.c:728:20: warning: 'synaptics_rmi4_irq' defined but not used [-Wunused-function]
drivers/input/touchscreen/synaptics_i2c_rmi4.c:993:12: warning: 'synaptics_rmi4_i2c_query_device' defined but not used [-Wunused-function]
cc1: some warnings being treated as errors
make[3]: *** [drivers/input/touchscreen/synaptics_i2c_rmi4.o] 错误 1
make[2]: *** [drivers/input/touchscreen] 错误 2
make[1]: *** [drivers/input] 错误 2
make[1]: *** 正在等待未完成的任务....
make: *** [drivers] 错误 2


作者: Vera    时间: 2015-6-25 13:50
firefly PAD SDK //synaptics (新思) 驱动编译不通过,请帮忙指点问题!

作者: zhansb    时间: 2015-6-25 13:56
firefly上用的是kernel/drivers/input/touchscreen/synaptics_dsx/
作者: Vera    时间: 2015-6-26 11:46
詹工 , 我们是用的这个 ; 全部 使用 Git UPDATA ----  https://bitbucket.org/TFirefly/f ... a0d168605b52?at=pad

"Firefly-RK3288  de50de7  kernel->Touch: add synaptics dsx driver  Branchespad    2015-04-17 "

编译MAKE 出错, 而停止.
作者: carlinluo    时间: 2015-6-26 12:11
synaptics_dsx这个驱动可以编译过啊,刚验证
作者: Vera    时间: 2015-6-26 15:26
s[*]   Synaptics DSX touchscreen  --->  ynaptics_dsx这个驱动可以编译过了!   感谢!

选择 <*>   synaptics touchscreen panel support 这个就出现以上错误!

   --- Touchscreens                                                               │ │  
  │ │         [*]   Synaptics DSX touchscreen  --->                                          │ │  
  │ │         <*>   synaptics touchscreen panel support                                      │ │  
  │ │         < >   gslX680 touchscreen panel support   
________________________________________________________________________________________________________
CC      drivers/input/touchscreen/synaptics_i2c_rmi4.o
drivers/input/touchscreen/synaptics_i2c_rmi4.c:33:32: fatal error: linux/earlysuspend.h: No such file or directory
compilation terminated.
make[3]: *** [drivers/input/touchscreen/synaptics_i2c_rmi4.o] 错误 1
make[2]: *** [drivers/input/touchscreen] 错误 2
make[1]: *** [drivers/input] 错误 2
make[1]: *** 正在等待未完成的任务....

作者: carlinluo    时间: 2015-6-26 15:46
drivers/input/touchscreen/synaptics_i2c_rmi4.o 你编译这个文件干嘛,用synaptics_dsx文件夹里的就得了吧
作者: trucy    时间: 2017-5-25 17:18
编译FocalTech FT5x06 I2C Touchscreen support 的时候同样遇到 "early_suspend"  has incomplete type的错误,这个怎么解





欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1