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

Re: [microblaze-uclinux] [OT] Install ISE on Linux



Hi,

Thanks for this interesting thread. I've successfully installed it on a
Ubuntu with ISE tools 8.2sp3. 

The instructions in the README were very helpful. However because I
couldn't get it to work immediately I've added my flow here:

1) download the source
2) make the library with 
$ make
3) cp the library to the /user/local/lib directory (or any other lib
directory)
4) Making sure your linker substitutes the new module for the windrvr6
$ export LD_PRELOAD=/usr/local/lib/libusb-driver.so
5) Make a new udev rule set file
$ sudo vi /etc/udev/50-xilinx-usb-pav.rules    # a new file with
arbitrary name ("50" is recommended) 
6) paste the following into this file, and save it
ACTION=="add", BUS=="usb", SYSFS{idVendor}=="03fd", MODE="666" 
7) restart udev with:
$ /etc/init.d/udev restart
8) Get the usb bus and number
$ lsusb | grep Xilinx # note the bus and number (in my case 002 and 004
respec.)
9) if the output for previous lsusb command doesn't say 03fd:0008 (in my
case this was 03fd:0009) then update the firmware with the command: 
sudo /sbin/fxload -v -t fx2 -I /home/pav/Xilinx/bin/lin/xusbdfwu.hex -D /proc/bus/usb/002/004 
# edit the last two numbers to represent the usb bus and number from the lsusb command
# this is in fact the only part I couldn't get to work immediately from the instructions in README
10) Start impact and let it update the firmware (went ok using firmware version 1021)
11) Restart impact and set cable to usb
12) Failed to connect to usb cable

If the above doesn't work for you then:

13) Downloaded firmware version 1025 at url: ftp://ftp.xilinx.com/pub/utilities/fpga/xusbdfwu-1025.zip
14) Use new firmware version
$ sudo /sbin/fxload -v -t fx2 -I /home/pav/Xilinx/bin/lin/xusbdfwu.hex -D /proc/bus/usb/002/004  
(make sure this pounts to the newly downloaded firmware version in the xusbdfwu.hex file)
15) Restart Impact, init chain went well, but programming failed
16) enabled the "pulse prog" in properties of the Virtex-II FPGA

Finally my Ubuntu successfully programmed my Xilinx Virtex-II FPGA on a XUPVIIPRO board ;)
I hope the above info was useful, and doesn't mess up your system (I'm still a newbie)... 
anyway I posted it because it's a trail I can use next time.

Best regards,
Paul


On Tue, 2007-03-27 at 02:10 +0200, Vova Suplin wrote: 
> On 3/21/07, John Williams <jwilliams@xxxxxxxxxxxxxx> wrote:
> > Hi Jose,
> >
> > Jose Torres wrote:
> > > Perhaps John can respond to whether or not it would be appropriate to
> > > post some instructions on how to install ISE & EDK on Ubuntu? I have
> > > been using CentOS and I have found that it has been lacking as to
> > > compared to other distros such as Gentoo or Ubuntu.
> >
> > If you have some instructions on installing Xilinx tools under Ubuntu
> > then please feel free to post them here.  If you are willing, I would
> > also be happy to add it to our existing page
> >
> > http://developer.petalogix.com/wiki/Other/XilinxOnLinux
> >
> > with an appropriate acknowledgment of course.  If you want to host it
> > yourself, I can just add a link - whichever you prefer.
> >
> > Our reasoning for recommending CentOS is simply that it clones RHEL,
> > which is Xilinx's officially supported Linux distro.  It has been our
> > experience that this minimises pain in using Xilinx tools under Linux.
> >
> > However a side effect of this is the fact that we inherit RHEL's "deep
> > freeze" philosophy regarding kernel and software package versions, among
> > other things.  Some RHEL packages are ancient - if it's critical you can
> > just remove them with Yum, then download/build a more recent version and
> > install it into /usr/local.
> >
> >
> > Cheers,
> >
> > John
> > ___________________________
> > microblaze-uclinux mailing list
> > microblaze-uclinux@xxxxxxxxxxxxxx
> > Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> > Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> >
> >
> 
> Hi All.
> 
> Very interesting thread on comp.arch.fpga
> 
> http://groups.google.com/group/comp.arch.fpga/browse_thread/thread/f149e5b6028e2c70/0299632e8eca7dfd?tvc=2#0299632e8eca7dfd
> 
> This is the first mail from there:
> 
> 
> Newsgroups: comp.arch.fpga
> From: Michael Gernoth <m...@xxxxxxxxxxx>
> Date: Sun, 25 Feb 2007 01:22:36 +0000 (UTC)
> Local: Sun, Feb 25 2007 3:22 am
> Subject: Xilinx Platform cable USB and impact on linux without windrvr
> Reply | Reply to author | Forward | Print | Individual message | Show
> original | Report this message | Find messages by this author
> 
> 
> Hello,
> after being bitten by windrvr once again (it did not compile after a
> kernel upgrade), I decided to see if I could get the Xilinx USB cable
> and impact working without a kernel module.
> To achieve this, I have written a wrapper library for impact which
> maps calls to windrvr to the userspace libusb-library which should be
> available on all modern linux distributions.
> 
> With this wrapper I am able to program a XC3S1500 in 2 seconds, which
> is the same time it takes when using windrvr.
> The library has been developed and solely tested against impact from
> ISE Webpack 9.1i SP1 and will very likely not work with older versions
> (pre 9.1i).
> 
> The library source can be downloaded at:
> http://cvs.zerfleddert.de/cgi-bin/viewcvs.cgi/usb-driver.tar.gz?view=tar
> or browsed at:
> http://cvs.zerfleddert.de/cgi-bin/viewcvs.cgi/usb-driver/
> 
> I have also put a precompiled version (built on Debian Etch) at:
> http://www.rmdir.de/~michael/xilinx/
> 
> Please report back if this library is useful and works for you.
> Maybe this helps XILINX to decide that they do not need to use windrvr
> for easy USB access, as most parts of my library are only there to
> provide a compatible replacement for windrvr functions and are not
> needed when directly accessing libusb from within an application
> program.
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> 

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/