Changes

Jump to: navigation, search

MicroBlaze

3,658 bytes added, 21:39, 9 February 2010
no edit summary
=Setting Up Xilinx Utilities=
{{Template:Version|Xubuntu 9.10 running on a VMware player virtual machine}}
 
Note that some utilities such as 'impact' are capable of using the libusb driver, while others such as 'xmd' must use the libusb-driver driver. libusb-0.1.4 is installed generally by default in *ubuntu distributions and should be available (but the udev magic still has to happen for the cable to work). In this install, we specify use of the libusb-driver by adding some lines in /opt/Xilinx/11.1/settings32.sh
 
==Operating System==
* Install Xubuntu virtual machine
* Update OS
* Reboot (to load latest kernel)
 
===Re-Install VMware tools===
<pre>
sudo apt-get install build-essential linux-headers-`uname -r` psmisc
</pre>
 
(Install VMWare tools through host menu)
 
Unzip tarball from /mnt/cdrom (or cdrom1) to local dir (such as ~/):
<pre>
cd ~/vmware-tools-distrib
sudo ./vmware-install.pl
</pre>
 
Select all default options, allow the program to launch vmware-toolbox
 
Add the following to /etc/rc.local (then sudo chmod +x /etc/rc.local):
<pre>
/usr/bin/vmware-user &
</pre>
 
Add the following to /etc/fstab:
<pre>
.host:/ /mnt/hgfs vmhgfs user,defaults 0 0
</pre>
 
Reboot (Verify any shared folders are now mounted on /mnt/hgfs) (Verify vmware-user is running with: <code>ps ax | grep vmware</code>)
 
===Supporting Libraries===
Install libusb:
<pre>
sudo apt-get install libusb-0.1-4
</pre>
 
Install fxload:
<pre>
sudo apt-get install fxload
</pre>
 
==Xilinx Tool Installation==
Install Xilinx ISE Webpack (do '''not''' install cable drivers or XilinxUpdate), then run the following commands:
<pre>
sudo sed /opt/Xilinx/11.1/ISE/bin/lin/xusbdfwu.rules -e 's:TEMPNODE:tempnode:g' > /etc/udev/rules.d/xusbdfwu.rules
 
sudo cp /opt/Xilinx/11.1/ISE/bin/lin/xusb*.hex /usr/share/
 
sudo restart udev
</pre>
**Note, for the first command you may receive a permissions error. Try the command "sudo su" to get a root shell then run the same command sans 'sudo'
 
* Plug in the Spartan 3E board. Apply power and attach the USB cable between the board and computer. If everything has been done successfully, a greed LED will illuminate next to the USB receptacle on the boad. If unsuccessful, the red LED will be dimly lit.
 
* Install the Xilinx EDK (SDK and Chipscope if required)
 
===Installing the libusb-driver===
Install libusb-dev and git:
<pre>
sudo apt-get install libusb-dev git-core
</pre>
 
Download libusb-driver sources:
<pre>
cd ~/
git clone git://git.zerfleddert.de/usb-driver
</pre>
 
Compile and install libusb driver
<pre>
cd usb-driver/
make
make lib32
sudo cp libusb-drive.so /usr/local/lib/
</pre>
 
Create a script in /etc/profile.d/ with the following contents:
<pre>
#!/bin/bash
export PATH="$PATH/opt/Xilinx/EDK/bin/lin:/opt/Xilinx/11.1/EDK/gnu/microblaze/lin/bin/:/opt/Xilinx/11.1/SDK/bin/lin:/opt/Xilinx/11.1/ISE/bin/lin"
</pre>
 
Make the script executable:
<pre>
sudo chmod +x /etc/profile.d/xlilnx-settings.sh
</pre>
 
Add the following lines to /opt/Xilinx/11.1/settings32.sh just after list=""
<pre>
export XIL_IMPACT_USE_LIBUSB=0
export LD_PRELOAD=/usr/local/lib/libusb-driver.so
</pre>
16) Prior to launching a Xilinx tool (such as xmd), you must type the following command:
<pre>
source /opt/Xilinx/11.1/settings32.sh
</pre>
 
Sources and Other Contributors:
Via (VTLUUG member)
[http://forums.xilinx.com/xlnx/board/message?board.id=INSTALLBD&message.id=825 forums.xilinx.com]
[http://wiki.archlinux.org/index.php/Xilinx_ISE_WebPACK wiki.archlinux.org]
 
=Makefile Tricks=
==Automatic Download==
Anonymous user

Navigation menu