Answer
The instructions in this answer are based on information provided at https://github.com/sifive/freedom, with some updates to work with more recent versions of libraries. Several of these steps are quite time consuming and the entire process may take several hours:
Steps 1-11 build a RISC-V firmware image in a file named E300ArtyDevKitFPGAChip
.mcs. If you prefer to skip these steps, you can download this file directly at https://github.com/PacktPublishing/Modern-Computer-Architecture-and-Organization/blob/master/Chapter11/Answers%20to%20Exercises/src/E300ArtyDevKitFPGAChip.mcs and continue at step 12.
- If you already have a Linux system available for this exercise, you can skip to step 2. Otherwise, begin by downloading and installing VirtualBox from https://www.virtualbox.org/wiki/Downloads. Download an operating system image from OSBoxes at https://www.osboxes.org/virtualbox-images/. Select the most recent 64-bit Ubuntu VDI image. Follow the instructions at https...