URI: 
       tREADME.md - 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
       ---
       tREADME.md (1765B)
       ---
            1 pi3-aoe
            2 =======
            3 
            4 A basic setup for ATA over Ethernet on a RPi3.
            5 
            6 
            7 Quick, and maybe dangerous
            8 --------------------------
            9 
           10 Edit `boot/cmdline.txt` to match your AoE shelf.
           11 
           12 ```
           13 ( echo -e '#!/bin/sh\nset -e\n' ; grep '^;' README.md | sed 's/^; //' ) > install.sh
           14 sh install.sh
           15 ```
           16 
           17 Build steps
           18 -----------
           19 
           20 * Edit `boot/cmdline.txt` to match your AoE shelf.
           21 
           22 * Run `make -j32` to build everything
           23 
           24 ```
           25 ; make -j32
           26 ```
           27 
           28 * Create an image to dd on a microsd:
           29 
           30 ```
           31 ; dd if=/dev/zero of=pi3aoe.img bs=1M count=50
           32 ; loopdevice="$(sudo losetup -f --show pi3aoe.img)"
           33 ; sudo parted "$loopdevice" --script -- mklabel msdos
           34 ; sudo parted "$loopdevice" --script -- mkpart primary "fat32 2048s 100%"
           35 ; sudo mkfs.vfat "${loopdevice}p1"
           36 ; mkdir -p mnt
           37 ; sudo mount "${loopdevice}p1" mnt
           38 ```
           39 
           40 * Install
           41 
           42 ```
           43 ; sudo make DESTDIR="$PWD/mnt" install
           44 ```
           45 
           46 * Unmount and remove
           47 
           48 ```
           49 ; sudo umount -R mnt
           50 ; sudo partx -dv "$loopdevice"
           51 ; sudo losetup -d "$loopdevice"
           52 ```
           53 
           54 Now you're ready to dd.
           55 
           56 ```
           57 dd if=pi3aoe.img of=/dev/mmcblk0
           58 ```
           59 
           60 
           61 Example AoE image setup
           62 -----------------------
           63 
           64 ```
           65 dd if=/dev/zero bs=1MiB count=0 seek=100000 of=aoe-pi3-arm64.img
           66 mkfs.ext4 aoe-pi3-arm64.img
           67 mkdir mnt
           68 mount -o loop aoe-pi3-arm64.img mnt
           69 debootstrap --arch=arm64 --foreign beowulf mnt https://pkgmaster.devuan.org/merged
           70 cp -a /usr/bin/qemu-aarch64 mnt/usr/bin
           71 [ -d /proc/sys/fs/binfmt_misc ] || modprobe binfmt_misc
           72 [ -f /proc/sys/fs/binfmt_misc/register ] || mount binfmt_bisc -t binfmt_misc /proc/sys/fs/binfmt_misc
           73 /etc/init.d/qemu-binfmt start || /etc/init.d/binfmt-support start
           74 chroot mnt /debootstrap/debootstrap --second-stage
           75 echo "pi3-aoe" > mnt/etc/hostname
           76 echo "root:toor" | chpasswd -R $PWD/mnt
           77 sed -e 's/localhost/& pi3-aoe/' -i mnt/etc/hosts
           78 rm -f mnt/usr/bin/qemu-aarch64
           79