Skip to content
Snippets Groups Projects
Commit b9844818 authored by davip00's avatar davip00
Browse files

Add boot ROM to docker image

parent 6d7ead53
No related branches found
No related tags found
No related merge requests found
......@@ -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
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment