Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardillb/rpi-gadget-image-creator
Takes a standard Raspbian Lite image and adds USB Ethernet gadget config
https://github.com/hardillb/rpi-gadget-image-creator
docker qemu-arm raspberry-pi usb
Last synced: 3 days ago
JSON representation
Takes a standard Raspbian Lite image and adds USB Ethernet gadget config
- Host: GitHub
- URL: https://github.com/hardillb/rpi-gadget-image-creator
- Owner: hardillb
- License: apache-2.0
- Created: 2020-02-21T21:23:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T21:09:28.000Z (about 1 year ago)
- Last Synced: 2025-01-10T04:09:50.909Z (10 days ago)
- Topics: docker, qemu-arm, raspberry-pi, usb
- Language: Shell
- Homepage: https://www.hardill.me.uk/wordpress/2020/02/21/building-custom-raspberry-pi-sd-card-images/
- Size: 27.3 KB
- Stars: 186
- Watchers: 12
- Forks: 31
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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 and with Docker Desktop + WSL on Windows 10, but should also run on OSx
## Requirements
- Docker
- expect## Install
Clone the repo
```
git clone https://github.com/hardillb/rpi-gadget-image-creator.git
```Copy the raspbian lite image into the `rpi-gadget-image-creator` directory.
## Running
```
./setup.sh 2019-09-26-raspbian-buster-lite.img
```To build a 64bit OS image you need to add `-64` before the image name. 64bit versions will run on Pi 3 and Pi 4 hardware.
```
./setup.sh -64 2020-08-20-raspios-buster-arm64.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](https://www.raspberrypi.org/documentation/installation/installing-images/README.md)## TODO
Look at repackaging everything into an extention to DockerPi so the whole thing runs in the container.