Skip to content

Fixes install errors #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pico_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ OUTDIR="$(pwd)/pico"
GIT_DEPS="git"
SDK_DEPS="cmake gcc-arm-none-eabi gcc g++"
OPENOCD_DEPS="gdb-multiarch automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-dev"
VSCODE_DEPS="code"
UART_DEPS="minicom"

# Build full list of dependencies
Expand All @@ -34,6 +33,7 @@ fi
echo "Installing Dependencies"
sudo apt update
sudo apt install -y $DEPS
sudo apt install pkgconf

echo "Creating $OUTDIR"
# Create pico directory to put everything in
Expand Down Expand Up @@ -146,7 +146,10 @@ if [[ "$SKIP_VSCODE" == 1 ]]; then
echo "Skipping VSCODE"
else
echo "Installing VSCODE"
sudo apt install -y $VSCODE_DEPS
sudo apt install software-properties-common apt-transport-https wget -y
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As noted in Chapter 1 of https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf (and also in #15 ) this script is designed to be run on Raspberry Pi OS running on a Raspberry Pi, and I'm fairly sure that we don't want to be adding amd64 repositories to a Raspberry Pi 😉

sudo apt install code

# Get extensions
code --install-extension marus25.cortex-debug
Expand All @@ -160,6 +163,7 @@ if [[ "$SKIP_UART" == 1 ]]; then
else
sudo apt install -y $UART_DEPS
echo "Disabling Linux serial console (UART) so we can use it for pico"
sudo apt install raspi-config
sudo raspi-config nonint do_serial 2
echo "You must run sudo reboot to finish UART setup"
fi