Skip to content
Snippets Groups Projects

Raspberry Pi usbboot for Silberblue

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Sheogorath

    Small Dockerfile Raspberry Pi's usbboot repository. Just clone the repository, copy the Dockerfile from below into the repository.

    Using the commands below, and following the instructions in the repository, you can recover the Raspberry Pi ROM.

    sudo podman build -t rpiboot:latest .
    sudo podman run -it --privileged -v "$(pwd):$(pwd):z" -w "$(pwd)" rpiboot:latest -d recovery5

    Note: This will not work as expected, since inside the container the USB device will not be re-detected when the Raspberry Pi enters its second boot phase.

    Edited
    Dockerfile 250 B
    FROM docker.io/library/debian:12.5
    
    RUN apt-get update && \
        apt-get install -y git libusb-1.0-0-dev pkg-config build-essential
    
    RUN mkdir -p /srv/src/usbboot
    
    WORKDIR /srv/src/usbboot
    
    COPY . .
    
    RUN make
    
    RUN make install
    
    ENTRYPOINT ["rpiboot"]
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment