export ROOT=`pwd`
sudo apt remove gcc-arm-none-eabi build-essential pkg-config libusb-1.0-0-dev git cmake
git clone https://github.com/raspberrypi/pico-sdk.git
git clone https://github.com/raspberrypi/pico-examples.git
git clone https://github.com/raspberrypi/picotool.git --branch master
cd pico-sdk
mkdir b
cd b
cmake ..
cd $ROOT
cd pico-examples
mkdir b
cd b
export PICO_SDK_PATH=../../pico-sdk
cmake ..
make -j
cd $ROOT
cd picotool
mkdir build
cd build
cmake ..
make -j
Press RESET+BOOTSEL together.
./picotool info
./picotool load