Changes

Jump to: navigation, search

MicroBlaze

816 bytes removed, 22:44, 3 January 2019
Undo revision 694 by [[Special:Contributions/imported>Pew|imported>Pew]] ([[User talk:imported>Pew|talk]])
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 &
===Supporting Libraries===
Install libusb:
<pre>
sudo apt-get install libusb-0.1-4
</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 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 the libusb-driver===
Install libusb-dev and git:
<pre>
</pre>
Add the following lines to /opt/Xilinx/11.1/settings32.sh just after <code>list=""</code>
<pre>
export XIL_IMPACT_USE_LIBUSB=0
</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)
When you're done, type <code>exit</code> on the command line to quit xmd.
=Programming the Board=
If you're given a self-extracting archive, create a directory and
move the file to it to avoid getting "tar bombed" and unzip it. Replace
"update-s09-2" with the name of your file.
 
<pre>NAME=update-s09-2
mkdir ${NAME}
mv ${NAME}.exe ${NAME}
cd ${NAME}
unzip ${NAME}.exe
</pre>
Now you should see a file called "update.bat". You can take a look
at its contents to get a clue about the commands we'll need to run.
 
<pre>less update.bat
</pre>
Use the arrow keys or page up/down keys to navigate and press q to quit.
Essentially, we just need to run Xilinx's [http://www.xilinx.com/products/design_tools/logic_design/design_entry/impact.htm impact] programmer with the given file.
The script given to us will have a Windows-style path to where the
self-extracting archive would have unpacked itself. Run the following
command to fix this:
<pre>sed -i s/'c:\\.*\\'/'.\/'/ ProgramBoot.cmd
</pre>
Now all we need to do is run the programmer. Make sure the Xilinx
tools are in your path and that the Spartan board is connected via USB
and powered on.
 
<pre>impact -batch ProgramBoot.cmd
</pre>
=Cable Lock Workaround=
Sometimes you'll get an error with cable locking. Typing the following into xmd should fix this.
[http://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver http://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver]
[[Category:Electrical and Computer EngineeringCampus_computing_resources]][[Category:ClassworkSoftware]]
[[Category:Scripts]]

Navigation menu