pi3-aoe

ATA over Ethernet setup for Raspberry Pi 3
git clone https://git.parazyd.org/pi3-aoe
Log | Files | Refs | README | LICENSE

commit 77004909878334b4c0ddf56dbd3c5cf6cbf5ef43
parent cefafa06e70d6ca7d591a175e35fa7be703f9e2e
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 28 Jan 2021 14:44:52 +0100

Update instructions.

Diffstat:
MREADME.md | 17++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md @@ -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 @@ -57,6 +53,10 @@ Build steps Now you're ready to dd. +``` +dd if=pi3aoe.img of=/dev/mmcblk0 +``` + Example AoE image setup ----------------------- @@ -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