all: echo make install-onto-sdcard install-onto-sdcard: parted /dev/sdb mklabel msdos parted /dev/sdb mkpart primary ext4 1MiB 8GB parted /dev/sdb mkpart primary ext4 8GB 32GB sleep 1 mkfs.ext4 /dev/sdb1 mkfs.ext4 /dev/sdb2 e2label /dev/sdb1 root e2label /dev/sdb2 factory-image mount /dev/sdb1 /mnt/sdcard/ dd if=/home/pinebook/u-boot-jcarr/u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1K seek=8 cd /mnt/sdcard/ && rsync -av --progress /home/pinebook/factory/jcarr-factory-sdcard/ . umount /mnt/sdcard sync mount /dev/sdb2 /mnt/sdcard-image/ rsync -av --progress /home/pinebook/factory/community-builds/Armbian_5.69_Pinebook-a64_Ubuntu_bionic_next_4.19.13_desktop.img /mnt/sdcard-image/emmc.img umount /mnt/sdcard-image/ sync rc-local: cp -a rc.local /media/jcarr/root/etc/rc.local cp -a rc.root.local /media/jcarr/root/root/rc.local