pacman -S uboot-tools 
wget http://os.archlinuxarm.org/os/ArchLinuxARM-armv7-latest.tar.gz -O /tmp/ArchLinuxARM-armv7-latest.tar.gz 
wget http://de2.mirror.archlinuxarm.org/armv7h/alarm/uboot-cubietruck-2016.05-1-armv7h.pkg.tar.xz -O /tmp/uboot-cubietruck-2016.05-1-armv7h.pkg.tar.xz 
echo fdisk /dev/mmcblk0 
fdisk /dev/mmcblk0 <<EOF
     o 
     n 
     p 
     1 
     +100M 
     n 
     p 
     2 
     w 
EOF 
cd /tmp 
mkfs.vfat /dev/mmcblk0p1 
mkfs.ext4 /dev/mmcblk0p2 
mkdir mnt bootmnt 
mount /dev/mmcblk0p1 bootmnt 
mount /dev/mmcblk0p2 mnt 
tar -xf ArchLinuxARM-armv7-latest.tar.gz -C mnt 
sync 
mv mnt/boot/* bootmnt 
tar -xf uboot-cubietruck-2016.05-1-armv7h.pkg.tar.xz -C bootmnt --exclude='.PKGINFO' --exclude='.MTREE' --exclude='.INSTALL' 
dd if=bootmnt/u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8 cd bootmnt/ 
sed -i -e 's:^setenv bootargs console=${console} root=PARTUUID=${uuid} rw rootwait$:setenv bootargs console=${console} root=/dev/mmcblk0p2 rw rootwait:' -e 's:/boot/:/:' boot.txt mkimage -C none -A arm -T script -d boot.txt boot.scr 
ssh alarm@alarm 
su (pw root) 
echo '/dev/mmcblk0p1 /boot vfat rw,noatime,nodiratime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro,noauto,x-systemd.automount 0 1' >> /etc/fstab

cubietruck & archlinux installation