Skip to content

Instantly share code, notes, and snippets.

@nepnep1111
Forked from synthic/Dockerfile
Last active February 4, 2026 00:45
Show Gist options
  • Select an option

  • Save nepnep1111/484d91098314733dab72c034f8b66fe9 to your computer and use it in GitHub Desktop.

Select an option

Save nepnep1111/484d91098314733dab72c034f8b66fe9 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/edo9300/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
COPY default.gcd /opt/dspico-firmware/roms/ntrbootdsi.nds
COPY boot9strap_ntr.firm /opt/dspico-firmware/roms/ntrboot.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
eca89918bbff09090a43e67f2805d9743e2ac343 default.gcd
26bf0b603ec1c72fa648b27c5d547de05d447748 boot9strap_ntr.firm
@nepnep1111
Copy link
Author

boot9strap is version 1.3 not 1.4 since that was used in 3ds.hacks.guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment