免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2480 | 回复: 7
打印 上一主题 下一主题

提示求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-17 16:12 |只看该作者 |倒序浏览
10可用积分
PC is at usb_pwc_probe+0x28/0x950 [pwc]
LR is at usb_probe_interface+0xc4/0x110

PC is at kref_get+0x10/0x64
LR is at kobject_get+0x20/0x28
试了两个摄像头,一插上去就是这样的错误提示,请问是那部分问题呢?是错误的指针,那怎样找呢
static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id *id)
{
        struct usb_device *udev = interface_to_usbdev(intf);
        struct pwc_device *pdev = NULL;
        int vendor_id, product_id, type_id;
        int i, hint, rc;
        int features = 0;
        int video_nr = -1; /* default: use next available device */
        char serial_number[30], *name;

        vendor_id = le16_to_cpu(udev->descriptor.idVendor);
        product_id = le16_to_cpu(udev->descriptor.idProduct);

        /* Check if we can handle this device */
        PWC_DEBUG_PROBE("probe() called [%04X %04X], if %d\n",
                vendor_id, product_id,
                intf->altsetting->desc.bInterfaceNumber);
.......
这个函数是一插摄像头就自动调用的

论坛徽章:
0
2 [报告]
发表于 2009-03-17 16:49 |只看该作者

回复 #1 fengqd 的帖子

模块是通过何种方式编译的

论坛徽章:
0
3 [报告]
发表于 2009-03-17 17:01 |只看该作者
原帖由 fengqd 于 2009-3-17 16:12 发表
PC is at usb_pwc_probe+0x28/0x950 [pwc]

我的理解是,问题出在 pwc 这个模块中的 usb_pwc_probe 函数,二进制代码的偏移 0x28 处
如果你有反汇编程序,可以反出 usb_pwc_probe 函数,往下数 28h 个字节,其后面的函数调用或具体汇编指令就是出错的位置
这时,翻回头来再看源代码你就知道问题根源了
我用 IDA 挺好,你也可以去找找

这是我自己研究的一个土方法,也不知道对不对,也不知道有没有更好更巧妙的办法……

论坛徽章:
0
4 [报告]
发表于 2009-03-18 14:37 |只看该作者
什么是IDA?

论坛徽章:
0
5 [报告]
发表于 2009-03-18 14:41 |只看该作者
我用objdump -D无法看到反汇编的程序,为什么?要什么参数

论坛徽章:
0
6 [报告]
发表于 2009-03-18 17:16 |只看该作者
PC is at kref_get+0x10/0x64
LR is at kobject_get+0x20/0x28
kref_get()是什么用的?

论坛徽章:
0
7 [报告]
发表于 2009-03-19 07:53 |只看该作者
kref设备引用数出问题?会是什么原因呢?

论坛徽章:
0
8 [报告]
发表于 2009-03-19 08:00 |只看该作者
USB device controller drivers for PXA270 are not available in mainline kernels, and this is the main reason we do not support USB device functionality on CM-X270. Yet, there are several patches available at [2], Handhelds.org, Raphael Assenat site dedicated to Linux on CompuLab boards, and probably others. We never tried these patches, and we don't know which of them will work on CM-X270.
这是官方的说法,是usb问题吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP