A quick-and dirty way to prepare an SD card on Mac OS X with Alpine Linux for a Raspberry Pi.
- Mac OS X with GNU
make
andrsync
installed, e.g. via homebrew. - An unused SD card. 2GB are sufficient.
make
will format the SD card, install Alpine, and eject the card.
For finer-grained control, use a combination of targets:
format
: Format the SD cardalpine
: Download Alpine (see Configuration below)mmc
: Copy Alpine on the card, download it if neededconfig
: Include an existingrpi.apkovl.tar.gz
configuration on the card. Only usefule if you have saved one previously.splash
: Add a boot splash. Caveat: This will disable the console. The splash screen must be namedfbsplash.ppm
.eject
: Eject the carddiff
: Show differences between the Alpine distribution and the card contentsclean
: Remove the downloaded Alpine distribution.
See the Editable configuration section in the Makefile:
ARCH
: Usearmhf
for any Pi,aarch64
for Pi 2 and 3.MAJOR_VERSION
: Alpine release, e.g.3.9
MINOR_VERSION
: Point release, e.g.2
for release3.9.2
https://gist.github.com/dnknth/051a348ae69d02df935da81a90130209#file-makefile-L59
huh, you already had this, funny