FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-03-2007, 11:04 PM
roger
Guest
 
Posts: n/a
Default Problem using xilinx usb download cable in linux

Hi all,

I have spent quite some time on the net trying to find info on how to
get the xilinx usb download cable to work with linux and I have
reached a dead end.

I have installed the usb-driver from http://www.rmdir.de/~michael/xilinx
and I have managed to light up the green led to the usb download cable
on the spartan 3e starter kit. The green led is going black every 6-8
second and then green again. I don't manage to get a connection to the
board using Impact. lsusb gives me the following:

Bus 005 Device 012: ID 03fd:0008 Xilinx, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x03fd Xilinx, Inc.
idProduct 0x0008
bcdDevice 0.00
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 2
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 280mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)


and Impact says:

Connecting to cable (Usb Port - USB21).
Checking cable driver.
File version of /usr/share/xusbdfwu.hex = 1025(dec), 0401.
libusb-driver.so version: 2007-10-08 15:43:55.
Cable connection failed.
Reusing B406EC01 key.
Reusing 3806EC01 key.
Reusing B506EC01 key.
Reusing 3906EC01 key.
Reusing B606EC01 key.
Reusing 3A06EC01 key.
Reusing B706EC01 key.
Reusing 3B06EC01 key.
PROGRESS_END - End Operation.
Elapsed time = 0 sec.
Cable autodetection failed.
WARNING:iMPACT:923 - Can not find cable, check cable setup !

Any idea where to look??

Thanks!

/Roger

Reply With Quote
  #2 (permalink)  
Old 11-10-2007, 12:07 PM
Michael Gernoth
Guest
 
Posts: n/a
Default Re: Problem using xilinx usb download cable in linux

Hi,

On Sat, 03 Nov 2007 22:04:14 -0000, roger wrote:
> I have installed the usb-driver from http://www.rmdir.de/~michael/xilinx
> and I have managed to light up the green led to the usb download cable
> on the spartan 3e starter kit. The green led is going black every 6-8
> second and then green again.


I have not heard of this behaviour previously. For me this seems to
indicate that the cable gets dis- and reconnected all the time.
Do you see reoccuring dis-/reconnects in "dmesg".

> I don't manage to get a connection to the board using Impact. lsusb
> gives me the following:
>
> Bus 005 Device 012: ID 03fd:0008 Xilinx, Inc.
> [...]
> can't get device qualifier: Operation not permitted


What are the permissions on /dev/bus/usb/005/012 (or the current
location of the cable)? This error might show there is a permission
problem. You did add the MODE-line to an udev rules-file?

> and Impact says:
>
> Connecting to cable (Usb Port - USB21).
> Checking cable driver.
> File version of /usr/share/xusbdfwu.hex = 1025(dec), 0401.
> libusb-driver.so version: 2007-10-08 15:43:55.
> Cable connection failed.


If you preload libusb-driver-DEBUG.so instead of libusb-driver.so you
get a much more detailed output, which could tell why impact does not
find the device (which according to your lsusb-output has the correct
firmware loaded).

Regards,
Michael
Reply With Quote
  #3 (permalink)  
Old 11-11-2007, 04:23 PM
roger
Guest
 
Posts: n/a
Default Re: Problem using xilinx usb download cable in linux

On Nov 10, 1:07 pm, Michael Gernoth <[email protected]> wrote:
> Hi,
>
> On Sat, 03 Nov 2007 22:04:14 -0000, roger wrote:
> > I have installed the usb-driver fromhttp://www.rmdir.de/~michael/xilinx
> > and I have managed to light up the green led to the usb download cable
> > on the spartan 3e starter kit. The green led is going black every 6-8
> > second and then green again.

>
> I have not heard of this behaviour previously. For me this seems to
> indicate that the cable gets dis- and reconnected all the time.
> Do you see reoccuring dis-/reconnects in "dmesg".
>
> > I don't manage to get a connection to the board using Impact. lsusb
> > gives me the following:

>
> > Bus 005 Device 012: ID 03fd:0008 Xilinx, Inc.
> > [...]
> > can't get device qualifier: Operation not permitted

>
> What are the permissions on /dev/bus/usb/005/012 (or the current
> location of the cable)? This error might show there is a permission
> problem. You did add the MODE-line to an udev rules-file?
>
> > and Impact says:

>
> > Connecting to cable (Usb Port - USB21).
> > Checking cable driver.
> > File version of /usr/share/xusbdfwu.hex = 1025(dec), 0401.
> > libusb-driver.so version: 2007-10-08 15:43:55.
> > Cable connection failed.

>
> If you preload libusb-driver-DEBUG.so instead of libusb-driver.so you
> get a much more detailed output, which could tell why impact does not
> find the device (which according to your lsusb-output has the correct
> firmware loaded).
>
> Regards,
> Michael


Thanks for the tips! I'll try that out soon.

/Roger

Reply With Quote
  #4 (permalink)  
Old 11-12-2007, 08:52 PM
roger
Guest
 
Posts: n/a
Default Re: Problem using xilinx usb download cable in linux

On Nov 10, 1:07 pm, Michael Gernoth <[email protected]> wrote:
> Hi,
>
> On Sat, 03 Nov 2007 22:04:14 -0000, roger wrote:
> > I have installed the usb-driver fromhttp://www.rmdir.de/~michael/xilinx
> > and I have managed to light up the green led to the usb download cable
> > on the spartan 3e starter kit. The green led is going black every 6-8
> > second and then green again.

>
> I have not heard of this behaviour previously. For me this seems to
> indicate that the cable gets dis- and reconnected all the time.
> Do you see reoccuring dis-/reconnects in "dmesg".
>
> > I don't manage to get a connection to the board using Impact. lsusb
> > gives me the following:

>
> > Bus 005 Device 012: ID 03fd:0008 Xilinx, Inc.
> > [...]
> > can't get device qualifier: Operation not permitted

>
> What are the permissions on /dev/bus/usb/005/012 (or the current
> location of the cable)? This error might show there is a permission
> problem. You did add the MODE-line to an udev rules-file?
>
> > and Impact says:

>
> > Connecting to cable (Usb Port - USB21).
> > Checking cable driver.
> > File version of /usr/share/xusbdfwu.hex = 1025(dec), 0401.
> > libusb-driver.so version: 2007-10-08 15:43:55.
> > Cable connection failed.

>
> If you preload libusb-driver-DEBUG.so instead of libusb-driver.so you
> get a much more detailed output, which could tell why impact does not
> find the device (which according to your lsusb-output has the correct
> firmware loaded).
>
> Regards,
> Michael


Hi Michael,

The permissions on /dev/bus/usb/005/016 is:

crw-rw-r-- 1 root root 189, 512 2007-11-12 18:37 001
crw-rw-rw- 1 root root 189, 527 2007-11-12 21:45 016

from the dmesg output you can see that the cable jumps around between
different buses:

[14746.456000] usb 5-2: new high speed USB device using ehci_hcd and
address 14
[14746.588000] usb 5-2: configuration #1 chosen from 1 choice
[14746.972000] usb 5-2: USB disconnect, address 14
[14748.984000] usb 1-2: new full speed USB device using uhci_hcd and
address 10
[14749.124000] usb 1-2: not running at top speed; connect to a high
speed hub
[14749.148000] usb 1-2: configuration #3 chosen from 1 choice
[14778.480000] usb 1-2: USB disconnect, address 10
[14780.092000] usb 5-2: new high speed USB device using ehci_hcd and
address 16
[14780.224000] usb 5-2: configuration #2 chosen from 1 choice

Any idea why I get this behaviour?

Thanks!

/Roger

Reply With Quote
  #5 (permalink)  
Old 11-12-2007, 11:30 PM
Michael Gernoth
Guest
 
Posts: n/a
Default Re: Problem using xilinx usb download cable in linux

On Mon, 12 Nov 2007 12:52:43 -0800, roger wrote:
> On Nov 10, 1:07 pm, Michael Gernoth <[email protected]> wrote:
>> What are the permissions on /dev/bus/usb/005/012 (or the current
>> location of the cable)? This error might show there is a permission
>> problem. You did add the MODE-line to an udev rules-file?

> The permissions on /dev/bus/usb/005/016 is:
>
> crw-rw-rw- 1 root root 189, 527 2007-11-12 21:45 016


That is ok.

> from the dmesg output you can see that the cable jumps around between
> different buses:
>
> [14746.456000] usb 5-2: new high speed USB device using ehci_hcd and
> address 14
> [14748.984000] usb 1-2: new full speed USB device using uhci_hcd and
> address 10
> [14780.092000] usb 5-2: new high speed USB device using ehci_hcd and
> address 16
>
> Any idea why I get this behaviour?


There is probably a problem communicating at USB 2.0 with the cable and
it falls back to USB 1.1 but then gets reconnected to the 2.0 hub.
Try 'rmmod ehci_hcd' (as root) which disables the USB 2.0 part and see
if it is stable at USB 1.1. If it is, try swapping the USB A-B cable.

Regards,
Michael
Reply With Quote
  #6 (permalink)  
Old 11-21-2007, 02:36 PM
Ken Ryan
Guest
 
Posts: n/a
Default Re: Problem using xilinx usb download cable in linux

roger wrote:
> On Nov 10, 1:07 pm, Michael Gernoth <[email protected]> wrote:
>> Hi,
>>
>> On Sat, 03 Nov 2007 22:04:14 -0000, roger wrote:
>>> I have installed the usb-driver fromhttp://www.rmdir.de/~michael/xilinx
>>> and I have managed to light up the green led to the usb download cable
>>> on the spartan 3e starter kit. The green led is going black every 6-8
>>> second and then green again.

>> I have not heard of this behaviour previously. For me this seems to
>> indicate that the cable gets dis- and reconnected all the time.
>> Do you see reoccuring dis-/reconnects in "dmesg".
>>
>>> I don't manage to get a connection to the board using Impact. lsusb
>>> gives me the following:
>>> Bus 005 Device 012: ID 03fd:0008 Xilinx, Inc.
>>> [...]
>>> can't get device qualifier: Operation not permitted

>> What are the permissions on /dev/bus/usb/005/012 (or the current
>> location of the cable)? This error might show there is a permission
>> problem. You did add the MODE-line to an udev rules-file?
>>
>>> and Impact says:
>>> Connecting to cable (Usb Port - USB21).
>>> Checking cable driver.
>>> File version of /usr/share/xusbdfwu.hex = 1025(dec), 0401.
>>> libusb-driver.so version: 2007-10-08 15:43:55.
>>> Cable connection failed.

>> If you preload libusb-driver-DEBUG.so instead of libusb-driver.so you
>> get a much more detailed output, which could tell why impact does not
>> find the device (which according to your lsusb-output has the correct
>> firmware loaded).
>>
>> Regards,
>> Michael

>
> Hi Michael,
>
> The permissions on /dev/bus/usb/005/016 is:
>
> crw-rw-r-- 1 root root 189, 512 2007-11-12 18:37 001
> crw-rw-rw- 1 root root 189, 527 2007-11-12 21:45 016
>
> from the dmesg output you can see that the cable jumps around between
> different buses:
>
> [14746.456000] usb 5-2: new high speed USB device using ehci_hcd and
> address 14
> [14746.588000] usb 5-2: configuration #1 chosen from 1 choice
> [14746.972000] usb 5-2: USB disconnect, address 14
> [14748.984000] usb 1-2: new full speed USB device using uhci_hcd and
> address 10
> [14749.124000] usb 1-2: not running at top speed; connect to a high
> speed hub
> [14749.148000] usb 1-2: configuration #3 chosen from 1 choice
> [14778.480000] usb 1-2: USB disconnect, address 10
> [14780.092000] usb 5-2: new high speed USB device using ehci_hcd and
> address 16
> [14780.224000] usb 5-2: configuration #2 chosen from 1 choice
>
> Any idea why I get this behaviour?
>
> Thanks!
>
> /Roger
>


Where are you plugged in? It sounds as if you are on a port that isn't
giving enough power (not that the cable needs much).

If you aren't already, try plugging into the USB ports on the back of
the machine that are directly part of the mainboard or I/O board. Often
the front-panel ports are underpowered, and hubs just make it worse.

Plugging into a hub with an AC adapter would help if this is the case also.

ken
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
why my usb cable can established,but can't download??? xilinx luu FPGA 1 07-28-2007 12:18 PM
Xilinx USB download cable Markus Fras FPGA 5 01-27-2007 10:13 PM
help on Xilinx USB download cable SunLei FPGA 2 01-03-2007 07:19 AM
Xilinx PC4 Download Cable sonne123 FPGA 0 08-29-2005 08:22 AM
Xilinx PC4 Download Cable sonne123 FPGA 0 08-29-2005 08:21 AM


All times are GMT +1. The time now is 07:13 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved