Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Newbie
bast
Posts: 2
Registered: ‎08-28-2010
0
Accepted Solution

digilent spartan-3e idproduct/udev problems

[ Edited ]

I wanted to try the digilent spartan-3e kit that on my linux machine. So I installed the complete toolkit (including drivers). But my machine doesn't recognize the board. After a bit of trial and error if found out that the idproduct changes.

 

When i turn the board off, plug it in to my linux machine and turn it on.

lsusb: Bus 001 Device 019: ID 03fd:000d Xilinx, Inc.

 

When i do the same on windows(on my laptop)

USB\VID_03FD&PID0008.

 

So windows sees 0008 and linux 000d.

 

If i swap from windows to linux, without toggleing the power, linux also sees

0008 Bus 001 Device 020: ID 03fd:0008 Xilinx, Inc.

 

The board works fine till i toggle the power. Then i first have to connect it to windows to get it running again.

 

udev: [ 2636.995234] usb 1-1.2: USB disconnect, address 18

[ 2637.704266] usb 1-1.2: new high speed USB device using ehci_hcd and address 19

[ 2637.796389] usb 1-1.2: New USB device found, idVendor=03fd, idProduct=000d

[ 2637.796394] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

[ 2637.796521] usb 1-1.2: configuration #1 chosen from 1 choice

[ 2651.843669] usb 1-1.2: USB disconnect, address 19

[ 2984.704298] usb 1-1.3: new high speed USB device using ehci_hcd and address 20

[ 2984.796788] usb 1-1.3: New USB device found, idVendor=03fd, idProduct=0008

[ 2984.796793] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[ 2984.796796] usb 1-1.3: Product: XILINX

[ 2984.796798] usb 1-1.3: Manufacturer: XILINX

[ 2984.796922] usb 1-1.3: configuration #2 chosen from 1 choice

 

I have almost zero experience with udev, so i don't really know where i have to look.

Newbie
bast
Posts: 2
Registered: ‎08-28-2010
0

Re: digilent spartan-3e idproduct/udev problems

I fixed it.

 

There were some problems with the udev rules. The rules are for older versions of udev. The way i found out.

[code]

sudo udevadm control --log-priority=debug  # set the log to debug

sudo tail -f -n100 /var/log/daemon.log # tail the log

[/code]

The log file stated that there were some problemes with the udev rules.  The rules have to be like this:

 

SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="03fd", ATTRS{idProduct}=="0015", RUN+="/sbin/fxload -v -t fx2 -I /usr/share/xusb_xse.hex -D $tempnode"

 

instead of:

 

BUS=="usb", ACTION=="add", SYSFS{idVendor}=="03fd", SYSFS{idProduct}=="0015", RUN+="/sbin/fxload -v -t fx2 -I /usr/share/xusb_xse.hex -D $TEMPNODE"