tUpdate instructions. - pi3-aoe - ATA over Ethernet setup for Raspberry Pi 3 HTML git clone https://git.parazyd.org/pi3-aoe DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 77004909878334b4c0ddf56dbd3c5cf6cbf5ef43 DIR parent cefafa06e70d6ca7d591a175e35fa7be703f9e2e HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 28 Jan 2021 14:44:52 +0100 Update instructions. Diffstat: M README.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) --- DIR diff --git a/README.md b/README.md t@@ -28,17 +28,13 @@ Build steps * Create an image to dd on a microsd: ``` -; dd if=/dev/zero of=pi3aoe.img bs=1M count=100 +; dd if=/dev/zero of=pi3aoe.img bs=1M count=50 ; loopdevice="$(sudo losetup -f --show pi3aoe.img)" ; sudo parted "$loopdevice" --script -- mklabel msdos -; sudo parted "$loopdevice" --script -- mkpart primary "fat32 2048s 70MB" -; sudo parted "$loopdevice" --script -- mkpart primary "ext4 70MB 100%" +; sudo parted "$loopdevice" --script -- mkpart primary "fat32 2048s 100%" ; sudo mkfs.vfat "${loopdevice}p1" -; sudo mkfs.ext4 "${loopdevice}p2" ; mkdir -p mnt -; sudo mount "${loopdevice}p2" mnt -; sudo mkdir -p mnt/boot -; sudo mount "${loopdevice}p1" mnt/boot +; sudo mount "${loopdevice}p1" mnt ``` * Install t@@ -57,6 +53,10 @@ Build steps Now you're ready to dd. +``` +dd if=pi3aoe.img of=/dev/mmcblk0 +``` + Example AoE image setup ----------------------- t@@ -73,4 +73,7 @@ cp -a /usr/bin/qemu-aarch64 mnt/usr/bin /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 +echo "pi3-aoe" > mnt/etc/hostname +echo "root:toor" | chpasswd -R mnt +sed -e 's/localhost/& pi3-aoe/' -i mnt/etc/hosts ``` \ No newline at end of file