天嵌 ARM开发社区

 找回密码
 注册
123
返回列表 发新帖
楼主: edwin2009

Linux2.6.25.8 移植之USB摄像头驱动等问题

[复制链接]
suirl 发表于 2011-4-22 23:23:01 | 显示全部楼层
受教啦,学习一下
ztpower 发表于 2011-10-28 12:37:52 | 显示全部楼层
谢谢你的驱动,辛苦了
dongleivip 发表于 2012-4-18 22:09:45 | 显示全部楼层
亚瑟王 发表于 2009-11-21 10:47
再次上传这两个源码,见附件。
1、很多操作不知道原因,你哪个地方不懂就发帖子问或者百度一下。写手册是很 ...

亚瑟王,

      你给的这两个驱动我在国外的那个网站上下载下来了。 可是编译的时候还是有些问题。



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


这个该怎么解决呢?
markmark26 发表于 2012-6-27 22:37:28 | 显示全部楼层
留个名下下东西。。
460769013 发表于 2012-10-16 18:10:48 | 显示全部楼层
亚瑟王 发表于 2009-11-23 15:15
1、根据你的驱动的类型放置到对应的目录下,然后修改同目录下的Makefile文件等。
2、修改Linux内核这个需要 ...

请教亚瑟王:我们linux-2.6.30.4内核中USB摄像头驱动具体是放在哪个路径下呢??我在看usb_camera应用程序时里面好多结构体不懂是在哪里定义的(struct v4l2_format fmt;                                                //设置获取视频的格式),想看看驱动。:hug:
eliefly 发表于 2013-5-19 11:07:32 | 显示全部楼层
m。。。。。。。。。
yangyu110 发表于 2013-7-22 07:17:29 | 显示全部楼层
先下了看看,不行的话再回来批斗你们这群纨绔子弟
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-7 04:24 , Processed in 1.030313 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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