Bootable SD card

Partitioning
 card=/dev/sdc dd if=/dev/zero of=$card bs=1M count=1 sfdisk -R $card cat < dd if=spl/sunxi-spl.bin of=$card bs=1024 seek=8 dd if=u-boot.bin of=$card bs=1024 seek=32

Boot
 mount ${card}1 /mnt/ cp uImage /mnt/ cp script.bin /mnt/ umount /mnt/

Ubuntu Precise Userspace
 mount ${card}2 /mnt/ debootstrap --arch=armhf --variant=buildd --foreign precise /mnt/ cp /usr/bin/qemu-arm-static /mnt/usr/bin/ chroot /mnt /debootstrap/debootstrap --second-stage exit cat < etc/apt/sources.list deb http://ports.ubuntu.com/ precise main universe deb-src http://ports.ubuntu.com/ precise main universe deb http://ports.ubuntu.com/ precise-security main universe deb-src http://ports.ubuntu.com/ precise-security main universe deb http://ports.ubuntu.com/ precise-updates main universe deb-src http://ports.ubuntu.com/ precise-updates main universe EOT cat <> etc/fstab none	/tmp	tmpfs	defaults,noatime,mode=1777 0 0 /dev/mmcblk0p1	/boot	vfat defaults 0 0 EOT umount /mnt

External

 * u-boot/sunxi wiki