commit 6154991b63d92210af8978045ceafcf91e14d827
parent e9efb4cd1b1d717ca22fa77c0378ff36112bf430
Author: parazyd <parazyd@dyne.org>
Date: Thu, 28 Jan 2021 14:14:30 +0100
Update readme with image creation example.
Diffstat:
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -7,6 +7,8 @@ A basic setup for ATA over Ethernet on a RPi3.
Quick, and maybe dangerous
--------------------------
+Edit `boot/cmdline.txt` to match your AoE shelf.
+
```
( echo -e '#!/bin/sh\nset -e\n' ; grep '^;' README.md | sed 's/^; //' ) > install.sh
sh install.sh
@@ -15,6 +17,8 @@ sh install.sh
Build steps
-----------
+* Edit `boot/cmdline.txt` to match your AoE shelf.
+
* Run `make -j32` to build everything
```
@@ -52,3 +56,21 @@ Build steps
```
Now you're ready to dd.
+
+
+Example AoE image setup
+-----------------------
+
+```
+dd if=/dev/zero bs=1MiB count=0 seek=100000 of=aoe-pi3-arm64.img
+mkfs.ext4 aoe-pi3-arm64.img
+mkdir mnt
+mount -o loop aoe-pi3-arm64.img mnt
+debootstrap --arch=arm64 --foreign beowulf mnt https://pkgmaster.devuan.org/merged
+cp -a /usr/bin/qemu-aarch64 mnt/usr/bin
+[ -d /proc/sys/fs/binfmt_misc ] || modprobe binfmt_misc
+[ -f /proc/sys/fs/binfmt_misc/register ] || mount binfmt_bisc -t binfmt_misc /proc/sys/fs/binfmt_misc
+/etc/init.d/qemu-binfmt start || /etc/init.d/binfmt-support start
+chroot mnt /debootstrap/debootstrap --second-stage
+rm -f mnt/usr/bin/qemu-aarch64
+```+
\ No newline at end of file