mizbit / rpi-gadget-image-creator

Takes a standard Raspbian Lite image and adds USB Ethernet gadget config

Home Page:https://www.hardill.me.uk/wordpress/2020/02/21/building-custom-raspberry-pi-sd-card-images/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Requirements

  • Docker
  • expect

Install

Clone the repo

git clone git@github.com:hardillb/rpi-gadget-image-creator.git

Copy the raspbian lite image into the rpi-gadget-image-creator directory.

Running

./create-image 2019-09-26-raspbian-buster-lite.img

Once complete you can write the image file to a SD Card with any of the usual tools e.g. dd or balena-etch. You can find instructions on the Raspberry Pi website here

TODO

Look at repackaging everything into an extention to DockerPi so the whole thing runs in the container.

About

Takes a standard Raspbian Lite image and adds USB Ethernet gadget config

https://www.hardill.me.uk/wordpress/2020/02/21/building-custom-raspberry-pi-sd-card-images/

License:Apache License 2.0


Languages

Language:Shell 100.0%