Flash an Altera device
Given a working jam file (you can use Prebuilt-images), you reprogram the flash of an SCU by executing these commands:
quartus_jli -aerase <jam-file>
quartus_jli -aerase -ddo_epcs_bulk_erase=1 <jam-file>
quartus_jli -ablankcheck <jam-file>
quartus_jli -aprogram <jam-file>
quartus_jli -averify <jam-file>
If you have the sources available (see Building-from-sources), you can simply run:
./scripts/program-scu.sh wr-cores/syn/gsi_scu2/wr_core_demo/scu2.jam