diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c80a7e13..fd5a8da96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,8 +79,6 @@ set(overlay_dir ${CMAKE_BINARY_DIR}/overlay) set(overlay_root ${overlay_dir}/root) if(firesim) - message(STATUS "FireSim configs and patches. Forcing initramfs=y") - set(linux_defconfig ${confdir}/linux64-firesim-defconfig) message(STATUS "Using Linux defconfig: ${linux_defconfig}") set(initramfs true) elseif(sifive) diff --git a/docs/source/Getting-Started/Running-Keystone-with-FireSim.rst b/docs/source/Getting-Started/Running-Keystone-with-FireSim.rst index fc468713b..6f1af0819 100644 --- a/docs/source/Getting-Started/Running-Keystone-with-FireSim.rst +++ b/docs/source/Getting-Started/Running-Keystone-with-FireSim.rst @@ -26,11 +26,14 @@ hardware, and deploy it to Amazon AWS FPGAs using FireSim. Setting Up Chipyard ------------------------------------- -Follow `this documentation -`_ -to setup the Chipyard repo. Then, follow `this +Follow the `FireSim setup documentation `_ -to setup FireSim. +and the `Chipyard documentation +`__ +to set up Chipyard using Firesim. You will first need to set up a FireSim Manager +instance on Amazon EC2, onto which you will install the Chipyard repo. Finally, Firesim +will be initalized as a library in Chipyard, so you do not need to set it separately +within the Manager instance. We are going to use the latest version of `FireMarshal `_. Thus, @@ -78,11 +81,12 @@ Go to FireMarshal directory, and build the workload. You should replace ```` with the absolute path to the ``keystone.json`` in the workload directory. -You can launch QEMU to run the tests. +You can launch QEMU to run the tests. :: ./marshal -v launch + # Login via [root/firesim] Finally, install the workload in FireSim. @@ -96,8 +100,9 @@ repo>/sims/firesim/deploy/workloads``. Launching Simulation (FireSim) ------------------------------ +We will need to edit some of the FireSim configs. Open ``config_runtime.ini`` in ``/sims/firesim/deploy`` and edit -``[workload]`` section as follows +the following sections :: @@ -105,6 +110,29 @@ Open ``config_runtime.ini`` in ``/sims/firesim/deploy`` and edit workloadname=keystone.json # ... +:: + + [runfarm] + runfarmtag=mainrunfarm + + f1_16xlarges=0 + m4_16xlarges=0 + f1_4xlarges=0 + f1_2xlarges=1 + # ... + + [targetconfig] + topology=no_net_config + no_net_num_nodes=1 + # ... + + defaulthwconfig=firesim-rocket-quadcore-no-nic-l2-llc4mb-ddr3 + +See the `FireSim Manager Configuration Files +`_ +for an explanation of other possible configuration options. + + Use FireSim commands to launch the simulation. Go to the top-level FireSim directory and run: