commit ff73820d5bfda1cebca1107d95cc2cff44973597
parent 12e902533abdffabafc0e941612f0dd4300d2b00
Author: Brian Swetland <swetland@frotz.net>
Date: Fri, 22 Apr 2022 13:15:30 -0700
docs: ubuntu specific installation notes
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/docs/setup.md b/docs/setup.md
@@ -10,6 +10,13 @@ QEMU := qemu-system-riscv32
Note that the toolchain path is a prefix, omitting `gcc` because the makefile will stick `gdb`, `objdump`, `ld`, etc on the end as needed.
+## Installing GCC, GDB, and QEMU on Ubuntu
+This should work on Ubuntu 20.04.4LTS or newer. Not sure about older versions.
+```
+sudo apt-get install gcc-riscv64-unknown-elf qemu-system-misc gdb-multiarch
+```
+That should get you `riscv64-unknown-elf-gcc` and `qemu-system-riscv32` and 'gdb-multiarch'
+
## Building GCC and GDB (if needed)
[Travis](https://github.com/travisg) has a handy set of scripts to checkout and build gcc and gdb