Follow this instructions in order to update the firmware on your MCS board
In case of problems contact:
Anna Bergamaschi anna.bergamaschi@psi.ch
Bernd Schmitt bernd.schmitt@psi.ch


-- PROGRAMMING the FPGA

1. Install the standalone Quartus II programmer for your OS (which can also be downloaded from the www.altera.com)
We will assume that you install it in C:\altera\

2. Connect your USB-Blaster cable to one of your USB ports. You will be asked to install new hardware. Set the path to search for the driver to:
C:\altera\80sp1\qprogrammer\drivers\usb-blaster

3. Start the programmer 

4. Click on Hardware Setup and in the "Currently selected hardware" window select USB-Blaster

5. In the Mode combo box select "Active Serial Programming"

6. Plug the end of your USB-Blaster WITH ADAPTER in the connector ASMI on the MCS board taking care that pin1 corresponds to the one indexed and with the rectangular pad.
A PDF showing the correct connector for each MCS board is contained in this directory. The ASMI connectors are highlighted in red (in green for FPGA2 on MCS24).

7. Click on add file and from this directory select the correct programming file (correct MCS type)

8. Check "Program/Configure" and "Verify"

9. Push the start button and wait until the programming process is finished (progress bar top left). 

In case the programmer gives you error messages, check the polarity of your cable (pin1 corresponds) and that you have selected the correct programming connector.

----- Server Software Upgrade

To upgrade the software

Telnet to your mcs
telnet mymcs.mydomain.com
username: root
password: pass
killall mythenDetectorServer
cd /mnt/flash
ls
if directory root does not exist
mkdir root
exit

From another terminal (directory upgarde)
ftp  mymcs.mydomain.com
username: root
password: pass
cd /mnt/flash/root
put mythenDetectorServer
cd /mnt/flash/etc
put inittab
quit 

Telnet again to your mcs
telnet mymcs.mydomain.com
username: root
password: pass
cd /mnt/flash/root
chmod a+xrw mythenDetectorServer
exit

After reboot (press reset on the board or repower it) your MCS should be reconfigured.
