- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
digilent spartan-3e idproduct/ udev problems
[ Edited ]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-28-2010 05:47 AM - edited 08-28-2010 06:21 AM
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.
Solved! Go to Solution.
Re: digilent spartan-3e idproduct/ udev problems
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-28-2010 09:39 AM
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"











