Skip to content

Instantly share code, notes, and snippets.

@synthic
Created December 11, 2025 05:25
Show Gist options
  • Select an option

  • Save synthic/f9396062d28144823ee8606eba101b2e to your computer and use it in GitHub Desktop.

Select an option

Save synthic/f9396062d28144823ee8606eba101b2e to your computer and use it in GitHub Desktop.
DSpico Firmware Builder
FROM skylyrac/blocksds:slim-latest
RUN apt update && apt install -y \
build-essential \
cmake \
gcc-arm-none-eabi \
git \
python3
ENV DLDITOOL=/opt/wonderful/thirdparty/blocksds/core/tools/dlditool/dlditool
ENV DOTNET_ROOT=/opt/dotnet
WORKDIR /opt
RUN mkdir -p dotnet && curl -s -L https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.308/dotnet-sdk-9.0.308-linux-x64.tar.gz | tar xzf - -C dotnet
RUN git clone https://github.com/Gericom/DSRomEncryptor.git
RUN git clone https://github.com/LNH-team/dspico-bootloader.git
RUN git clone https://github.com/LNH-team/dspico-dldi.git
RUN git clone https://github.com/LNH-team/dspico-firmware.git
RUN git clone https://github.com/LNH-team/dspico-wrfuxxed.git
RUN cd /opt/dspico-dldi && make
RUN cd /opt/dspico-bootloader && git submodule update --init && make
RUN $DLDITOOL /opt/dspico-dldi/DSpico.dldi /opt/dspico-bootloader/BOOTLOADER.nds
RUN cd /opt/DSRomEncryptor && /opt/dotnet/dotnet build
COPY biosnds7.rom biosdsi7.rom /opt/DSRomEncryptor/DSRomEncryptor/bin/Debug/net9.0/
RUN /opt/DSRomEncryptor/DSRomEncryptor/bin/Debug/net9.0/DSRomEncryptor /opt/dspico-bootloader/BOOTLOADER.nds /opt/dspico-firmware/roms/default.nds
RUN cd /opt/dspico-wrfuxxed && make
RUN $DLDITOOL /opt/dspico-dldi/DSpico.dldi /opt/dspico-wrfuxxed/uartBufv060.bin
RUN cd /opt/dspico-firmware && git submodule update --init
RUN cd /opt/dspico-firmware/pico-sdk && git submodule update --init
COPY wrfu.srl /opt/dspico-firmware/roms/dsimode.nds
RUN cp /opt/dspico-wrfuxxed/uartBufv060.bin /opt/dspico-firmware/data
RUN sed -i 's/^.*DSPICO_ENABLE_WRFUXXED.*$/ DSPICO_ENABLE_WRFUXXED/' /opt/dspico-firmware/CMakeLists.txt
RUN chmod +x /opt/dspico-firmware/compile.sh
RUN cd /opt/dspico-firmware && ./compile.sh
WORKDIR /build
a3aa751eb6bdaaf8a827ba9e03576a6f1ab0f547 biosdsi7.rom
24f67bdea115a2c847c8813a262502ee1607b7df biosnds7.rom
2d65fb7a0c62a4f08954b98c95f42b804fccfd26 wrfu.srl

Comments are disabled for this gist.