From e9aa6b867cd9e9a7c3be9fd6fdc3827facd6d0b3 Mon Sep 17 00:00:00 2001 From: camrbuss Date: Sat, 25 Apr 2020 22:20:50 -0600 Subject: [PATCH] Ubunutu 20 documentation --- docs/developer-guide.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/developer-guide.md b/docs/developer-guide.md index 36790201..5c85d398 100644 --- a/docs/developer-guide.md +++ b/docs/developer-guide.md @@ -50,7 +50,7 @@ $ tup --version # should be 0.7.5 or later $ python --version # should be 3.7 or later ``` -#### Linux (Ubuntu) +#### Linux (Ubuntu < 20.04) ```bash sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa sudo apt-get update @@ -59,6 +59,13 @@ sudo apt-get install openocd sudo add-apt-repository ppa:jonathonf/tup && sudo apt-get update && sudo apt-get install tup ``` +#### Linux (Ubuntu >= 20.04) +```bash +sudo apt install gcc-arm-embedded +sudo apt install openocd +sudo apt install tup +``` + #### Arch Linux ```bash sudo pacman -S arm-none-eabi-gcc arm-none-eabi-binutils @@ -119,6 +126,8 @@ You can also modify the compile-time defaults for all `.config` parameters. You 2. Connect the ODrive via USB and power it up. 3. Flash the firmware using [odrivetool dfu](odrivetool#device-firmware-update). +If you get `/bin/sh: 1: python: not found` while running `make`, change the tup file command to use `python3` + ### Flashing using an STLink/v2 programmer * Connect `GND`, `SWD`, and `SWC` on connector J2 to the programmer. Note: Always plug in `GND` first!