diff --git a/Dockerfile b/Dockerfile index e68b32bc5244f384bc2c3aa9775ddfa64b1c0b80..f97c18dcc7da86fe0766b94a481891f5184a53f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,6 +59,17 @@ RUN git clone https://git.imp.fu-berlin.de/projekt-telematik-ss23-qemu/risc-v-qe make install +FROM docker.io/debian:bookworm AS bootrom +RUN apt update && apt upgrade -y +RUN apt install -y ca-certificates wget +RUN cd /tmp && \ + wget https://github.com/espressif/esp-rom-elfs/releases/download/20230320/esp-rom-elfs-20230320.tar.gz && \ + tar -xvf esp-rom-elfs-20230320.tar.gz && \ + mkdir -p /bootrom && \ + cp /tmp/esp32c3_rev3_rom.elf /bootrom/ + + + FROM docker.io/debian:bookworm AS final # Install qemu's runtime deps RUN apt update && apt upgrade -y @@ -67,3 +78,9 @@ RUN apt install -y libpixman-1-0 libfdt1 libglib2.0-0 libiscsi7 libnfs13 RUN apt install -y gdb-multiarch make COPY --from=qemu /usr/local /usr/local COPY --from=toolchain /home/builder/x-tools/riscv32-unknown-elf/* /usr/local/bin/ +# Install boot ROM for board +COPY --from=bootrom /bootrom /bootrom +# Converting this from the ELF requires a patched esptool, so just copy it from our repo +COPY esp32c3_rev3_rom.bin /bootrom + +WORKDIR /work \ No newline at end of file diff --git a/esp32c3_rev3_rom.bin b/esp32c3_rev3_rom.bin new file mode 100644 index 0000000000000000000000000000000000000000..dcfee39bb33e3c86477e4cf5c17b5a62e08cc110 Binary files /dev/null and b/esp32c3_rev3_rom.bin differ