www.ShoppingPodder.com

Leading Computer Shopping,
News and information


Part of the Identityscape.com network...

getxfactor.com jmoodmusic.com smartbusinesschoices.com mintdepot.com lowfaresalways.com evangelicalview.com shoppingpodder.com soproudlywehail.com webnews.ws currenthumor.com

 

 

Xilinx-3E Starter Kit - USB connection with Linux
   Shopping Podder - the Best of Computer Postings! Forum Index -> Computer Architecture - FPGA  
View previous topic :: View next topic  
Author Message
JohnOD
Guest






PostPosted: Mon Nov 17, 2008 4:35 pm    Post subject: Xilinx-3E Starter Kit - USB connection with Linux Reply with quote

I'm trying to get a Xilinx Spartan-3E Starter Kit to work with a Linux
computer (Fedora 9), using ISE 10.1. The problem is that Impact
doesn't recognise the USB cable.

First I tried installing ISE 10.1 with the "install cable drivers" box
unchecked, because the installer says these drivers require RHEL
(which I don't use) and root privilege (which I'm reluctant about).
However, when this didn't work, I re-installed ISE 10.1 with that box
checked, running in root mode. The result of this is:

-- Impact still doesn't recognise the USB cable
-- The Xilinx installer software took advantage of root privilege to
trash my Linux system (it deleted or moved links to glibc, and now
lots of other software is breaking)

So, while I'm reinstalling Linux, does anyone have any suggestions on
how to get the USB driver installed? Why can't Xilinx provide working
software? I need a solution that doesn't involve granting root
privilege to any software that comes from Xilinx.

Thanks for any help!
John
Back to top
Michael Brown
Guest






PostPosted: Tue Nov 18, 2008 12:44 am    Post subject: Re: Xilinx-3E Starter Kit - USB connection with Linux Reply with quote

JohnOD wrote:
Quote:
I'm trying to get a Xilinx Spartan-3E Starter Kit to work with a Linux
computer (Fedora 9), using ISE 10.1.
[...]
So, while I'm reinstalling Linux, does anyone have any suggestions on
how to get the USB driver installed? Why can't Xilinx provide working
software? I need a solution that doesn't involve granting root
privilege to any software that comes from Xilinx.

See:
http://rmdir.de/~michael/xilinx/
and
http://www.xilinx.com/support/answers/29310.htm

I couldn't get it working on a Debian box, but Fedora is much closer to RHEL
than Debian is so there's a pretty good chance it'll take. As for the
software quality problem, Xilinx appear to put more resources into new
features rather than fixing existing problems (or bug testing, for that
matter). An attitude that's far from unique to Xilinx, it should be said,
and probably because there's a limited budget for software and "231 bugs
fixed" is much harder to sell than "10 new features added".

--
Michael Brown
Add michael@ to emboss.co.nz ---+--- My inbox is always open
Back to top
Guest







PostPosted: Tue Nov 18, 2008 4:08 am    Post subject: Re: Xilinx-3E Starter Kit - USB connection with Linux Reply with quote

On Nov 18, 7:44 am, "Michael Brown" <s...@signature.below> wrote:
Quote:
JohnOD wrote:
I'm trying to get a Xilinx Spartan-3E Starter Kit to work with a Linux
computer (Fedora 9), using ISE 10.1.
[...]

See:http://rmdir.de/~michael/xilinx/
[...]

I couldn't get it working on a Debian box, but Fedora is much closer to RHEL
than Debian is so there's a pretty good chance it'll take.

I have successfully got Xilinx 9.2i working on Fedora 8 with the cable
driver given in the first link Michael posted. I've been keeping a
note of how I got such things working in case I need to reinstall.
I've copied the relevant commands below - they should be similar if
not identical for F9 and ISE 10.1. You will need to be the root user
in order to run a number of these commands.

----------------------------------------

Build and move the cable driver:
tar -xzf usb-driver-HEAD.tar.gz
cd usb-driver
make
cp libusb-driver.so /usr/local/lib

Make sure the fxload package is installed (if it is the executable /
sbin/fxload will exist). Setup udev and allow cable firmware to be
updated (this does the actions in the 'Notes for the USB cable'
section of the USB driver readme). Substitute path to Xilinx as
appropriate:
cd /opt/Xilinx92i/bin/lin
source ./setup_pcusb

If you had a programming cable already plugged in, unplug it and plug
it back in again so these changes take effect. You can check this by
running /sbin/lsusb which should give the cable ID as 03fd:0008.
Create a startup script, based upon the Xilinx-provided script, to
load the cable driver prior to starting ISE:

cp /opt/Xilinx92i/settings.sh /usr/local/bin/startise
echo "export LD_PRELOAD=/usr/local/lib/libusb-driver.so" >> /usr/local/
bin/startise
echo "exec ise" >> /usr/local/bin/startise
chmod +x /usr/local/bin/startise

You should now be able to run ISE as a regular user with the command
'startise'.

----------------------------------------

Hope this information helps you.

Blair
Back to top
h.e.
Guest






PostPosted: Tue Nov 18, 2008 9:01 am    Post subject: Re: Xilinx-3E Starter Kit - USB connection with Linux Reply with quote

manual prelinking with libusb is not needed anymore with 10.1.
there is a environment variable to make ise/impact/chipscope/...
automatically use libusb instead of windrvr6
see http://www.xilinx.com/support/answers/29310.htm


Quote:
If you had a programming cable already plugged in, unplug it and plug
it back in again so these changes take effect. You can check this by
running /sbin/lsusb which should give the cable ID as 03fd:0008.

03fd:0008 is for DLC9
DLC10 needs 03fd:0013
just copy the xusbdfwu.rules from your xilinx directory to your udev
rules.d directory...

Quote:

cp /opt/Xilinx92i/settings.sh /usr/local/bin/startise
echo "export LD_PRELOAD=/usr/local/lib/libusb-driver.so" >> /usr/local/
bin/startise
echo "exec ise" >> /usr/local/bin/startise
chmod +x /usr/local/bin/startise

You should now be able to run ISE as a regular user with the command
'startise'.

----------------------------------------

Hope this information helps you.

Blair
Back to top
JohnOD
Guest






PostPosted: Tue Nov 18, 2008 3:15 pm    Post subject: Re: Xilinx-3E Starter Kit - USB connection with Linux Reply with quote

Many thanks to all three of you who replied... all of your answers
were helpful,
and I managed to get it working. (This was a Spartan-3E Starter Kit
working
on Fedora 9.)

I really appreciate the time you took. Never would have managed it
without
your help!

Cheers,
John


On Nov 18, 4:08 am, blair.bonn...@gmail.com wrote:
Quote:
On Nov 18, 7:44 am, "Michael Brown" <s...@signature.below> wrote:

JohnOD wrote:
I'm trying to get a Xilinx Spartan-3E Starter Kit to work with a Linux
computer (Fedora 9), using ISE 10.1.
[...]

See:http://rmdir.de/~michael/xilinx/
[...]

I couldn't get it working on a Debian box, but Fedora is much closer to RHEL
than Debian is so there's a pretty good chance it'll take.

I have successfully got Xilinx 9.2i working on Fedora 8 with the cable
driver given in the first link Michael posted. I've been keeping a
note of how I got such things working in case I need to reinstall.
I've copied the relevant commands below - they should be similar if
not identical for F9 and ISE 10.1. You will need to be the root user
in order to run a number of these commands.

----------------------------------------

Build and move the cable driver:
tar -xzf usb-driver-HEAD.tar.gz
cd usb-driver
make
cp libusb-driver.so /usr/local/lib

Make sure the fxload package is installed (if it is the executable /
sbin/fxload will exist). Setup udev and allow cable firmware to be
updated (this does the actions in the 'Notes for the USB cable'
section of the USB driver readme). Substitute path to Xilinx as
appropriate:
cd /opt/Xilinx92i/bin/lin
source ./setup_pcusb

If you had a programming cable already plugged in, unplug it and plug
it back in again so these changes take effect. You can check this by
running /sbin/lsusb which should give the cable ID as 03fd:0008.
Create a startup script, based upon the Xilinx-provided script, to
load the cable driver prior to starting ISE:

cp /opt/Xilinx92i/settings.sh /usr/local/bin/startise
echo "export LD_PRELOAD=/usr/local/lib/libusb-driver.so" >> /usr/local/
bin/startise
echo "exec ise" >> /usr/local/bin/startise
chmod +x /usr/local/bin/startise

You should now be able to run ISE as a regular user with the command
'startise'.

----------------------------------------

Hope this information helps you.

Blair
Back to top
Display posts from previous:   
   Shopping Podder - the Best of Computer Postings! Forum Index -> Computer Architecture - FPGA  
Page 1 of 1
All times are GMT

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum