天嵌 ARM开发社区

 找回密码
 注册
查看: 3291|回复: 5

usb摄像头驱动移植问题

[复制链接]
arm2010 发表于 2010-8-5 23:08:19 | 显示全部楼层 |阅读模式
从论坛下载了gspcavl-20071224 ,由于里面没有修改,所以自己根据移植手册修改了,可是make zImage出现了下面问题。
内核是2.6.30.4
(除了手册中要改的地方,我还改了asm/semaphore.h为 linux/ /semaphore.h  因为之前出现asm/semaphore.h: No such file or directory)


CC      drivers/media/video/gspcav1/gspca_core.o
In file included from drivers/media/video/gspcav1/gspca_core.c:847:
drivers/media/video/gspcav1/utils/spcausb.h: In function 'spca5xxRegRead':
drivers/media/video/gspcav1/utils/spcausb.h:95: error: implicit declaration of function 'info'
drivers/media/video/gspcav1/utils/spcausb.h: In function 'spca_set_interface':
drivers/media/video/gspcav1/utils/spcausb.h:278: error: implicit declaration of function 'warn'
In file included from drivers/media/video/gspcav1/gspca_core.c:855:
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_init':
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:122: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:136: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:141: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:148: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:176: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_start':
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:214: error: called object 'info' is not a function
drivers/media/video/gspcav1/Sunplus-jpeg/sp5xxfw2.h:230: error: called object 'info' is not a function
drivers/media/video/gspcav1/gspca_core.c: In function 'spca5xx_ioctl':
drivers/media/video/gspcav1/gspca_core.c:2465: error: implicit declaration of function 'video_usercopy'
drivers/media/video/gspcav1/gspca_core.c: At top level:
drivers/media/video/gspcav1/gspca_core.c:2611: error: unknown field 'owner' specified in initializer
drivers/media/video/gspcav1/gspca_core.c:2611: warning: initialization from incompatible pointer type
drivers/media/video/gspcav1/gspca_core.c:2613: error: unknown field 'type' specified in initializer
drivers/media/video/gspcav1/gspca_core.c:2617: warning: initialization from incompatible pointer type
drivers/media/video/gspcav1/gspca_core.c: In function 'spca50x_create_sysfs':
drivers/media/video/gspcav1/gspca_core.c:2771: error: implicit declaration of function 'video_device_create_file'
drivers/media/video/gspcav1/gspca_core.c:2782: error: implicit declaration of function 'video_device_remove_file'
drivers/media/video/gspcav1/gspca_core.c: In function 'spca5xx_probe':
drivers/media/video/gspcav1/gspca_core.c:4303: error: incompatible types when assigning to type 'struct device' from type 'struct device *'
make[4]: *** [drivers/media/video/gspcav1/gspca_core.o] 错误? 1
make[3]: *** [drivers/media/video/gspcav1] 错误? 2
make[2]: *** [drivers/media/video] 错误  2
make[1]: *** [drivers/media] 错误  2
make: *** [drivers] 错误 2
 楼主| arm2010 发表于 2010-8-7 22:46:02 | 显示全部楼层
请问有人遇见上述问题吗??
回复

使用道具 举报

coolestlhl 发表于 2010-8-9 08:48:03 | 显示全部楼层
我昨天想在2.6.30上移植
也出现上面那个错误 好像这驱动不能移植到2.6.30
一起等亚萨王的回答
回复

使用道具 举报

Rick.w 发表于 2012-3-24 10:06:13 | 显示全部楼层
2.6.30.4不用移植那个驱动了
自带的有
回复

使用道具 举报

dongleivip 发表于 2012-4-18 22:27:31 | 显示全部楼层
Rick.w 发表于 2012-3-24 10:06
2.6.30.4不用移植那个驱动了
自带的有

自带的能支持一部分。  我想选ZC3XX这个选项,编译的时候也出现楼主的那个错误提示。。。。
回复

使用道具 举报

dongleivip 发表于 2012-4-18 22:28:23 | 显示全部楼层
    楼主 你的这个问题解决了么?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-7-17 19:31 , Processed in 2.060405 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表