Skip to content

Commit a5ed488

Browse files
committed
Add dockerfile
1 parent cf54b41 commit a5ed488

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM ubuntu:24.04
2+
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates patch git make binutils gcc g++ file wget cpio unzip rsync bc bzip2 g++ cmake python3 && \
3+
rm -rf /var/lib/apt/lists/* && \
4+
apt-get clean
5+
6+
RUN wget https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.0.0-5/riscv-toolchain-14-x86_64-lin.tar.gz && \
7+
mkdir -p ~/toolchain && \
8+
tar -vxzf riscv-toolchain-14-x86_64-lin.tar.gz -C ~/toolchain && \
9+
rm riscv-toolchain-14-x86_64-lin.tar.gz
10+
11+
RUN git clone --recurse-submodules https://github.com/Mr-Bossman/pi-pico2-linux
12+
13+
WORKDIR pi-pico2-linux
14+
RUN make -C buildroot BR2_EXTERNAL=$PWD/ raspberrypi-pico2_defconfig && \
15+
make -C buildroot && \
16+
PICO_TOOLCHAIN_PATH=~/toolchain/ PICO_SDK_FETCH_FROM_GIT=1 make -C psram-bootloader
17+
18+
CMD make -C psram-bootloader flash-kernel
19+
20+
# docker build -t pi-pico2-linux .
21+
# docker run -v $(pwd):/root/ -it --entrypoint /bin/bash pi-pico2-linux
22+
# docker run pi-pico2-linux

buildroot

0 commit comments

Comments
 (0)