Raspbery Pi USB Gadget Image Builder
A script to add USB Ethernet Gadget configuration to a standard Raspbian Lite SD Card image. This should work with Raspberry Pi Zero, Zero W and 4.
Currently only tested on Linux, but should run on OSx
Clone the repo
git clone firstname.lastname@example.org:hardillb/rpi-gadget-image-creator.git
Copy the raspbian lite image into the
Once complete you can write the image file to a SD Card with any of the usual tools e.g.
You can find instructions on the Raspberry Pi website here
Look at repackaging everything into an extention to DockerPi so the whole thing runs in the container.