summaryrefslogtreecommitdiff
path: root/doc/sphinx/userguide/installing.rst
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-02-06 19:15:22 +0000
committerGitHub <noreply@github.com>2019-02-06 19:15:22 +0000
commit30837cf2279ec60989898a0d8ef5a1934bd443c0 (patch)
tree40b70bb9de7ec17e6ce5e8b876eaad0a07a210e1 /doc/sphinx/userguide/installing.rst
parent4c20f5158e506f3c13cf66d5259a6399a6b4b2a3 (diff)
parent8565ab59da981d542febae1e93281c09c447c50c (diff)
Merge pull request #169 from sifive/documentation
Add initial documentation
Diffstat (limited to 'doc/sphinx/userguide/installing.rst')
-rw-r--r--doc/sphinx/userguide/installing.rst77
1 files changed, 77 insertions, 0 deletions
diff --git a/doc/sphinx/userguide/installing.rst b/doc/sphinx/userguide/installing.rst
new file mode 100644
index 0000000..6e57425
--- /dev/null
+++ b/doc/sphinx/userguide/installing.rst
@@ -0,0 +1,77 @@
+Installing Freedom E SDK
+========================
+
+Supported Systems
+-----------------
+
+Freedom E SDK is supported on Linux, MacOS, and Windows.
+
+Linux support is officially provided to distributions we distribute
+builds of the RISC-V toolchain for. Currently, these distributions are
+
+- Ubuntu
+- CentOS
+
+We expect other Linux distributions to work as well, provided that the
+user can either run our provided toolchains on them or produce their own
+toolchain.
+
+Windows support is not directly provided by Freedom E SDK, but through
+our Integrated Development Environment, Freedom Studio.
+
+Prerequisites
+-------------
+
+To use this SDK, you will need the following software available on your machine:
+
+- GNU Make
+- Git
+- The RISC-V GNU Embedded Toolchain
+- RISC-V OpenOCD (for use with development board and FPGA targets)
+
+Install the RISC-V Toolchain and OpenOCD
+----------------------------------------
+
+The RISC-V GNU Toolchain and OpenOCD are available from `the SiFive Website <https://www.sifive.com/boards>`_.
+
+For OpenOCD and/or RISC-V GNU Toolchain, download the .tar.gz for your platform,
+and unpack it to your desired location. Then, set the ``RISCV_PATH`` and
+``RISCV_OPENOCD_PATH`` environment variables when using the tools:
+
+.. code-block:: bash
+
+ cp openocd-<date>-<platform>.tar.gz /my/desired/location/
+ cp riscv64-unknown-elf-gcc-<date>-<platform>.tar.gz /my/desired/location
+ cd /my/desired/location
+ tar -xvf openocd-<date>-<platform>.tar.gz
+ tar -xvf riscv64-unknown-elf-gcc-<date>-<platform>.tar.gz
+ export RISCV_OPENOCD_PATH=/my/desired/location/openocd
+ export RISCV_PATH=/my/desired/location/riscv64-unknown-elf-gcc-<date>-<version>
+
+Cloning the Repository
+----------------------
+
+This repository can be cloned by running the following commands:
+
+.. code-block:: bash
+
+ git clone --recursive https://github.com/sifive/freedom-e-sdk.git
+ cd freedom-e-sdk
+
+The ``--recursive`` option is required to clone the git submodules included in the
+repository. If at first you omit the ``--recursive`` option, you can achieve
+the same effect by updating submodules using the command:
+
+.. code-block:: bash
+
+ git submodule update --init --recursive
+
+Updating the SDK
+----------------
+
+If you'd like to update your SDK to the latest version:
+
+.. code-block:: bash
+
+ git pull origin master
+ git submodule update --init --recursive