GitHunt
MA

mattytrentini/build-micropython-rp2350riscv-docker

Docker Image to build Raspberry Pi Pico RISCV

Docker image providing the RISCV compiler for the Raspberry Pi Pico rp2350

The container is used to build micropython but does not contain any dependency to micropython.

Compiler version

Versions

This is the compiler binary

$ pico_riscv_gcc -dumpversion
14.2.1

How to build Micropython for rp2350 RISCV using this docker container

git clone https://github.com/micropython
cd ports

mpbuild build --build-container micropython/build-micropython-rp2350riscv RPI_PICO2 RISCV

Building the container

docker buildx build -f Dockerfile --tag micropython/build-micropython-rp2350riscv .
docker run -it --rm micropython/build-micropython-rp2350riscv

Takes about 40min to build on my i7 notebook!

Image size

docker images
REPOSITORY                          TAG       IMAGE ID       CREATED             SIZE
build-micropython-rp2350riscv       latest    be8b348eea27   6 minutes ago       2.71GB

The riscv toolchain in /opt/riscv is about 2GB.
The interims multi-stage build image is about 22GB!

This docker image is based on

Compiled

Raspberry