From 8af695e8256511987605c2998d214a7ef788a078 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 14 Nov 2022 20:05:47 +0100 Subject: [PATCH] Update README --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 96903e2..17941ab 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository contains the instructions and configuration to build a SD image with a bigger /boot partition size and my SSH public keys -## Usage +## Building 1. Enable QEMU on the host machine by adding the following option @@ -15,3 +15,17 @@ boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; ```{bash} nix-build '' -A config.system.build.sdImage -I nixos-config=./sd-image.nix --argstr system aarch64-linux ``` + +## Usage + +1. Extract the image + +```{bash} +nix-shell -p zstd --run "unzstd rp4-image.img.zst" +``` + +2. Burn it to an SD card + +``` bash +sudo dd if=rp4-image.img of=/dev/mmcblk0 bs=1M status=progress conv=fsync +```