Skip to content

Pre-built, Raspberry Pi images to simplify using the Pi as a USB gadget.

Notifications You must be signed in to change notification settings

techcraftco/rpi-usb-gadget

Repository files navigation

Pre-built Raspberry Pi images to simplify using the Pi as a USB gadget.

The basic Raspberry Pi OS images are a faithful reproduction of the work done by Ben Hardill, with some additional automation wrapped around to get to a publish release on GitHub.

Other operating systems are derived from the basic template used in Raspberry Pi OS.

Available Images

  • Raspberry Pi OS (arm64 and armhf)
    • Lite
    • Desktop
  • Ubuntu (arm64 and armhf)
    • Server

Burning Your Image

Since v0.2, images no longer have a default user/password. The recommened approach is to set the user/password during image burn with Raspberry Pi Imager.

I have a video showing how to burn and customize an image here:

Raspberry Pi iPad Pro Setup Guide

Building Images with Docker

The easiest way to build images locally is to use the pre-built packer-builder-armpba Docker images

docker run --rm --privileged -v /dev:/dev -v ${PWD}:/build mkaczanowski/packer-builder-arm build <build_json_path>

Replace <build_json_path> with any of the image definition files in the root directory.

Building Images with Packer directly

To build you need Packer and the packer-builder-arm plugin. To build packer-build-arm you need Go.

With Packer and packer-builder-arm installed:

sudo packer build raspios-lite-usb-gadget-arm.json

You can substitute any other build specification in the call to packer build.