Installation of Xilinx ISE/EDK for Redhat 4.0
Prerequisites
You will need to build the USB drivers for the Xilinx Platform Cable USB device, hence, you must have the kernel headers/sources for your system available.
Note: Red Hat 4 does not come with a kernel sources rpm. You can install the kernel headers with the kernel-devel-2.6.9-34.EL rpm.
Install ISE
Mount up the CD and run the installer to install ISE.
# mount /dev/cdrom /mnt/cdrom
# cd /mntrom
# ./setup
Select /opt/xilinx for the destination directory.
If you don't work with Red Hat
Install EDK
# mount /dev/cdrom /mnt/cddrom
# cd /mnt/cdrom
# ./setup
Select /opt/edk for the destination directory.
Apply ISE patch
# unzip 8_1_03i_lin.zip
# ./setup
Apply EDK patch
# unzip EDK_8_1_02i_lin.zip
# ./setup
Apply Final ISE patch
# cp ise_81i_ip_update1.zip /opt/Xilinx
# cd /opt/Xilinx
# unzip ise_81i_ip_update.zip
Create Script/Setup Files
Next, we need to create a script or two. Don’t forget to chmod +x these scripts.
start_ise.sh
Creat a start_ise.sh script. This script will initialize the variables and create a personal .xilinx directory for you.
#!/bin/bashXILINX_DIR=/opt/xilinxXILINX_USER_DIR=~/.xilinxif [ ! -d ${XILINX_USER_DIR} ]; thenmkdir ${XILINX_USER_DIR}ficd ${XILINX_USER_DIR}. ${XILINX_DIR}/settings.sh${XILINX_DIR}/bin/lin/ise
start_edk.sh
Create a start_edk.sh script. This script will initialize the variables and create a personal .xilinx directory for you.
#!/bin/bash
# start_edk.sh
#
XILINX_DIR=/opt/xilinxEDK_DIR=/opt/edkXILINX_USER_DIR=~/.xilinx
if [ ! -d ${XILINX_USER_DIR} ]; thenmkdir ${XILINX_USER_DIR}ficd ${XILINX_USER_DIR}. ${XILINX_DIR}/settings.sh. ${EDK_DIR}/setup.sh${EDK_DIR}/bin/lin/xps
setup.sh
Create a file in /opt/edk named setup.sh and place the following text in it:
# /opt/edk/setup.sh
export XILINX_EDK=/opt/edkexport LD_LIBRARY_PATH=${XILINX_EDK}/bin/lin:${LD_LIBRARY_PATH}export PATH=${XILINX_EDK}/bin/lin:${XILINX_EDK}/gnu/microblaze/lin/bin:\${XILINX_EDK}/gnu/powerpc-eabi/lin/bin:${PATH}
Install WinDriver and Xilinx driver
Download the WinDriver package from Xilinx:
ftp://ftp.xilinx.com/pub/utilities/M1_workstation/linuxdrivers.2.6.tar.gz
Fedora 6 Note: You will have to create a /usr/src/linux link to your kernel source. In my case it was:
# ln –s /usr/src/linux /usr/src/kernels/2.6.18-1.2798.fc6-i586
# tar zxvf linuxdrivers.2.6.tar.gz
# cd linuxdrivers.2.6
# cd windrvr
# ./configure
# make
# make install
# dmesg
If you see the following line, then you have installed the driver correctly:
[...] WinDriver v7.00 Jungo (c) 1997 - 2005 Build Date: Apr 26 2005 X86 loaded
To load the driver:
# modprobe windrvr6
Next, build the xpc4drvr driver:
# cd ..
# cd xpc4drvr
# ./configure
# make
# make install
You will receive the following error:
Loading /lib/modules/2.6.16/kernel/drivers/misc/xpc4drvr.koERROR: Module xpc4drvr does not exist in /proc/modules
# depmod
Register the drivers with USB hotplug system
# cd path_to_ise_installation/bin/lin/
# touch /etc/hotplug/usb.usermap
# sh setup_pcusb
Troubleshooting
If you are having problems connecting and downloading, follow the next steps:
1. Login with root permission and open a terminal.
2. Verify that the "windrvr6" module is loaded and running.
cat /proc/modules
If it is installed, the "windrvr6" module will appear in the generated list. If the module is not loaded, refer to (Xilinx Answer 22648) for instructions on how to install and load the module.
3. Change the current directory to "<InstallDir>/bin/lin", where "<InstallDir>" is the location of the previously installed Xilinx design tools:
cd <InstallDir>/bin/lin
4. Download the "xusbdfwu.hex" firmware file from the following link to this directory:
ftp://ftp.xilinx.com/pub/utilities/fpga/xusbdfwu-1025.zip
5. Disconnect the USB cable from the PC.
6. Enter the following command to run the installation script:
source ./setup_pcusb
7. Reconnect the USB cable.
Finished
Reboot. All of the software is installed and configured.
# ~/start_driver.sh
# ~/start_edk
The Xilinx JTAG box should now have an amber light on (or green if the board is attached and powered).
Labels: Consulting, Embedded, Linux