<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ift.wiki.uib.no/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lbr088</id>
	<title>ift - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://ift.wiki.uib.no/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lbr088"/>
	<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/Special:Contributions/Lbr088"/>
	<updated>2026-04-21T19:00:10Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2023</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2023"/>
		<updated>2014-07-24T13:11:45Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: added some missing steps in kermit mode flashing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices (for now, find the project [http://tidsreise.com/rcu/System_w_Linux.tar.gz here (11.1)] or [http://www.tidsreise.com/rcu/System_w_Linux_11_2.zip here (11.2)]).&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rculinux/blob/master/rculinux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 192.168.1.11&lt;br /&gt;
 setenv serverip 192.168.1.10&lt;br /&gt;
 setenv image rculinux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
You should see something like this&lt;br /&gt;
&lt;br /&gt;
 M2S-SOM&amp;gt; run update&lt;br /&gt;
 Using M2S_MAC device&lt;br /&gt;
 TFTP from server 192.168.1.10; our IP address is 192.168.1.11&lt;br /&gt;
 Filename &#039;rculinux/rculinux.uImage&#039;.&lt;br /&gt;
 Load address: 0xa0007fc0&lt;br /&gt;
 Loading: #################################################################&lt;br /&gt;
 	 #################################################################&lt;br /&gt;
 	 ################################################################# &lt;br /&gt;
 	 #################################################################&lt;br /&gt;
 	 ################################################################# &lt;br /&gt;
 	 #########################################&lt;br /&gt;
 done&lt;br /&gt;
 Bytes transferred = 1869376 (1c8640 hex)&lt;br /&gt;
 16384 KiB S25FL128S_64K at 0:0 is now current device&lt;br /&gt;
 Saving Environment to SPI Flash...&lt;br /&gt;
 Erasing SPI flash...Writing to SPI flash...done&lt;br /&gt;
&lt;br /&gt;
=== Kermit mode ===&lt;br /&gt;
It is also possible to update the Linux image on the board through kermit mode (file transfer over serial link).&lt;br /&gt;
In Linux you need a kermit client, e.g. ckermit or gkermit. To setup the client, create a config file (~/.kermrc) that should look something like this:&lt;br /&gt;
 set line /dev/ttyUSB0&lt;br /&gt;
 define sz !sz \%0 &amp;gt; /dev/ttyUSB0 &amp;lt; /dev/ttyUSB0&lt;br /&gt;
 set speed 115200&lt;br /&gt;
 set carrier-watch off&lt;br /&gt;
 set prefixing all&lt;br /&gt;
 set parity none&lt;br /&gt;
 set stop-bits 1&lt;br /&gt;
 set modem none&lt;br /&gt;
 set file type bin&lt;br /&gt;
 set file name lit&lt;br /&gt;
 set flow-control none&lt;br /&gt;
 set prompt &amp;quot;Linux Kermit&amp;gt; &amp;quot;&lt;br /&gt;
Connect to the board by typing in a shell &#039;&#039;&#039;kermit&#039;&#039;&#039; then after kermit has started, type &#039;&#039;&#039;connect&#039;&#039;&#039;. If you are in Linux now, you reboot the board to get to the u-boot prompt.&lt;br /&gt;
Once at the u-boot prompt, type&lt;br /&gt;
 M2S-SOM&amp;gt; loadb&lt;br /&gt;
U-boot is now waiting for an image&lt;br /&gt;
 ## Ready for binary (kermit) download to 0xA0007FC0 at 115200 bps...&lt;br /&gt;
Go back to kermit (&#039;&#039;ctrl-\&#039;&#039; and &#039;&#039;ctrl-c&#039;&#039;) then send the image&lt;br /&gt;
 Linux Kermit&amp;gt; send /home/lars/work/TPCRCU2/trunk/Firmware/Linux_image/rculinux.uImage &lt;br /&gt;
Once finished (this takes about 3.5 minutes) go back to the board U-boot prompt to write the image into the flash:&lt;br /&gt;
 Linux Kermit&amp;gt; connect&lt;br /&gt;
 Connecting to /dev/ttyUSB0, speed 115200&lt;br /&gt;
  Escape character: Ctrl-\ (ASCII 28, FS): enabled&lt;br /&gt;
 Type the escape character followed by C to get back,&lt;br /&gt;
 or followed by ? to see other options.&lt;br /&gt;
 ----------------------------------------------------&lt;br /&gt;
 ## Total Size      = 0x001c8640 = 1869376 Bytes&lt;br /&gt;
 ## Start Addr      = 0xA0007FC0&lt;br /&gt;
 M2S-SOM&amp;gt; run spiprobe; sf erase ${spiaddr} ${filesize}; sf write ${loadaddr} ${spiaddr} ${filesize}; setenv spisize 0x${filesize}; saveenv;&lt;br /&gt;
Once finished, you can boot the newly flashed image:&lt;br /&gt;
 M2S-SOM&amp;gt; run flashboot&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rculinux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 192.168.1.10:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;rculinux.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known Problems ==&lt;br /&gt;
* In Libero, the path for the u-boot flash image is hard-linked, so if you are trying to run any of the project in the first section of this page, Libero might tell you that it did not find the flash file. If this should occur, it is needed to redefine the path to the image.&lt;br /&gt;
** 11.1 -- Go to the MSS configurator tab and double-click the eNVM part, in the configuration window for the eNVM, change to the correct path.&lt;br /&gt;
** 11.2 -- In &#039;&#039;Design Flow&#039;&#039; tab: Configure Security and Programming Options --&amp;gt; Update eNVM Memory Content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2019</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2019"/>
		<updated>2014-03-10T10:30:45Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices (for now, find the project [http://tidsreise.com/rcu/System_w_Linux.tar.gz here (11.1)] or [http://www.tidsreise.com/rcu/System_w_Linux_11_2.zip here (11.2)]).&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rculinux/blob/master/rculinux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 192.168.1.11&lt;br /&gt;
 setenv serverip 192.168.1.10&lt;br /&gt;
 setenv image rculinux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
You should see something like this&lt;br /&gt;
&lt;br /&gt;
 M2S-SOM&amp;gt; run update&lt;br /&gt;
 Using M2S_MAC device&lt;br /&gt;
 TFTP from server 192.168.1.10; our IP address is 192.168.1.11&lt;br /&gt;
 Filename &#039;rculinux/rculinux.uImage&#039;.&lt;br /&gt;
 Load address: 0xa0007fc0&lt;br /&gt;
 Loading: #################################################################&lt;br /&gt;
 	 #################################################################&lt;br /&gt;
 	 ################################################################# &lt;br /&gt;
 	 #################################################################&lt;br /&gt;
 	 ################################################################# &lt;br /&gt;
 	 #########################################&lt;br /&gt;
 done&lt;br /&gt;
 Bytes transferred = 1869376 (1c8640 hex)&lt;br /&gt;
 16384 KiB S25FL128S_64K at 0:0 is now current device&lt;br /&gt;
 Saving Environment to SPI Flash...&lt;br /&gt;
 Erasing SPI flash...Writing to SPI flash...done&lt;br /&gt;
&lt;br /&gt;
=== Kermit mode ===&lt;br /&gt;
It is also possible to update the Linux image on the board through kermit mode (file transfer over serial link).&lt;br /&gt;
In Linux you need a kermit client, e.g. ckermit or gkermit. To setup the client, create a config file (~/.kermrc) that should look something like this:&lt;br /&gt;
 set line /dev/ttyUSB0&lt;br /&gt;
 define sz !sz \%0 &amp;gt; /dev/ttyUSB0 &amp;lt; /dev/ttyUSB0&lt;br /&gt;
 set speed 115200&lt;br /&gt;
 set carrier-watch off&lt;br /&gt;
 set prefixing all&lt;br /&gt;
 set parity none&lt;br /&gt;
 set stop-bits 1&lt;br /&gt;
 set modem none&lt;br /&gt;
 set file type bin&lt;br /&gt;
 set file name lit&lt;br /&gt;
 set flow-control none&lt;br /&gt;
 set prompt &amp;quot;Linux Kermit&amp;gt; &amp;quot;&lt;br /&gt;
Connect to the board by typing in a shell &#039;&#039;&#039;kermit&#039;&#039;&#039; then after kermit has started, type &#039;&#039;&#039;connect&#039;&#039;&#039;. If you are in Linux now, you reboot the board to get to the u-boot prompt.&lt;br /&gt;
Once at the u-boot prompt, type&lt;br /&gt;
 M2S-SOM&amp;gt; loadb&lt;br /&gt;
U-boot is now waiting for an image&lt;br /&gt;
 ## Ready for binary (kermit) download to 0xA0007FC0 at 115200 bps...&lt;br /&gt;
Go back to kermit (&#039;&#039;ctrl-\&#039;&#039; and &#039;&#039;ctrl-c&#039;&#039;) then send the image&lt;br /&gt;
 Linux Kermit&amp;gt; send /home/lars/work/TPCRCU2/trunk/Firmware/Linux_image/rculinux.uImage &lt;br /&gt;
Once finished (this takes about 3.5 minutes) go back to the board either by closing kermit and using your favorite serial client or by doing&lt;br /&gt;
 Linux Kermit&amp;gt; connect&lt;br /&gt;
 Connecting to /dev/ttyUSB0, speed 115200&lt;br /&gt;
  Escape character: Ctrl-\ (ASCII 28, FS): enabled&lt;br /&gt;
 Type the escape character followed by C to get back,&lt;br /&gt;
 or followed by ? to see other options.&lt;br /&gt;
 ----------------------------------------------------&lt;br /&gt;
 ## Total Size      = 0x001c8640 = 1869376 Bytes&lt;br /&gt;
 ## Start Addr      = 0xA0007FC0&lt;br /&gt;
 M2S-SOM&amp;gt; flashboot&lt;br /&gt;
The new image should now be booted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rculinux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 192.168.1.10:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;rculinux.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known Problems ==&lt;br /&gt;
* In Libero, the path for the u-boot flash image is hard-linked, so if you are trying to run any of the project in the first section of this page, Libero might tell you that it did not find the flash file. If this should occur, it is needed to redefine the path to the image.&lt;br /&gt;
** 11.1 -- Go to the MSS configurator tab and double-click the eNVM part, in the configuration window for the eNVM, change to the correct path.&lt;br /&gt;
** 11.2 -- In &#039;&#039;Design Flow&#039;&#039; tab: Configure Security and Programming Options --&amp;gt; Update eNVM Memory Content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2018</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2018"/>
		<updated>2014-03-10T09:59:20Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices (for now, find the project [http://tidsreise.com/rcu/System_w_Linux.tar.gz here (11.1)] or [http://www.tidsreise.com/rcu/System_w_Linux_11_2.zip here (11.2)]).&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rculinux/blob/master/rculinux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 192.168.1.11&lt;br /&gt;
 setenv serverip 192.168.1.10&lt;br /&gt;
 setenv image rculinux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
You should see something like this&lt;br /&gt;
&lt;br /&gt;
 M2S-SOM&amp;gt; run update&lt;br /&gt;
 Using M2S_MAC device&lt;br /&gt;
 TFTP from server 192.168.1.10; our IP address is 192.168.1.11&lt;br /&gt;
 Filename &#039;rculinux/rculinux.uImage&#039;.&lt;br /&gt;
 Load address: 0xa0007fc0&lt;br /&gt;
 Loading: #################################################################&lt;br /&gt;
 	 #################################################################&lt;br /&gt;
 	 ################################################################# &lt;br /&gt;
 	 #################################################################&lt;br /&gt;
 	 ################################################################# &lt;br /&gt;
 	 #########################################&lt;br /&gt;
 done&lt;br /&gt;
 Bytes transferred = 1869376 (1c8640 hex)&lt;br /&gt;
 16384 KiB S25FL128S_64K at 0:0 is now current device&lt;br /&gt;
 Saving Environment to SPI Flash...&lt;br /&gt;
 Erasing SPI flash...Writing to SPI flash...done&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rculinux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 192.168.1.10:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;rculinux.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known Problems ==&lt;br /&gt;
* In Libero, the path for the u-boot flash image is hard-linked, so if you are trying to run any of the project in the first section of this page, Libero might tell you that it did not find the flash file. If this should occur, it is needed to redefine the path to the image.&lt;br /&gt;
** 11.1 -- Go to the MSS configurator tab and double-click the eNVM part, in the configuration window for the eNVM, change to the correct path.&lt;br /&gt;
** 11.2 -- In &#039;&#039;Design Flow&#039;&#039; tab: Configure Security and Programming Options --&amp;gt; Update eNVM Memory Content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2017</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2017"/>
		<updated>2014-03-10T09:59:03Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices (for now, find the project [http://tidsreise.com/rcu/System_w_Linux.tar.gz here (11.1)] or [http://www.tidsreise.com/rcu/System_w_Linux_11_2.zip here (11.2)]).&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rculinux/blob/master/rculinux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 192.168.1.11&lt;br /&gt;
 setenv serverip 192.168.1.10&lt;br /&gt;
 setenv image rculinux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
You should see something like this&lt;br /&gt;
&lt;br /&gt;
 M2S-SOM&amp;gt; run update&lt;br /&gt;
 Using M2S_MAC device&lt;br /&gt;
 TFTP from server 192.168.1.10; our IP address is 192.168.1.11&lt;br /&gt;
 Filename &#039;rculinux/rculinux.uImage&#039;.&lt;br /&gt;
 Load address: 0xa0007fc0&lt;br /&gt;
 Loading: #################################################################&lt;br /&gt;
 	 #################################################################&lt;br /&gt;
	 ################################################################# &lt;br /&gt;
	 #################################################################&lt;br /&gt;
 	 ################################################################# &lt;br /&gt;
	 #########################################&lt;br /&gt;
 done&lt;br /&gt;
 Bytes transferred = 1869376 (1c8640 hex)&lt;br /&gt;
 16384 KiB S25FL128S_64K at 0:0 is now current device&lt;br /&gt;
 Saving Environment to SPI Flash...&lt;br /&gt;
 Erasing SPI flash...Writing to SPI flash...done&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rculinux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 192.168.1.10:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;rculinux.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known Problems ==&lt;br /&gt;
* In Libero, the path for the u-boot flash image is hard-linked, so if you are trying to run any of the project in the first section of this page, Libero might tell you that it did not find the flash file. If this should occur, it is needed to redefine the path to the image.&lt;br /&gt;
** 11.1 -- Go to the MSS configurator tab and double-click the eNVM part, in the configuration window for the eNVM, change to the correct path.&lt;br /&gt;
** 11.2 -- In &#039;&#039;Design Flow&#039;&#039; tab: Configure Security and Programming Options --&amp;gt; Update eNVM Memory Content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2016</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2016"/>
		<updated>2014-03-10T09:58:22Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices (for now, find the project [http://tidsreise.com/rcu/System_w_Linux.tar.gz here (11.1)] or [http://www.tidsreise.com/rcu/System_w_Linux_11_2.zip here (11.2)]).&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rculinux/blob/master/rculinux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 192.168.1.11&lt;br /&gt;
 setenv serverip 192.168.1.10&lt;br /&gt;
 setenv image rculinux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
You should see something like this&lt;br /&gt;
&amp;lt;verbatim&amp;gt;&lt;br /&gt;
M2S-SOM&amp;gt; run update&lt;br /&gt;
Using M2S_MAC device&lt;br /&gt;
TFTP from server 192.168.1.10; our IP address is 192.168.1.11&lt;br /&gt;
Filename &#039;rculinux/rculinux.uImage&#039;.&lt;br /&gt;
Load address: 0xa0007fc0&lt;br /&gt;
Loading: #################################################################&lt;br /&gt;
	 #################################################################&lt;br /&gt;
	 #################################################################&lt;br /&gt;
	 #################################################################&lt;br /&gt;
	 #################################################################&lt;br /&gt;
	 #########################################&lt;br /&gt;
done&lt;br /&gt;
Bytes transferred = 1869376 (1c8640 hex)&lt;br /&gt;
16384 KiB S25FL128S_64K at 0:0 is now current device&lt;br /&gt;
Saving Environment to SPI Flash...&lt;br /&gt;
Erasing SPI flash...Writing to SPI flash...done&lt;br /&gt;
&amp;lt;/verbatim&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rculinux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 192.168.1.10:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;rculinux.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known Problems ==&lt;br /&gt;
* In Libero, the path for the u-boot flash image is hard-linked, so if you are trying to run any of the project in the first section of this page, Libero might tell you that it did not find the flash file. If this should occur, it is needed to redefine the path to the image.&lt;br /&gt;
** 11.1 -- Go to the MSS configurator tab and double-click the eNVM part, in the configuration window for the eNVM, change to the correct path.&lt;br /&gt;
** 11.2 -- In &#039;&#039;Design Flow&#039;&#039; tab: Configure Security and Programming Options --&amp;gt; Update eNVM Memory Content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2012</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2012"/>
		<updated>2014-01-06T12:17:00Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices (for now, find the project [http://tidsreise.com/rcu/System_w_Linux.tar.gz here (11.1)] or [http://www.tidsreise.com/rcu/System_w_Linux_11_2.zip here (11.2)]).&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rculinux/blob/master/rculinux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 192.168.1.11&lt;br /&gt;
 setenv serverip 192.168.1.10&lt;br /&gt;
 setenv image rculinux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rculinux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 192.168.1.10:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;rculinux.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known Problems ==&lt;br /&gt;
* In Libero, the path for the u-boot flash image is hard-linked, so if you are trying to run any of the project in the first section of this page, Libero might tell you that it did not find the flash file. If this should occur, it is needed to redefine the path to the image.&lt;br /&gt;
** 11.1 -- Go to the MSS configurator tab and double-click the eNVM part, in the configuration window for the eNVM, change to the correct path.&lt;br /&gt;
** 11.2 -- In &#039;&#039;Design Flow&#039;&#039; tab: Configure Security and Programming Options --&amp;gt; Update eNVM Memory Content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2011</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2011"/>
		<updated>2014-01-06T12:14:14Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices (for now, find the project [http://tidsreise.com/rcu/System_w_Linux.tar.gz here (11.1)]).&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rculinux/blob/master/rculinux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 192.168.1.11&lt;br /&gt;
 setenv serverip 192.168.1.10&lt;br /&gt;
 setenv image rculinux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rculinux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 192.168.1.10:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;rculinux.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known Problems ==&lt;br /&gt;
* In Libero, the path for the u-boot flash image is hard-linked, so if you are trying to run any of the project in the first section of this page, Libero might tell you that it did not find the flash file. If this should occur, it is needed to redefine the path to the image.&lt;br /&gt;
** 11.1 -- Go to the MSS configurator tab and double-click the eNVM part, in the configuration window for the eNVM, change to the correct path.&lt;br /&gt;
** 11.2 -- In &#039;&#039;Design Flow&#039;&#039; tab: Configure Security and Programming Options --&amp;gt; Update eNVM Memory Content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2010</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=2010"/>
		<updated>2014-01-06T12:11:42Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: Updated with known problems&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices (for now, find the project [http://tidsreise.com/rcu/System_w_Linux.tar.gz here]).&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rculinux/blob/master/rculinux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 192.168.1.11&lt;br /&gt;
 setenv serverip 192.168.1.10&lt;br /&gt;
 setenv image rculinux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rculinux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 192.168.1.10:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;rculinux.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Known Problems ==&lt;br /&gt;
* In Libero, the path for the u-boot flash image is hard-linked, so if you are trying to run any of the project in the first section of this page, Libero might tell you that it did not find the flash file. If this should occur, it is needed to redefine the path to the image.&lt;br /&gt;
** 11.1 -- Go to the MSS configurator tab and double-click the eNVM part, in the configuration window for the eNVM, change to the correct path.&lt;br /&gt;
** 11.2 -- In &#039;&#039;Design Flow&#039;&#039; tab: Configure Security and Programming Options --&amp;gt; Update eNVM Memory Content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1995</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1995"/>
		<updated>2013-11-29T00:10:49Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices (for now, find the project [http://tidsreise.com/rcu/System_w_Linux.tar.gz here]).&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rculinux/blob/master/rculinux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 123.234.345.29&lt;br /&gt;
 setenv serverip 123.234.345.12&lt;br /&gt;
 setenv image rculinux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rculinux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 172.17.1.20:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;test.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1994</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1994"/>
		<updated>2013-11-28T12:26:02Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices (for now, find the project [http://tidsreise.com/rcu/System_w_Linux.tar.gz here]).&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rcu2linux/blob/master/rcu2linux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 123.234.345.29&lt;br /&gt;
 setenv serverip 123.234.345.12&lt;br /&gt;
 setenv image rcu2linux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rcu2linux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 172.17.1.20:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;test.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1993</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1993"/>
		<updated>2013-11-28T10:42:03Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
The Libero project will be made available on the [https://svnweb.cern.ch/cern/wsvn/TPCRCU2 Subversion] directory ASAP in case you have other devices.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rcu2linux/blob/master/rcu2linux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 123.234.345.29&lt;br /&gt;
 setenv serverip 123.234.345.12&lt;br /&gt;
 setenv image rcu2linux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rcu2linux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 172.17.1.20:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;test.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=TFTP&amp;diff=1992</id>
		<title>TFTP</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=TFTP&amp;diff=1992"/>
		<updated>2013-11-28T10:33:26Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Setup ==&lt;br /&gt;
=== Ubuntu or Other Debian Based Distributions ===&lt;br /&gt;
Simply install from Aptitude&lt;br /&gt;
 sudo apt-get install xinetd tftpd tftp&lt;br /&gt;
Create rule file /etc/xinetd.d/tftp&lt;br /&gt;
 service tftp&lt;br /&gt;
 {&lt;br /&gt;
 protocol        = udp&lt;br /&gt;
 port            = 69&lt;br /&gt;
 socket_type     = dgram&lt;br /&gt;
 wait            = yes&lt;br /&gt;
 user            = nobody&lt;br /&gt;
 server          = /usr/sbin/in.tftpd&lt;br /&gt;
 server_args     = /tftpboot&lt;br /&gt;
 disable         = no&lt;br /&gt;
 }&lt;br /&gt;
Create some directories to hold your files&lt;br /&gt;
 mkdir -p /export/tftpboot&lt;br /&gt;
 chmod 777 /export/tftpboot&lt;br /&gt;
 chown nobody /export/tftpboot&lt;br /&gt;
Restart xinetd and the server should now be ready&lt;br /&gt;
 sudo service xinetd start&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
You can use TFTP32 from [http://tftpd32.jounin.net/ here]. An in-depth guide for setting up everything properly can be found [http://www.tricksguide.com/how-to-setup-a-tftp-server-tftpd32-windows.html here].&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=TFTP&amp;diff=1991</id>
		<title>TFTP</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=TFTP&amp;diff=1991"/>
		<updated>2013-11-28T10:30:45Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: Created page with &amp;quot;== TFTP setup procedure == === Ubuntu or Other Debian Based Distributions === Simply install from Aptitude  sudo apt-get install xinetd tftpd tftp Create rule file /etc/xinetd...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TFTP setup procedure ==&lt;br /&gt;
=== Ubuntu or Other Debian Based Distributions ===&lt;br /&gt;
Simply install from Aptitude&lt;br /&gt;
 sudo apt-get install xinetd tftpd tftp&lt;br /&gt;
Create rule file /etc/xinetd.d/tftp&lt;br /&gt;
 service tftp&lt;br /&gt;
 {&lt;br /&gt;
 protocol        = udp&lt;br /&gt;
 port            = 69&lt;br /&gt;
 socket_type     = dgram&lt;br /&gt;
 wait            = yes&lt;br /&gt;
 user            = nobody&lt;br /&gt;
 server          = /usr/sbin/in.tftpd&lt;br /&gt;
 server_args     = /tftpboot&lt;br /&gt;
 disable         = no&lt;br /&gt;
 }&lt;br /&gt;
Create some directories to hold your files&lt;br /&gt;
 mkdir -p /export/tftpboot&lt;br /&gt;
 chmod 777 /export/tftpboot&lt;br /&gt;
 chown nobody /export/tftpboot&lt;br /&gt;
Restart xinetd and the server should now be ready&lt;br /&gt;
 sudo service xinetd start&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
You can use TFTP32 from [http://tftpd32.jounin.net/ here]. An in-depth guide for setting up everything properly can be found [http://www.tricksguide.com/how-to-setup-a-tftp-server-tftpd32-windows.html here].&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1990</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1990"/>
		<updated>2013-11-28T10:23:34Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rcu2linux/blob/master/rcu2linux.uImage?raw=true Github].&lt;br /&gt;
&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 123.234.345.29&lt;br /&gt;
 setenv serverip 123.234.345.12&lt;br /&gt;
 setenv image rcu2linux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rcu2linux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 172.17.1.20:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;test.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1989</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1989"/>
		<updated>2013-11-28T10:23:08Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rcu2linux/blob/master/rcu2linux.uImage?raw=true Github].&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 123.234.345.29&lt;br /&gt;
 setenv serverip 123.234.345.12&lt;br /&gt;
 setenv image rcu2linux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rcu2linux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 172.17.1.20:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;test.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1988</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1988"/>
		<updated>2013-11-28T10:22:28Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Setup of the SmartFusion2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rcu2linux/blob/master/rcu2linux.uImage?raw=true Github].&lt;br /&gt;
=== Setup U-Boot enviroment ===&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 123.234.345.29&lt;br /&gt;
 setenv serverip 123.234.345.12&lt;br /&gt;
 setenv image rcu2linux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rcu2linux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 172.17.1.20:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;test.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1987</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1987"/>
		<updated>2013-11-28T10:21:28Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Set Up the SF2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rcu2linux/blob/master/rcu2linux.uImage?raw=true Github].&lt;br /&gt;
=== Setup U-Boot enviroment ===&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 123.234.345.29&lt;br /&gt;
 setenv serverip 123.234.345.12&lt;br /&gt;
 setenv image rcu2linux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rcu2linux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 172.17.1.20:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;test.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1986</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1986"/>
		<updated>2013-11-28T10:20:49Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Set Up the SF2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board. This requires a TFTP server to host the Linux image, for help on setting up a server, check the [[TFTP]] page.&lt;br /&gt;
If you would like to quickly test the boot process, a Linux image can be fetched from [https://github.com/larks/rcu2linux/blob/master/rcu2linux.uImage?raw=true Github].&lt;br /&gt;
=== Setup U-Boot enviroment ===&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 123.234.345.29&lt;br /&gt;
 setenv serverip 123.234.345.12&lt;br /&gt;
 setenv image rcu2linux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rcu2linux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 172.17.1.20:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;test.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1985</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1985"/>
		<updated>2013-11-28T10:12:04Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit and the device MS2050T_ES.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Set Up the SF2 Target ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Linux Image ===&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board.&lt;br /&gt;
This requires a TFTP server to host the Linux image.&lt;br /&gt;
=== Setup U-Boot enviroment ===&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 123.234.345.29&lt;br /&gt;
 setenv serverip 123.234.345.12&lt;br /&gt;
 setenv image rcu2linux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
[http://emcraft.com/products/255#software Download] the Linux BSP and software development environment as well as the GNU tool-chain from Emcraft[http://emcraft.com/products/255#software Emcraft SF2 Starter kit downloads].&lt;br /&gt;
&lt;br /&gt;
# Extract &#039;&#039;linux-M2S-1.11.0.tar.bz2&#039;&#039; to a preferred directory&lt;br /&gt;
# Extract GNU toolchain &#039;&#039;arm-2010q1-189-arm-uclinuxeabi-i686-pc-linux-gnu.tar.bz2&#039;&#039; to directory ./linux-cortexm-1.11.0/tools&lt;br /&gt;
# Make sure that the information in &#039;&#039;ACTIVATE.sh&#039;&#039; is correct and that the file is executable.&lt;br /&gt;
# Source ACTIVATE.sh: &#039;&#039;. ACTIVATE.sh&#039;&#039;&lt;br /&gt;
You are now ready for doing development.&lt;br /&gt;
&lt;br /&gt;
To create a new project, you can clone the &#039;&#039;developer&#039;&#039; project:&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ make clone new=test&lt;br /&gt;
 New project created in /home/lars/work/linux-cortexm-1.11.0/projects/test&lt;br /&gt;
 lars@borg-2:~/work/linux-cortexm-1.11.0/projects/developer$ cd ../test/&lt;br /&gt;
Or you can clone [https://github.com/larks/rcu2linux this] project from Github and copy it to the &#039;&#039;projects&#039;&#039; folder &lt;br /&gt;
in your development enviroment.&lt;br /&gt;
&lt;br /&gt;
=== Network and development ===&lt;br /&gt;
The startup script of the SF2 should be updated such that you can mount a directory from the development host onto the target board. This way you can compile any software you are working on, and run it straight away from the mount on the board.&lt;br /&gt;
Add something along the following lines to &#039;&#039;local/rc&#039;&#039; in your project directory: &lt;br /&gt;
 mount -o nolock,rsize=1024 172.17.1.20:/home/lars/work/linux-cortexm-1.11.0/projects /mnt&lt;br /&gt;
The mount directory needs to be added to the ramfs table, so add to &#039;&#039;test.initramfs&#039;&#039;:&lt;br /&gt;
 dir /mnt 755 0 0&lt;br /&gt;
After this is done, the image has to be recompiled and loaded to the board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1984</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1984"/>
		<updated>2013-11-28T09:52:41Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here]&amp;lt;ref&amp;gt;[http://tidsreise.com/rcu/rcu2_linux_fw.zip Firmware]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
For more information on FlashPro, check the user guide&amp;lt;ref&amp;gt;[http://www.microsemi.com/document-portal/doc_download/130809-flashpro-for-software-v11-0-user FlashPro User Guide]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Set Up the SF2 Target ==&lt;br /&gt;
&lt;br /&gt;
== Boot Linux Image ==&lt;br /&gt;
The Linux image is fetched from a network and can be booted directly from the network as well as loaded into the external Flash memory on the board.&lt;br /&gt;
This requires a TFTP server to host the Linux image.&lt;br /&gt;
=== Setup U-Boot enviroment ===&lt;br /&gt;
For now, the U-Boot enviroment has to be set manually.&lt;br /&gt;
* Log in to the board through serial, baud rate 115200, 1 stop bit, no parity&lt;br /&gt;
* Reset board and hit a key to stop boot sequence&lt;br /&gt;
* Define the IP addresses for the target board and the TFTP server, as well as the name for the boot image.&lt;br /&gt;
 setenv ipaddr 123.234.345.29&lt;br /&gt;
 setenv serverip 123.234.345.12&lt;br /&gt;
 setenv image rcu2linux.uImage&lt;br /&gt;
 saveenv&lt;br /&gt;
To run the image over the network, reset the board and stop the autoboot sequence, then type&lt;br /&gt;
 run netboot&lt;br /&gt;
To load the image into the Flash, type&lt;br /&gt;
 run update&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1983</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1983"/>
		<updated>2013-11-27T21:06:03Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here].&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit.&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
More to come...&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1982</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1982"/>
		<updated>2013-11-27T17:16:28Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Programming ==&lt;br /&gt;
A FlashPro project including a STAPL programming file with firmware and u-boot images can be found [http://tidsreise.com/rcu/rcu2_linux_fw.zip here].&lt;br /&gt;
The firmware is compiled for the SmartFusion2 Starter Kit&lt;br /&gt;
Usage:&lt;br /&gt;
# Open FlashPro software&lt;br /&gt;
# Select &#039;&#039;Open Project&#039;&#039; and find the file &#039;&#039;rcu2_linux_fw.pro&#039;&#039;&lt;br /&gt;
# Make sure the FlashPro programmer is inserted and that it has been selected by pressing &#039;&#039;View Programmers&#039;&#039;. If necessary, hit &#039;&#039;Refresh/Rescan for Programmers&#039;&#039;&lt;br /&gt;
# Now hit &#039;&#039;PROGRAM&#039;&#039;, wait for it to finish and then power cycle the board.&lt;br /&gt;
 ...&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1981</id>
		<title>RCU2 Software Development Firmware</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=RCU2_Software_Development_Firmware&amp;diff=1981"/>
		<updated>2013-11-27T16:20:50Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: Initilized page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Init ==&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=SmartFusion2&amp;diff=1980</id>
		<title>SmartFusion2</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=SmartFusion2&amp;diff=1980"/>
		<updated>2013-11-16T20:04:33Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: Added solution for Libero locked session problem&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installation process=&lt;br /&gt;
==Download==&lt;br /&gt;
Download from:&lt;br /&gt;
&lt;br /&gt;
http://www.actel.com/download/software/liberosoc/files.aspx?os=WIN&lt;br /&gt;
&lt;br /&gt;
==Get a free 1 year license==&lt;br /&gt;
Goto:&lt;br /&gt;
http://www.actel.com/Portal/DPortal.aspx&lt;br /&gt;
and choose &amp;quot;Libero Gold Node Locked for Windows&amp;quot;&lt;br /&gt;
You need to register an account if you have not allready done so.&lt;br /&gt;
&lt;br /&gt;
===Find out your Disk Serial Number===&lt;br /&gt;
&lt;br /&gt;
Windows 8:&lt;br /&gt;
&lt;br /&gt;
1. Open up a command prompt window by right clicking anywhere on the Start Screen and then click on &amp;quot;All apps&amp;quot;. Scroll to the right until you find the &amp;quot;Windows System&amp;quot; section heading, and click on the &amp;quot;Command Prompt&amp;quot; tile.&lt;br /&gt;
&lt;br /&gt;
2. Type in: vol.&lt;br /&gt;
&lt;br /&gt;
3. The Volume Serial Number is the Disk Serial Number.&lt;br /&gt;
&lt;br /&gt;
Windows XP / Windows Vista / Windows 7:&lt;br /&gt;
&lt;br /&gt;
1. Open up a command prompt window (Start Menu &amp;gt; All Programs &amp;gt; Accessories &amp;gt; Command Prompt).&lt;br /&gt;
&lt;br /&gt;
2. Type in: vol.&lt;br /&gt;
&lt;br /&gt;
3. The Volume Serial Number is the Disk Serial Number.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It will take a couple of hours before the license arrives.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Install==&lt;br /&gt;
&lt;br /&gt;
Start LiberoSoCv11&lt;br /&gt;
&lt;br /&gt;
* Select Install Libero SoC (not the SA)&lt;br /&gt;
* Select to install ALL&lt;br /&gt;
** Synplify Pro&lt;br /&gt;
** SoftConsole&lt;br /&gt;
** Synphony&lt;br /&gt;
** Identify&lt;br /&gt;
** ModelSim&lt;br /&gt;
** Fusion&lt;br /&gt;
** Igloo, Igloo nano&lt;br /&gt;
** Igloo Plus&lt;br /&gt;
** Iglooe&lt;br /&gt;
** ProAsic3&lt;br /&gt;
** ProAsic3E&lt;br /&gt;
** ProAsic3L&lt;br /&gt;
** SmartFusion&lt;br /&gt;
** SmartFusion2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Apply and install license if you not already have a license installed.&lt;br /&gt;
&lt;br /&gt;
Start up Libero and select the tab marked &amp;quot;Catalog&amp;quot; in the bottom left. Press the button above saying to download new cores.&lt;br /&gt;
&lt;br /&gt;
=Tutorials=&lt;br /&gt;
Programming of the SF2 takes a loooong time, even before the activity light starts to flash on the FlashPro4. Don&#039;t despair, the program is probably not crashed.&lt;br /&gt;
The tutorials were made for an early version of Libero11, but the text has somewhat been updated to be in line with the release version of Libero11. In case of doubt, refer to the text and use common sense. Some of the demo C code has also changed.&lt;br /&gt;
&lt;br /&gt;
The tutorials are made for the SF2-STARTER-KIT-ES-2 which contains the BGA896 SF2 engineering sample (ES stamped on bottom left on chip). Newer starterkits may contain other devices and the device configuration would thus be different.&lt;br /&gt;
&lt;br /&gt;
The small white usb stick in the SF2 starter kit is a wifi device.&lt;br /&gt;
&lt;br /&gt;
Most of the &amp;quot;answers for questions&amp;quot; strongly depend on the chip and the version of the software and thus are not correct. &lt;br /&gt;
&lt;br /&gt;
For the tutorials using the rs232, don&#039;t use the reset button as it will garble the text. Relaunch the debugger instead.&lt;br /&gt;
&lt;br /&gt;
Don&#039;t use spaces in the path to were you keep the design files as Modelsim handles this badly.&lt;br /&gt;
&lt;br /&gt;
The tutorial files can be found on mikroserver1 in the folder /prog/cadence/SF2_tutorial&lt;br /&gt;
&lt;br /&gt;
Other designfiles and documents can be found here: http://emcraft.com/products/153&lt;br /&gt;
&lt;br /&gt;
Add tips or corrections for tutorials below.&lt;br /&gt;
==Tutorial 1: SF2 fabric==&lt;br /&gt;
&lt;br /&gt;
==Tutorial 2: SF2 ARM Cortex-M3 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Tutorial 2: SF2 USB==&lt;br /&gt;
The mass storage test didn&#039;t work with a Sandisk cruizer 4GB micro.&lt;br /&gt;
&lt;br /&gt;
=Use of Questasim with SF2 cores=&lt;br /&gt;
* Rightclick in the library pan of Questasim and choose new-&amp;gt;Library. &lt;br /&gt;
* Choose &amp;quot;A map to an existing library&amp;quot;. &lt;br /&gt;
* Set Library name to &amp;quot;SmartFusion2&amp;quot; and path to &amp;quot;c:/Microsemi/Libero_v11.1/Designer/lib/modelsim/precompiled/vhdl/SmartFusion2&amp;quot; or correct it to the place where you installed libero.&lt;br /&gt;
* Include the library in the files where you need SF2 cores&lt;br /&gt;
The same applies for other actel devices.&lt;br /&gt;
&lt;br /&gt;
=Libero errors, warnings and problems=&lt;br /&gt;
* If you get &amp;quot;Warning:  CMP008: module_name is not an Actel cell defined in the cell library.&amp;quot; it means the mentioned module was not included in the synthesis and thus assumed to be an Actel standard module. Rightclick synthesis and select &amp;quot;Organize input files-&amp;gt;Organize source files&amp;quot; select the mentioned module and press add.&lt;br /&gt;
* Generate programming data fails without explanation: Constraint format has changed between Libero versions. Generate a new constraint file using the I/O editor based on the data in the old constraint file.&lt;br /&gt;
* When a project is opened, if there is a message saying that the project is already open in another instance of Libero, go to the folder &#039;&#039;tooldata&#039;&#039; in the project directory and delete a file called &#039;&#039;libero.xyzv&#039;&#039;. Where xyzv is some four digit number.&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=FOCAL_-_Forward_Calorimeter&amp;diff=1595</id>
		<title>FOCAL - Forward Calorimeter</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=FOCAL_-_Forward_Calorimeter&amp;diff=1595"/>
		<updated>2011-06-15T09:28:15Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page should contain information about the Focal project, especially about the interfacing&lt;br /&gt;
from the Mimosa chips to the readout electronics.&lt;br /&gt;
== Overview ==&lt;br /&gt;
[[Media:Focal readout.pdf|Simple description of the Alice Focal readout electronics]].&lt;br /&gt;
&lt;br /&gt;
== Mimosa chips ==&lt;br /&gt;
* [[Media:PH1-UserMan-20080916.pdf|preliminary user manual of Phase1]] &lt;br /&gt;
* [[Media:mimosa.bsd.txt|BSDL file of Phase1]], which can be used for JTAG test, such as with an XJTAG module.&lt;br /&gt;
* [[Media:pattern_test.svf.txt|SVF file for pattern-only mode test of Phase1]], Use XJTAG to configure Phase1 chip with it, LVDS data output signals will appear on the 4 channels after supplying 160MHz differential clock and START signal.&lt;br /&gt;
&lt;br /&gt;
== Readout electronics ==&lt;br /&gt;
&lt;br /&gt;
=== Adapterboard /Fanoutboard ===&lt;br /&gt;
The adapterboard and fan-out boards provide LVDS interfaces and JTAG interfaces between the Control and Read-out board and the Mimosa ASICs. Here is [[Media:Focal_read-out_board_schematics.pdf|the schematics of the boards]].&lt;br /&gt;
* Spartan6 FPGA type: [http://www.xilinx.com/support/documentation/spartan-6.htm XC6SLX150-FGG676, speed-grade: 3]&lt;br /&gt;
* Examples of user constraint files for Spartan6 FPGAs: [[Media:U1.ucf.txt| U1 ]],[[Media:U2.ucf.txt| U2 ]]&lt;br /&gt;
* EXamples of VHDL entity definations for Spartan6 FPGAs: [[Media:U1.vhdl.txt| U1 ]],[[Media:U2.vhdl.txt| U2 ]]&lt;br /&gt;
&lt;br /&gt;
=== Control and Readout board ===&lt;br /&gt;
The idea is to use a [http://www.xilinx.com/products/devkits/EK-V6-ML605-G.htm Xilinx Virtex 6 development board] as a first prototype. The board will run Petalinux, and some software to access the firmware registers. A software framework for the TPC detector is to be adapted for the use on the Virtex 6 board and Petalinux.&lt;br /&gt;
*[[Media:ML605.ucf.txt|FPGA user constraint file for Virtex 6 development board]]&lt;br /&gt;
&lt;br /&gt;
==== Firmware ====&lt;br /&gt;
The VHDL counterpart is to be found here:&lt;br /&gt;
http://web.ift.uib.no/kjekscgi-bin/viewcvs.cgi/alice-fw/trunk/messagebuffer/&lt;br /&gt;
&lt;br /&gt;
==== Software ====&lt;br /&gt;
The software driver for the message buffer system can be found here:&lt;br /&gt;
http://web.ift.uib.no/kjekscgi-bin/viewcvs.cgi/alice-dcs/trunk/rculinux/dcscMsgBufferInterface/&lt;br /&gt;
&lt;br /&gt;
[[Setting Up PetaLinux System]]&lt;br /&gt;
&lt;br /&gt;
Petalinux documentation:&lt;br /&gt;
[http://www.petalogix.com/resources/documentation/petalinux_sdk]&lt;br /&gt;
&lt;br /&gt;
== Download section ==&lt;br /&gt;
#[[Media:svf_specification.pdf|Serial Vector Format(SVF) Specification]]&lt;br /&gt;
#[[Media:svf_xilinx.pdf|SVF and XSVF File Formats for Xilinx Devices]]&lt;br /&gt;
&lt;br /&gt;
== Shopping list ==&lt;br /&gt;
&lt;br /&gt;
1x 2U 335mm Rack mount enclosure, Grey - 665-7712 - 556,29&amp;lt;br&amp;gt;&lt;br /&gt;
1x RD-125A Switch Mode PSU, 5V/15A,12V/10A - 644-6941 - 662,16&amp;lt;br&amp;gt;&lt;br /&gt;
3x DC/DC PoL,DOSA,2.4-5.5Vin,0.75-3.3Vo 6A - 150-758 - 116,16&amp;lt;br&amp;gt;&lt;br /&gt;
1x 4.20mm,housing,MiniFit,receptacle,DR,6w, - 679-5773 - 2,064&amp;lt;br&amp;gt;&lt;br /&gt;
http://www.samtec.com/search/vita57fmc.aspx&amp;lt;br&amp;gt;&lt;br /&gt;
1x BULGIN - BZH01/Z0000/11 - INLET, IEC, SWITCHED, RED - F9997237 - 57,39&amp;lt;br&amp;gt;&lt;br /&gt;
1x MH CONNECTORS - MH3101S-8821 - COUPLER, RJ45, SHIELDED - F1122292 - 92,11&amp;lt;br&amp;gt;&lt;br /&gt;
12x TYCO ELECTRONICS / AMP - 5569262-1 - JACK, RJ45, MULTI PORT, 2X4 - F1162485 - 102,42&amp;lt;br&amp;gt;&lt;br /&gt;
2x L-COM - ECF504B-UAB - Modular Coupler - F1702375 - 91,31&amp;lt;br&amp;gt;&lt;br /&gt;
2x USB cables - F1076669 - F1308878&lt;br /&gt;
&lt;br /&gt;
[[Category:Mikroelektronikk]]&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=FOCAL_-_Forward_Calorimeter&amp;diff=1594</id>
		<title>FOCAL - Forward Calorimeter</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=FOCAL_-_Forward_Calorimeter&amp;diff=1594"/>
		<updated>2011-06-15T09:27:14Z</updated>

		<summary type="html">&lt;p&gt;Lbr088: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page should contain information about the Focal project, especially about the interfacing&lt;br /&gt;
from the Mimosa chips to the readout electronics.&lt;br /&gt;
== Overview ==&lt;br /&gt;
[[Media:Focal readout.pdf|Simple description of the Alice Focal readout electronics]].&lt;br /&gt;
&lt;br /&gt;
== Mimosa chips ==&lt;br /&gt;
* [[Media:PH1-UserMan-20080916.pdf|preliminary user manual of Phase1]] &lt;br /&gt;
* [[Media:mimosa.bsd.txt|BSDL file of Phase1]], which can be used for JTAG test, such as with an XJTAG module.&lt;br /&gt;
* [[Media:pattern_test.svf.txt|SVF file for pattern-only mode test of Phase1]], Use XJTAG to configure Phase1 chip with it, LVDS data output signals will appear on the 4 channels after supplying 160MHz differential clock and START signal.&lt;br /&gt;
&lt;br /&gt;
== Readout electronics ==&lt;br /&gt;
&lt;br /&gt;
=== Adapterboard /Fanoutboard ===&lt;br /&gt;
The adapterboard and fan-out boards provide LVDS interfaces and JTAG interfaces between the Control and Read-out board and the Mimosa ASICs. Here is [[Media:Focal_read-out_board_schematics.pdf|the schematics of the boards]].&lt;br /&gt;
* Spartan6 FPGA type: [http://www.xilinx.com/support/documentation/spartan-6.htm XC6SLX150-FGG676, speed-grade: 3]&lt;br /&gt;
* Examples of user constraint files for Spartan6 FPGAs: [[Media:U1.ucf.txt| U1 ]],[[Media:U2.ucf.txt| U2 ]]&lt;br /&gt;
* EXamples of VHDL entity definations for Spartan6 FPGAs: [[Media:U1.vhdl.txt| U1 ]],[[Media:U2.vhdl.txt| U2 ]]&lt;br /&gt;
&lt;br /&gt;
=== Control and Readout board ===&lt;br /&gt;
The idea is to use a [http://www.xilinx.com/products/devkits/EK-V6-ML605-G.htm Xilinx Virtex 6 development board] as a first prototype. The board will run Petalinux, and some software to access the firmware registers. A software framework for the TPC detector is to be adapted for the use on the Virtex 6 board and Petalinux.&lt;br /&gt;
*[[Media:ML605.ucf.txt|FPGA user constraint file for Virtex 6 development board]]&lt;br /&gt;
&lt;br /&gt;
==== Firmware ====&lt;br /&gt;
The VHDL counterpart is to be found here:&lt;br /&gt;
http://web.ift.uib.no/kjekscgi-bin/viewcvs.cgi/alice-fw/trunk/messagebuffer/&lt;br /&gt;
&lt;br /&gt;
==== Software ====&lt;br /&gt;
The software driver for the message buffer system can be found here:&lt;br /&gt;
http://web.ift.uib.no/kjekscgi-bin/viewcvs.cgi/alice-dcs/trunk/rculinux/dcscMsgBufferInterface/&lt;br /&gt;
&lt;br /&gt;
[[Setting_Up_PetaLinux_System]]&lt;br /&gt;
&lt;br /&gt;
Petalinux documentation:&lt;br /&gt;
[http://www.petalogix.com/resources/documentation/petalinux_sdk]&lt;br /&gt;
&lt;br /&gt;
== Download section ==&lt;br /&gt;
#[[Media:svf_specification.pdf|Serial Vector Format(SVF) Specification]]&lt;br /&gt;
#[[Media:svf_xilinx.pdf|SVF and XSVF File Formats for Xilinx Devices]]&lt;br /&gt;
&lt;br /&gt;
== Shopping list ==&lt;br /&gt;
&lt;br /&gt;
1x 2U 335mm Rack mount enclosure, Grey - 665-7712 - 556,29&amp;lt;br&amp;gt;&lt;br /&gt;
1x RD-125A Switch Mode PSU, 5V/15A,12V/10A - 644-6941 - 662,16&amp;lt;br&amp;gt;&lt;br /&gt;
3x DC/DC PoL,DOSA,2.4-5.5Vin,0.75-3.3Vo 6A - 150-758 - 116,16&amp;lt;br&amp;gt;&lt;br /&gt;
1x 4.20mm,housing,MiniFit,receptacle,DR,6w, - 679-5773 - 2,064&amp;lt;br&amp;gt;&lt;br /&gt;
http://www.samtec.com/search/vita57fmc.aspx&amp;lt;br&amp;gt;&lt;br /&gt;
1x BULGIN - BZH01/Z0000/11 - INLET, IEC, SWITCHED, RED - F9997237 - 57,39&amp;lt;br&amp;gt;&lt;br /&gt;
1x MH CONNECTORS - MH3101S-8821 - COUPLER, RJ45, SHIELDED - F1122292 - 92,11&amp;lt;br&amp;gt;&lt;br /&gt;
12x TYCO ELECTRONICS / AMP - 5569262-1 - JACK, RJ45, MULTI PORT, 2X4 - F1162485 - 102,42&amp;lt;br&amp;gt;&lt;br /&gt;
2x L-COM - ECF504B-UAB - Modular Coupler - F1702375 - 91,31&amp;lt;br&amp;gt;&lt;br /&gt;
2x USB cables - F1076669 - F1308878&lt;br /&gt;
&lt;br /&gt;
[[Category:Mikroelektronikk]]&lt;/div&gt;</summary>
		<author><name>Lbr088</name></author>
	</entry>
</feed>