This is an old revision of the document!
About this Article
We may want to install lubuntu desktop/server to SD card, here is a guide for you. This guide is for Linux platform only. We take Desktop as a example in this guide. If you are interested in Server, just replace the images with server one.
We assume card=/dev/sdd here
$card=/dev/sdd $sudo dd if=/dev/zero of=${card} bs=1024 seek=544 count=128
$sudo dd if=u-boot-sunxi-with-spl-ct-20131102.bin of=$card bs=1024 seek=8
$ sudo fdisk /dev/sdd
Using the fdisk command to create 2 partitions on the SD Card, e.g.
Show bellow
Device Boot Start End Blocks Id System /dev/sdd1 2048 133119 65536 83 Linux /dev/sdd2 133120 15278079 7572480 83 Linux
Also we recommend you to look at Bootable_SD_card
$sudo mkfs.ext2 ${card}1 $sudo mkfs.ext4 ${card}2
$mkdir /tmp/sdd1 /tmp/sdd2 $sudo mount -t ext2 ${card}1 /tmp/sdd1 $sudo mount -t ext4 ${card}2 /tmp/sdd2 $sudo tar -C /tmp/sdd1 -xvf bootfs-part1.tar.gz $sudo tar -C /tmp/sdd2 -xvf rootfs-part2.tar.gz $sync $sudo umount /tmp/sdd1 $sudo umount /tmp/sdd2
After login to lubuntu system on Cubietruck with linaro,
$sudo su - root --> change to root user #mkdir /tmp/1 /tmp/target #mount /dev/mmcblk0p2 /tmp/1 #mkfs.ext4 /dev/sda1 #mount /dev/sda1 /tmp/target
#(cd /tmp/1; tar --backup -c *) |tar -C /tmp/target -xv
#mount /dev/mmcblk0p1 /mnt/ #vi /mnt/uEnv.txt (Change root=/dev/sda1)
So the file's content would like bellow
cat /mnt/uEnv.txt root=/dev/sda1 extraargs=console=tty0 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard
#sync #umount /mnt #reboot
After installing rootfs to SSD, we will get much more better experience。
If we want to change to VGA output default, we need to modify the script.bin at the 1st partition
$bin2fex script.bin 1.fex $vim 1.fex (and change screen0_output_type to 4) $fex2bin 1.fex script.bin
Cubietruck have AP6210 wifi/bt module combo on board, to load the module,
#modprobe bcmdhd
linaro/linaro