Pico-Get-Start-RPI

From Waveshare Wiki
Jump to: navigation, search

Raspberry Pi Environment Setting Tutorial

Install the Script

  • Script installation requires a good network environment, otherwise it may cause installation failure.

Get the Script

cd ~
wget https://raw.githubusercontent.com/raspberrypi/pico-setup/master/pico_setup.sh 

Run the Script

chmod +x pico_setup.sh
./pico_setup.sh

Reboot

sudo reboot

Manual Installation

Download the Related Compilation Libraries

sudo apt update
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential -y
sudo apt install automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-dev -y

Download the Compressed Package and Unzip

cd ~
sudo apt-get install p7zip-full -y
wget https://github.com/EngineerWill/Pico-lib/releases/download/v1.0/Pico-lib.7z
7z x ./Pico-lib.7z

Install Openocd (Optional)

cd ~/pico/openocd/
./bootstrap
./configure --enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio
make -j4
sudo make install