×
单片机 > 单片机程序设计 > 详情

JZ2440内核编译的USB摄像头问题

发布时间:2020-06-04 发布时间:
|

配置内核支持UVC驱动,然后make uImage编译内核,烧写内核到nand flash,再启动开发板,把USB摄像头插到JZ2440开发板上以后,弹出以下错误,使用ls /dev/video*命令查看不到设备节点,参照以下方法解决问题:

usb 1-1: new full speed USB device usings3c2410-ohci and address 2

usb 1-1: device descriptor read/64, error -62

usb 1-1: device descriptor read/64, error -62

usb 1-1: new full speed USB device using s3c2410-ohci andaddress 3

usb 1-1: device descriptor read/64, error -62

usb 1-1: device descriptor read/64, error -62

usb 1-1: new full speed USB device using s3c2410-ohci andaddress 4

usb 1-1: device not accepting address 4, error -62

usb 1-1: new full speed USB device using s3c2410-ohci andaddress 5

usb 1-1: device not accepting address 5, error -62

hub 1-0:1.0: unable to enumerate USB device on port 1

找到的解决办法:

修改drivers/usb/host/ohci-s3c2410.c

添加头文件:

        #include

在函数s3c2410_start_hc最后添加:

        unsigned long upllvalue = (0x78<< 12) | (0x02<< 4) | (0x03);

        while (upllvalue != __raw_readl(S3C2410_UPLLCON)) {

                __raw_writel(upllvalue, S3C2410_UPLLCON);

                mdelay(1);

        }

在这里,S3C2410_UPLLCON的值为0xF4100008(采用系统默认值尝试成功)。



『本文转载自网络,版权归原作者所有,如有侵权请联系删除』

热门文章 更多
ARM 汇编的必知必会