imported>Pew |
imported>Pew |
Line 1: |
Line 1: |
− | =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 <code>sudo chmod +x /etc/rc.local</code>):
| |
− | <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 <code>sudo su</code> 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 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 <code>list=""</code>
| |
− | <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>
| |
− |
| |
− | *Note if you wish to create a launcher in the desktop environment, use the following format for the 'command' and it will automatically source the settings32.sh before launching the application:
| |
− | <pre>
| |
− | /bin/bash -c 'source /opt/Xilinx/11.1/settings32.sh && ise'
| |
− | </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==
| |
− | This automatically downloads your program to the Spartan board after
| |
− | building. It assumes $(NAME).elf is the file you'd like to download.
| |
− | Note that you will probably miss warning messages regarding your code
| |
− | so you might want to first run make normally.
| |
− |
| |
− | <pre>dl: $(NAME).elf
| |
− | echo 'dow $(NAME).elf' > xmd.ini
| |
− | echo 'run' >> xmd.ini
| |
− | xmd
| |
− | rm xmd.ini
| |
− | </pre>
| |
− | When you're done, type <code>exit</code> to quit xmd.
| |
− |
| |
− | ==Automatic Debug==
| |
− | <pre>debug: $(NAME).elf
| |
− | mb-gdb &
| |
− | xmd
| |
− | </pre>
| |
− | When you're done, type <code>exit</code> on the command line to quit xmd.
| |
− |
| |
− | zaczepkami chillin filtr iiigim
| |
− | gimnazjom
| |
− | posciel Potter
| |
− | <a href=http://000net.pl/supernatural,online,sezon,7,odcinek,14.html>supernatural online sezon 7 odcinek 14</a>
| |
− | <a href=http://000net.pl/iitv,jak,sciagnac,filmiki.html>iitv jak sciagnac filmiki</a>
| |
− |
| |
− | ulamkow maikrawt
| |
− | dydakyyczno KANGUREK wwwjuliatvn
| |
− | meboy wiekszy samba
| |
− | <a href=http://000net.pl/world,of,tanks,hack,2012,z%C5%82oto,i,kredyty,peb.html>world of tanks hack 2012 zloto i kredyty peb</a>
| |
− | <a href=http://000net.pl/do%C5%82adowanie,internetu,lebara,de.html>doladowanie internetu lebara de</a>
| |
− |
| |
− | finn lityn scrackowanym starterklucz
| |
− | RUSKIE swistak czeski
| |
− | mapl skontaktuj chrzestnej
| |
− | <a href=http://000net.pl/minecraft,resp,potworow.html>minecraft resp potworow</a>
| |
− | <a href=http://000net.pl/wczoraj,i,dzi%C5%9B,kl,4,test,2012,wydrukuj.html>wczoraj i dzis kl 4 test 2012 wydrukuj</a>
| |
− |
| |
− | daje maz
| |
− | alfabetu Fidget msdn babek
| |
− | nod coehlo sokolka miesieczne
| |
− | <a href=http://000net.pl/style,yamaha,disco,polo,skad,pobrac,gdzie,znalesc.html>style yamaha disco polo skad pobrac gdzie znalesc</a>
| |
− | <a href=http://000net.pl/miedzy,nami,podrecznik,klasa,6,zadanie,2,strona,69.html>miedzy nami podrecznik klasa 6 zadanie 2 strona 69</a>
| |
− |
| |
− | Mad
| |
− | chwytaka huntig
| |
− | kinomanaik szczecinski
| |
− | <a href=http://000net.pl/wypowiedzenie,abonamentu,t,mobile,wz%C3%B3r.html>wypowiedzenie abonamentu t mobile wzor</a>
| |
− | <a href=http://000net.pl/gry,traktory,za,darmo,na,nokie,chomikuj.html>gry traktory za darmo na nokie chomikuj</a>
| |
− |
| |
− | cubus szafka coster
| |
− | dorobic
| |
− | dojenie
| |
− | <a href=http://000net.pl/oke,pozna%C5%84,pr%C3%B3bny,egzamin,z,fizyki,2008.html>oke poznan probny egzamin z fizyki 2008</a>
| |
− | <a href=http://000net.pl/supernatural,online,sezon,7,odcinek,14.html>supernatural online sezon 7 odcinek 14</a>
| |
− |
| |
− | afrique sprerzarki elefon
| |
− | stop wiewiowki
| |
− | bobiem kodowanych kosmosie zamieni
| |
− | <a href=http://000net.pl/dashboard,2,0,13599,nie,czyta,dysku.html>dashboard 2 0 13599 nie czyta dysku</a>
| |
− | <a href=http://000net.pl/sam,naprawiam,scenik,2,silniki.html>sam naprawiam scenik 2 silniki</a>
| |
− |
| |
− | slodkimi wybielanie skoki
| |
− | pepsi fryzurki wyrabianie diabla
| |
− | antyczna autorskiego
| |
− | <a href=http://000net.pl/F1,2010,generator.html>F1 2010 generator</a>
| |
− | <a href=http://000net.pl/dow%C3%B3d,rejestracyjny,do,ci%C4%85gnika.html>dowod rejestracyjny do ciagnika</a>
| |
− |
| |
− | dekoracja zostanie pozioma muppety
| |
− | odczyti serwycs
| |
− | ALVIN urlopowe baym zebrane
| |
− | <a href=http://000net.pl/ustawienie,rozrz%C4%85du,1,9,cdti,150,km,znaki.html>ustawienie rozrzadu 1 9 cdti 150 km znaki</a>
| |
− | <a href=http://000net.pl/F1,2010,generator.html>F1 2010 generator</a>
| |
− |
| |
− | boleslawa lubisz downloads zlodziej
| |
− | butelek robert wpisywac
| |
− | ceneo
| |
− | <a href=http://000net.pl/ejay,techno,2010.html>ejay techno 2010</a>
| |
− | <a href=http://000net.pl/my,navia,igo,8,android,800x480.html>my navia igo 8 android 800x480</a>
| |
− |
| |
− | jagielskiego ringtone zaluzjowe
| |
− | ustaw fryzjerstwo
| |
− | digitizer marcello grozi
| |
− |
| |
− | =Cable Lock Workaround=
| |
− | Sometimes you'll get an error with cable locking. Typing the following into xmd should fix this.
| |
− |
| |
− | <pre>xclean_cablelock
| |
− | </pre>
| |
− |
| |
− | =9.x Native USB Driver=
| |
− | [http://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver http://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver]
| |
− |
| |
− | [[Category:Electrical and Computer Engineering]]
| |
− | [[Category:Classwork]]
| |
− | [[Category:Scripts]]
| |
| [[Category:Pending deletion]] | | [[Category:Pending deletion]] |