taoyi921 发表于 2006-9-28 11:08:18

做adm5120的兄弟请进来一下(usb问题)

我想问问大哥们,在adm5120上能用usb的功能吗?为什么我按下面的牛贴
http://www.student.tue.nl/Q/t.f.a.wilms/adm5120/
做完之后,插入u盘就会报以下错误:
adm5120-hcd adm5120-hcd: Unlink after no-IRQ?Controller is probably using the wrong IRQ.
有遇到类事的情况吗??能不能指点一下小弟怎么做的!!!谢谢!!!

Jully 发表于 2006-9-29 22:38:30

Re: 做adm5120的兄弟请进来一下(usb问题)

usb的中断没有route到cpu上
可能的原因:
1、usb的中断没有使能
2、usb的终端使能了,但是使用了错误的中断好
5120只有9个中断可以用,你确认下

我想问问大哥们,在adm5120上能用usb的功能吗?为什么我按下面的牛贴
http://www.student.tue.nl/Q/t.f.a.wilms/adm5120/
做完之后,插入u盘就会报以下错误:
adm5120-hcd adm5120-hcd: Unlink after no-IRQ?Controller is probably using the wrong IRQ.
有遇到类事的情况吗??能不能指点一下小弟怎么做的!!!谢谢!!!

taoyi921 发表于 2006-9-30 10:24:55

谢谢Jully!!
    adm5120 usbhost的中断号是3,我确实用的是3。而且我从前面的打印信息得到已经13次成功进入中断函数,但第14次失败了。
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes(接着出错,未进入中断函数)
usb-storage: command_abort called
usb-storage: usb_stor_stop_transport called
usb-storage: -- cancelling URB
adm5120-hcd adm5120-hcd: Unlink after no-IRQ?Controller is probably using the wrong IRQ.
      我在函数admhcd_urb_enqueue中读了寄存器INTERRUPT ENABLE的值,对照adm5120的spec,中断好像也已经使能了。我想问一下导致中断未使能一般有哪些情况,我在函数admhcd_urb_enqueue中读寄存器能表明中断已经使能了吗?
   郁闷了快一个月了,请大侠多多指点,感激不尽!!!
   还有我在目标机上cat /proc/interrupts 可以看到adm5120-hcd的中断计数是13,但不会增加了。而且在proc/scsi/下面能看到usb-storage的目录,但是cat /proc/scsi/scsi看不到usb attech的信息。。。

Jully 发表于 2006-9-30 12:46:22

这要你自己往下跟了,换成usb鼠标看看会不会出现问题.


谢谢Jully!!
    adm5120 usbhost的中断号是3,我确实用的是3。而且我从前面的打印信息得到已经13次成功进入中断函数,但第14次失败了。
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes(接着出错,未进入中断函数)
usb-storage: command_abort called
usb-storage: usb_stor_stop_transport called
usb-storage: -- cancelling URB
adm5120-hcd adm5120-hcd: Unlink after no-IRQ?Controller is probably using the wrong IRQ.
      我在函数admhcd_urb_enqueue中读了寄存器INTERRUPT ENABLE的值,对照adm5120的spec,中断好像也已经使能了。我想问一下导致中断未使能一般有哪些情况,我在函数admhcd_urb_enqueue中读寄存器能表明中断已经使能了吗?
   郁闷了快一个月了,请大侠多多指点,感激不尽!!!
   还有我在目标机上cat /proc/interrupts 可以看到adm5120-hcd的中断计数是13,但不会增加了。而且在proc/scsi/下面能看到usb-storage的目录,但是cat /proc/scsi/scsi看不到usb attech的信息。。。

taoyi921 发表于 2006-10-12 16:05:15

我修改了usb host驱动程序adm5120-hcd.c,现在已经能成功识别一款爱国者usb2.0 128M的u盘,而且也能mount成功。但我插入另一个u盘(爱国者usb2.0 256M)却还是会报:
adm5120-hcd adm5120-hcd: Unlink after no-IRQ?Controller is probably using the wrong IRQ.
我就觉得很奇怪,二个都是usb2.0的u盘除了大小好像就没什么区别了?为什么一个能成功一个就不行了?接着我又拿来二个usb1.1的u盘,结果都失败了。这是为什么啊? :( 请大家帮忙指点指点!!!

woohello 发表于 2007-12-12 20:25:39

终于找到一个讨论5120的帖子了,我现在正在学习5120。不知道大家采用什么样的方法把程序下载进去啊。我自己做了一个jtag线,但是找不到合适的软件下载,找了两个ocd_commader和jtag-cvs好像都不大行啊。
页: [1]
查看完整版本: 做adm5120的兄弟请进来一下(usb问题)