discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] usrper fails in usb_claim_interface


From: mgray
Subject: Re: [Discuss-gnuradio] usrper fails in usb_claim_interface
Date: Tue, 5 Apr 2005 12:24:27 -0700 (MST)

Are you physically plugged into a USB 2.0 port?

A system may have multiple of USB ports, but not all of them are 2.0.  
Many will be USB 1.1 (high-speed 12mbps) devices.

If you run usbtree, you can verify your connection.  The following is an 
example of the USRP connected to an USB 2.0 port.

address@hidden ~]$ usbtree
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/2p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/3p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/5p, 480M
    |__ Port 1: Dev 15, If 0, Class=vend., Driver=none, 480M
    |__ Port 1: Dev 15, If 1, Class=vend., Driver=none, 480M
    |__ Port 1: Dev 15, If 2, Class=vend., Driver=none, 480M



On Tue, 5 Apr 2005, Larry Doolittle wrote:

> Hi -
> 
> I have an Avnet Virtex 4 evaluation board, intended for
> projects similar in concept to GNU Radio.  It uses the
> same CY7C68013 chip as USRP.
> 
> I used USRP as a software reference design, and started
> splicing in some code of my own.  I think that part is
> in good shape, after coming up to speed on SDCC etc.
> 
> When I go to download my .ihx file, usrper says:
> 
> # usrper -x load_firmware ${FOO}/usrp_main.ihx
> lt-usrper: found unconfigured FX2; needs firmware.
> usrp_open_interface:usb_claim_interface: failed interface 0
> could not claim interface 0: Device or resource busy
> lt-usrper: failed to open_cmd_interface
> # 
> 
> I am running this as root, to avoid possible permissions
> problems.  The Linux kernel is 2.6.10-9-amd64-k8, base
> distribution is debian sid.
> 
> The curious thing is that both fxload and fx2_programmer
> seem to work; with fxload, I have even confirmed (by watching
> I/O pins with a scope) that my .ihx file loads and runs.
> 
> strace shows a non-surprising:
> 
> open("/proc/bus/usb/005/005", O_RDWR)   = 3
> ioctl(3, USBDEVFS_SETCONFIGURATION, 0x7fbffffb2c) = 0
> ioctl(3, USBDEVFS_CLAIMINTERFACE, 0x7fbffffb2c) = -1 EBUSY (Device or 
> resource busy)
> write(2, 
> "usrp_open_interface:usb_claim_in"...,60usrp_open_interface:usb_claim_interface:
>  failed interface 0
> ) = 60
> 
> I found http://comsec.com/wiki?UsrpInstall, where this message
> is listed, and it says to use USB 2.0 instead of USB 1.1.
> If I read my kernel logs correctly, I _do_ have USB 2.0 active:
> 
> 2005-04-05 11:20:16.200324500 <6>usb 5-1: new high speed USB device using 
> ehci_hcd and address 6
> 2005-04-05 11:20:16.264596500 <6>usbtest 5-1:1.0: FX2 device
> 2005-04-05 11:20:16.264640500 <6>usbtest 5-1:1.0: high speed {control bulk-in 
> bulk-out} tests (+alt)
> 2005-04-05 11:20:45.881313500 <4>usb 5-1: usbfs: interface 0 claimed while 
> 'lt-usrper' sets config #1
> 2005-04-05 11:35:07.626327500 <4>usb 5-1: usbfs: interface 0 claimed while 
> 'lt-usrper' sets config #1
> 
> Anybody have a clue they can share with me?
> 
>     - Larry
> 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]