From 6b2b7fda834686d61fab77b6e5190d8563396adc Mon Sep 17 00:00:00 2001
From: Leon Hiemstra <hiemstra@astron.nl>
Date: Thu, 21 Apr 2016 13:50:47 +0000
Subject: [PATCH] added new instructions for RBF files and programming the EPCQ
 flash

---
 .../designs/unb2a_minimal/doc/README.txt      | 29 ++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/boards/uniboard2a/designs/unb2a_minimal/doc/README.txt b/boards/uniboard2a/designs/unb2a_minimal/doc/README.txt
index 7474149285..7600ff90de 100644
--- a/boards/uniboard2a/designs/unb2a_minimal/doc/README.txt
+++ b/boards/uniboard2a/designs/unb2a_minimal/doc/README.txt
@@ -89,8 +89,35 @@ python util_unb2.py --unb 1 --fn 0:3 --seq REGMAP,INFO,SENSORS
 Programming the EPCS flash.
 when the EPCS module works an RBF file can be generated to program the flash,
 then the .sof file file can be converted to .rbf with the 'run_rbf' script.
+For generating a User image .RBF file:
+
+    run_rbf unb2a unb2a_minimal
+
+For generating a Factory image .RBF file:
+
+    run_rbf unb2a --unb2_factory unb2a_minimal
+
+The .RBF file is now in $RADIOHDL/build/unb2a/quartus/unb2a_minimal
+Now copy the .RBF file to the LCU host with 'scp'
+Then to program the FPGA(s) via the LCU host, use the python script.
+
+Program User image:
+    python util_epcs.py --unb 1 --fn 0 -n 7 -s unb2a_minimal.rbf
+Program Factory image:
+    python util_epcs.py --unb 1 --fn 0 -n 3 -s unb2a_minimal.rbf
+
+-> For extra info on RBF files on Uniboard2, see: $RADIOHDL/libraries/io/epcs/doc/README.txt
+
+To start the User image:
+    python util_remu.py --unb 1 --fn 0 -n 6  # ignore timeout error
+To start the Factory image:
+    python util_remu.py --unb 1 --fn 0 -n 5  # ignore timeout error
+
+
+
+An alternative method to write the flash is via a .JIC file and JTAG:
+
 
-But for now the only way to program the EPCS flash is via JTAG.
 Firstly a JIC file has to be generated from the SOF file.
 In Quartus GUI; open current project; File -> Convert Programming Files.
 Then setup:
-- 
GitLab