Ubuntu: Difference between revisions
imported>Cov |
imported>Jagged No edit summary |
||
| Line 56: | Line 56: | ||
=Customize Your Desktop= | =Customize Your Desktop= | ||
While not necessary, the [[Desktop customization|desktop customization guide]] may improve your desktop experience. | While not necessary, the [[Desktop customization|desktop customization guide]] may improve your desktop experience. | ||
=Set Up Xilinx Utilities= | |||
This tutorial was created and tested with Xubuntu 9.10 running on a VMware player virtual machine. | |||
1) Install Xubuntu virtual machine<br /> | |||
2) Update OS<br /> | |||
3) Reboot (to load latest kernel)<br /> | |||
3) 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 | |||
4) Add the following to /etc/rc.local (then sudo chmod +x /etc/rc.local) | |||
<pre> | |||
/usr/bin/vmware-user & | |||
</pre> | |||
5) Add the following to /etc/fstab: | |||
<pre> | |||
.host:/ /mnt/hgfs vmhgfs user,defaults 0 0 | |||
</pre> | |||
6) Reboot (Verify any shared folders are now mounted on /mnt/hgfs) (Verify vmware-user is running with: ps ax | grep vmware ) | |||
6) Verify install of libusb: | |||
<pre> | |||
sudo apt-get install libusb-0.1-4 | |||
</pre> | |||
7) Install fxload: | |||
<pre> | |||
sudo apt-get install fxload | |||
</pre> | |||
8) Install Xilinx ISE Webpack (Do NOT install cable drivers or XilinxUpdate) | |||
9) 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' | |||
10) 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. | |||
11) Install the Xilinx EDK (SDK and Chipscope if required)<br /> | |||
12) Install the libusb-driver | |||
<ul> | |||
<li> Install libusb-dev and git</li> | |||
<pre> | |||
sudo apt-get install libusb-dev git-core | |||
</pre> | |||
<li>Download libusb-driver sources</li> | |||
<pre> | |||
cd ~/ | |||
git clone git://git.zerfleddert.de/usb-driver | |||
</pre> | |||
<li>Compile and install libusb driver</li> | |||
<pre> | |||
cd usb-driver/ | |||
make | |||
make lib32 | |||
sudo cp libusb-drive.so /usr/local/lib/ | |||
</pre></ul> | |||
13) 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> | |||
14) Make the script executable: | |||
<pre> | |||
sudo chmod +x /etc/profile.d/xlilnx-settings.sh | |||
</pre> | |||
15) 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 command: | |||
<pre> | |||
source /opt/Xilinx/11.1/settings32.sh | |||
</pre> | |||
Sources and Other Contributors:<br /> | |||
Via (vtluug member)<br /> | |||
[http://forums.xilinx.com/xlnx/board/message?board.id=INSTALLBD&message.id=825] forums.xilinx.com <br /> | |||
[http://wiki.archlinux.org/index.php/Xilinx_ISE_WebPACK] wiki.archlinux.org <br /> | |||
[[Category:Linux distributions]] | [[Category:Linux distributions]] | ||
[[Category:Howtos]] | [[Category:Howtos]] | ||