You are right, you can also configure USB-tethering (or even wifi) to establish connection
I wrote up my install procedure, for both SD and nand install.
almost everything works out of the box, except bluetooth.
This is not a script, but you can copy-paste most commands
Content of the configuration files:
---/etc/modules-load.d/cubie.conf--- ( make display and ethernet work )
$this->bbcode_second_pass_code('', 'sunxi_gmac
bcmdhd
fbcon
lcd
hdmi
disp
disp_ump
ump
g_ether
sunxi_cedar_mod
')-----------------------------------
g_ether is for usb-tethering, bcmdhd for wifi. both need to be configured before they work
---/etc/modprobe.d/gmac.conf--- ( keep IP-address stable, make your own MAC)
$this->bbcode_second_pass_code('', 'options sunxi_gmac mac_str="00:11:22:33:44:55"
')-------------------------------
Procedure:
< make an SD-card on the Host computer. mountpoint = /dev/sdX>
mkdir mnt
wget
http://archlinuxarm.org/os/ArchLinuxARM ... est.tar.gzwget
http://mirror.archlinuxarm.org/armv7h/a ... pkg.tar.xzsudo su ( superuser from now on )
dd if=/dev/zero of=/dev/sdX bs=1M count=1
fdisk /dev/sdX ( n - p - 1 - enter - enter - w )
mkfs.ext4 /dev/sdX1
mount /dev/sdX1 mnt
tar -xf ArchLinuxARM-sun7i-latest.tar.gz -C mnt
nano mnt/etc/modules-load.d/cubie.conf ( enter above content )
nano mnt/etc/modprobe.d/gmac.conf ( enter above content )
cp ArchLinuxARM-sun7i-latest.tar.gz mnt/root
tar -xf uboot-cubietruck-2014.01-4-armv7h.pkg.tar.xz -C mnt --exclude='.PKGINFO' --exclude='.MTREE' --exclude='.INSTALL'
sync
dd if=mnt/boot/u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
sync
umount mnt
exit ( back to normal user )
< put card in cubietruck, connect ethernet and apply power >
ssh assigned_IP_address -l root ( password = root )
pacman -S sunxi-tools dosfstools wget
wget
http://www.dropbox.com/s/7puy5v0v3pk7y6 ... n-boot.tgzpacman -S uboot-cubietruck ( say yes to all questions )
pacman -Syu
< done with the SD-card, continue with nand, only if you want to boot from internal nand >
nand-part -f a20 /dev/nand 32768 'bootloader 131072' 'rootfs 14778368'
mkfs.vfat /dev/nanda
mkfs.ext4 /dev/nandb
< populate the rootfs filesystem on /dev/nandb >
mount /dev/nandb /mnt
tar -xf ArchLinuxARM-sun7i-latest.tar.gz -C /mnt
cp /etc/modules-load.d/cubie.conf /mnt/etc/modules-load.d/
cp /etc/modprobe.d/gmac.conf /mnt/etc/modprobe.d/
sync
cp /mnt/boot/uImage . ( save for the next step )
umount /mnt
< populate the bootloader filesystem on /dev/nanda >
mount /dev/nanda /mnt
tar -xf nand1-cubietruck-debian-boot.tgz -C /mnt
mv uImage /mnt ( replace the debian kernel )
sync
umount /mnt
poweroff ( you are done, remove SD-card )
( and press reset. )