基于视频采集卡驱动的错误修改CX26828

基于视频采集卡驱动的错误修改CX26828

 

1、 设置root密码

command:sudo passwd root 

 

2、查看系统状态

  输入命令:lsmod

 root@ubuntu:/home/yu# lsmod

iroot@yu-desktop:/home/yu# lsmod

Module                 Size  Used by

cx26828               75734  0

videodev              86588  1 cx26828

videobuf_dma_sg       18786  1 cx26828

videobuf_core         25409  2 cx26828,videobuf_dma_sg

btcx_risc             13400  1 cx26828

nls_iso8859_1         12617  0

 

3、卸载cx26828

如有上述信息可以看到有cx26828,执行命令 rmmod cx26828

如运行这个命令不能卸载就关闭机器把采集卡拔掉先安装好驱动再插上

 

4、 安装驱动

 进入驱动安装目录运行:make install

成功后运行 make load

注意这儿会出错:

使用make install时会成功:


但执行make load的时候出错误:


然后执行make也出错:



修改方法:

1、由于缺少btcx-risc.h头文件(该头文件为内核里面的找出来)

将下面代码复制到btcx-risc.h文件中

structbtcx_riscmem {

unsignedint   size;

__le32         *cpu;

 __le32        *jmp;

    dma_addr_t     dma;

};

 

structbtcx_skiplist {

    int start;

   int end;

};

 

int  btcx_riscmem_alloc(struct pci_dev *pci,

            struct btcx_riscmem *risc,

            unsigned int size);

 

void btcx_riscmem_free(struct pci_dev *pci, structbtcx_riscmem *risc);

int btcx_screen_clips(int swidth, int sheight, structv4l2_rect *win,struct v4l2_clip *clips, unsigned int n);

int btcx_align(struct v4l2_rect *win, struct v4l2_clip*clips,unsigned int n, int mask);

voidbtcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips);

void btcx_calc_skips(int line, int width, int*maxy,struct btcx_skiplist *skips, unsigned int *nskips,const struct v4l2_clip*clips, unsigned int nclips);



2、再执行make,cx26828-core.c程序出现错误


修改:

<1>去掉程序中711行的 _devinit

<2>驱动程序中793行的  _devinit

<3>注销掉878行  //.remove = __devexit_p(cx26828_finidev)


3、修改完后再make

成功编译出模块cx26828.ko文件


4、执行make install


5、执行make


6、查看是否插入到内核中lsmod



7、使用ls /dev/video+table出现


 

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
Conexant Fusion 878A 25878-13驱动 作者:weiqing12345 上传时间:2011-01-18 下载171次 Conexant Fusion 878A 25878-13安装程序及驱动 http://download.csdn.net//detail/weiqing12345/2989764 Conexant Fusion 878A 25878-13采集卡驱动 作者:bagjhpyu 上传时间:2009-03-31 下载307次 Conexant Fusion 878A 25878-13采集卡驱动 http://download.csdn.net//detail/bagjhpyu/1161247 Conexant Fusion 878A 25878-13采集卡驱动 作者:qxy6968 上传时间:2008-03-25 下载3428次 Conexant Fusion 878A 25878-13視頻采集卡的驅動 http://download.csdn.net//detail/qxy6968/394371 Conexant Fusion 878 25878-13采集卡驱动 作者:cxq214214 上传时间:2008-10-17 下载148次 Conexant Fusion 878 25878-13采集卡驱动 http://download.csdn.net//detail/cxq214214/696439 conexant fusion 878a通用驱动 作者:owtianhua 上传时间:2008-04-11 下载1628次 Bt848/Bt849/Bt878/Bt879芯片电视卡通用驱动 http://download.csdn.net//detail/owtianhua/408968 Conexant Fusion 25878-13采集卡驱动 作者:doctorniu 上传时间:2010-07-19 下载79次 for windows95/98/2000/2003/xp/我已成功安装使用,请找这款驱动的朋友下载使用,如有疑问请QQ1262018903,2010年7月20日 http://download.csdn.net//detail/doctorniu/2557096 Conexant fusion 878A通用驱动 作者:lhb740628 上传时间:2010-10-24 下载47次 Conexant fusion 878A不能用的试试这个。 http://download.csdn.net//detail/lhb740628/2780066 878a采集卡驱动 878a采集卡驱动 作者:kirk12315 上传时间:2010-01-11 下载516次 878a采集卡驱动 878a采集卡驱动 878a采集卡驱动 878a采集卡驱动 878a采集卡驱动 878a采集卡驱动 878a采集卡驱动 878a采集卡驱动 878a采集卡驱动 http://download.csdn.net//detail/kirk12315/1984995 CONEXANT FUSION 电视卡驱动 作者:wms7827499 上传时间:2009-06-24 下载40次 CONEXANT FUSION 878a电视卡驱动for xp http://download.csdn.net//detail/wms7827499/1434689 handbook of multisensor data fusion 作者:msn_2008 上传时间:2011-08-19 下载0次 handbook of multisensor data fusion, theory and practice, sencond edition http://download.csdn.net//detail/msn_2008/3531614 Longhorn_Fusion_Beta_D1.rar 作者:Tonglu 上传时间:2008-11-12 下载0次 XP主题Longhorn_Fusion_Beta_D1.rar http://download.csdn.net//detail/Tonglu/768807 A wavelet-based image fusion tutoria 作者:yzl_2007 上传时间:2008-02-16 下载84次 小波融合教程,非常的好! http://download.csdn.net//detail/yzl_2007/354317 Image-Fusion-Algorithms-and-Applications 作者:billiardfan2005 上传时间:2009-02-26 下载70次 Image-Fusion-Algorithms-and-Applications.pdf http://download.csdn.net//detail/billiardfan2005/1048223 Handbook of Multisensor Data Fusion 作者:huhu3564526 上传时间:2008-04-10 下载133次 It's written by David L Hall, James L Linas http://download.csdn.net//detail/huhu3564526/408477 FUSION map 破解(没有厂商标识) 作者:xhhuang1979 上传时间:2008-09-17 下载210次 去FUSIONCHART网站,下载FUSIONMAP的试用版,将这个包替换其中的CHART文件夹.我的压缩软件是7Z,用WINRAR应该可以解

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值