Installation of Xilinx ISE 8.1 under Linux (Kernel 2.6.16)ContentPreface
This guide is based on the article Installing Xilinx Webpack 8.1i (or ISE Foundation 8.1i) on debian 3.1. System configuration: Linux Debian with kernel 2.6.16, self compiled.
The following websites provide further useful information: If you have any questions, suggestions or solutions, please send me a mail. Installation of Xilinx ISE/EDK under DebianInstall WinDriver and Xilinx driver
In the meantime Xilinx provides a source packet specially for the kernel 2.6 to compile the drivers yourself. This makes the task much easier and faster, since you don't have to register with jungo anymore.
Here the short guide. Change into a directory where the sources should be extracted and execute the following commands in case of kernel 2.6.16:
dmesg ends with the above, then the module is working correctly. In any other case you should consider the websites cited at the top of the page to solve the problem.Using modprobe windrvr6 you can load the module anytime.Now we compile xpc4drvr:
Register device at hotplug
setup_pcusb failed to work on my system, therefore I did some modifications. Regrettably I don't remember what the modifications where.If you want to put the XUP-board into operation using ISE 7.1, you should in accordance with the following article incorporate a small modification into /etc/hotplug/usb.usermap . I am not sure if this is still necessary with ISE 8.1, but in any case it seems not harmful. In particular you have to set the value of idProduct from 0x0007 to 0x0009 . Maybe this is superfluous in newer versions of ISE.Then I have restarted hotplug .
xusbdfwu: loaded successfully
Interestingly the Product id of the XUP board changes from 0x0009 to 0x0008 (verifiable with lsusb ). And without this change the USB data transfer does not work for me.
USB transfer in iMPACT
iMPACT can be started directly (
path_to_ise_installation/bin/lin/impact ) or from ISE.After system restart you have to load both driver modules to be able to use USB transfer in iMPACT. Because this was not enough in my case, I have tried several combinations to find out in which order the modules have to be unloaded and loaded. And this USB init scipt is the result (adjust red markings):
#!/bin/bash
After running the script the USB transfer should work. The best way to test whether the board is reachable is to select Cable Auto Connect in the menu Output. If the connection could not be established, you can look into the log of iMPACT by clicking View->View Log File. Here you can get useful information like...
Connecting to cable (Usb Port - USB21).
Connecting to cable (Usb Port - USB21).
If you are working with the EDK, then the fastest way to perform the USB transfer is to run make -f system.make download from your project directory. In advance you have to run the Xilin setup scripts in order to setup the PATH variable for iMPACT and the other programs. The following script settings.sh does the job:
#!/bin/bash
. settings.sh and everything will be configured. The dot may not be left out. It guaranties that the variables, set by the script, are taken over by the shell.Note: You can use lsusb to list all attached USB devices. Since I use the XUP board, it gives me the following output:
Bus 002 Device 008: ID 03fd:0008 Xilinx, Inc.
lsusb . It seems that the board switches itself off after some idle time. Then it helps to turn it off and on again. Afterwards lsusb should list it again.
FAQ
Q:
When running
./setup I get the following error message:
A:
libXm.so.3 is within the Debian package libmotif3 (apt-get install libmotif3 libcurl3 ).
Q:
When running
make -f system.make download I get the following error message:
A:
The system variables are not set. You can call
. settings.sh
to solve the problem.
For further questions the website FPGA-FAQ: How to get the Xilinx parallel cable to work on Linux kernels 2.6.x may be useful.
|