Skip to content

Commit e8f4c4b

Browse files
author
dcz
committed
readme: Add Fedora packages
1 parent 571a798 commit e8f4c4b

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,24 @@
2020
rustup target add riscv32imac-unknown-none-elf
2121
```
2222

23+
Either:
24+
2325
- RISC-V toolchain ([e.g. from SiFive](https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-linux-ubuntu14.tar.gz))
2426

25-
One of:
27+
or install prebuilt toolchain (easier):
28+
29+
For Ubuntu/Debian:
30+
```
31+
sudo apt-get install gcc-riscv64-unknown-elf
32+
```
33+
34+
For Fedora:
35+
36+
```
37+
sudo dnf install binutils-riscv64-linux-gnu
38+
```
39+
40+
For flashing, one of:
2641

2742
- [dfu-util](http://dfu-util.sourceforge.net/)
2843
- [openocd for GD32VF103](https://github.com/riscv-mcu/riscv-openocd)
@@ -31,13 +46,6 @@ One of:
3146

3247
When using `dfu-util`, the RISC-V toolchain is not necessary. Only `rust-objcopy` from [cargo-binutils](https://github.com/rust-embedded/cargo-binutils) is needed.
3348

34-
Option B - Install prebuilt toolchain (easier):
35-
36-
For Ubuntu/Debian:
37-
```
38-
sudo apt-get install gcc-riscv64-unknown-elf
39-
```
40-
4149
### Building
4250

4351
If you have a GD32VF103C**B** chip on your board, edit `.cargo/config.toml` and replace

0 commit comments

Comments
 (0)