File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ # Raspberry Pi Pico Docker
2+
3+ ## Run Docker container
4+
5+ ```
6+ cd ./docker
7+
8+ docker build . --tag pico-sdk
9+
10+ docker run -d -it --name pico-sdk --mount type=bind,source=${PWD},target=/home/dev pico-sdk
11+
12+ docker exec -it pico-sdk /bin/sh
13+ ```
Original file line number Diff line number Diff line change 1+ FROM alpine:3.16.2
2+
3+ # Install toolchain
4+ RUN apk update && \
5+ apk upgrade && \
6+ apk add git \
7+ python3 \
8+ py3-pip \
9+ cmake \
10+ build-base \
11+ libusb-dev \
12+ bsd-compat-headers \
13+ newlib-arm-none-eabi \
14+ gcc-arm-none-eabi
15+
16+ # Raspberry Pi Pico SDK
17+ RUN git clone https://github.com/raspberrypi/pico-sdk /usr/pico-sdk && \
18+ cd /usr/pico-sdk && \
19+ git submodule update --init
20+
21+ ENV PICO_SDK_PATH=/usr/pico-sdk
22+
23+ # Picotool installation
24+ RUN git clone -b master https://github.com/raspberrypi/picotool.git /usr/picotool && \
25+ cd /usr/picotool && \
26+ mkdir build && \
27+ cd build && \
28+ cmake .. && \
29+ make && \
30+ cp /usr/picotool/build/picotool /bin/picotool && \
31+ rm -rf /usr/picotool
You can’t perform that action at this time.
0 commit comments