天嵌 ARM开发社区

 找回密码
 注册
查看: 2197|回复: 6

USB 摄像头驱动移植的问题

[复制链接]
一_个_人_离_开 发表于 2012-3-21 20:50:05 | 显示全部楼层 |阅读模式
下载了版主给的USB摄像头驱动 照着天嵌的手册弄  结果出现这些错误  在网上找了 很久发现 很多人 有一样的错误 但是 就是没找到 什么解决办法   求解决。。

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] Error 1
make[3]: *** [drivers/media/video/gspcav1] Error  2
make[2]: *** [drivers/media/video] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [drivers]  Error 2
TQ-lkp 发表于 2012-3-22 12:58:23 | 显示全部楼层
2.6.30.4已经集成了USB的驱动,不用再自己移植了
 楼主| 一_个_人_离_开 发表于 2012-3-23 16:35:32 | 显示全部楼层
TQ-lkp 发表于 2012-3-22 12:58
2.6.30.4已经集成了USB的驱动,不用再自己移植了

我用了 内核里面的 驱动  虽然没错误了  但是 不能驱动我的 摄像头啊  
weiweiwsk 发表于 2012-4-10 09:15:45 | 显示全部楼层
我也遇到同样的问题,在移植手册里说的是下载个gspcavl的源码包,是按照这个源码包来移植驱动的,现在说2.6.30.4里集成有USB摄像头的驱动,那怎么怎么修改和配置呢?求解???
TQ-lkp 发表于 2012-4-10 09:31:00 | 显示全部楼层
一_个_人_离_开 发表于 2012-3-23 16:35
我用了 内核里面的 驱动  虽然没错误了  但是 不能驱动我的 摄像头啊

插上摄相头有提示信息吗
你用我们提供的摄相头程序测试下,不是光盘中的,是论坛中提供的有源码的
dongleivip 发表于 2012-4-18 22:23:26 | 显示全部楼层
TQ-lkp 发表于 2012-4-10 09:31
插上摄相头有提示信息吗
你用我们提供的摄相头程序测试下,不是光盘中的,是论坛中提供的有源码的

版主,


我的摄像头型号是中星微 345。    照着《天嵌科技出品-Linux移植之Step By Step_V4.5_20100605》这个里面的USB摄像头移植的知道在做。
内核:2.6.30.4
驱动包:gspcav1-20071224

编译的时候出错了。

make zImage
  CHK     include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CALL    scripts/checksyscalls.sh
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
  CHK     include/linux/compile.h
  CC      drivers/media/video/gspcavl/gspca_core.o
In file included from drivers/media/video/gspcavl/gspca_core.c:847:
drivers/media/video/gspcavl/utils/spcausb.h: In function 'spca_set_interface':
drivers/media/video/gspcavl/utils/spcausb.h:278: error: implicit declaration of function 'warn'
drivers/media/video/gspcavl/gspca_core.c: In function 'spca5xx_ioctl':
drivers/media/video/gspcavl/gspca_core.c:2465: error: implicit declaration of function 'video_usercopy'
drivers/media/video/gspcavl/gspca_core.c: At top level:
drivers/media/video/gspcavl/gspca_core.c:2611: error: unknown field 'owner' specified in initializer
drivers/media/video/gspcavl/gspca_core.c:2611: warning: initialization from incompatible pointer type
drivers/media/video/gspcavl/gspca_core.c:2613: error: unknown field 'type' specified in initializer
drivers/media/video/gspcavl/gspca_core.c:2617: warning: initialization from incompatible pointer type
drivers/media/video/gspcavl/gspca_core.c: In function 'spca50x_create_sysfs':
drivers/media/video/gspcavl/gspca_core.c:2771: error: implicit declaration of function 'video_device_create_file'
drivers/media/video/gspcavl/gspca_core.c:2782: error: implicit declaration of function 'video_device_remove_file'
drivers/media/video/gspcavl/gspca_core.c: In function 'gspca_attach_bridge':
drivers/media/video/gspcavl/gspca_core.c:2804: error: implicit declaration of function 'info'
drivers/media/video/gspcavl/gspca_core.c: In function 'spca5xx_probe':
drivers/media/video/gspcavl/gspca_core.c:4303: error: incompatible types in assignment
make[4]: *** [drivers/media/video/gspcavl/gspca_core.o] 错误 1
make[3]: *** [drivers/media/video/gspcavl] 错误 2
make[2]: *** [drivers/media/video] 错误 2
make[1]: *** [drivers/media] 错误 2
make: *** [drivers] 错误 2
[root@localhost linux-2.6.30.4]#


这个要怎么解决呢?
ww110052181 发表于 2012-4-30 15:48:40 | 显示全部楼层
期待中期待中呀
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-6-16 04:53 , Processed in 1.046875 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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